@opencode/core 0.0.0-dev-21875 → 0.0.0-dev-21881

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 (837) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -85
  3. package/dist/aisdk-native.js +96 -96
  4. package/dist/aisdk.js +102 -102
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{aisdk-0w944fsp.js → generate-03178dsp.js} +14 -14
  8. package/dist/chunks/{aisdk-034tev2y.js → generate-034tev2y.js} +2 -2
  9. package/dist/chunks/{aisdk-kbdzx3mw.js → generate-03efvwc7.js} +5 -5
  10. package/dist/chunks/{aisdk-85p0n2yn.js → generate-05rvh78w.js} +23 -23
  11. package/dist/chunks/{aisdk-3r0df5t1.js → generate-0ccsbrde.js} +21 -16
  12. package/dist/chunks/{aisdk-4efe9t29.js → generate-0fn5w6ze.js} +4 -4
  13. package/dist/chunks/{aisdk-m7bh4y9s.js → generate-0gsbsa6w.js} +5 -5
  14. package/dist/chunks/{aisdk-23z95380.js → generate-0kjhz3mt.js} +7 -7
  15. package/dist/chunks/{aisdk-x8nvjgx0.js → generate-11hfp36g.js} +4 -4
  16. package/dist/chunks/{aisdk-nmwyy83r.js → generate-1567v7as.js} +9 -9
  17. package/dist/chunks/generate-1b9qzhs0.js +42 -0
  18. package/dist/chunks/{aisdk-8qemxr4r.js → generate-1bt4srtf.js} +174 -174
  19. package/dist/chunks/{aisdk-1ep2p91f.js → generate-1ep2p91f.js} +2 -2
  20. package/dist/chunks/{aisdk-jw19tmnf.js → generate-1rj159m0.js} +14 -14
  21. package/dist/chunks/{aisdk-hr90zzyq.js → generate-1twhr14d.js} +3 -3
  22. package/dist/chunks/{aisdk-yyf3eqby.js → generate-1w9e6g42.js} +6 -6
  23. package/dist/chunks/{aisdk-1x2knyw4.js → generate-1x2knyw4.js} +1 -1
  24. package/dist/chunks/{aisdk-e8hh4y82.js → generate-1ypt5wpy.js} +5 -5
  25. package/dist/chunks/{aisdk-samctgvq.js → generate-20crrbd7.js} +16 -16
  26. package/dist/chunks/{aisdk-79ma1d1c.js → generate-20zdy5ks.js} +3 -3
  27. package/dist/chunks/{aisdk-7fbz3xvh.js → generate-25tc2yyb.js} +23 -23
  28. package/dist/chunks/{aisdk-yvedx3v0.js → generate-2b5b45c9.js} +14 -14
  29. package/dist/chunks/{aisdk-m73394ec.js → generate-2e5xfyre.js} +5 -5
  30. package/dist/chunks/{aisdk-yvxdremh.js → generate-2hnx25th.js} +6 -6
  31. package/dist/chunks/{aisdk-t6d8acg2.js → generate-2j0h6455.js} +42 -42
  32. package/dist/chunks/{aisdk-fk4m46k8.js → generate-2mm464fz.js} +36 -36
  33. package/dist/chunks/{aisdk-7hw7e9e6.js → generate-2p4wxb8m.js} +43 -43
  34. package/dist/chunks/{aisdk-ag6e1zzx.js → generate-2ymc78nk.js} +18 -18
  35. package/dist/chunks/{aisdk-2z1j29yd.js → generate-2z1j29yd.js} +1 -1
  36. package/dist/chunks/{aisdk-1qcv0mz7.js → generate-308nzxyx.js} +4 -4
  37. package/dist/chunks/{aisdk-rjh04bp0.js → generate-37cm3r6v.js} +3 -3
  38. package/dist/chunks/{aisdk-rfabv0vy.js → generate-39b0v2m0.js} +21 -21
  39. package/dist/chunks/{aisdk-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{aisdk-zf12tkd7.js → generate-3m2th8fr.js} +9 -9
  41. package/dist/chunks/{aisdk-3nnrz6f6.js → generate-3nnrz6f6.js} +1 -1
  42. package/dist/chunks/{aisdk-e5x3m6gv.js → generate-3xj7n42w.js} +33 -33
  43. package/dist/chunks/{aisdk-40za9wsf.js → generate-40za9wsf.js} +2 -2
  44. package/dist/chunks/{aisdk-9zzvs5fy.js → generate-450yhr7g.js} +16 -16
  45. package/dist/chunks/{aisdk-mebk6197.js → generate-45hvr24s.js} +28 -22
  46. package/dist/chunks/{aisdk-489smnq3.js → generate-49fajgsd.js} +11 -11
  47. package/dist/chunks/{aisdk-xgwnds1x.js → generate-4gjjgmy7.js} +48 -48
  48. package/dist/chunks/{aisdk-ja7wwn77.js → generate-4hh95258.js} +16 -16
  49. package/dist/chunks/{aisdk-ypvzn98z.js → generate-4k9tnmjh.js} +2 -2
  50. package/dist/chunks/{aisdk-4v7yfqvb.js → generate-4sszy9c0.js} +17 -17
  51. package/dist/chunks/{aisdk-4v008n1t.js → generate-4v008n1t.js} +1 -1
  52. package/dist/chunks/{aisdk-4xvmh7wp.js → generate-4xvmh7wp.js} +3 -3
  53. package/dist/chunks/{aisdk-pjjfw12x.js → generate-59qf4ysp.js} +30 -30
  54. package/dist/chunks/{aisdk-fgnzxzst.js → generate-5a525hm9.js} +16 -16
  55. package/dist/chunks/{aisdk-8whp40kv.js → generate-5ect6tx9.js} +3 -3
  56. package/dist/chunks/{aisdk-7jxwkttf.js → generate-5emr5dp8.js} +19 -19
  57. package/dist/chunks/{aisdk-se3xgqfz.js → generate-5fth6e7e.js} +17 -17
  58. package/dist/chunks/{aisdk-w82n2b1n.js → generate-5h9kw7gs.js} +23 -23
  59. package/dist/chunks/{aisdk-h5vr95z7.js → generate-5j08c03m.js} +14 -14
  60. package/dist/chunks/{aisdk-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
  61. package/dist/chunks/{aisdk-b6vsg801.js → generate-5nnwax6m.js} +5 -5
  62. package/dist/chunks/{aisdk-zggvq0e7.js → generate-5r72z9dp.js} +8 -8
  63. package/dist/chunks/{aisdk-q3ydzbgc.js → generate-5yqt7x1t.js} +8 -8
  64. package/dist/chunks/{aisdk-w570j3nw.js → generate-60chehtb.js} +3 -3
  65. package/dist/chunks/{aisdk-f6bsfr58.js → generate-65b6wh7d.js} +30 -30
  66. package/dist/chunks/{aisdk-ja2ck0d0.js → generate-6bh3dv2n.js} +31 -31
  67. package/dist/chunks/{aisdk-jfzqhw2z.js → generate-6dvctgn8.js} +66 -66
  68. package/dist/chunks/{aisdk-6esdw8yj.js → generate-6esdw8yj.js} +1 -1
  69. package/dist/chunks/{aisdk-6pjqjmy2.js → generate-6pjqjmy2.js} +1 -1
  70. package/dist/chunks/{aisdk-ymm1aw3q.js → generate-6rsjzsax.js} +11 -11
  71. package/dist/chunks/{aisdk-rp03b2v5.js → generate-6saj3a0m.js} +6 -6
  72. package/dist/chunks/{aisdk-jf9krjpp.js → generate-6t0a6egd.js} +11 -11
  73. package/dist/chunks/{aisdk-8wc2fpae.js → generate-6y263vp8.js} +5 -5
  74. package/dist/chunks/{aisdk-j1nh0dvn.js → generate-6zf9q3dm.js} +15 -15
  75. package/dist/chunks/{aisdk-4cbjx9hk.js → generate-73z36sy8.js} +16 -16
  76. package/dist/chunks/{aisdk-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{aisdk-tpm1qpxt.js → generate-7cx8wp0a.js} +9 -9
  78. package/dist/chunks/{aisdk-jsv2sbca.js → generate-7qvq4ghn.js} +43 -43
  79. package/dist/chunks/{aisdk-7w2ypzdf.js → generate-7w2ypzdf.js} +1 -1
  80. package/dist/chunks/{aisdk-e345rr8x.js → generate-7x78ttrr.js} +9 -9
  81. package/dist/chunks/{aisdk-1f6095jg.js → generate-81bgmkmh.js} +9 -9
  82. package/dist/chunks/{aisdk-5a8mvswy.js → generate-860y05k0.js} +60 -66
  83. package/dist/chunks/{aisdk-0rnen5bs.js → generate-88gqnt7v.js} +6 -6
  84. package/dist/chunks/{aisdk-6vgnb6m6.js → generate-8esy4z26.js} +13 -13
  85. package/dist/chunks/{aisdk-57e38gcf.js → generate-8q417wg1.js} +33 -33
  86. package/dist/chunks/{aisdk-8wtp7s3z.js → generate-8wtp7s3z.js} +1 -1
  87. package/dist/chunks/{aisdk-r7xar5ns.js → generate-8ykqf5wm.js} +8 -8
  88. package/dist/chunks/{aisdk-jsmr2n21.js → generate-8zg4nwes.js} +6 -6
  89. package/dist/chunks/{aisdk-91rj84md.js → generate-91rj84md.js} +1 -1
  90. package/dist/chunks/{aisdk-4dz3pbgy.js → generate-94gztf2h.js} +21 -21
  91. package/dist/chunks/{aisdk-hntapedg.js → generate-9844398g.js} +32 -32
  92. package/dist/chunks/{aisdk-9cx9sm2q.js → generate-9cx9sm2q.js} +1 -1
  93. package/dist/chunks/{aisdk-n73mkgya.js → generate-9czaxqrp.js} +13 -13
  94. package/dist/chunks/{aisdk-psgg7zsx.js → generate-9ma9r77m.js} +8 -6
  95. package/dist/chunks/{aisdk-ynrq1a8k.js → generate-9p9xqj3m.js} +8 -8
  96. package/dist/chunks/{aisdk-k52w713k.js → generate-9rfhangp.js} +50 -50
  97. package/dist/chunks/{aisdk-16ec66c0.js → generate-9rkew2h6.js} +19 -19
  98. package/dist/chunks/generate-9yjwf605.js +257 -0
  99. package/dist/chunks/{aisdk-17sd26a8.js → generate-a46k5kbx.js} +20 -20
  100. package/dist/chunks/{aisdk-xtrts158.js → generate-abv9f74v.js} +26 -26
  101. package/dist/chunks/{aisdk-rp7jyzbg.js → generate-adfm7s3d.js} +33 -33
  102. package/dist/chunks/{aisdk-agqd6nxz.js → generate-agqd6nxz.js} +2 -2
  103. package/dist/chunks/{aisdk-evgzhjhe.js → generate-ahvh1qya.js} +4 -4
  104. package/dist/chunks/{aisdk-e18tqe22.js → generate-aks81gr4.js} +8 -8
  105. package/dist/chunks/{aisdk-ev4m2yh5.js → generate-amjfyfwc.js} +17 -17
  106. package/dist/chunks/{aisdk-ayjs7tqn.js → generate-ayjs7tqn.js} +2 -2
  107. package/dist/chunks/{aisdk-4zb9my6c.js → generate-aym3a85m.js} +38 -38
  108. package/dist/chunks/{aisdk-b0mv4wxm.js → generate-b0mv4wxm.js} +2 -2
  109. package/dist/chunks/{aisdk-53azc0ng.js → generate-b87bx4hb.js} +9 -9
  110. package/dist/chunks/{aisdk-hyv7x757.js → generate-ba6md75m.js} +10 -10
  111. package/dist/chunks/{aisdk-ffntqjjr.js → generate-be310d62.js} +14 -14
  112. package/dist/chunks/{aisdk-nzqgb57p.js → generate-bf35rx15.js} +6 -6
  113. package/dist/chunks/{aisdk-kkew1p9e.js → generate-bhvs01y7.js} +6 -6
  114. package/dist/chunks/{aisdk-bjhzkqyk.js → generate-bjhzkqyk.js} +1 -1
  115. package/dist/chunks/{aisdk-4sgmv6p8.js → generate-bqbcn5z1.js} +28 -28
  116. package/dist/chunks/{aisdk-zf9nx0ea.js → generate-brryxvg9.js} +2 -2
  117. package/dist/chunks/{aisdk-bstexjd6.js → generate-bstexjd6.js} +1 -1
  118. package/dist/chunks/{aisdk-bht5e7px.js → generate-bwk9zsmg.js} +51 -30
  119. package/dist/chunks/{aisdk-c6x7d2ts.js → generate-c6x7d2ts.js} +1 -1
  120. package/dist/chunks/{aisdk-c9t2ty9q.js → generate-c9t2ty9q.js} +1 -1
  121. package/dist/chunks/{aisdk-79z3rxv7.js → generate-cr10brw4.js} +29 -29
  122. package/dist/chunks/{aisdk-bm4gstpq.js → generate-crfddmzc.js} +8 -8
  123. package/dist/chunks/{aisdk-9cbnrx2n.js → generate-d121hxf2.js} +6 -6
  124. package/dist/chunks/{aisdk-s9dtkhh9.js → generate-d47y8g47.js} +19 -19
  125. package/dist/chunks/{aisdk-d4v9tmah.js → generate-d4v9tmah.js} +2 -2
  126. package/dist/chunks/{aisdk-pbrfva61.js → generate-dkqkergf.js} +9 -9
  127. package/dist/chunks/{aisdk-ttavtkp0.js → generate-dpq6z7p1.js} +29 -29
  128. package/dist/chunks/{aisdk-k7kfnw93.js → generate-dr524zn0.js} +16 -16
  129. package/dist/chunks/{aisdk-e5b1pt7s.js → generate-dsjbn4pc.js} +4 -4
  130. package/dist/chunks/{aisdk-h1mzcgnc.js → generate-dv7g9852.js} +10 -10
  131. package/dist/chunks/{aisdk-7rgcx97n.js → generate-e5txay44.js} +4 -4
  132. package/dist/chunks/{aisdk-k97bvwzj.js → generate-e7c5a3nr.js} +9 -9
  133. package/dist/chunks/{aisdk-e834z07m.js → generate-e834z07m.js} +1 -1
  134. package/dist/chunks/{aisdk-2s2pjsss.js → generate-e9waf9qz.js} +9 -9
  135. package/dist/chunks/{aisdk-tjvr03ym.js → generate-eewf5kq5.js} +27 -27
  136. package/dist/chunks/{aisdk-wesz8wn3.js → generate-etgazebn.js} +26 -26
  137. package/dist/chunks/{aisdk-ex2ghmgq.js → generate-ex2ghmgq.js} +2 -2
  138. package/dist/chunks/{aisdk-wksjjq84.js → generate-eyyv5nda.js} +15 -15
  139. package/dist/chunks/{aisdk-egpk34eq.js → generate-ezas4x5c.js} +82 -82
  140. package/dist/chunks/{aisdk-84ce2qyx.js → generate-ezm5mefv.js} +15 -15
  141. package/dist/chunks/{aisdk-s4gp803s.js → generate-f4ce04df.js} +7 -7
  142. package/dist/chunks/{aisdk-37kgntdq.js → generate-f83r4zqb.js} +12 -12
  143. package/dist/chunks/{aisdk-fqnyfen5.js → generate-fc14jyx3.js} +24 -24
  144. package/dist/chunks/{aisdk-fffv3p7h.js → generate-fffv3p7h.js} +1 -1
  145. package/dist/chunks/{aisdk-3c0xbcmr.js → generate-fj4n425x.js} +83 -83
  146. package/dist/chunks/{aisdk-t6hx1vbh.js → generate-ftav155q.js} +5 -5
  147. package/dist/chunks/{aisdk-ytap9vp6.js → generate-fvxgcjfj.js} +32 -32
  148. package/dist/chunks/{aisdk-b6z35kmf.js → generate-fznmdakp.js} +4 -4
  149. package/dist/chunks/{aisdk-dkp3sj88.js → generate-g0skazn8.js} +17 -17
  150. package/dist/chunks/{aisdk-g5h9c0rr.js → generate-g5h9c0rr.js} +2 -2
  151. package/dist/chunks/{aisdk-emq6awqh.js → generate-gc4rcfsx.js} +4 -4
  152. package/dist/chunks/{aisdk-fqqv68q1.js → generate-gcnn6hyw.js} +21 -21
  153. package/dist/chunks/{aisdk-hv635p6z.js → generate-gg0rfb5w.js} +11 -11
  154. package/dist/chunks/{aisdk-gg8p9cgs.js → generate-gg8p9cgs.js} +3 -3
  155. package/dist/chunks/{aisdk-a0d4mwr5.js → generate-gnnftrr1.js} +34 -34
  156. package/dist/chunks/{aisdk-gfq40tc0.js → generate-gqbdtr3f.js} +25 -25
  157. package/dist/chunks/{aisdk-mvh2pba3.js → generate-gqmen105.js} +12 -12
  158. package/dist/chunks/{aisdk-wwcscnjj.js → generate-h1ferrrm.js} +11 -11
  159. package/dist/chunks/{aisdk-gxxn87ah.js → generate-h4m582a6.js} +26 -26
  160. package/dist/chunks/{aisdk-p01scpe3.js → generate-h659bff6.js} +3 -3
  161. package/dist/chunks/{aisdk-vwvg46tm.js → generate-h7gvp0tv.js} +2 -2
  162. package/dist/chunks/{aisdk-mvd95e57.js → generate-h7yew4n9.js} +11 -11
  163. package/dist/chunks/{aisdk-2wq0b38v.js → generate-h85wfqm9.js} +14 -14
  164. package/dist/chunks/{aisdk-hdfrs5mg.js → generate-hdfrs5mg.js} +2 -2
  165. package/dist/chunks/{aisdk-ketj597n.js → generate-hna5e0rk.js} +37 -37
  166. package/dist/chunks/{aisdk-a15k0zhp.js → generate-ht2xqj16.js} +24 -24
  167. package/dist/chunks/{aisdk-vzjwe277.js → generate-hw7xvx1w.js} +7 -7
  168. package/dist/chunks/{aisdk-5t1jrh19.js → generate-hwf1b6v4.js} +12 -12
  169. package/dist/chunks/{aisdk-k09tv0xx.js → generate-hx31exwe.js} +38 -38
  170. package/dist/chunks/{aisdk-k7yrx92t.js → generate-hyvmjqrf.js} +11 -11
  171. package/dist/chunks/{aisdk-b7g39s8d.js → generate-hzjw5pxs.js} +18 -18
  172. package/dist/chunks/{aisdk-j113cymg.js → generate-j113cymg.js} +1 -1
  173. package/dist/chunks/{aisdk-4c3mt1zt.js → generate-j5zs165q.js} +29 -29
  174. package/dist/chunks/{aisdk-ekj5pvbp.js → generate-jecrmhrf.js} +24 -24
  175. package/dist/chunks/{aisdk-yrmq5nfy.js → generate-jh1t67wh.js} +12 -12
  176. package/dist/chunks/{aisdk-k814nvkf.js → generate-k814nvkf.js} +1 -1
  177. package/dist/chunks/{aisdk-xf45rx5w.js → generate-k829tzk9.js} +4 -4
  178. package/dist/chunks/generate-ke35y05g.js +26 -0
  179. package/dist/chunks/{aisdk-1xyzjhw2.js → generate-kftyqbhm.js} +13 -13
  180. package/dist/chunks/{aisdk-s3zvyzrn.js → generate-kjt6993h.js} +38 -38
  181. package/dist/chunks/{aisdk-kt3bjfbg.js → generate-kt3bjfbg.js} +1 -1
  182. package/dist/chunks/{aisdk-s1yd5pe2.js → generate-kv6gsz9b.js} +5 -5
  183. package/dist/chunks/{aisdk-1j8yvp7z.js → generate-kvfvqdzr.js} +11 -11
  184. package/dist/chunks/{aisdk-5xqdh343.js → generate-kyjdqzbx.js} +28 -28
  185. package/dist/chunks/{aisdk-m1714858.js → generate-m1714858.js} +1 -1
  186. package/dist/chunks/{aisdk-m37sd98t.js → generate-m37sd98t.js} +1 -1
  187. package/dist/chunks/{aisdk-xvqn10fm.js → generate-m64hvvbh.js} +7 -7
  188. package/dist/chunks/{aisdk-n12vap05.js → generate-m6gaya9c.js} +20 -20
  189. package/dist/chunks/{aisdk-fh44djy4.js → generate-m6tde151.js} +31 -31
  190. package/dist/chunks/{aisdk-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
  191. package/dist/chunks/{aisdk-maspj1v3.js → generate-maspj1v3.js} +1 -1
  192. package/dist/chunks/{aisdk-tb7p4ryh.js → generate-me7kxg3j.js} +8 -8
  193. package/dist/chunks/{aisdk-t791s50j.js → generate-mhkzz5y2.js} +8 -8
  194. package/dist/chunks/{aisdk-2c39cwrz.js → generate-mj6e6dj3.js} +47 -47
  195. package/dist/chunks/{aisdk-n66c6y3m.js → generate-mn53dk4j.js} +6 -6
  196. package/dist/chunks/{aisdk-ehm42m9b.js → generate-mnsb4k1q.js} +5 -5
  197. package/dist/chunks/{aisdk-xq2ca4h8.js → generate-mtyjk5mv.js} +11 -11
  198. package/dist/chunks/{aisdk-zqn4mre8.js → generate-mzeef7bv.js} +7 -7
  199. package/dist/chunks/{aisdk-e8kwxw5m.js → generate-n2prjmzh.js} +16 -16
  200. package/dist/chunks/{aisdk-6kz9x0pq.js → generate-n49yy442.js} +11 -11
  201. package/dist/chunks/{aisdk-cwb64wyh.js → generate-n7ydacfz.js} +7 -7
  202. package/dist/chunks/{aisdk-770pw0s1.js → generate-nah043kf.js} +4 -4
  203. package/dist/chunks/{aisdk-sjhnd2rf.js → generate-nj7gxwd2.js} +5 -5
  204. package/dist/chunks/{aisdk-9r74pek2.js → generate-nmbqtac7.js} +21 -21
  205. package/dist/chunks/{aisdk-zwqgz0dx.js → generate-np2dfhev.js} +18 -18
  206. package/dist/chunks/{aisdk-k5f1tpst.js → generate-ns4f8tr7.js} +19 -19
  207. package/dist/chunks/{aisdk-p015t6z3.js → generate-p015t6z3.js} +2 -2
  208. package/dist/chunks/{aisdk-p7vhpwh8.js → generate-p7vhpwh8.js} +1 -1
  209. package/dist/chunks/{aisdk-5369tq0r.js → generate-pcsmd4he.js} +45 -45
  210. package/dist/chunks/{aisdk-pknna89w.js → generate-pknna89w.js} +1 -1
  211. package/dist/chunks/{aisdk-khh47epp.js → generate-ppk0knvm.js} +11 -11
  212. package/dist/chunks/{aisdk-js3ksacx.js → generate-pvwdf2yr.js} +14 -14
  213. package/dist/chunks/{aisdk-zvd49sfc.js → generate-py2ydaen.js} +15 -15
  214. package/dist/chunks/{aisdk-9n4wjpch.js → generate-q48tb2m2.js} +23 -23
  215. package/dist/chunks/{aisdk-wx3bw29q.js → generate-q8s21k0n.js} +4 -4
  216. package/dist/chunks/{aisdk-xzq0t6ts.js → generate-qby0d106.js} +30 -30
  217. package/dist/chunks/{aisdk-4405x3fp.js → generate-qgj1m8vp.js} +11 -11
  218. package/dist/chunks/{aisdk-kdspzf8n.js → generate-qhfh2fyf.js} +18 -18
  219. package/dist/chunks/{aisdk-3wb3hybh.js → generate-qmvd76a3.js} +5 -5
  220. package/dist/chunks/{aisdk-hme2sm3y.js → generate-qq0vx577.js} +2 -2
  221. package/dist/chunks/{aisdk-wrdkdhq7.js → generate-qw45kx2n.js} +15 -15
  222. package/dist/chunks/{aisdk-5jh3x4cp.js → generate-qwa5qwjv.js} +1 -1
  223. package/dist/chunks/{aisdk-pc1v25hk.js → generate-qyq8h28g.js} +3 -3
  224. package/dist/chunks/{aisdk-r0yr0wbs.js → generate-r0yr0wbs.js} +1 -1
  225. package/dist/chunks/{aisdk-r542h3bh.js → generate-r542h3bh.js} +1 -1
  226. package/dist/chunks/{aisdk-p0datkc7.js → generate-r91jcx8b.js} +21 -21
  227. package/dist/chunks/{aisdk-rb9dy4dg.js → generate-rb9dy4dg.js} +1 -1
  228. package/dist/chunks/{aisdk-gcjdgkn2.js → generate-rmt6m6se.js} +9 -9
  229. package/dist/chunks/{aisdk-mbdjsty7.js → generate-rqa5g7v6.js} +39 -37
  230. package/dist/chunks/{aisdk-rt5dr6hb.js → generate-rt5dr6hb.js} +1 -1
  231. package/dist/chunks/{aisdk-av7e37cx.js → generate-s04tdcvb.js} +19 -19
  232. package/dist/chunks/{aisdk-mmx1mfjr.js → generate-s7kyse9r.js} +4 -4
  233. package/dist/chunks/{aisdk-sa3fpqfw.js → generate-sa3fpqfw.js} +2 -2
  234. package/dist/chunks/{aisdk-jmwjzmmg.js → generate-ser66ar7.js} +54 -54
  235. package/dist/chunks/{aisdk-k68y3btx.js → generate-sjn4p4df.js} +22 -22
  236. package/dist/chunks/{aisdk-cm6nqe55.js → generate-sm9at3z0.js} +5 -5
  237. package/dist/chunks/{aisdk-44rcajk3.js → generate-smf0az4w.js} +21 -21
  238. package/dist/chunks/{aisdk-36qqbj5g.js → generate-spxsma9c.js} +11 -11
  239. package/dist/chunks/{aisdk-sqjzf8x2.js → generate-sqjzf8x2.js} +1 -1
  240. package/dist/chunks/{aisdk-bqwt06y2.js → generate-srfbxa22.js} +27 -27
  241. package/dist/chunks/{aisdk-w1r09s4w.js → generate-srg9stfr.js} +24 -24
  242. package/dist/chunks/{aisdk-jskqb5sc.js → generate-sw5900k8.js} +12 -12
  243. package/dist/chunks/{aisdk-erck03gp.js → generate-sz4p1zm9.js} +11 -11
  244. package/dist/chunks/{aisdk-jmfbvvt7.js → generate-t39b6msr.js} +1 -1
  245. package/dist/chunks/{aisdk-mh3kd2f6.js → generate-t6myarfx.js} +20 -20
  246. package/dist/chunks/{aisdk-n5fqgye7.js → generate-t7ncsdpk.js} +13 -13
  247. package/dist/chunks/{aisdk-tczq8hjw.js → generate-tczq8hjw.js} +1 -1
  248. package/dist/chunks/{aisdk-kmzgegqq.js → generate-tg1vr1qt.js} +8 -8
  249. package/dist/chunks/{aisdk-qmj5cz35.js → generate-tpcr1ym9.js} +43 -43
  250. package/dist/chunks/{aisdk-twv2r8f4.js → generate-twv2r8f4.js} +2 -2
  251. package/dist/chunks/{aisdk-v2r1d0zg.js → generate-v2r1d0zg.js} +1 -1
  252. package/dist/chunks/{aisdk-qtd1m7g9.js → generate-v98na84w.js} +10 -10
  253. package/dist/chunks/{aisdk-3vf1n8kd.js → generate-vc4879sd.js} +11 -11
  254. package/dist/chunks/{aisdk-vd3b3yk9.js → generate-vd3b3yk9.js} +1 -1
  255. package/dist/chunks/{aisdk-veqvce7d.js → generate-veqvce7d.js} +1 -1
  256. package/dist/chunks/{aisdk-wmbj55q2.js → generate-vfd66558.js} +17 -17
  257. package/dist/chunks/{aisdk-36nd4hq0.js → generate-vvj2v3v2.js} +6 -6
  258. package/dist/chunks/{aisdk-p0svn4h2.js → generate-w0mr8pfp.js} +13 -13
  259. package/dist/chunks/{aisdk-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
  260. package/dist/chunks/{aisdk-76cb1hcw.js → generate-w8qtt4th.js} +4 -4
  261. package/dist/chunks/{aisdk-msm4t21m.js → generate-waekfe58.js} +18 -18
  262. package/dist/chunks/{aisdk-wakvkjy4.js → generate-wakvkjy4.js} +1 -1
  263. package/dist/chunks/{aisdk-wd87259q.js → generate-wd87259q.js} +1 -1
  264. package/dist/chunks/{aisdk-mqm9p8pm.js → generate-wef44qxv.js} +4 -4
  265. package/dist/chunks/{aisdk-x3wsffhh.js → generate-wghss91q.js} +9 -9
  266. package/dist/chunks/{aisdk-r94gekwm.js → generate-wn3e8tka.js} +9 -9
  267. package/dist/chunks/{aisdk-vxgnhsqb.js → generate-wr6c97eb.js} +19 -19
  268. package/dist/chunks/{aisdk-bagpgcae.js → generate-wwthzbr1.js} +9 -9
  269. package/dist/chunks/{aisdk-x9nfghf6.js → generate-wy0hchk8.js} +25 -25
  270. package/dist/chunks/{aisdk-pxpqm36s.js → generate-wy4whz5z.js} +4 -4
  271. package/dist/chunks/{aisdk-12szw4sb.js → generate-x4wyjn1e.js} +17 -17
  272. package/dist/chunks/{aisdk-r3cy16ca.js → generate-x6w6jbv3.js} +325 -325
  273. package/dist/chunks/generate-xgsg3c9w.js +18 -0
  274. package/dist/chunks/{aisdk-ds2mkssm.js → generate-xkzeecwb.js} +11 -11
  275. package/dist/chunks/{aisdk-vf21dnb8.js → generate-xq0asyt8.js} +25 -25
  276. package/dist/chunks/{aisdk-rmd5ss9w.js → generate-xvbhqn7e.js} +16 -16
  277. package/dist/chunks/{aisdk-ae9v544p.js → generate-xwwftgt8.js} +33 -33
  278. package/dist/chunks/{aisdk-7x19yq7v.js → generate-y2qm725k.js} +9 -9
  279. package/dist/chunks/{aisdk-9gqmj5vj.js → generate-y3v10bb3.js} +24 -24
  280. package/dist/chunks/generate-y5tx2pf5.js +215 -0
  281. package/dist/chunks/{aisdk-t2n027wp.js → generate-y8jm6641.js} +10 -10
  282. package/dist/chunks/{aisdk-45hysp4g.js → generate-ya93hhk9.js} +7 -7
  283. package/dist/chunks/{aisdk-yb20nhc3.js → generate-yb20nhc3.js} +1 -1
  284. package/dist/chunks/{aisdk-j05981jc.js → generate-yx7gwedn.js} +26 -26
  285. package/dist/chunks/{aisdk-ddwaa558.js → generate-yydqqga9.js} +4 -4
  286. package/dist/chunks/{aisdk-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
  287. package/dist/chunks/{aisdk-z38nccrw.js → generate-z38nccrw.js} +1 -1
  288. package/dist/chunks/{aisdk-1qqbk0v2.js → generate-z553p4sn.js} +6 -6
  289. package/dist/chunks/{aisdk-kqvg528a.js → generate-zk70hy5y.js} +27 -27
  290. package/dist/chunks/{aisdk-zkg84ctx.js → generate-zkg84ctx.js} +1 -1
  291. package/dist/chunks/{aisdk-ztme5hfx.js → generate-zv3m3tdk.js} +4 -4
  292. package/dist/chunks/{aisdk-b7v4cx43.js → generate-zw4pk1bw.js} +5 -5
  293. package/dist/chunks/{aisdk-95xjaa08.js → generate-zw7j8ap3.js} +28 -28
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +7 -7
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +89 -89
  299. package/dist/config/discovery.js +91 -91
  300. package/dist/config/integration.js +7 -7
  301. package/dist/config/markdown.js +1 -1
  302. package/dist/config/normalize.js +106 -106
  303. package/dist/config/plugin/agent.js +120 -120
  304. package/dist/config/plugin/command.js +218 -218
  305. package/dist/config/plugin/compaction.js +161 -161
  306. package/dist/config/plugin/compatibility.js +141 -141
  307. package/dist/config/plugin/entry-observer.js +1 -1
  308. package/dist/config/plugin/formatter.js +121 -121
  309. package/dist/config/plugin/image.js +120 -120
  310. package/dist/config/plugin/instruction.js +120 -120
  311. package/dist/config/plugin/location-watcher.js +122 -122
  312. package/dist/config/plugin/mcp.js +127 -127
  313. package/dist/config/plugin/policy.js +122 -122
  314. package/dist/config/plugin/provider.js +121 -121
  315. package/dist/config/plugin/reference.js +122 -122
  316. package/dist/config/plugin/shell.js +122 -122
  317. package/dist/config/plugin/skill-file.js +137 -111
  318. package/dist/config/plugin/skill-scan.js +3 -3
  319. package/dist/config/plugin/skill.js +144 -144
  320. package/dist/config/plugin/snapshot.js +120 -120
  321. package/dist/config/plugin/source.js +123 -123
  322. package/dist/config/plugin/tool-output.js +121 -121
  323. package/dist/config/plugin/websearch.js +121 -121
  324. package/dist/config/plugin/worktree.js +122 -122
  325. package/dist/config/variable.js +1 -1
  326. package/dist/config/watch.js +1 -1
  327. package/dist/config.js +123 -123
  328. package/dist/console-access.js +1 -1
  329. package/dist/credential/sql.js +2 -2
  330. package/dist/credential.js +89 -89
  331. package/dist/database/database.js +72 -72
  332. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  333. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  334. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  335. package/dist/database/drizzle/index.js +15 -15
  336. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  337. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  339. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  340. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  341. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  343. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  344. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  345. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  346. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  347. package/dist/database/drizzle.js +16 -16
  348. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  349. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  350. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  351. package/dist/database/migration/20260225215848_workspace.js +1 -1
  352. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  353. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  354. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  355. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  356. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  357. package/dist/database/migration/20260323234822_events.js +1 -1
  358. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  359. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  360. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  361. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  362. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  363. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  364. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  365. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  366. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  367. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  368. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  369. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  370. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  371. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  372. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  373. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  374. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  375. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  376. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  377. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  378. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  379. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  380. package/dist/database/migration/20260611035744_credential.js +1 -1
  381. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  382. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  383. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  384. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  385. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  386. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  387. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  388. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  389. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  390. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  391. package/dist/database/migration/20260812213948_worktree.js +1 -1
  392. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  393. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  394. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  395. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  396. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  397. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  398. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  399. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  400. package/dist/database/migration/20261025123711_blob.js +1 -1
  401. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  402. package/dist/database/migration.gen.js +55 -55
  403. package/dist/database/migration.js +57 -57
  404. package/dist/database/path.js +2 -2
  405. package/dist/database/schema.gen.js +1 -1
  406. package/dist/database/schema.sql.js +1 -1
  407. package/dist/database/sqlite.bun.js +1 -1
  408. package/dist/database/sqlite.js +1 -1
  409. package/dist/database/sqlite.node.js +1 -1
  410. package/dist/database/sqlite.workerd.js +1 -1
  411. package/dist/database/v1-migration.bun.js +92 -92
  412. package/dist/database/v1-migration.js +1 -1
  413. package/dist/effect/app-node-builder.js +380 -380
  414. package/dist/effect/app-node-platform.js +2 -2
  415. package/dist/effect/keyed-mutex.js +3 -3
  416. package/dist/effect/websocket-constructor.js +1 -1
  417. package/dist/environment/driver.js +1 -1
  418. package/dist/environment/environment.js +100 -100
  419. package/dist/environment/exec-defaults.js +2 -2
  420. package/dist/environment/files.js +1 -1
  421. package/dist/environment/index.js +100 -100
  422. package/dist/environment/local.js +2 -2
  423. package/dist/environment/memory.js +2 -2
  424. package/dist/environment/unavailable.js +3 -3
  425. package/dist/event/sql.js +1 -1
  426. package/dist/event-logger.js +76 -76
  427. package/dist/file-access.js +139 -113
  428. package/dist/file-mutation.js +101 -101
  429. package/dist/file-retention.js +1 -1
  430. package/dist/filesystem/fff.bun.js +2 -2
  431. package/dist/filesystem/fff.js +1 -1
  432. package/dist/filesystem/fff.node.js +2 -2
  433. package/dist/filesystem/fff.workerd.js +2 -2
  434. package/dist/filesystem/location-watcher-policy.js +6 -6
  435. package/dist/filesystem/location-watcher.js +233 -233
  436. package/dist/filesystem/protected.js +3 -3
  437. package/dist/filesystem/search.js +106 -106
  438. package/dist/filesystem/watcher-binding.js +1 -1
  439. package/dist/filesystem/watcher.js +11 -11
  440. package/dist/filesystem.js +111 -111
  441. package/dist/form.js +88 -88
  442. package/dist/formatter/builtins.js +4 -4
  443. package/dist/formatter.js +94 -94
  444. package/dist/generate.js +114 -114
  445. package/dist/git.js +7 -7
  446. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  447. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  448. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  449. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  450. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  451. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  452. package/dist/github-copilot/copilot-provider.js +17 -17
  453. package/dist/github-copilot/models.js +98 -98
  454. package/dist/github-copilot/openai-compatible-error.js +1 -1
  455. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  456. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  457. package/dist/github-copilot/responses/openai-error.js +1 -1
  458. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  459. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  460. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  461. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  462. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  463. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  464. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  465. package/dist/image/photon.js +2 -2
  466. package/dist/image.js +6 -6
  467. package/dist/instance/service.js +5 -5
  468. package/dist/instance.js +371 -371
  469. package/dist/instruction-discovery.js +92 -92
  470. package/dist/instructions/builtins.js +94 -94
  471. package/dist/instructions/index.js +5 -5
  472. package/dist/integration/connection.js +1 -1
  473. package/dist/integration.js +93 -93
  474. package/dist/job.js +82 -82
  475. package/dist/kv/sql.js +2 -2
  476. package/dist/kv.js +79 -79
  477. package/dist/location-activity.js +162 -162
  478. package/dist/location-lifecycle.js +141 -116
  479. package/dist/location-service-map.js +93 -93
  480. package/dist/location-services.js +368 -368
  481. package/dist/location.js +88 -88
  482. package/dist/managed-policy.js +9 -9
  483. package/dist/mcp/client.js +98 -98
  484. package/dist/mcp/index.js +114 -114
  485. package/dist/mcp/instructions.js +167 -147
  486. package/dist/mcp/oauth.js +84 -84
  487. package/dist/mcp/socket-client.js +1 -1
  488. package/dist/mcp/stdio.js +97 -97
  489. package/dist/mime.js +1 -1
  490. package/dist/modal/models.js +98 -98
  491. package/dist/model-resolver.js +106 -106
  492. package/dist/model-retry.js +1 -1
  493. package/dist/model.js +105 -105
  494. package/dist/models-dev.js +114 -114
  495. package/dist/oauth/page.js +1 -1
  496. package/dist/permission/saved.js +86 -86
  497. package/dist/permission/sql.js +5 -5
  498. package/dist/permission.js +142 -116
  499. package/dist/persistent-pty/binary.bun.js +1 -1
  500. package/dist/persistent-pty/daemon.js +1 -1
  501. package/dist/persistent-pty/index.js +94 -94
  502. package/dist/persistent-pty/pty-binding.js +1 -1
  503. package/dist/persistent-pty.js +81 -81
  504. package/dist/plugin/agent.js +80 -80
  505. package/dist/plugin/command.js +107 -107
  506. package/dist/plugin/hooks.js +5 -5
  507. package/dist/plugin/host.js +224 -224
  508. package/dist/plugin/identity.js +5 -5
  509. package/dist/plugin/instance.js +5 -5
  510. package/dist/plugin/internal.js +341 -341
  511. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  512. package/dist/plugin/models-dev.js +103 -103
  513. package/dist/plugin/module.js +122 -122
  514. package/dist/plugin/optimize.js +2 -2
  515. package/dist/plugin/plan.js +137 -111
  516. package/dist/plugin/promise.js +1 -1
  517. package/dist/plugin/provider/amazon-bedrock.js +97 -97
  518. package/dist/plugin/provider/azure.js +120 -120
  519. package/dist/plugin/provider/cerebras.js +1 -1
  520. package/dist/plugin/provider/chatgpt.js +120 -120
  521. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  522. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  523. package/dist/plugin/provider/cohere.js +2 -2
  524. package/dist/plugin/provider/configured.js +116 -116
  525. package/dist/plugin/provider/databricks.js +1 -1
  526. package/dist/plugin/provider/digitalocean.js +100 -100
  527. package/dist/plugin/provider/dynamic.js +2 -2
  528. package/dist/plugin/provider/factory.js +1 -1
  529. package/dist/plugin/provider/github-copilot.js +102 -102
  530. package/dist/plugin/provider/gitlab.js +100 -100
  531. package/dist/plugin/provider/google-vertex.js +117 -117
  532. package/dist/plugin/provider/kilo.js +1 -1
  533. package/dist/plugin/provider/llmgateway.js +84 -84
  534. package/dist/plugin/provider/lmstudio.js +129 -129
  535. package/dist/plugin/provider/local.js +126 -126
  536. package/dist/plugin/provider/modal.js +99 -99
  537. package/dist/plugin/provider/neon.js +1 -1
  538. package/dist/plugin/provider/nvidia.js +1 -1
  539. package/dist/plugin/provider/ollama.js +129 -129
  540. package/dist/plugin/provider/openai-context-caps.js +97 -97
  541. package/dist/plugin/provider/openai.js +120 -120
  542. package/dist/plugin/provider/opencode-legacy.js +105 -105
  543. package/dist/plugin/provider/opencode.js +126 -126
  544. package/dist/plugin/provider/openrouter.js +98 -98
  545. package/dist/plugin/provider/perplexity.js +2 -2
  546. package/dist/plugin/provider/poe.js +85 -85
  547. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  548. package/dist/plugin/provider/sap-ai-core.js +98 -98
  549. package/dist/plugin/provider/sdk-factory.js +1 -1
  550. package/dist/plugin/provider/snowflake-cortex.js +119 -119
  551. package/dist/plugin/provider/vercel.js +97 -97
  552. package/dist/plugin/provider/vllm.js +129 -129
  553. package/dist/plugin/provider/xai.js +98 -98
  554. package/dist/plugin/provider/zenmux.js +1 -1
  555. package/dist/plugin/provider.js +177 -177
  556. package/dist/plugin/sdk.js +78 -78
  557. package/dist/plugin/service.js +3 -3
  558. package/dist/plugin/skill.js +138 -138
  559. package/dist/plugin/source-directory.js +1 -1
  560. package/dist/plugin/supervisor.js +358 -358
  561. package/dist/plugin/tool-input-repair.js +2 -2
  562. package/dist/plugin/update.js +6 -6
  563. package/dist/plugin/vcs/git.js +91 -91
  564. package/dist/plugin/vcs/hg.js +93 -93
  565. package/dist/plugin/verbosity.js +100 -100
  566. package/dist/plugin/warming.js +118 -118
  567. package/dist/plugin/websearch/exa.js +7 -7
  568. package/dist/plugin/websearch/firecrawl.js +8 -8
  569. package/dist/plugin/websearch/index.js +9 -9
  570. package/dist/plugin/websearch/mcp.js +2 -2
  571. package/dist/plugin/websearch/parallel.js +6 -6
  572. package/dist/plugin/websearch/tavily.js +4 -4
  573. package/dist/plugin/websearch/tinyfish.js +8 -8
  574. package/dist/plugin.js +233 -233
  575. package/dist/project/schema.js +2 -2
  576. package/dist/project/sql.js +4 -4
  577. package/dist/project.js +87 -87
  578. package/dist/provider.js +104 -104
  579. package/dist/pty/protocol.js +1 -1
  580. package/dist/pty/ticket.js +1 -1
  581. package/dist/pty.js +105 -105
  582. package/dist/reference/instructions.js +96 -96
  583. package/dist/reference.js +96 -96
  584. package/dist/repository-cache.js +88 -88
  585. package/dist/repository.js +1 -1
  586. package/dist/ripgrep/binary.js +2 -2
  587. package/dist/ripgrep.js +104 -104
  588. package/dist/rpc.js +93 -93
  589. package/dist/schema.js +1 -1
  590. package/dist/session/affinity.js +1 -1
  591. package/dist/session/blob.js +136 -9
  592. package/dist/session/command.js +80 -80
  593. package/dist/session/compaction.js +159 -141
  594. package/dist/session/context.js +187 -171
  595. package/dist/session/diff.js +95 -95
  596. package/dist/session/environment.js +5 -5
  597. package/dist/session/error.js +5 -5
  598. package/dist/session/event.js +1 -1
  599. package/dist/session/execution/restart.js +227 -227
  600. package/dist/session/execution.js +151 -135
  601. package/dist/session/generate.js +189 -173
  602. package/dist/session/history.js +126 -15
  603. package/dist/session/inbox.js +133 -97
  604. package/dist/session/info.js +3 -3
  605. package/dist/session/instruction-entry.js +85 -85
  606. package/dist/session/instruction-state.js +8 -8
  607. package/dist/session/instructions.js +133 -106
  608. package/dist/session/message-updater.js +4 -4
  609. package/dist/session/message.js +1 -1
  610. package/dist/session/model-request.js +154 -129
  611. package/dist/session/model-transport.js +9 -9
  612. package/dist/session/move.js +155 -139
  613. package/dist/session/projector.js +133 -97
  614. package/dist/session/prompt.js +139 -114
  615. package/dist/session/recent-text.js +1 -1
  616. package/dist/session/revert.js +129 -103
  617. package/dist/session/run-coordinator.js +1 -1
  618. package/dist/session/runner/index.js +3 -3
  619. package/dist/session/runner/llm.js +237 -237
  620. package/dist/session/runner/max-steps.js +1 -1
  621. package/dist/session/runner/model.js +107 -107
  622. package/dist/session/runner/publish-llm-event.js +140 -122
  623. package/dist/session/runner/retry.js +5 -5
  624. package/dist/session/runner/step.js +153 -135
  625. package/dist/session/runner/to-llm-message.js +127 -16
  626. package/dist/session/schema.js +5 -5
  627. package/dist/session/session.js +169 -169
  628. package/dist/session/shell.js +134 -134
  629. package/dist/session/skill.js +138 -112
  630. package/dist/session/sql.js +5 -5
  631. package/dist/session/stats.js +79 -79
  632. package/dist/session/store.js +132 -93
  633. package/dist/session/stored.js +6 -4
  634. package/dist/session/subagent-completion.js +1 -1
  635. package/dist/session/subagent-job.js +218 -218
  636. package/dist/session/system-prompt.js +1 -1
  637. package/dist/session/title.js +191 -175
  638. package/dist/session/to-session-error.js +139 -121
  639. package/dist/session/transfer.js +220 -220
  640. package/dist/session/usage.js +1 -1
  641. package/dist/session.js +222 -222
  642. package/dist/shell/parse.js +8 -8
  643. package/dist/shell/result.js +1 -1
  644. package/dist/shell/scan.js +1 -1
  645. package/dist/shell/select.js +13 -13
  646. package/dist/shell.js +136 -136
  647. package/dist/skill/discovery.js +6 -6
  648. package/dist/skill/instructions.js +142 -116
  649. package/dist/skill.js +147 -121
  650. package/dist/snapshot.js +98 -98
  651. package/dist/state.js +1 -1
  652. package/dist/tool/html-markdown.js +1 -1
  653. package/dist/tool/http-body.js +1 -1
  654. package/dist/tool/mcp.js +162 -142
  655. package/dist/tool/plugin/edit.js +155 -129
  656. package/dist/tool/plugin/file-diff.js +1 -1
  657. package/dist/tool/plugin/glob.js +159 -133
  658. package/dist/tool/plugin/grep.js +159 -133
  659. package/dist/tool/plugin/mcp-resource.js +153 -133
  660. package/dist/tool/plugin/opencode.js +144 -118
  661. package/dist/tool/plugin/patch.js +155 -129
  662. package/dist/tool/plugin/question.js +137 -112
  663. package/dist/tool/plugin/read.js +160 -134
  664. package/dist/tool/plugin/shell.js +223 -223
  665. package/dist/tool/plugin/skill.js +148 -122
  666. package/dist/tool/plugin/subagent.js +225 -225
  667. package/dist/tool/plugin/todo.js +142 -142
  668. package/dist/tool/plugin/webfetch.js +146 -120
  669. package/dist/tool/plugin/websearch.js +142 -119
  670. package/dist/tool/plugin/write.js +157 -131
  671. package/dist/tool/read-filesystem.js +107 -107
  672. package/dist/tool/runtime.js +1 -1
  673. package/dist/tool-output.js +7 -7
  674. package/dist/tool.js +16 -16
  675. package/dist/types/config/plugin/command.d.ts +1 -1
  676. package/dist/types/config.d.ts +1 -1
  677. package/dist/types/instance.d.ts +1 -1
  678. package/dist/types/mcp/index.d.ts +1 -1
  679. package/dist/types/models-dev.d.ts +1 -1
  680. package/dist/types/plugin/host.d.ts +2 -2
  681. package/dist/types/plugin/internal.d.ts +1 -1
  682. package/dist/types/plugin/provider/azure.d.ts +2 -2
  683. package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
  684. package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
  685. package/dist/types/plugin/provider/gitlab.d.ts +1 -1
  686. package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
  687. package/dist/types/plugin/provider/modal.d.ts +1 -1
  688. package/dist/types/plugin/provider/openai.d.ts +1 -1
  689. package/dist/types/plugin/provider/opencode.d.ts +1 -1
  690. package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
  691. package/dist/types/session/blob.d.ts +877 -0
  692. package/dist/types/session/compaction.d.ts +1 -1
  693. package/dist/types/session/prompt.d.ts +5 -2
  694. package/dist/types/session/stored.d.ts +3 -1
  695. package/dist/types/tool/plugin/subagent.d.ts +1 -1
  696. package/dist/types/wellknown/plugin.d.ts +1 -1
  697. package/dist/usage-limits.js +95 -95
  698. package/dist/util/error-summary.js +1 -1
  699. package/dist/util/git-executable.js +3 -3
  700. package/dist/util/lazy.js +1 -1
  701. package/dist/util/slug.js +1 -1
  702. package/dist/util/token.js +1 -1
  703. package/dist/util/which.js +1 -1
  704. package/dist/util/wildcard.js +1 -1
  705. package/dist/v1/config/agent.js +5 -5
  706. package/dist/v1/config/command.js +1 -1
  707. package/dist/v1/config/mcp.js +6 -6
  708. package/dist/v1/config/migrate.js +99 -99
  709. package/dist/v1/config/permission.js +3 -3
  710. package/dist/v1/config/plugin.js +1 -1
  711. package/dist/v1/config/provider-options.js +1 -1
  712. package/dist/v1/config/provider.js +4 -4
  713. package/dist/variant.js +100 -100
  714. package/dist/vcs/patch.js +1 -1
  715. package/dist/vcs.js +94 -94
  716. package/dist/voice.js +94 -94
  717. package/dist/websearch.js +90 -90
  718. package/dist/wellknown/plugin.js +82 -82
  719. package/dist/wellknown.js +85 -85
  720. package/dist/workspace/driver.js +5 -5
  721. package/dist/workspace/sql.js +1 -1
  722. package/dist/workspace.js +88 -88
  723. package/dist/worktree/directory.js +2 -2
  724. package/dist/worktree/git.js +9 -9
  725. package/dist/worktree/sql.js +5 -5
  726. package/dist/worktree/strategies.js +96 -96
  727. package/dist/worktree.js +105 -105
  728. package/package.json +8 -8
  729. package/dist/chunks/aisdk-6xhrkcv3.js +0 -107
  730. package/dist/chunks/aisdk-g6aw1pj4.js +0 -39
  731. package/dist/chunks/aisdk-jwckswdf.js +0 -257
  732. package/dist/chunks/aisdk-n3r3rt18.js +0 -18
  733. package/dist/chunks/aisdk-pbt48ct3.js +0 -26
  734. /package/dist/chunks/{aisdk-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
  735. /package/dist/chunks/{aisdk-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
  736. /package/dist/chunks/{aisdk-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
  737. /package/dist/chunks/{aisdk-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
  738. /package/dist/chunks/{aisdk-24dcb14g.js → generate-24dcb14g.js} +0 -0
  739. /package/dist/chunks/{aisdk-2710q6r3.js → generate-2710q6r3.js} +0 -0
  740. /package/dist/chunks/{aisdk-2bv980vf.js → generate-2bv980vf.js} +0 -0
  741. /package/dist/chunks/{aisdk-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
  742. /package/dist/chunks/{aisdk-359p4xyc.js → generate-359p4xyc.js} +0 -0
  743. /package/dist/chunks/{aisdk-3asan66x.js → generate-3asan66x.js} +0 -0
  744. /package/dist/chunks/{aisdk-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
  745. /package/dist/chunks/{aisdk-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
  746. /package/dist/chunks/{aisdk-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
  747. /package/dist/chunks/{aisdk-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
  748. /package/dist/chunks/{aisdk-4m86bj6y.js → generate-4m86bj6y.js} +0 -0
  749. /package/dist/chunks/{aisdk-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
  750. /package/dist/chunks/{aisdk-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
  751. /package/dist/chunks/{aisdk-53557ph1.js → generate-53557ph1.js} +0 -0
  752. /package/dist/chunks/{aisdk-550bvhaj.js → generate-550bvhaj.js} +0 -0
  753. /package/dist/chunks/{aisdk-5fjb7ams.js → generate-5fjb7ams.js} +0 -0
  754. /package/dist/chunks/{aisdk-5w3e23ze.js → generate-5w3e23ze.js} +0 -0
  755. /package/dist/chunks/{aisdk-6prwharc.js → generate-6prwharc.js} +0 -0
  756. /package/dist/chunks/{aisdk-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
  757. /package/dist/chunks/{aisdk-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
  758. /package/dist/chunks/{aisdk-7m9af43g.js → generate-7m9af43g.js} +0 -0
  759. /package/dist/chunks/{aisdk-822emrt2.js → generate-822emrt2.js} +0 -0
  760. /package/dist/chunks/{aisdk-84wd9syh.js → generate-84wd9syh.js} +0 -0
  761. /package/dist/chunks/{aisdk-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
  762. /package/dist/chunks/{aisdk-8n3pysct.js → generate-8n3pysct.js} +0 -0
  763. /package/dist/chunks/{aisdk-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
  764. /package/dist/chunks/{aisdk-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
  765. /package/dist/chunks/{aisdk-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
  766. /package/dist/chunks/{aisdk-a058387c.js → generate-a058387c.js} +0 -0
  767. /package/dist/chunks/{aisdk-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
  768. /package/dist/chunks/{aisdk-af5trqkr.js → generate-af5trqkr.js} +0 -0
  769. /package/dist/chunks/{aisdk-afrmfg78.js → generate-afrmfg78.js} +0 -0
  770. /package/dist/chunks/{aisdk-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
  771. /package/dist/chunks/{aisdk-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
  772. /package/dist/chunks/{aisdk-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
  773. /package/dist/chunks/{aisdk-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
  774. /package/dist/chunks/{aisdk-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
  775. /package/dist/chunks/{aisdk-cqv5kn06.js → generate-cqv5kn06.js} +0 -0
  776. /package/dist/chunks/{aisdk-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
  777. /package/dist/chunks/{aisdk-d9fn303g.js → generate-d9fn303g.js} +0 -0
  778. /package/dist/chunks/{aisdk-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
  779. /package/dist/chunks/{aisdk-dajrwvna.js → generate-dajrwvna.js} +0 -0
  780. /package/dist/chunks/{aisdk-dap0rakb.js → generate-dap0rakb.js} +0 -0
  781. /package/dist/chunks/{aisdk-df08tz66.js → generate-df08tz66.js} +0 -0
  782. /package/dist/chunks/{aisdk-dy18nga0.js → generate-dy18nga0.js} +0 -0
  783. /package/dist/chunks/{aisdk-e3qxr5gk.js → generate-e3qxr5gk.js} +0 -0
  784. /package/dist/chunks/{aisdk-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
  785. /package/dist/chunks/{aisdk-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
  786. /package/dist/chunks/{aisdk-ec1grn59.js → generate-ec1grn59.js} +0 -0
  787. /package/dist/chunks/{aisdk-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
  788. /package/dist/chunks/{aisdk-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
  789. /package/dist/chunks/{aisdk-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
  790. /package/dist/chunks/{aisdk-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
  791. /package/dist/chunks/{aisdk-faypxj3z.js → generate-faypxj3z.js} +0 -0
  792. /package/dist/chunks/{aisdk-fd410y7t.js → generate-fd410y7t.js} +0 -0
  793. /package/dist/chunks/{aisdk-fkpq3x5p.js → generate-fkpq3x5p.js} +0 -0
  794. /package/dist/chunks/{aisdk-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
  795. /package/dist/chunks/{aisdk-g86h250q.js → generate-g86h250q.js} +0 -0
  796. /package/dist/chunks/{aisdk-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
  797. /package/dist/chunks/{aisdk-gftt206x.js → generate-gftt206x.js} +0 -0
  798. /package/dist/chunks/{aisdk-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
  799. /package/dist/chunks/{aisdk-hk9envan.js → generate-hk9envan.js} +0 -0
  800. /package/dist/chunks/{aisdk-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
  801. /package/dist/chunks/{aisdk-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
  802. /package/dist/chunks/{aisdk-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
  803. /package/dist/chunks/{aisdk-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
  804. /package/dist/chunks/{aisdk-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
  805. /package/dist/chunks/{aisdk-jwr30sdr.js → generate-jwr30sdr.js} +0 -0
  806. /package/dist/chunks/{aisdk-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
  807. /package/dist/chunks/{aisdk-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
  808. /package/dist/chunks/{aisdk-m18g726c.js → generate-m18g726c.js} +0 -0
  809. /package/dist/chunks/{aisdk-mp448xyj.js → generate-mp448xyj.js} +0 -0
  810. /package/dist/chunks/{aisdk-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
  811. /package/dist/chunks/{aisdk-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
  812. /package/dist/chunks/{aisdk-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
  813. /package/dist/chunks/{aisdk-njntx4h6.js → generate-njntx4h6.js} +0 -0
  814. /package/dist/chunks/{aisdk-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
  815. /package/dist/chunks/{aisdk-q74kybfr.js → generate-q74kybfr.js} +0 -0
  816. /package/dist/chunks/{aisdk-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
  817. /package/dist/chunks/{aisdk-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
  818. /package/dist/chunks/{aisdk-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
  819. /package/dist/chunks/{aisdk-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
  820. /package/dist/chunks/{aisdk-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
  821. /package/dist/chunks/{aisdk-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
  822. /package/dist/chunks/{aisdk-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
  823. /package/dist/chunks/{aisdk-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
  824. /package/dist/chunks/{aisdk-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
  825. /package/dist/chunks/{aisdk-w803qqfp.js → generate-w803qqfp.js} +0 -0
  826. /package/dist/chunks/{aisdk-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
  827. /package/dist/chunks/{aisdk-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
  828. /package/dist/chunks/{aisdk-wjj7prxr.js → generate-wjj7prxr.js} +0 -0
  829. /package/dist/chunks/{aisdk-wtztk69x.js → generate-wtztk69x.js} +0 -0
  830. /package/dist/chunks/{aisdk-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
  831. /package/dist/chunks/{aisdk-x61499pn.js → generate-x61499pn.js} +0 -0
  832. /package/dist/chunks/{aisdk-y44na4kk.js → generate-y44na4kk.js} +0 -0
  833. /package/dist/chunks/{aisdk-y8f7s663.js → generate-y8f7s663.js} +0 -0
  834. /package/dist/chunks/{aisdk-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
  835. /package/dist/chunks/{aisdk-ym463w8f.js → generate-ym463w8f.js} +0 -0
  836. /package/dist/chunks/{aisdk-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
  837. /package/dist/chunks/{aisdk-z9919s4g.js → generate-z9919s4g.js} +0 -0
@@ -1,6 +1,10 @@
1
1
  export * as SessionBlob from "./blob.js";
2
2
  import { Effect, Schema } from "effect";
3
+ import type { Database } from "../database/database.js";
4
+ import type { SessionMessage } from "./message.js";
5
+ import type { SessionSchema } from "./schema.js";
3
6
  import { SessionStored } from "./stored.js";
7
+ type DatabaseService = Database.Interface["db"];
4
8
  /** Restores inline media for the refs in `session_message` rows. Rows without refs are returned untouched. */
5
9
  export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
6
10
  $client: import("effect/sql/SqlClient").SqlClient;
@@ -879,3 +883,876 @@ export declare const hydrateInbox: (db: import("../database/drizzle.js").EffectS
879
883
  time_created: number;
880
884
  type: "compaction" | "move" | "synthetic" | "user";
881
885
  }[], never, never>;
886
+ /** A blob's hash is the lowercase hex SHA-256 of its raw bytes. */
887
+ export declare const hashBytes: (raw: Uint8Array) => string;
888
+ /** The row a ref keeps its blob alive for: a message at its `seq`, or a pending inbox row at its `enqueued_seq`. */
889
+ export interface Owner {
890
+ readonly sessionID: SessionSchema.ID;
891
+ readonly messageID: SessionMessage.ID;
892
+ readonly seq: number;
893
+ }
894
+ /** {@link externalize} for a user message or pending inbox user payload. */
895
+ export declare const externalizePayload: <T extends {
896
+ readonly files?: ReadonlyArray<SessionStored.File>;
897
+ }>(db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
898
+ $client: import("effect/sql/SqlClient").SqlClient;
899
+ }, input: T) => Effect.Effect<T, never, never>;
900
+ /**
901
+ * With `experimental.media_blob` on, moves inline user files and tool `data:` files into `blob` and returns the
902
+ * message to store with refs in their place. Existing refs pass through.
903
+ */
904
+ export declare const externalize: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
905
+ $client: import("effect/sql/SqlClient").SqlClient;
906
+ }, message: SessionStored.User | SessionMessage.Info) => Effect.Effect<SessionMessage.AgentSelected | SessionMessage.Assistant | SessionMessage.CompactionCompleted | SessionMessage.CompactionFailed | SessionMessage.CompactionRunning | SessionMessage.Idle | SessionMessage.LocationSwitched | SessionMessage.ModelSelected | SessionMessage.Shell | SessionMessage.Skill | SessionMessage.Synthetic | SessionMessage.System | SessionStored.User, never, never>;
907
+ /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
908
+ export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
909
+ $client: import("effect/sql/SqlClient").SqlClient;
910
+ }, owner: Owner, data: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload | (Omit<{
911
+ readonly id: string;
912
+ readonly metadata?: {
913
+ readonly [x: string]: unknown;
914
+ } | undefined;
915
+ readonly time: {
916
+ readonly created: number;
917
+ };
918
+ readonly type: "agent-switched";
919
+ readonly agent: string;
920
+ readonly previous?: string | undefined;
921
+ }, "id" | "type"> | Omit<{
922
+ readonly id: string;
923
+ readonly metadata?: {
924
+ readonly [x: string]: unknown;
925
+ } | undefined;
926
+ readonly time: {
927
+ readonly created: number;
928
+ };
929
+ readonly type: "model-switched";
930
+ readonly model: {
931
+ readonly id: string;
932
+ readonly providerID: string;
933
+ readonly variant?: string | undefined;
934
+ };
935
+ readonly previous?: {
936
+ readonly id: string;
937
+ readonly providerID: string;
938
+ readonly variant?: string | undefined;
939
+ } | undefined;
940
+ }, "id" | "type"> | Omit<{
941
+ readonly id: string;
942
+ readonly metadata?: {
943
+ readonly [x: string]: unknown;
944
+ } | undefined;
945
+ readonly time: {
946
+ readonly created: number;
947
+ };
948
+ readonly type: "location-switched";
949
+ readonly location: {
950
+ readonly directory: string;
951
+ readonly workspaceID?: string | undefined;
952
+ };
953
+ readonly projectID?: string | undefined;
954
+ readonly subpath?: string | undefined;
955
+ readonly previous?: {
956
+ readonly location: {
957
+ readonly directory: string;
958
+ readonly workspaceID?: string | undefined;
959
+ };
960
+ readonly projectID?: string | undefined;
961
+ readonly subpath?: string | undefined;
962
+ } | undefined;
963
+ }, "id" | "type"> | Omit<{
964
+ readonly id: string;
965
+ readonly metadata?: {
966
+ readonly [x: string]: unknown;
967
+ } | undefined;
968
+ readonly time: {
969
+ readonly created: number;
970
+ };
971
+ readonly text: string;
972
+ readonly description?: string | undefined;
973
+ readonly type: "synthetic";
974
+ }, "id" | "type"> | Omit<{
975
+ readonly id: string;
976
+ readonly metadata?: {
977
+ readonly [x: string]: unknown;
978
+ } | undefined;
979
+ readonly time: {
980
+ readonly created: number;
981
+ };
982
+ readonly type: "system";
983
+ readonly text: string;
984
+ readonly description?: string | undefined;
985
+ }, "id" | "type"> | Omit<{
986
+ readonly id: string;
987
+ readonly metadata?: {
988
+ readonly [x: string]: unknown;
989
+ } | undefined;
990
+ readonly time: {
991
+ readonly created: number;
992
+ };
993
+ readonly type: "skill";
994
+ readonly skill: string;
995
+ readonly name: string;
996
+ readonly text: string;
997
+ }, "id" | "type"> | Omit<{
998
+ readonly id: string;
999
+ readonly metadata?: {
1000
+ readonly [x: string]: unknown;
1001
+ } | undefined;
1002
+ readonly type: "shell";
1003
+ readonly shellID: string;
1004
+ readonly command: string;
1005
+ readonly status: "exited" | "killed" | "running" | "timeout";
1006
+ readonly exit?: number | undefined;
1007
+ readonly output?: {
1008
+ readonly output: string;
1009
+ readonly cursor: number;
1010
+ readonly size: number;
1011
+ readonly truncated: boolean;
1012
+ } | undefined;
1013
+ readonly time: {
1014
+ readonly created: number;
1015
+ readonly completed?: number | undefined;
1016
+ };
1017
+ }, "id" | "type"> | Omit<{
1018
+ readonly id: string;
1019
+ readonly metadata?: {
1020
+ readonly [x: string]: unknown;
1021
+ } | undefined;
1022
+ readonly type: "assistant";
1023
+ readonly agent: string;
1024
+ readonly model: {
1025
+ readonly id: string;
1026
+ readonly providerID: string;
1027
+ readonly variant?: string | undefined;
1028
+ };
1029
+ readonly content: readonly ({
1030
+ readonly type: "tool";
1031
+ readonly id: string;
1032
+ readonly name: string;
1033
+ readonly executed?: boolean | undefined;
1034
+ readonly native?: {
1035
+ readonly [x: string]: unknown;
1036
+ } | undefined;
1037
+ readonly state: {
1038
+ readonly status: "streaming";
1039
+ readonly input: string;
1040
+ } | {
1041
+ readonly status: "running";
1042
+ readonly input: {
1043
+ readonly [x: string]: unknown;
1044
+ };
1045
+ readonly metadata: {
1046
+ readonly [x: string]: Schema.Json;
1047
+ };
1048
+ } | {
1049
+ readonly status: "completed";
1050
+ readonly input: {
1051
+ readonly [x: string]: unknown;
1052
+ };
1053
+ readonly content: readonly [{
1054
+ readonly type: "text";
1055
+ readonly text: string;
1056
+ } | {
1057
+ readonly type: "file";
1058
+ readonly uri: string;
1059
+ readonly mime: string;
1060
+ readonly name?: string | undefined;
1061
+ }, ...({
1062
+ readonly type: "text";
1063
+ readonly text: string;
1064
+ } | {
1065
+ readonly type: "file";
1066
+ readonly uri: string;
1067
+ readonly mime: string;
1068
+ readonly name?: string | undefined;
1069
+ })[]];
1070
+ readonly metadata?: {
1071
+ readonly [x: string]: Schema.Json;
1072
+ } | undefined;
1073
+ } | {
1074
+ readonly status: "error";
1075
+ readonly input: {
1076
+ readonly [x: string]: unknown;
1077
+ };
1078
+ readonly error: {
1079
+ readonly type: string;
1080
+ readonly message: string;
1081
+ readonly status?: number | undefined;
1082
+ readonly response?: {
1083
+ readonly body: string;
1084
+ } | undefined;
1085
+ readonly retryAfterMs?: number | undefined;
1086
+ };
1087
+ readonly content?: readonly [{
1088
+ readonly type: "text";
1089
+ readonly text: string;
1090
+ } | {
1091
+ readonly type: "file";
1092
+ readonly uri: string;
1093
+ readonly mime: string;
1094
+ readonly name?: string | undefined;
1095
+ }, ...({
1096
+ readonly type: "text";
1097
+ readonly text: string;
1098
+ } | {
1099
+ readonly type: "file";
1100
+ readonly uri: string;
1101
+ readonly mime: string;
1102
+ readonly name?: string | undefined;
1103
+ })[]] | undefined;
1104
+ readonly metadata?: {
1105
+ readonly [x: string]: Schema.Json;
1106
+ } | undefined;
1107
+ };
1108
+ readonly time: {
1109
+ readonly created: number;
1110
+ readonly ran?: number | undefined;
1111
+ readonly completed?: number | undefined;
1112
+ };
1113
+ } | {
1114
+ readonly type: "text";
1115
+ readonly text: string;
1116
+ readonly native?: {
1117
+ readonly [x: string]: unknown;
1118
+ } | undefined;
1119
+ } | {
1120
+ readonly type: "reasoning";
1121
+ readonly text: string;
1122
+ readonly native?: {
1123
+ readonly [x: string]: unknown;
1124
+ } | undefined;
1125
+ readonly time?: {
1126
+ readonly created: number;
1127
+ readonly completed?: number | undefined;
1128
+ } | undefined;
1129
+ })[];
1130
+ readonly snapshot?: {
1131
+ readonly start?: string | undefined;
1132
+ readonly end?: string | undefined;
1133
+ readonly files?: readonly string[] | undefined;
1134
+ } | undefined;
1135
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1136
+ readonly rawFinish?: string | undefined;
1137
+ readonly native?: {
1138
+ readonly [x: string]: unknown;
1139
+ } | undefined;
1140
+ readonly cost?: number | undefined;
1141
+ readonly tokens?: {
1142
+ readonly input: number;
1143
+ readonly output: number;
1144
+ readonly reasoning: number;
1145
+ readonly cache: {
1146
+ readonly read: number;
1147
+ readonly write: number;
1148
+ };
1149
+ } | undefined;
1150
+ readonly error?: {
1151
+ readonly type: string;
1152
+ readonly message: string;
1153
+ readonly status?: number | undefined;
1154
+ readonly response?: {
1155
+ readonly body: string;
1156
+ } | undefined;
1157
+ readonly retryAfterMs?: number | undefined;
1158
+ } | undefined;
1159
+ readonly retry?: {
1160
+ readonly attempt: number;
1161
+ readonly at: number;
1162
+ readonly error: {
1163
+ readonly type: string;
1164
+ readonly message: string;
1165
+ readonly status?: number | undefined;
1166
+ readonly response?: {
1167
+ readonly body: string;
1168
+ } | undefined;
1169
+ readonly retryAfterMs?: number | undefined;
1170
+ };
1171
+ } | undefined;
1172
+ readonly time: {
1173
+ readonly created: number;
1174
+ readonly streamed?: number | undefined;
1175
+ readonly completed?: number | undefined;
1176
+ };
1177
+ }, "id" | "type"> | Omit<{
1178
+ readonly id: string;
1179
+ readonly metadata?: {
1180
+ readonly [x: string]: unknown;
1181
+ } | undefined;
1182
+ readonly time: {
1183
+ readonly created: number;
1184
+ };
1185
+ readonly type: "compaction";
1186
+ readonly status: "running";
1187
+ readonly reason: "auto" | "manual";
1188
+ readonly summary: string;
1189
+ }, "id" | "type"> | Omit<{
1190
+ readonly id: string;
1191
+ readonly metadata?: {
1192
+ readonly [x: string]: unknown;
1193
+ } | undefined;
1194
+ readonly time: {
1195
+ readonly created: number;
1196
+ };
1197
+ readonly type: "compaction";
1198
+ readonly cost?: number | undefined;
1199
+ readonly tokens?: {
1200
+ readonly input: number;
1201
+ readonly output: number;
1202
+ readonly reasoning: number;
1203
+ readonly cache: {
1204
+ readonly read: number;
1205
+ readonly write: number;
1206
+ };
1207
+ } | undefined;
1208
+ readonly status: "completed";
1209
+ readonly reason: "auto" | "manual";
1210
+ readonly model?: {
1211
+ readonly id: string;
1212
+ readonly providerID: string;
1213
+ readonly variant?: string | undefined;
1214
+ } | undefined;
1215
+ readonly native?: {
1216
+ readonly [x: string]: unknown;
1217
+ } | undefined;
1218
+ readonly summary: string;
1219
+ }, "id" | "type"> | Omit<{
1220
+ readonly id: string;
1221
+ readonly metadata?: {
1222
+ readonly [x: string]: unknown;
1223
+ } | undefined;
1224
+ readonly time: {
1225
+ readonly created: number;
1226
+ };
1227
+ readonly type: "compaction";
1228
+ readonly cost?: number | undefined;
1229
+ readonly tokens?: {
1230
+ readonly input: number;
1231
+ readonly output: number;
1232
+ readonly reasoning: number;
1233
+ readonly cache: {
1234
+ readonly read: number;
1235
+ readonly write: number;
1236
+ };
1237
+ } | undefined;
1238
+ readonly status: "failed";
1239
+ readonly reason: "auto" | "manual";
1240
+ readonly error: {
1241
+ readonly type: string;
1242
+ readonly message: string;
1243
+ readonly status?: number | undefined;
1244
+ readonly response?: {
1245
+ readonly body: string;
1246
+ } | undefined;
1247
+ readonly retryAfterMs?: number | undefined;
1248
+ };
1249
+ }, "id" | "type"> | Omit<{
1250
+ readonly id: string;
1251
+ readonly metadata?: {
1252
+ readonly [x: string]: unknown;
1253
+ } | undefined;
1254
+ readonly time: {
1255
+ readonly created: number;
1256
+ };
1257
+ readonly type: "idle";
1258
+ readonly outcome: "failed" | "interrupted" | "succeeded";
1259
+ readonly error?: {
1260
+ readonly type: string;
1261
+ readonly message: string;
1262
+ readonly status?: number | undefined;
1263
+ readonly response?: {
1264
+ readonly body: string;
1265
+ } | undefined;
1266
+ readonly retryAfterMs?: number | undefined;
1267
+ } | undefined;
1268
+ }, "id" | "type"> | Omit<{
1269
+ readonly id: string;
1270
+ readonly metadata?: {
1271
+ readonly [x: string]: unknown;
1272
+ } | undefined;
1273
+ readonly time: {
1274
+ readonly created: number;
1275
+ };
1276
+ readonly text: string;
1277
+ readonly agents?: readonly {
1278
+ readonly name: string;
1279
+ readonly mention?: {
1280
+ readonly start: number;
1281
+ readonly end: number;
1282
+ readonly text: string;
1283
+ } | undefined;
1284
+ }[] | undefined;
1285
+ readonly skills?: readonly {
1286
+ readonly id: string;
1287
+ readonly name: string;
1288
+ readonly text?: string | undefined;
1289
+ readonly mention?: {
1290
+ readonly start: number;
1291
+ readonly end: number;
1292
+ readonly text: string;
1293
+ } | undefined;
1294
+ }[] | undefined;
1295
+ readonly type: "user";
1296
+ readonly files?: readonly ({
1297
+ readonly data: string;
1298
+ readonly mime: string;
1299
+ readonly source: {
1300
+ readonly type: "inline";
1301
+ } | {
1302
+ readonly type: "uri";
1303
+ readonly uri: string;
1304
+ };
1305
+ readonly name?: string | undefined;
1306
+ readonly description?: string | undefined;
1307
+ readonly mention?: {
1308
+ readonly start: number;
1309
+ readonly end: number;
1310
+ readonly text: string;
1311
+ } | undefined;
1312
+ } | {
1313
+ readonly mime: string;
1314
+ readonly source: {
1315
+ readonly type: "inline";
1316
+ } | {
1317
+ readonly type: "uri";
1318
+ readonly uri: string;
1319
+ };
1320
+ readonly name?: string | undefined;
1321
+ readonly description?: string | undefined;
1322
+ readonly mention?: {
1323
+ readonly start: number;
1324
+ readonly end: number;
1325
+ readonly text: string;
1326
+ } | undefined;
1327
+ readonly uri: string;
1328
+ })[] | undefined;
1329
+ }, "id" | "type">)) => Effect.Effect<void, never, never>;
1330
+ /** Records the refs a rewritten message names and releases the ones it no longer does. */
1331
+ export declare const syncRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1332
+ $client: import("effect/sql/SqlClient").SqlClient;
1333
+ }, owner: Owner, data: Omit<{
1334
+ readonly id: string;
1335
+ readonly metadata?: {
1336
+ readonly [x: string]: unknown;
1337
+ } | undefined;
1338
+ readonly time: {
1339
+ readonly created: number;
1340
+ };
1341
+ readonly type: "agent-switched";
1342
+ readonly agent: string;
1343
+ readonly previous?: string | undefined;
1344
+ }, "id" | "type"> | Omit<{
1345
+ readonly id: string;
1346
+ readonly metadata?: {
1347
+ readonly [x: string]: unknown;
1348
+ } | undefined;
1349
+ readonly time: {
1350
+ readonly created: number;
1351
+ };
1352
+ readonly type: "model-switched";
1353
+ readonly model: {
1354
+ readonly id: string;
1355
+ readonly providerID: string;
1356
+ readonly variant?: string | undefined;
1357
+ };
1358
+ readonly previous?: {
1359
+ readonly id: string;
1360
+ readonly providerID: string;
1361
+ readonly variant?: string | undefined;
1362
+ } | undefined;
1363
+ }, "id" | "type"> | Omit<{
1364
+ readonly id: string;
1365
+ readonly metadata?: {
1366
+ readonly [x: string]: unknown;
1367
+ } | undefined;
1368
+ readonly time: {
1369
+ readonly created: number;
1370
+ };
1371
+ readonly type: "location-switched";
1372
+ readonly location: {
1373
+ readonly directory: string;
1374
+ readonly workspaceID?: string | undefined;
1375
+ };
1376
+ readonly projectID?: string | undefined;
1377
+ readonly subpath?: string | undefined;
1378
+ readonly previous?: {
1379
+ readonly location: {
1380
+ readonly directory: string;
1381
+ readonly workspaceID?: string | undefined;
1382
+ };
1383
+ readonly projectID?: string | undefined;
1384
+ readonly subpath?: string | undefined;
1385
+ } | undefined;
1386
+ }, "id" | "type"> | Omit<{
1387
+ readonly id: string;
1388
+ readonly metadata?: {
1389
+ readonly [x: string]: unknown;
1390
+ } | undefined;
1391
+ readonly time: {
1392
+ readonly created: number;
1393
+ };
1394
+ readonly text: string;
1395
+ readonly description?: string | undefined;
1396
+ readonly type: "synthetic";
1397
+ }, "id" | "type"> | Omit<{
1398
+ readonly id: string;
1399
+ readonly metadata?: {
1400
+ readonly [x: string]: unknown;
1401
+ } | undefined;
1402
+ readonly time: {
1403
+ readonly created: number;
1404
+ };
1405
+ readonly type: "system";
1406
+ readonly text: string;
1407
+ readonly description?: string | undefined;
1408
+ }, "id" | "type"> | Omit<{
1409
+ readonly id: string;
1410
+ readonly metadata?: {
1411
+ readonly [x: string]: unknown;
1412
+ } | undefined;
1413
+ readonly time: {
1414
+ readonly created: number;
1415
+ };
1416
+ readonly type: "skill";
1417
+ readonly skill: string;
1418
+ readonly name: string;
1419
+ readonly text: string;
1420
+ }, "id" | "type"> | Omit<{
1421
+ readonly id: string;
1422
+ readonly metadata?: {
1423
+ readonly [x: string]: unknown;
1424
+ } | undefined;
1425
+ readonly type: "shell";
1426
+ readonly shellID: string;
1427
+ readonly command: string;
1428
+ readonly status: "exited" | "killed" | "running" | "timeout";
1429
+ readonly exit?: number | undefined;
1430
+ readonly output?: {
1431
+ readonly output: string;
1432
+ readonly cursor: number;
1433
+ readonly size: number;
1434
+ readonly truncated: boolean;
1435
+ } | undefined;
1436
+ readonly time: {
1437
+ readonly created: number;
1438
+ readonly completed?: number | undefined;
1439
+ };
1440
+ }, "id" | "type"> | Omit<{
1441
+ readonly id: string;
1442
+ readonly metadata?: {
1443
+ readonly [x: string]: unknown;
1444
+ } | undefined;
1445
+ readonly type: "assistant";
1446
+ readonly agent: string;
1447
+ readonly model: {
1448
+ readonly id: string;
1449
+ readonly providerID: string;
1450
+ readonly variant?: string | undefined;
1451
+ };
1452
+ readonly content: readonly ({
1453
+ readonly type: "tool";
1454
+ readonly id: string;
1455
+ readonly name: string;
1456
+ readonly executed?: boolean | undefined;
1457
+ readonly native?: {
1458
+ readonly [x: string]: unknown;
1459
+ } | undefined;
1460
+ readonly state: {
1461
+ readonly status: "streaming";
1462
+ readonly input: string;
1463
+ } | {
1464
+ readonly status: "running";
1465
+ readonly input: {
1466
+ readonly [x: string]: unknown;
1467
+ };
1468
+ readonly metadata: {
1469
+ readonly [x: string]: Schema.Json;
1470
+ };
1471
+ } | {
1472
+ readonly status: "completed";
1473
+ readonly input: {
1474
+ readonly [x: string]: unknown;
1475
+ };
1476
+ readonly content: readonly [{
1477
+ readonly type: "text";
1478
+ readonly text: string;
1479
+ } | {
1480
+ readonly type: "file";
1481
+ readonly uri: string;
1482
+ readonly mime: string;
1483
+ readonly name?: string | undefined;
1484
+ }, ...({
1485
+ readonly type: "text";
1486
+ readonly text: string;
1487
+ } | {
1488
+ readonly type: "file";
1489
+ readonly uri: string;
1490
+ readonly mime: string;
1491
+ readonly name?: string | undefined;
1492
+ })[]];
1493
+ readonly metadata?: {
1494
+ readonly [x: string]: Schema.Json;
1495
+ } | undefined;
1496
+ } | {
1497
+ readonly status: "error";
1498
+ readonly input: {
1499
+ readonly [x: string]: unknown;
1500
+ };
1501
+ readonly error: {
1502
+ readonly type: string;
1503
+ readonly message: string;
1504
+ readonly status?: number | undefined;
1505
+ readonly response?: {
1506
+ readonly body: string;
1507
+ } | undefined;
1508
+ readonly retryAfterMs?: number | undefined;
1509
+ };
1510
+ readonly content?: readonly [{
1511
+ readonly type: "text";
1512
+ readonly text: string;
1513
+ } | {
1514
+ readonly type: "file";
1515
+ readonly uri: string;
1516
+ readonly mime: string;
1517
+ readonly name?: string | undefined;
1518
+ }, ...({
1519
+ readonly type: "text";
1520
+ readonly text: string;
1521
+ } | {
1522
+ readonly type: "file";
1523
+ readonly uri: string;
1524
+ readonly mime: string;
1525
+ readonly name?: string | undefined;
1526
+ })[]] | undefined;
1527
+ readonly metadata?: {
1528
+ readonly [x: string]: Schema.Json;
1529
+ } | undefined;
1530
+ };
1531
+ readonly time: {
1532
+ readonly created: number;
1533
+ readonly ran?: number | undefined;
1534
+ readonly completed?: number | undefined;
1535
+ };
1536
+ } | {
1537
+ readonly type: "text";
1538
+ readonly text: string;
1539
+ readonly native?: {
1540
+ readonly [x: string]: unknown;
1541
+ } | undefined;
1542
+ } | {
1543
+ readonly type: "reasoning";
1544
+ readonly text: string;
1545
+ readonly native?: {
1546
+ readonly [x: string]: unknown;
1547
+ } | undefined;
1548
+ readonly time?: {
1549
+ readonly created: number;
1550
+ readonly completed?: number | undefined;
1551
+ } | undefined;
1552
+ })[];
1553
+ readonly snapshot?: {
1554
+ readonly start?: string | undefined;
1555
+ readonly end?: string | undefined;
1556
+ readonly files?: readonly string[] | undefined;
1557
+ } | undefined;
1558
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1559
+ readonly rawFinish?: string | undefined;
1560
+ readonly native?: {
1561
+ readonly [x: string]: unknown;
1562
+ } | undefined;
1563
+ readonly cost?: number | undefined;
1564
+ readonly tokens?: {
1565
+ readonly input: number;
1566
+ readonly output: number;
1567
+ readonly reasoning: number;
1568
+ readonly cache: {
1569
+ readonly read: number;
1570
+ readonly write: number;
1571
+ };
1572
+ } | undefined;
1573
+ readonly error?: {
1574
+ readonly type: string;
1575
+ readonly message: string;
1576
+ readonly status?: number | undefined;
1577
+ readonly response?: {
1578
+ readonly body: string;
1579
+ } | undefined;
1580
+ readonly retryAfterMs?: number | undefined;
1581
+ } | undefined;
1582
+ readonly retry?: {
1583
+ readonly attempt: number;
1584
+ readonly at: number;
1585
+ readonly error: {
1586
+ readonly type: string;
1587
+ readonly message: string;
1588
+ readonly status?: number | undefined;
1589
+ readonly response?: {
1590
+ readonly body: string;
1591
+ } | undefined;
1592
+ readonly retryAfterMs?: number | undefined;
1593
+ };
1594
+ } | undefined;
1595
+ readonly time: {
1596
+ readonly created: number;
1597
+ readonly streamed?: number | undefined;
1598
+ readonly completed?: number | undefined;
1599
+ };
1600
+ }, "id" | "type"> | Omit<{
1601
+ readonly id: string;
1602
+ readonly metadata?: {
1603
+ readonly [x: string]: unknown;
1604
+ } | undefined;
1605
+ readonly time: {
1606
+ readonly created: number;
1607
+ };
1608
+ readonly type: "compaction";
1609
+ readonly status: "running";
1610
+ readonly reason: "auto" | "manual";
1611
+ readonly summary: string;
1612
+ }, "id" | "type"> | Omit<{
1613
+ readonly id: string;
1614
+ readonly metadata?: {
1615
+ readonly [x: string]: unknown;
1616
+ } | undefined;
1617
+ readonly time: {
1618
+ readonly created: number;
1619
+ };
1620
+ readonly type: "compaction";
1621
+ readonly cost?: number | undefined;
1622
+ readonly tokens?: {
1623
+ readonly input: number;
1624
+ readonly output: number;
1625
+ readonly reasoning: number;
1626
+ readonly cache: {
1627
+ readonly read: number;
1628
+ readonly write: number;
1629
+ };
1630
+ } | undefined;
1631
+ readonly status: "completed";
1632
+ readonly reason: "auto" | "manual";
1633
+ readonly model?: {
1634
+ readonly id: string;
1635
+ readonly providerID: string;
1636
+ readonly variant?: string | undefined;
1637
+ } | undefined;
1638
+ readonly native?: {
1639
+ readonly [x: string]: unknown;
1640
+ } | undefined;
1641
+ readonly summary: string;
1642
+ }, "id" | "type"> | Omit<{
1643
+ readonly id: string;
1644
+ readonly metadata?: {
1645
+ readonly [x: string]: unknown;
1646
+ } | undefined;
1647
+ readonly time: {
1648
+ readonly created: number;
1649
+ };
1650
+ readonly type: "compaction";
1651
+ readonly cost?: number | undefined;
1652
+ readonly tokens?: {
1653
+ readonly input: number;
1654
+ readonly output: number;
1655
+ readonly reasoning: number;
1656
+ readonly cache: {
1657
+ readonly read: number;
1658
+ readonly write: number;
1659
+ };
1660
+ } | undefined;
1661
+ readonly status: "failed";
1662
+ readonly reason: "auto" | "manual";
1663
+ readonly error: {
1664
+ readonly type: string;
1665
+ readonly message: string;
1666
+ readonly status?: number | undefined;
1667
+ readonly response?: {
1668
+ readonly body: string;
1669
+ } | undefined;
1670
+ readonly retryAfterMs?: number | undefined;
1671
+ };
1672
+ }, "id" | "type"> | Omit<{
1673
+ readonly id: string;
1674
+ readonly metadata?: {
1675
+ readonly [x: string]: unknown;
1676
+ } | undefined;
1677
+ readonly time: {
1678
+ readonly created: number;
1679
+ };
1680
+ readonly type: "idle";
1681
+ readonly outcome: "failed" | "interrupted" | "succeeded";
1682
+ readonly error?: {
1683
+ readonly type: string;
1684
+ readonly message: string;
1685
+ readonly status?: number | undefined;
1686
+ readonly response?: {
1687
+ readonly body: string;
1688
+ } | undefined;
1689
+ readonly retryAfterMs?: number | undefined;
1690
+ } | undefined;
1691
+ }, "id" | "type"> | Omit<{
1692
+ readonly id: string;
1693
+ readonly metadata?: {
1694
+ readonly [x: string]: unknown;
1695
+ } | undefined;
1696
+ readonly time: {
1697
+ readonly created: number;
1698
+ };
1699
+ readonly text: string;
1700
+ readonly agents?: readonly {
1701
+ readonly name: string;
1702
+ readonly mention?: {
1703
+ readonly start: number;
1704
+ readonly end: number;
1705
+ readonly text: string;
1706
+ } | undefined;
1707
+ }[] | undefined;
1708
+ readonly skills?: readonly {
1709
+ readonly id: string;
1710
+ readonly name: string;
1711
+ readonly text?: string | undefined;
1712
+ readonly mention?: {
1713
+ readonly start: number;
1714
+ readonly end: number;
1715
+ readonly text: string;
1716
+ } | undefined;
1717
+ }[] | undefined;
1718
+ readonly type: "user";
1719
+ readonly files?: readonly ({
1720
+ readonly data: string;
1721
+ readonly mime: string;
1722
+ readonly source: {
1723
+ readonly type: "inline";
1724
+ } | {
1725
+ readonly type: "uri";
1726
+ readonly uri: string;
1727
+ };
1728
+ readonly name?: string | undefined;
1729
+ readonly description?: string | undefined;
1730
+ readonly mention?: {
1731
+ readonly start: number;
1732
+ readonly end: number;
1733
+ readonly text: string;
1734
+ } | undefined;
1735
+ } | {
1736
+ readonly mime: string;
1737
+ readonly source: {
1738
+ readonly type: "inline";
1739
+ } | {
1740
+ readonly type: "uri";
1741
+ readonly uri: string;
1742
+ };
1743
+ readonly name?: string | undefined;
1744
+ readonly description?: string | undefined;
1745
+ readonly mention?: {
1746
+ readonly start: number;
1747
+ readonly end: number;
1748
+ readonly text: string;
1749
+ } | undefined;
1750
+ readonly uri: string;
1751
+ })[] | undefined;
1752
+ }, "id" | "type">) => Effect.Effect<void, never, never>;
1753
+ /** Releases the blobs a removed message or cancelled inbox row referenced. */
1754
+ export declare const releaseMessage: (db: DatabaseService, sessionID: SessionSchema.ID, messageID: SessionMessage.ID) => Effect.Effect<void, never, never>;
1755
+ /** Releases the blobs referenced at or after `seq`, for a revert. */
1756
+ export declare const releaseFrom: (db: DatabaseService, sessionID: SessionSchema.ID, seq: number) => Effect.Effect<void, never, never>;
1757
+ /** Releases every blob a deleted session referenced. */
1758
+ export declare const releaseSession: (db: DatabaseService, sessionID: SessionSchema.ID) => Effect.Effect<void, never, never>;