@opencode/core 0.0.0-dev-223 → 0.0.0-dev-225

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 (525) hide show
  1. package/dist/agent.js +69 -68
  2. package/dist/aisdk-native.js +73 -72
  3. package/dist/aisdk.js +78 -77
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +58 -57
  6. package/dist/chunks/{repository-w6qag2k8.js → repository-02q6devy.js} +18 -18
  7. package/dist/chunks/{repository-chfbpvyw.js → repository-04r1wrks.js} +13 -13
  8. package/dist/chunks/{repository-anr40x3d.js → repository-0afpajpk.js} +24 -24
  9. package/dist/chunks/{repository-z4pj4x9b.js → repository-0kjn3gmb.js} +8 -8
  10. package/dist/chunks/{repository-ha05q1k1.js → repository-0m7m3myj.js} +24 -24
  11. package/dist/chunks/{repository-28z6cbgf.js → repository-0qrj5tp3.js} +13 -13
  12. package/dist/chunks/{repository-x4v825th.js → repository-0vqtycbn.js} +10 -10
  13. package/dist/chunks/{repository-8dx40r31.js → repository-0yd0c7yw.js} +22 -22
  14. package/dist/chunks/{repository-8jztxfpf.js → repository-11hfp36g.js} +3 -3
  15. package/dist/chunks/{repository-24rck98s.js → repository-12dhx30w.js} +19 -19
  16. package/dist/chunks/{repository-xkb2c2nh.js → repository-12vcxn89.js} +18 -18
  17. package/dist/chunks/{repository-t9nzfb3m.js → repository-13h4821v.js} +22 -22
  18. package/dist/chunks/{repository-2yksqsyz.js → repository-14x2cdqd.js} +34 -34
  19. package/dist/chunks/{repository-aa83a44m.js → repository-17emz8v6.js} +3 -3
  20. package/dist/chunks/repository-1kah00gy.js +13 -0
  21. package/dist/chunks/{repository-bw29t359.js → repository-1tzttee1.js} +8 -8
  22. package/dist/chunks/{repository-p7vhpwh8.js → repository-1yq9hg58.js} +4 -4
  23. package/dist/chunks/{repository-yq02jwn4.js → repository-212rqbfx.js} +12 -12
  24. package/dist/chunks/{repository-dyy4zt3v.js → repository-23dwhg36.js} +44 -44
  25. package/dist/chunks/{repository-vaq1yek0.js → repository-26x8chrq.js} +3 -3
  26. package/dist/chunks/{repository-1ep2p91f.js → repository-27w5k9zf.js} +1 -1
  27. package/dist/chunks/{repository-v65we5h7.js → repository-28910prs.js} +19 -19
  28. package/dist/chunks/{repository-cge55dh8.js → repository-2gwexerd.js} +29 -29
  29. package/dist/chunks/{repository-mvfvs5vr.js → repository-2h1rexsh.js} +8 -8
  30. package/dist/chunks/{repository-fmff55yr.js → repository-2mv5n5wp.js} +11 -11
  31. package/dist/chunks/{repository-nfsrfhgk.js → repository-2r7kfffr.js} +13 -13
  32. package/dist/chunks/{repository-zdf3gzwx.js → repository-2vnjdqz4.js} +29 -29
  33. package/dist/chunks/{repository-vsgz7a0v.js → repository-2wwz1bdd.js} +22 -22
  34. package/dist/chunks/{repository-tdzpe7ny.js → repository-3a1gzt4h.js} +5 -1
  35. package/dist/chunks/{repository-ayjs7tqn.js → repository-3cbjf1nt.js} +1 -1
  36. package/dist/chunks/{repository-wvdwzn2w.js → repository-3e2gc48p.js} +1 -1
  37. package/dist/chunks/{repository-8t5bg94k.js → repository-3g2vn521.js} +41 -41
  38. package/dist/chunks/{repository-d4adk9sf.js → repository-3hdfjcc2.js} +9 -9
  39. package/dist/chunks/{repository-3ys2qbze.js → repository-3k1cgzmy.js} +5 -5
  40. package/dist/chunks/{repository-5mprhnrj.js → repository-3pm16jz4.js} +152 -152
  41. package/dist/chunks/{repository-nrqpxzzq.js → repository-3x62q367.js} +17 -17
  42. package/dist/chunks/{repository-6a610sb4.js → repository-3yrxkn0v.js} +8 -8
  43. package/dist/chunks/{repository-nkr6yq9m.js → repository-4xv4re4f.js} +3 -3
  44. package/dist/chunks/{repository-p718ct0k.js → repository-512987xb.js} +2 -2
  45. package/dist/chunks/{repository-p7y2ae2b.js → repository-534ps77n.js} +7 -7
  46. package/dist/chunks/{repository-d9k7070j.js → repository-56d0mdwc.js} +10 -10
  47. package/dist/chunks/{repository-q2z2t1q0.js → repository-5dfywfr4.js} +17 -17
  48. package/dist/chunks/{repository-fac3sjkm.js → repository-5f0h22rt.js} +23 -23
  49. package/dist/chunks/{repository-ys7d052r.js → repository-5f0m5wzz.js} +13 -13
  50. package/dist/chunks/{repository-50jfwd0b.js → repository-5hb3xp22.js} +1 -1
  51. package/dist/chunks/{repository-hax9wfhq.js → repository-61c5qd3j.js} +23 -23
  52. package/dist/chunks/{repository-msv0m990.js → repository-625d5ysm.js} +14 -14
  53. package/dist/chunks/{repository-59bskyqz.js → repository-67x0hfmk.js} +2 -2
  54. package/dist/chunks/{repository-dmpan285.js → repository-697zycvk.js} +7 -7
  55. package/dist/chunks/{repository-3tzpckpe.js → repository-6bpfps1f.js} +4 -4
  56. package/dist/chunks/{repository-j360sx8s.js → repository-6c013jja.js} +5 -5
  57. package/dist/chunks/{repository-kv757zv6.js → repository-6dv331nt.js} +12 -12
  58. package/dist/chunks/{repository-nyqa861q.js → repository-6gbw9738.js} +12 -12
  59. package/dist/chunks/{repository-yekse1yq.js → repository-6gz1fwcb.js} +18 -18
  60. package/dist/chunks/{repository-a2zbwxm7.js → repository-6k655h6s.js} +10 -10
  61. package/dist/chunks/{repository-c46s9eb3.js → repository-6npr164p.js} +3 -3
  62. package/dist/chunks/{repository-pjbbp4st.js → repository-6tkn5w05.js} +28 -28
  63. package/dist/chunks/{repository-0f4tqvx5.js → repository-6yqr9evj.js} +1 -1
  64. package/dist/chunks/{repository-n4cszq6s.js → repository-76ek6v85.js} +12 -12
  65. package/dist/chunks/{repository-bzecdqed.js → repository-7bsdd5sy.js} +10 -10
  66. package/dist/chunks/{repository-g20aks6e.js → repository-7f52k950.js} +17 -17
  67. package/dist/chunks/{repository-mzbswx4t.js → repository-7jdsj2a9.js} +3 -3
  68. package/dist/chunks/{repository-87e2vapc.js → repository-7n3s3k63.js} +23 -23
  69. package/dist/chunks/{repository-m227na57.js → repository-7pa3t2xk.js} +8 -8
  70. package/dist/chunks/{repository-7y253f34.js → repository-7vvjhnrn.js} +7 -7
  71. package/dist/chunks/{repository-vdh3rgac.js → repository-7yv5xa0k.js} +4 -4
  72. package/dist/chunks/{repository-626sad5p.js → repository-80x4fa6r.js} +9 -9
  73. package/dist/chunks/{repository-7nc6vhv1.js → repository-8nap1jrd.js} +15 -15
  74. package/dist/chunks/{repository-q61bmwds.js → repository-8z6m94af.js} +2 -1
  75. package/dist/chunks/{repository-semxt4qn.js → repository-98757as2.js} +5 -5
  76. package/dist/chunks/{repository-zapma743.js → repository-9awk6jpk.js} +5 -5
  77. package/dist/chunks/{repository-d9s3h93w.js → repository-9c4fmw56.js} +13 -13
  78. package/dist/chunks/{repository-sg06s8x8.js → repository-9cqr2vkq.js} +11 -11
  79. package/dist/chunks/{repository-y6699624.js → repository-9h1ss44a.js} +7 -7
  80. package/dist/chunks/{repository-8mkcdndv.js → repository-9r4pxyh7.js} +32 -32
  81. package/dist/chunks/{repository-s27fe866.js → repository-a654hsnz.js} +4 -4
  82. package/dist/chunks/{repository-kmkjyfhv.js → repository-a82v2hxv.js} +20 -20
  83. package/dist/chunks/{repository-kkebvfyp.js → repository-agd3ajwq.js} +6 -6
  84. package/dist/chunks/{repository-vaqj36aw.js → repository-ampz2f9v.js} +13 -13
  85. package/dist/chunks/{repository-dsq3hdx8.js → repository-arn7cr2v.js} +35 -35
  86. package/dist/chunks/{repository-war8sgwz.js → repository-b06zajxa.js} +13 -13
  87. package/dist/chunks/{repository-skbttzty.js → repository-b08ppfvn.js} +8 -8
  88. package/dist/chunks/{repository-bp73kexw.js → repository-b4sf3bff.js} +9 -9
  89. package/dist/chunks/{repository-4pjd4h0r.js → repository-b7y5rk4r.js} +6 -6
  90. package/dist/chunks/{repository-6ahrxn7h.js → repository-b9s89jmt.js} +24 -24
  91. package/dist/chunks/{repository-jzn0pxw0.js → repository-bdb9z49n.js} +10 -10
  92. package/dist/chunks/{repository-wb47rx5c.js → repository-bj6adykh.js} +4 -4
  93. package/dist/chunks/{repository-xd9cc171.js → repository-bstexjd6.js} +4 -4
  94. package/dist/chunks/{repository-v816cg4v.js → repository-c7memrrh.js} +7 -7
  95. package/dist/chunks/{repository-4bwthz3m.js → repository-ceq6pwch.js} +5 -5
  96. package/dist/chunks/{repository-xvjkytpn.js → repository-cf7x31pg.js} +8 -8
  97. package/dist/chunks/{repository-av5s4abm.js → repository-crbrb0jj.js} +4 -4
  98. package/dist/chunks/{repository-4twczz1d.js → repository-d1jzsn22.js} +4 -4
  99. package/dist/chunks/{repository-c9t2ty9q.js → repository-d2887f8n.js} +3 -3
  100. package/dist/chunks/{repository-30h5vszr.js → repository-d3jz2cz5.js} +11 -11
  101. package/dist/chunks/{repository-7x55e4f3.js → repository-d3yrsr4e.js} +21 -21
  102. package/dist/chunks/{repository-5dgv37f6.js → repository-dfr5r696.js} +14 -14
  103. package/dist/chunks/{repository-zx29snpc.js → repository-dkqkergf.js} +7 -7
  104. package/dist/chunks/{repository-55g1gb2r.js → repository-dnf86brd.js} +5 -5
  105. package/dist/chunks/{repository-5h9w1760.js → repository-dw4s89a0.js} +10 -10
  106. package/dist/chunks/{repository-94cvkwyc.js → repository-dzkkvexc.js} +7 -7
  107. package/dist/chunks/{repository-hp5ggfzb.js → repository-e58sv9rp.js} +17 -17
  108. package/dist/chunks/{repository-jkgxvka5.js → repository-eda6vzv8.js} +10 -10
  109. package/dist/chunks/{repository-8b5v3532.js → repository-epq6cdz1.js} +3 -3
  110. package/dist/chunks/{repository-abrs8pjj.js → repository-eqzd7aqx.js} +6 -6
  111. package/dist/chunks/{repository-2qfs2vgm.js → repository-f1z26w0d.js} +13 -13
  112. package/dist/chunks/{repository-xrjfkxwf.js → repository-f9xffe6w.js} +33 -33
  113. package/dist/chunks/{repository-prq7xxp2.js → repository-fg9p65nk.js} +4 -4
  114. package/dist/chunks/{repository-pach9r6p.js → repository-fm429npj.js} +16 -16
  115. package/dist/chunks/{repository-a2pcb318.js → repository-fm8xskze.js} +21 -21
  116. package/dist/chunks/{repository-hds1b6c6.js → repository-fs4b0t0k.js} +10 -10
  117. package/dist/chunks/{repository-g0x9f173.js → repository-fwsgn0kj.js} +46 -46
  118. package/dist/chunks/{repository-r1zag3k4.js → repository-fyk4dqjk.js} +30 -30
  119. package/dist/chunks/{repository-5eksgbhk.js → repository-g0nw359p.js} +15 -15
  120. package/dist/chunks/{repository-gk3m201e.js → repository-g1kwxa1b.js} +17 -17
  121. package/dist/chunks/{repository-360yt0tf.js → repository-g1xkvxp8.js} +7 -7
  122. package/dist/chunks/{repository-9n6p1q61.js → repository-g83h66a1.js} +4 -4
  123. package/dist/chunks/{repository-267kfj3b.js → repository-gfcceyza.js} +37 -37
  124. package/dist/chunks/{repository-c1gtqsga.js → repository-gjrqrjfc.js} +31 -31
  125. package/dist/chunks/{repository-b8fn1a2b.js → repository-gpgd96vy.js} +6 -6
  126. package/dist/chunks/{repository-4jdk4m55.js → repository-gqdnb8y1.js} +17 -17
  127. package/dist/chunks/{repository-gv0adxtq.js → repository-gvqm1969.js} +28 -28
  128. package/dist/chunks/{repository-xgjk47c2.js → repository-h7gfa9td.js} +18 -18
  129. package/dist/chunks/{repository-160yv0cs.js → repository-hy8c1z76.js} +7 -7
  130. package/dist/chunks/{repository-hbwwzcqk.js → repository-jcx3m0pd.js} +1 -1
  131. package/dist/chunks/{repository-4zevbb2g.js → repository-jh36xa0j.js} +40 -40
  132. package/dist/chunks/{repository-5d4p0r89.js → repository-jm7m7qv4.js} +12 -12
  133. package/dist/chunks/{repository-7hdgky85.js → repository-jmcy6tdz.js} +28 -28
  134. package/dist/chunks/{repository-kgnmyx47.js → repository-jqt6shdc.js} +22 -22
  135. package/dist/chunks/{repository-2jpjfffa.js → repository-jv2xnyk0.js} +7 -7
  136. package/dist/chunks/{repository-a7vyxcv1.js → repository-jw9hwjk7.js} +8 -8
  137. package/dist/chunks/{repository-gsn0hbky.js → repository-jx6743tc.js} +27 -27
  138. package/dist/chunks/{repository-zvwzcwk0.js → repository-k4461cq5.js} +5 -5
  139. package/dist/chunks/{repository-e05k2b0s.js → repository-k73cna2p.js} +1 -1
  140. package/dist/chunks/{repository-bz487fe5.js → repository-kmj5avpj.js} +21 -21
  141. package/dist/chunks/{repository-tqsn5rpq.js → repository-kpn1bhgk.js} +2 -2
  142. package/dist/chunks/{repository-vzr2jnmc.js → repository-kw8s21va.js} +3 -3
  143. package/dist/chunks/{repository-4qxgbnr8.js → repository-kx71657v.js} +5 -5
  144. package/dist/chunks/{repository-ak9j0n4g.js → repository-kxn25fwv.js} +31 -31
  145. package/dist/chunks/{repository-0qj6yjmx.js → repository-mbb1g1yw.js} +3 -3
  146. package/dist/chunks/{repository-mtf9rx2d.js → repository-mcnyjy51.js} +2 -2
  147. package/dist/chunks/{repository-rkvjm6bb.js → repository-mna4epf6.js} +2 -2
  148. package/dist/chunks/{repository-meq5xayt.js → repository-mrfyq4g5.js} +16 -16
  149. package/dist/chunks/{repository-cncfqw11.js → repository-mz3zm30x.js} +40 -40
  150. package/dist/chunks/{repository-94k7vj63.js → repository-n4e7dz5r.js} +19 -19
  151. package/dist/chunks/{repository-t2dqqkmp.js → repository-n81rk82p.js} +21 -21
  152. package/dist/chunks/{repository-r2v87c26.js → repository-n8e58mf8.js} +6 -6
  153. package/dist/chunks/{repository-770pw0s1.js → repository-nah043kf.js} +3 -3
  154. package/dist/chunks/{repository-d41dy4jz.js → repository-nasy3zn8.js} +22 -22
  155. package/dist/chunks/{repository-x78jh7xq.js → repository-ngnmw7n1.js} +8 -8
  156. package/dist/chunks/{repository-2mfa6jt6.js → repository-nktr62nw.js} +33 -33
  157. package/dist/chunks/{repository-wbqjejvk.js → repository-np3f7rt0.js} +1 -1
  158. package/dist/chunks/{repository-6y263vp8.js → repository-nv205p9v.js} +3 -3
  159. package/dist/chunks/{repository-yd5kqwzv.js → repository-nx91d85n.js} +19 -19
  160. package/dist/chunks/{repository-h0rg6s60.js → repository-p76me67c.js} +3 -3
  161. package/dist/chunks/{repository-2y8z5rdx.js → repository-p93f7rm8.js} +23 -23
  162. package/dist/chunks/{repository-99q7081m.js → repository-pb5kqfgr.js} +7 -7
  163. package/dist/chunks/{repository-8xe30kkw.js → repository-ph5famjc.js} +30 -30
  164. package/dist/chunks/{repository-tm50zxtt.js → repository-prsb3gy8.js} +327 -327
  165. package/dist/chunks/{repository-yara3q77.js → repository-pxtfkpje.js} +1 -1
  166. package/dist/chunks/{repository-4127byac.js → repository-q78bpt09.js} +2 -2
  167. package/dist/chunks/{repository-fvg4pwjj.js → repository-qakshsr3.js} +4 -4
  168. package/dist/chunks/{repository-f57gywq5.js → repository-qap93fyq.js} +2 -2
  169. package/dist/chunks/{repository-91h4454q.js → repository-qf4sba5t.js} +4 -4
  170. package/dist/chunks/{repository-99hh273v.js → repository-qg4zt266.js} +5 -5
  171. package/dist/chunks/{repository-p5j5bg0f.js → repository-qgfkghh1.js} +1 -0
  172. package/dist/chunks/{repository-d7jw5fp3.js → repository-qhjk5g7p.js} +13 -13
  173. package/dist/chunks/{repository-ntref8y6.js → repository-qp19en1v.js} +22 -22
  174. package/dist/chunks/{repository-0ahs07zn.js → repository-qqg9c0kv.js} +3 -3
  175. package/dist/chunks/{repository-w4a5rcbb.js → repository-qzmm5tz3.js} +14 -14
  176. package/dist/chunks/{repository-ha3gr0r3.js → repository-rcdhpebz.js} +19 -19
  177. package/dist/chunks/{repository-9wzjb77v.js → repository-rfy1qsv0.js} +3 -3
  178. package/dist/chunks/{repository-yj5jfd5z.js → repository-rgrwz8jc.js} +1 -1
  179. package/dist/chunks/{repository-qwzfnxry.js → repository-rhhs0wkq.js} +18 -14
  180. package/dist/chunks/{repository-f44s1d53.js → repository-rt7pfvy6.js} +29 -29
  181. package/dist/chunks/{repository-bkvh1vz1.js → repository-rttr2fak.js} +20 -20
  182. package/dist/chunks/{repository-1r2kzq99.js → repository-rvt22k2y.js} +13 -13
  183. package/dist/chunks/{repository-97c5t57a.js → repository-s06t763y.js} +8 -8
  184. package/dist/chunks/{repository-ngwn9sfh.js → repository-s1ngvbs7.js} +30 -30
  185. package/dist/chunks/{repository-8bw97m0q.js → repository-s3dg6dk7.js} +14 -14
  186. package/dist/chunks/{repository-1yck77gx.js → repository-s80rtvac.js} +5 -5
  187. package/dist/chunks/repository-sagzsdcj.js +26 -0
  188. package/dist/chunks/{repository-cmdwg2dr.js → repository-smhsv5n1.js} +11 -11
  189. package/dist/chunks/{repository-fhded4xh.js → repository-smtd4r5d.js} +7 -7
  190. package/dist/chunks/{repository-95g2r518.js → repository-snxt3tr6.js} +19 -19
  191. package/dist/chunks/{repository-653nzf8n.js → repository-sq3g877h.js} +74 -74
  192. package/dist/chunks/{repository-vzrdr816.js → repository-stg46zfy.js} +32 -32
  193. package/dist/chunks/{repository-q6earb14.js → repository-swt9j2d1.js} +19 -19
  194. package/dist/chunks/{repository-421f5x70.js → repository-syekz850.js} +27 -11
  195. package/dist/chunks/{repository-s9br1ntq.js → repository-symxyxd2.js} +39 -39
  196. package/dist/chunks/{repository-gcjdgkn2.js → repository-takvccra.js} +7 -7
  197. package/dist/chunks/{repository-xa7zr3zm.js → repository-tea79k12.js} +1 -1
  198. package/dist/chunks/{repository-qx66ja59.js → repository-th3qszsa.js} +10 -10
  199. package/dist/chunks/{repository-0erz1dmz.js → repository-tptvq6v6.js} +2 -2
  200. package/dist/chunks/{repository-xdeca17p.js → repository-tspjt6hv.js} +22 -22
  201. package/dist/chunks/{repository-sfy613zk.js → repository-ttt74r5g.js} +21 -21
  202. package/dist/chunks/{repository-ry8wv614.js → repository-tvpzekgj.js} +3 -3
  203. package/dist/chunks/{repository-9f15z1yv.js → repository-v0e44ra8.js} +9 -9
  204. package/dist/chunks/{repository-53qx6cqq.js → repository-v0yg2p47.js} +33 -33
  205. package/dist/chunks/{repository-pgz7m435.js → repository-v6y9sg65.js} +35 -35
  206. package/dist/chunks/{repository-g7fty37q.js → repository-v9tv2jcf.js} +18 -18
  207. package/dist/chunks/{repository-vfvg8wtj.js → repository-vavwx7s5.js} +15 -15
  208. package/dist/chunks/{repository-sqkqhx99.js → repository-vbbf82hz.js} +13 -13
  209. package/dist/chunks/{repository-ch4a6gtw.js → repository-vbm79bx3.js} +2 -1
  210. package/dist/chunks/{repository-2scem4zq.js → repository-vdetwb8q.js} +6 -6
  211. package/dist/chunks/{repository-56v7dcaj.js → repository-vegsf5sr.js} +3 -3
  212. package/dist/chunks/{repository-2zp5a6yg.js → repository-vg0erq9k.js} +2 -2
  213. package/dist/chunks/{repository-b5rc0sm5.js → repository-vk8tcr7v.js} +87 -85
  214. package/dist/chunks/{repository-gpcc0bgy.js → repository-w08h028t.js} +7 -7
  215. package/dist/chunks/{repository-40za9wsf.js → repository-w2eysc6j.js} +7 -7
  216. package/dist/chunks/{repository-746hfkms.js → repository-wb1032jb.js} +15 -15
  217. package/dist/chunks/{repository-2s8qs2ty.js → repository-wfhze47m.js} +18 -18
  218. package/dist/chunks/{repository-1d0hekf1.js → repository-wfx67pkj.js} +12 -12
  219. package/dist/chunks/{repository-t9xxwrxt.js → repository-wgaw9e9b.js} +19 -19
  220. package/dist/chunks/{repository-pamhxmwe.js → repository-x3nmv35r.js} +7 -7
  221. package/dist/chunks/{repository-15wkvq9x.js → repository-x5anz7b2.js} +4 -4
  222. package/dist/chunks/{repository-k48h5se1.js → repository-xgpjap4q.js} +3 -3
  223. package/dist/chunks/{repository-n6mm56gb.js → repository-xm3tvg1p.js} +8 -8
  224. package/dist/chunks/{repository-mpe4epve.js → repository-xmgjtvx2.js} +4 -4
  225. package/dist/chunks/{repository-b0npgc9t.js → repository-xt0z8zst.js} +7 -7
  226. package/dist/chunks/{repository-5sdj5p51.js → repository-xv4cc4d2.js} +47 -47
  227. package/dist/chunks/{repository-j2h2v56y.js → repository-xvhkpttz.js} +23 -23
  228. package/dist/chunks/{repository-x51cbw6r.js → repository-y164yf7k.js} +8 -8
  229. package/dist/chunks/{repository-1xbe02wa.js → repository-y7skvavs.js} +18 -18
  230. package/dist/chunks/{repository-3vy7y2j7.js → repository-ym3r9j8z.js} +84 -84
  231. package/dist/chunks/repository-ym4fxhy7.js +257 -0
  232. package/dist/chunks/{repository-j368t596.js → repository-yqtq7xaq.js} +7 -7
  233. package/dist/chunks/{repository-34aktkbd.js → repository-yr49e4mv.js} +7 -7
  234. package/dist/chunks/{repository-86050tb7.js → repository-z0bthqbq.js} +21 -21
  235. package/dist/chunks/{repository-w8k3kdvv.js → repository-z5gw4pap.js} +7 -7
  236. package/dist/chunks/{repository-bsdpkvp5.js → repository-z9gwer7j.js} +7 -7
  237. package/dist/chunks/{repository-k7a4agay.js → repository-zc3ayq8k.js} +27 -27
  238. package/dist/chunks/{repository-r96ere88.js → repository-zdat2xwq.js} +3 -3
  239. package/dist/chunks/{repository-9f3sjfep.js → repository-zgd8t41s.js} +7 -7
  240. package/dist/chunks/{repository-dvnqv6yn.js → repository-zybtfqav.js} +3 -3
  241. package/dist/codemode/instructions.js +2 -2
  242. package/dist/command.js +71 -70
  243. package/dist/config/discovery.js +68 -67
  244. package/dist/config/normalize.js +81 -80
  245. package/dist/config/plugin/agent.js +95 -94
  246. package/dist/config/plugin/command.js +178 -177
  247. package/dist/config/plugin/compaction.js +129 -128
  248. package/dist/config/plugin/compatibility.js +113 -112
  249. package/dist/config/plugin/formatter.js +94 -93
  250. package/dist/config/plugin/image.js +93 -92
  251. package/dist/config/plugin/instruction.js +94 -93
  252. package/dist/config/plugin/location-watcher.js +95 -94
  253. package/dist/config/plugin/mcp.js +98 -97
  254. package/dist/config/plugin/policy.js +93 -92
  255. package/dist/config/plugin/provider.js +93 -92
  256. package/dist/config/plugin/reference.js +95 -94
  257. package/dist/config/plugin/shell.js +95 -94
  258. package/dist/config/plugin/skill-file.js +109 -108
  259. package/dist/config/plugin/skill-scan.js +3 -3
  260. package/dist/config/plugin/skill.js +116 -115
  261. package/dist/config/plugin/snapshot.js +93 -92
  262. package/dist/config/plugin/source.js +96 -95
  263. package/dist/config/plugin/tool-output.js +93 -92
  264. package/dist/config/plugin/websearch.js +94 -93
  265. package/dist/config/plugin/worktree.js +95 -94
  266. package/dist/config.js +95 -94
  267. package/dist/credential.js +68 -67
  268. package/dist/database/database.js +56 -55
  269. package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
  270. package/dist/database/drizzle/effect-sqlite/index.js +6 -6
  271. package/dist/database/drizzle/effect-sqlite/session.js +6 -6
  272. package/dist/database/drizzle/index.js +10 -10
  273. package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
  274. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  275. package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
  276. package/dist/database/drizzle.js +10 -10
  277. package/dist/database/migration/20261029073502_session_time_busy.js +6 -0
  278. package/dist/database/migration.gen.js +45 -44
  279. package/dist/database/migration.js +47 -46
  280. package/dist/database/schema.gen.js +1 -1
  281. package/dist/database/v1-migration.bun.js +27 -26
  282. package/dist/effect/app-node-builder.js +248 -247
  283. package/dist/effect/keyed-mutex.js +3 -3
  284. package/dist/environment/environment.js +74 -73
  285. package/dist/environment/index.js +74 -73
  286. package/dist/event-logger.js +12 -11
  287. package/dist/file-access.js +113 -112
  288. package/dist/file-mutation.js +75 -74
  289. package/dist/filesystem/file-watch.js +13 -12
  290. package/dist/filesystem/location-watcher-policy.js +5 -5
  291. package/dist/filesystem/location-watcher.js +190 -189
  292. package/dist/filesystem/search.js +78 -77
  293. package/dist/filesystem/watcher.js +5 -5
  294. package/dist/filesystem.js +81 -80
  295. package/dist/form.js +73 -72
  296. package/dist/formatter/builtins.js +3 -3
  297. package/dist/formatter.js +73 -72
  298. package/dist/generate.js +85 -84
  299. package/dist/git.js +7 -7
  300. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  301. package/dist/github-copilot/copilot-provider.js +3 -3
  302. package/dist/github-copilot/models.js +75 -74
  303. package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
  304. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
  305. package/dist/image/photon.js +1 -1
  306. package/dist/image.js +5 -5
  307. package/dist/instance/service.js +5 -5
  308. package/dist/instance.js +324 -323
  309. package/dist/instruction-discovery.js +74 -73
  310. package/dist/instructions/builtins.js +73 -72
  311. package/dist/instructions/index.js +5 -5
  312. package/dist/integration.js +69 -68
  313. package/dist/job.js +65 -64
  314. package/dist/kv.js +61 -60
  315. package/dist/location-activity.js +75 -74
  316. package/dist/location-lifecycle.js +114 -113
  317. package/dist/location-service-map.js +72 -71
  318. package/dist/location-services.js +322 -321
  319. package/dist/location.js +73 -72
  320. package/dist/mcp/client.js +23 -22
  321. package/dist/mcp/index.js +84 -83
  322. package/dist/mcp/instructions.js +131 -130
  323. package/dist/mcp/oauth.js +16 -15
  324. package/dist/mcp/stdio.js +71 -70
  325. package/dist/modal/models.js +75 -74
  326. package/dist/model-resolver.js +82 -81
  327. package/dist/model.js +84 -83
  328. package/dist/models-dev.js +85 -84
  329. package/dist/permission/saved.js +70 -69
  330. package/dist/permission/sql.js +3 -3
  331. package/dist/permission.js +117 -116
  332. package/dist/persistent-pty/index.js +71 -70
  333. package/dist/persistent-pty.js +61 -60
  334. package/dist/plugin/agent.js +64 -63
  335. package/dist/plugin/command.js +81 -80
  336. package/dist/plugin/goal.js +3 -3
  337. package/dist/plugin/hooks.js +5 -5
  338. package/dist/plugin/host.js +181 -180
  339. package/dist/plugin/identity.js +3 -3
  340. package/dist/plugin/instance.js +5 -5
  341. package/dist/plugin/internal.js +295 -294
  342. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  343. package/dist/plugin/models-dev.js +80 -79
  344. package/dist/plugin/module.js +93 -92
  345. package/dist/plugin/plan.js +110 -109
  346. package/dist/plugin/provider/amazon-bedrock.js +75 -74
  347. package/dist/plugin/provider/azure.js +94 -93
  348. package/dist/plugin/provider/chatgpt.js +92 -91
  349. package/dist/plugin/provider/cloudflare-ai-gateway.js +92 -91
  350. package/dist/plugin/provider/cloudflare-workers-ai.js +92 -91
  351. package/dist/plugin/provider/configured.js +90 -89
  352. package/dist/plugin/provider/credential-settings.js +61 -60
  353. package/dist/plugin/provider/digitalocean.js +76 -75
  354. package/dist/plugin/provider/github-copilot.js +78 -77
  355. package/dist/plugin/provider/gitlab.js +77 -76
  356. package/dist/plugin/provider/google-vertex.js +91 -90
  357. package/dist/plugin/provider/llmgateway.js +64 -63
  358. package/dist/plugin/provider/lmstudio.js +97 -96
  359. package/dist/plugin/provider/local.js +94 -93
  360. package/dist/plugin/provider/modal.js +76 -75
  361. package/dist/plugin/provider/ollama.js +97 -96
  362. package/dist/plugin/provider/openai-context-caps.js +74 -73
  363. package/dist/plugin/provider/openai.js +92 -91
  364. package/dist/plugin/provider/opencode.js +94 -93
  365. package/dist/plugin/provider/openrouter.js +75 -74
  366. package/dist/plugin/provider/poe.js +64 -63
  367. package/dist/plugin/provider/sap-ai-core.js +74 -73
  368. package/dist/plugin/provider/snowflake-cortex.js +92 -91
  369. package/dist/plugin/provider/vllm.js +97 -96
  370. package/dist/plugin/provider/xai.js +75 -74
  371. package/dist/plugin/provider.js +133 -132
  372. package/dist/plugin/sdk.js +63 -62
  373. package/dist/plugin/service.js +3 -3
  374. package/dist/plugin/skill.js +113 -112
  375. package/dist/plugin/supervisor.js +311 -310
  376. package/dist/plugin/tool-input-repair.js +3 -3
  377. package/dist/plugin/update.js +4 -4
  378. package/dist/plugin/vcs/git.js +72 -71
  379. package/dist/plugin/vcs/hg.js +72 -71
  380. package/dist/plugin/verbosity.js +77 -76
  381. package/dist/plugin/warming.js +92 -91
  382. package/dist/plugin/websearch/exa.js +4 -4
  383. package/dist/plugin/websearch/firecrawl.js +5 -5
  384. package/dist/plugin/websearch/index.js +8 -8
  385. package/dist/plugin/websearch/mcp.js +5 -5
  386. package/dist/plugin/websearch/parallel.js +7 -7
  387. package/dist/plugin/websearch/tavily.js +4 -4
  388. package/dist/plugin/websearch/tinyfish.js +7 -7
  389. package/dist/plugin.js +192 -191
  390. package/dist/project/icon.js +3 -3
  391. package/dist/project/schema.js +7 -7
  392. package/dist/project/sql.js +2 -2
  393. package/dist/project.js +76 -75
  394. package/dist/provider.js +75 -74
  395. package/dist/pty.js +84 -83
  396. package/dist/reference/instructions.js +74 -73
  397. package/dist/reference.js +72 -71
  398. package/dist/repository-cache.js +67 -66
  399. package/dist/repository.js +3 -3
  400. package/dist/ripgrep.js +75 -74
  401. package/dist/rpc.js +72 -71
  402. package/dist/schedule/sql.js +4 -4
  403. package/dist/schedule.js +183 -182
  404. package/dist/session/blob.js +103 -92
  405. package/dist/session/command.js +62 -61
  406. package/dist/session/compaction.js +129 -128
  407. package/dist/session/context.js +148 -147
  408. package/dist/session/diff.js +73 -72
  409. package/dist/session/environment.js +5 -5
  410. package/dist/session/error.js +2 -2
  411. package/dist/session/execution/restart.js +121 -120
  412. package/dist/session/execution.js +125 -124
  413. package/dist/session/generate.js +147 -146
  414. package/dist/session/history.js +99 -98
  415. package/dist/session/inbox.js +112 -111
  416. package/dist/session/info.js +2 -2
  417. package/dist/session/instruction-entry.js +67 -66
  418. package/dist/session/instruction-state.js +5 -5
  419. package/dist/session/instructions.js +104 -103
  420. package/dist/session/model-request.js +124 -123
  421. package/dist/session/model-transport.js +7 -7
  422. package/dist/session/move.js +126 -125
  423. package/dist/session/projector.js +105 -104
  424. package/dist/session/prompt.js +111 -110
  425. package/dist/session/revert.js +102 -101
  426. package/dist/session/run-coordinator.js +3 -3
  427. package/dist/session/runner/index.js +3 -3
  428. package/dist/session/runner/llm.js +192 -191
  429. package/dist/session/runner/model.js +83 -82
  430. package/dist/session/runner/publish-llm-event.js +112 -111
  431. package/dist/session/runner/retry.js +3 -3
  432. package/dist/session/runner/step.js +123 -122
  433. package/dist/session/runner/to-llm-message.js +100 -99
  434. package/dist/session/schema.js +5 -5
  435. package/dist/session/session.js +134 -133
  436. package/dist/session/shell.js +101 -100
  437. package/dist/session/skill.js +111 -110
  438. package/dist/session/sql.js +3 -3
  439. package/dist/session/stats.js +12 -11
  440. package/dist/session/store.js +105 -104
  441. package/dist/session/stored.js +3 -3
  442. package/dist/session/subagent-job.js +176 -175
  443. package/dist/session/title.js +151 -150
  444. package/dist/session/to-session-error.js +111 -110
  445. package/dist/session/transfer.js +143 -119
  446. package/dist/session.js +183 -182
  447. package/dist/shell/parse.js +5 -5
  448. package/dist/shell/select.js +12 -12
  449. package/dist/shell.js +102 -101
  450. package/dist/skill/discovery.js +5 -5
  451. package/dist/skill/instructions.js +113 -112
  452. package/dist/skill.js +118 -117
  453. package/dist/snapshot.js +79 -78
  454. package/dist/tool/mcp.js +128 -127
  455. package/dist/tool/plugin/edit.js +120 -119
  456. package/dist/tool/plugin/glob.js +119 -118
  457. package/dist/tool/plugin/grep.js +125 -124
  458. package/dist/tool/plugin/image-generate.js +186 -185
  459. package/dist/tool/plugin/mcp-resource.js +118 -117
  460. package/dist/tool/plugin/opencode.js +120 -119
  461. package/dist/tool/plugin/patch.js +124 -123
  462. package/dist/tool/plugin/question.js +108 -107
  463. package/dist/tool/plugin/read.js +123 -122
  464. package/dist/tool/plugin/schedule.js +176 -175
  465. package/dist/tool/plugin/shell.js +182 -181
  466. package/dist/tool/plugin/skill.js +117 -116
  467. package/dist/tool/plugin/subagent.js +183 -182
  468. package/dist/tool/plugin/todo.js +116 -115
  469. package/dist/tool/plugin/webfetch.js +118 -117
  470. package/dist/tool/plugin/websearch.js +119 -118
  471. package/dist/tool/plugin/write.js +124 -123
  472. package/dist/tool/read-filesystem.js +78 -77
  473. package/dist/tool-output.js +5 -5
  474. package/dist/tool.js +9 -9
  475. package/dist/types/config/plugin/command.d.ts +1 -1
  476. package/dist/types/database/migration/20261029073502_session_time_busy.d.ts +3 -0
  477. package/dist/types/instance.d.ts +1 -1
  478. package/dist/types/location-activity.d.ts +1 -1
  479. package/dist/types/mcp/index.d.ts +1 -1
  480. package/dist/types/plugin/command.d.ts +1 -1
  481. package/dist/types/plugin/host.d.ts +2 -2
  482. package/dist/types/plugin/internal.d.ts +1 -1
  483. package/dist/types/plugin/models-dev.d.ts +1 -1
  484. package/dist/types/session/blob.d.ts +884 -17
  485. package/dist/types/session/compaction.d.ts +1 -1
  486. package/dist/types/session/execution/restart.d.ts +1 -1
  487. package/dist/types/session/execution.d.ts +1 -1
  488. package/dist/types/session/revert.d.ts +2 -2
  489. package/dist/types/session/runner/step.d.ts +1 -1
  490. package/dist/types/session/schema.d.ts +1 -0
  491. package/dist/types/session/session.d.ts +1 -1
  492. package/dist/types/session/sql.d.ts +16 -0
  493. package/dist/types/session/title.d.ts +1 -1
  494. package/dist/types/session/transfer.d.ts +1 -0
  495. package/dist/types/tool/mcp.d.ts +1 -1
  496. package/dist/types/tool/plugin/subagent.d.ts +1 -1
  497. package/dist/usage-limits.js +74 -73
  498. package/dist/v1/config/agent.js +1 -1
  499. package/dist/v1/config/command.js +3 -3
  500. package/dist/v1/config/mcp.js +3 -3
  501. package/dist/v1/config/migrate.js +75 -74
  502. package/dist/v1/config/plugin.js +3 -3
  503. package/dist/v1/config/provider.js +3 -3
  504. package/dist/variant.js +77 -76
  505. package/dist/vcs.js +75 -74
  506. package/dist/voice.js +68 -67
  507. package/dist/websearch.js +71 -70
  508. package/dist/wellknown/plugin.js +63 -62
  509. package/dist/wellknown.js +66 -65
  510. package/dist/workspace/driver.js +5 -5
  511. package/dist/workspace.js +69 -68
  512. package/dist/worktree/directory.js +1 -1
  513. package/dist/worktree/git.js +7 -7
  514. package/dist/worktree/sql.js +3 -3
  515. package/dist/worktree/strategies.js +75 -74
  516. package/dist/worktree.js +81 -80
  517. package/package.json +8 -8
  518. package/dist/chunks/repository-fvnssjxv.js +0 -26
  519. package/dist/chunks/repository-qn96veqe.js +0 -257
  520. /package/dist/chunks/{repository-vykevjvn.js → repository-0t098hqn.js} +0 -0
  521. /package/dist/chunks/{repository-034tev2y.js → repository-aj7mw0zk.js} +0 -0
  522. /package/dist/chunks/{repository-8ykqf5wm.js → repository-drev6nd3.js} +0 -0
  523. /package/dist/chunks/{repository-d4v9tmah.js → repository-gn8tkhbf.js} +0 -0
  524. /package/dist/chunks/{repository-4j3arzw1.js → repository-h9zvag9j.js} +0 -0
  525. /package/dist/chunks/{repository-n7wq2c5f.js → repository-hzwmgw4t.js} +0 -0
@@ -1,10 +1,11 @@
1
1
  export * as SessionBlob from "./blob.js";
2
- import { Effect, Schema } from "effect";
2
+ import { Context, Effect, Schema } from "effect";
3
3
  import type { Attachment } from "@opencode/schema/prompt";
4
4
  import type { Database } from "../database/database.js";
5
+ import type { Instance } from "../instance/service.js";
5
6
  import type { SessionMessage } from "./message.js";
6
7
  import type { SessionSchema } from "./schema.js";
7
- import { SessionInboxTable, SessionMessageTable } from "./sql.js";
8
+ import { BlobTable, SessionInboxTable, SessionMessageTable } from "./sql.js";
8
9
  import { SessionStored } from "./stored.js";
9
10
  type DatabaseService = Database.Interface["db"];
10
11
  type MessageRow = typeof SessionMessageTable.$inferSelect;
@@ -1802,6 +1803,28 @@ export interface Owner {
1802
1803
  }
1803
1804
  /** Reads `experimental.media_blob` from the Config in scope on every call; without one, it is off. */
1804
1805
  export declare const enabled: Effect.Effect<boolean, never, never>;
1806
+ /**
1807
+ * {@link enabled} as `session`'s location configures it, where its media is written. Off when that location can't
1808
+ * boot or load its config, which surfaces as defects too, so a broken location never fails the caller.
1809
+ */
1810
+ export declare const enabledFor: (instances: Instance.Interface, session: SessionSchema.Info) => Effect.Effect<boolean, never, never>;
1811
+ /**
1812
+ * Whether a fork's projection stores the child's copied media as blobs. `Session.fork` sets it from the parent's
1813
+ * location; the projection ignores the caller's own config, and a replayed fork without it copies media inline.
1814
+ */
1815
+ export declare const ForkMedia: Context.Reference<boolean>;
1816
+ /** Inserts blobs, keeping any that already exist. */
1817
+ export declare const save: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1818
+ $client: import("effect/sql/SqlClient").SqlClient;
1819
+ }, blobs: readonly {
1820
+ bytes: number;
1821
+ data: Buffer<ArrayBufferLike>;
1822
+ hash: string;
1823
+ height?: number | null | undefined;
1824
+ mime: string;
1825
+ time_created?: number | undefined;
1826
+ width?: number | null | undefined;
1827
+ }[]) => Effect.Effect<void, never, never>;
1805
1828
  /** {@link externalize} for a user message or pending inbox user payload. */
1806
1829
  export declare const externalizePayload: <T extends {
1807
1830
  readonly files?: ReadonlyArray<SessionStored.File>;
@@ -1819,24 +1842,19 @@ export declare const externalize: (db: import("../database/drizzle.js").EffectSQ
1819
1842
  * Moves a stored row's inline media into blobs whatever the flag says, for offline backfills. Returns the row to
1820
1843
  * store (the same object when nothing moved), the blobs to insert, and every hash the row then names.
1821
1844
  */
1822
- export declare function split(data: MessageRow["data"] | InboxRow["payload"]): {
1823
- data: import("@opencode/schema/session-inbox").CompactionPayload;
1845
+ export declare function split<T extends MessageRow["data"] | InboxRow["payload"]>(data: T): {
1846
+ data: T;
1824
1847
  moved: boolean;
1825
- blobs: {
1826
- bytes: number;
1827
- data: Buffer<ArrayBufferLike>;
1828
- hash: string;
1829
- height?: number | null | undefined;
1830
- mime: string;
1831
- time_created?: number | undefined;
1832
- width?: number | null | undefined;
1833
- }[];
1848
+ blobs: Array<typeof BlobTable.$inferInsert>;
1834
1849
  hashes: Set<string>;
1835
1850
  };
1836
- /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
1837
- export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1851
+ /**
1852
+ * {@link split} for a message row copied into another session by a fork: saves the moved blobs and returns the row
1853
+ * to store. Callers check {@link ForkMedia} and record the copy's refs.
1854
+ */
1855
+ export declare const externalizeRow: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1838
1856
  $client: import("effect/sql/SqlClient").SqlClient;
1839
- }, owner: Owner, data: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload | (Omit<{
1857
+ }, data: Omit<{
1840
1858
  readonly id: string;
1841
1859
  readonly metadata?: {
1842
1860
  readonly [x: string]: unknown;
@@ -2255,7 +2273,856 @@ export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQL
2255
2273
  } | undefined;
2256
2274
  readonly uri: string;
2257
2275
  })[] | undefined;
2258
- }, "id" | "type">)) => Effect.Effect<void, never, never>;
2276
+ }, "id" | "type">) => Effect.Effect<Omit<{
2277
+ readonly id: string;
2278
+ readonly metadata?: {
2279
+ readonly [x: string]: unknown;
2280
+ } | undefined;
2281
+ readonly time: {
2282
+ readonly created: number;
2283
+ };
2284
+ readonly type: "agent-switched";
2285
+ readonly agent: string;
2286
+ readonly previous?: string | undefined;
2287
+ }, "id" | "type"> | Omit<{
2288
+ readonly id: string;
2289
+ readonly metadata?: {
2290
+ readonly [x: string]: unknown;
2291
+ } | undefined;
2292
+ readonly time: {
2293
+ readonly created: number;
2294
+ };
2295
+ readonly type: "model-switched";
2296
+ readonly model: {
2297
+ readonly id: string;
2298
+ readonly providerID: string;
2299
+ readonly variant?: string | undefined;
2300
+ };
2301
+ readonly previous?: {
2302
+ readonly id: string;
2303
+ readonly providerID: string;
2304
+ readonly variant?: string | undefined;
2305
+ } | undefined;
2306
+ }, "id" | "type"> | Omit<{
2307
+ readonly id: string;
2308
+ readonly metadata?: {
2309
+ readonly [x: string]: unknown;
2310
+ } | undefined;
2311
+ readonly time: {
2312
+ readonly created: number;
2313
+ };
2314
+ readonly type: "location-switched";
2315
+ readonly location: {
2316
+ readonly directory: string;
2317
+ readonly workspaceID?: string | undefined;
2318
+ };
2319
+ readonly projectID?: string | undefined;
2320
+ readonly subpath?: string | undefined;
2321
+ readonly previous?: {
2322
+ readonly location: {
2323
+ readonly directory: string;
2324
+ readonly workspaceID?: string | undefined;
2325
+ };
2326
+ readonly projectID?: string | undefined;
2327
+ readonly subpath?: string | undefined;
2328
+ } | undefined;
2329
+ }, "id" | "type"> | Omit<{
2330
+ readonly id: string;
2331
+ readonly metadata?: {
2332
+ readonly [x: string]: unknown;
2333
+ } | undefined;
2334
+ readonly time: {
2335
+ readonly created: number;
2336
+ };
2337
+ readonly text: string;
2338
+ readonly description?: string | undefined;
2339
+ readonly type: "synthetic";
2340
+ }, "id" | "type"> | Omit<{
2341
+ readonly id: string;
2342
+ readonly metadata?: {
2343
+ readonly [x: string]: unknown;
2344
+ } | undefined;
2345
+ readonly time: {
2346
+ readonly created: number;
2347
+ };
2348
+ readonly type: "system";
2349
+ readonly text: string;
2350
+ readonly description?: string | undefined;
2351
+ }, "id" | "type"> | Omit<{
2352
+ readonly id: string;
2353
+ readonly metadata?: {
2354
+ readonly [x: string]: unknown;
2355
+ } | undefined;
2356
+ readonly time: {
2357
+ readonly created: number;
2358
+ };
2359
+ readonly type: "skill";
2360
+ readonly skill: string;
2361
+ readonly name: string;
2362
+ readonly text: string;
2363
+ }, "id" | "type"> | Omit<{
2364
+ readonly id: string;
2365
+ readonly metadata?: {
2366
+ readonly [x: string]: unknown;
2367
+ } | undefined;
2368
+ readonly type: "shell";
2369
+ readonly shellID: string;
2370
+ readonly command: string;
2371
+ readonly status: "exited" | "killed" | "running" | "timeout";
2372
+ readonly exit?: number | undefined;
2373
+ readonly output?: {
2374
+ readonly output: string;
2375
+ readonly cursor: number;
2376
+ readonly size: number;
2377
+ readonly truncated: boolean;
2378
+ } | undefined;
2379
+ readonly time: {
2380
+ readonly created: number;
2381
+ readonly completed?: number | undefined;
2382
+ };
2383
+ }, "id" | "type"> | Omit<{
2384
+ readonly id: string;
2385
+ readonly metadata?: {
2386
+ readonly [x: string]: unknown;
2387
+ } | undefined;
2388
+ readonly type: "assistant";
2389
+ readonly agent: string;
2390
+ readonly model: {
2391
+ readonly id: string;
2392
+ readonly providerID: string;
2393
+ readonly variant?: string | undefined;
2394
+ };
2395
+ readonly content: readonly ({
2396
+ readonly type: "tool";
2397
+ readonly id: string;
2398
+ readonly name: string;
2399
+ readonly executed?: boolean | undefined;
2400
+ readonly native?: {
2401
+ readonly [x: string]: unknown;
2402
+ } | undefined;
2403
+ readonly state: {
2404
+ readonly status: "streaming";
2405
+ readonly input: string;
2406
+ } | {
2407
+ readonly status: "running";
2408
+ readonly input: {
2409
+ readonly [x: string]: unknown;
2410
+ };
2411
+ readonly metadata: {
2412
+ readonly [x: string]: Schema.Json;
2413
+ };
2414
+ } | {
2415
+ readonly status: "completed";
2416
+ readonly input: {
2417
+ readonly [x: string]: unknown;
2418
+ };
2419
+ readonly content: readonly [{
2420
+ readonly type: "text";
2421
+ readonly text: string;
2422
+ } | {
2423
+ readonly type: "file";
2424
+ readonly uri: string;
2425
+ readonly mime: string;
2426
+ readonly name?: string | undefined;
2427
+ }, ...({
2428
+ readonly type: "text";
2429
+ readonly text: string;
2430
+ } | {
2431
+ readonly type: "file";
2432
+ readonly uri: string;
2433
+ readonly mime: string;
2434
+ readonly name?: string | undefined;
2435
+ })[]];
2436
+ readonly metadata?: {
2437
+ readonly [x: string]: Schema.Json;
2438
+ } | undefined;
2439
+ } | {
2440
+ readonly status: "error";
2441
+ readonly input: {
2442
+ readonly [x: string]: unknown;
2443
+ };
2444
+ readonly error: {
2445
+ readonly type: string;
2446
+ readonly message: string;
2447
+ readonly status?: number | undefined;
2448
+ readonly response?: {
2449
+ readonly body: string;
2450
+ } | undefined;
2451
+ readonly retryAfterMs?: number | undefined;
2452
+ };
2453
+ readonly content?: readonly [{
2454
+ readonly type: "text";
2455
+ readonly text: string;
2456
+ } | {
2457
+ readonly type: "file";
2458
+ readonly uri: string;
2459
+ readonly mime: string;
2460
+ readonly name?: string | undefined;
2461
+ }, ...({
2462
+ readonly type: "text";
2463
+ readonly text: string;
2464
+ } | {
2465
+ readonly type: "file";
2466
+ readonly uri: string;
2467
+ readonly mime: string;
2468
+ readonly name?: string | undefined;
2469
+ })[]] | undefined;
2470
+ readonly metadata?: {
2471
+ readonly [x: string]: Schema.Json;
2472
+ } | undefined;
2473
+ };
2474
+ readonly time: {
2475
+ readonly created: number;
2476
+ readonly ran?: number | undefined;
2477
+ readonly completed?: number | undefined;
2478
+ };
2479
+ } | {
2480
+ readonly type: "text";
2481
+ readonly text: string;
2482
+ readonly native?: {
2483
+ readonly [x: string]: unknown;
2484
+ } | undefined;
2485
+ } | {
2486
+ readonly type: "reasoning";
2487
+ readonly text: string;
2488
+ readonly native?: {
2489
+ readonly [x: string]: unknown;
2490
+ } | undefined;
2491
+ readonly time?: {
2492
+ readonly created: number;
2493
+ readonly completed?: number | undefined;
2494
+ } | undefined;
2495
+ })[];
2496
+ readonly snapshot?: {
2497
+ readonly start?: string | undefined;
2498
+ readonly end?: string | undefined;
2499
+ readonly files?: readonly string[] | undefined;
2500
+ } | undefined;
2501
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
2502
+ readonly rawFinish?: string | undefined;
2503
+ readonly native?: {
2504
+ readonly [x: string]: unknown;
2505
+ } | undefined;
2506
+ readonly cost?: number | undefined;
2507
+ readonly tokens?: {
2508
+ readonly input: number;
2509
+ readonly output: number;
2510
+ readonly reasoning: number;
2511
+ readonly cache: {
2512
+ readonly read: number;
2513
+ readonly write: number;
2514
+ };
2515
+ } | undefined;
2516
+ readonly error?: {
2517
+ readonly type: string;
2518
+ readonly message: string;
2519
+ readonly status?: number | undefined;
2520
+ readonly response?: {
2521
+ readonly body: string;
2522
+ } | undefined;
2523
+ readonly retryAfterMs?: number | undefined;
2524
+ } | undefined;
2525
+ readonly retry?: {
2526
+ readonly attempt: number;
2527
+ readonly at: number;
2528
+ readonly error: {
2529
+ readonly type: string;
2530
+ readonly message: string;
2531
+ readonly status?: number | undefined;
2532
+ readonly response?: {
2533
+ readonly body: string;
2534
+ } | undefined;
2535
+ readonly retryAfterMs?: number | undefined;
2536
+ };
2537
+ } | undefined;
2538
+ readonly time: {
2539
+ readonly created: number;
2540
+ readonly streamed?: number | undefined;
2541
+ readonly completed?: number | undefined;
2542
+ };
2543
+ }, "id" | "type"> | Omit<{
2544
+ readonly id: string;
2545
+ readonly metadata?: {
2546
+ readonly [x: string]: unknown;
2547
+ } | undefined;
2548
+ readonly time: {
2549
+ readonly created: number;
2550
+ };
2551
+ readonly type: "compaction";
2552
+ readonly status: "running";
2553
+ readonly reason: "auto" | "manual";
2554
+ readonly summary: string;
2555
+ }, "id" | "type"> | Omit<{
2556
+ readonly id: string;
2557
+ readonly metadata?: {
2558
+ readonly [x: string]: unknown;
2559
+ } | undefined;
2560
+ readonly time: {
2561
+ readonly created: number;
2562
+ };
2563
+ readonly type: "compaction";
2564
+ readonly cost?: number | undefined;
2565
+ readonly tokens?: {
2566
+ readonly input: number;
2567
+ readonly output: number;
2568
+ readonly reasoning: number;
2569
+ readonly cache: {
2570
+ readonly read: number;
2571
+ readonly write: number;
2572
+ };
2573
+ } | undefined;
2574
+ readonly status: "completed";
2575
+ readonly reason: "auto" | "manual";
2576
+ readonly model?: {
2577
+ readonly id: string;
2578
+ readonly providerID: string;
2579
+ readonly variant?: string | undefined;
2580
+ } | undefined;
2581
+ readonly native?: {
2582
+ readonly [x: string]: unknown;
2583
+ } | undefined;
2584
+ readonly summary: string;
2585
+ }, "id" | "type"> | Omit<{
2586
+ readonly id: string;
2587
+ readonly metadata?: {
2588
+ readonly [x: string]: unknown;
2589
+ } | undefined;
2590
+ readonly time: {
2591
+ readonly created: number;
2592
+ };
2593
+ readonly type: "compaction";
2594
+ readonly cost?: number | undefined;
2595
+ readonly tokens?: {
2596
+ readonly input: number;
2597
+ readonly output: number;
2598
+ readonly reasoning: number;
2599
+ readonly cache: {
2600
+ readonly read: number;
2601
+ readonly write: number;
2602
+ };
2603
+ } | undefined;
2604
+ readonly status: "failed";
2605
+ readonly reason: "auto" | "manual";
2606
+ readonly error: {
2607
+ readonly type: string;
2608
+ readonly message: string;
2609
+ readonly status?: number | undefined;
2610
+ readonly response?: {
2611
+ readonly body: string;
2612
+ } | undefined;
2613
+ readonly retryAfterMs?: number | undefined;
2614
+ };
2615
+ }, "id" | "type"> | Omit<{
2616
+ readonly id: string;
2617
+ readonly metadata?: {
2618
+ readonly [x: string]: unknown;
2619
+ } | undefined;
2620
+ readonly time: {
2621
+ readonly created: number;
2622
+ };
2623
+ readonly type: "idle";
2624
+ readonly outcome: "failed" | "interrupted" | "succeeded";
2625
+ readonly error?: {
2626
+ readonly type: string;
2627
+ readonly message: string;
2628
+ readonly status?: number | undefined;
2629
+ readonly response?: {
2630
+ readonly body: string;
2631
+ } | undefined;
2632
+ readonly retryAfterMs?: number | undefined;
2633
+ } | undefined;
2634
+ }, "id" | "type"> | Omit<{
2635
+ readonly id: string;
2636
+ readonly metadata?: {
2637
+ readonly [x: string]: unknown;
2638
+ } | undefined;
2639
+ readonly time: {
2640
+ readonly created: number;
2641
+ };
2642
+ readonly text: string;
2643
+ readonly agents?: readonly {
2644
+ readonly name: string;
2645
+ readonly mention?: {
2646
+ readonly start: number;
2647
+ readonly end: number;
2648
+ readonly text: string;
2649
+ } | undefined;
2650
+ }[] | undefined;
2651
+ readonly skills?: readonly {
2652
+ readonly id: string;
2653
+ readonly name: string;
2654
+ readonly text?: string | undefined;
2655
+ readonly mention?: {
2656
+ readonly start: number;
2657
+ readonly end: number;
2658
+ readonly text: string;
2659
+ } | undefined;
2660
+ }[] | undefined;
2661
+ readonly type: "user";
2662
+ readonly files?: readonly ({
2663
+ readonly data: string;
2664
+ readonly mime: string;
2665
+ readonly source: {
2666
+ readonly type: "inline";
2667
+ } | {
2668
+ readonly type: "uri";
2669
+ readonly uri: string;
2670
+ };
2671
+ readonly name?: string | undefined;
2672
+ readonly description?: string | undefined;
2673
+ readonly mention?: {
2674
+ readonly start: number;
2675
+ readonly end: number;
2676
+ readonly text: string;
2677
+ } | undefined;
2678
+ } | {
2679
+ readonly mime: string;
2680
+ readonly source: {
2681
+ readonly type: "inline";
2682
+ } | {
2683
+ readonly type: "uri";
2684
+ readonly uri: string;
2685
+ };
2686
+ readonly name?: string | undefined;
2687
+ readonly description?: string | undefined;
2688
+ readonly mention?: {
2689
+ readonly start: number;
2690
+ readonly end: number;
2691
+ readonly text: string;
2692
+ } | undefined;
2693
+ readonly uri: string;
2694
+ })[] | undefined;
2695
+ }, "id" | "type">, never, never>;
2696
+ /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
2697
+ export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2698
+ $client: import("effect/sql/SqlClient").SqlClient;
2699
+ }, owner: Owner, data: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload | (Omit<{
2700
+ readonly id: string;
2701
+ readonly metadata?: {
2702
+ readonly [x: string]: unknown;
2703
+ } | undefined;
2704
+ readonly time: {
2705
+ readonly created: number;
2706
+ };
2707
+ readonly type: "agent-switched";
2708
+ readonly agent: string;
2709
+ readonly previous?: string | undefined;
2710
+ }, "id" | "type"> | Omit<{
2711
+ readonly id: string;
2712
+ readonly metadata?: {
2713
+ readonly [x: string]: unknown;
2714
+ } | undefined;
2715
+ readonly time: {
2716
+ readonly created: number;
2717
+ };
2718
+ readonly type: "model-switched";
2719
+ readonly model: {
2720
+ readonly id: string;
2721
+ readonly providerID: string;
2722
+ readonly variant?: string | undefined;
2723
+ };
2724
+ readonly previous?: {
2725
+ readonly id: string;
2726
+ readonly providerID: string;
2727
+ readonly variant?: string | undefined;
2728
+ } | undefined;
2729
+ }, "id" | "type"> | Omit<{
2730
+ readonly id: string;
2731
+ readonly metadata?: {
2732
+ readonly [x: string]: unknown;
2733
+ } | undefined;
2734
+ readonly time: {
2735
+ readonly created: number;
2736
+ };
2737
+ readonly type: "location-switched";
2738
+ readonly location: {
2739
+ readonly directory: string;
2740
+ readonly workspaceID?: string | undefined;
2741
+ };
2742
+ readonly projectID?: string | undefined;
2743
+ readonly subpath?: string | undefined;
2744
+ readonly previous?: {
2745
+ readonly location: {
2746
+ readonly directory: string;
2747
+ readonly workspaceID?: string | undefined;
2748
+ };
2749
+ readonly projectID?: string | undefined;
2750
+ readonly subpath?: string | undefined;
2751
+ } | undefined;
2752
+ }, "id" | "type"> | Omit<{
2753
+ readonly id: string;
2754
+ readonly metadata?: {
2755
+ readonly [x: string]: unknown;
2756
+ } | undefined;
2757
+ readonly time: {
2758
+ readonly created: number;
2759
+ };
2760
+ readonly text: string;
2761
+ readonly description?: string | undefined;
2762
+ readonly type: "synthetic";
2763
+ }, "id" | "type"> | Omit<{
2764
+ readonly id: string;
2765
+ readonly metadata?: {
2766
+ readonly [x: string]: unknown;
2767
+ } | undefined;
2768
+ readonly time: {
2769
+ readonly created: number;
2770
+ };
2771
+ readonly type: "system";
2772
+ readonly text: string;
2773
+ readonly description?: string | undefined;
2774
+ }, "id" | "type"> | Omit<{
2775
+ readonly id: string;
2776
+ readonly metadata?: {
2777
+ readonly [x: string]: unknown;
2778
+ } | undefined;
2779
+ readonly time: {
2780
+ readonly created: number;
2781
+ };
2782
+ readonly type: "skill";
2783
+ readonly skill: string;
2784
+ readonly name: string;
2785
+ readonly text: string;
2786
+ }, "id" | "type"> | Omit<{
2787
+ readonly id: string;
2788
+ readonly metadata?: {
2789
+ readonly [x: string]: unknown;
2790
+ } | undefined;
2791
+ readonly type: "shell";
2792
+ readonly shellID: string;
2793
+ readonly command: string;
2794
+ readonly status: "exited" | "killed" | "running" | "timeout";
2795
+ readonly exit?: number | undefined;
2796
+ readonly output?: {
2797
+ readonly output: string;
2798
+ readonly cursor: number;
2799
+ readonly size: number;
2800
+ readonly truncated: boolean;
2801
+ } | undefined;
2802
+ readonly time: {
2803
+ readonly created: number;
2804
+ readonly completed?: number | undefined;
2805
+ };
2806
+ }, "id" | "type"> | Omit<{
2807
+ readonly id: string;
2808
+ readonly metadata?: {
2809
+ readonly [x: string]: unknown;
2810
+ } | undefined;
2811
+ readonly type: "assistant";
2812
+ readonly agent: string;
2813
+ readonly model: {
2814
+ readonly id: string;
2815
+ readonly providerID: string;
2816
+ readonly variant?: string | undefined;
2817
+ };
2818
+ readonly content: readonly ({
2819
+ readonly type: "tool";
2820
+ readonly id: string;
2821
+ readonly name: string;
2822
+ readonly executed?: boolean | undefined;
2823
+ readonly native?: {
2824
+ readonly [x: string]: unknown;
2825
+ } | undefined;
2826
+ readonly state: {
2827
+ readonly status: "streaming";
2828
+ readonly input: string;
2829
+ } | {
2830
+ readonly status: "running";
2831
+ readonly input: {
2832
+ readonly [x: string]: unknown;
2833
+ };
2834
+ readonly metadata: {
2835
+ readonly [x: string]: Schema.Json;
2836
+ };
2837
+ } | {
2838
+ readonly status: "completed";
2839
+ readonly input: {
2840
+ readonly [x: string]: unknown;
2841
+ };
2842
+ readonly content: readonly [{
2843
+ readonly type: "text";
2844
+ readonly text: string;
2845
+ } | {
2846
+ readonly type: "file";
2847
+ readonly uri: string;
2848
+ readonly mime: string;
2849
+ readonly name?: string | undefined;
2850
+ }, ...({
2851
+ readonly type: "text";
2852
+ readonly text: string;
2853
+ } | {
2854
+ readonly type: "file";
2855
+ readonly uri: string;
2856
+ readonly mime: string;
2857
+ readonly name?: string | undefined;
2858
+ })[]];
2859
+ readonly metadata?: {
2860
+ readonly [x: string]: Schema.Json;
2861
+ } | undefined;
2862
+ } | {
2863
+ readonly status: "error";
2864
+ readonly input: {
2865
+ readonly [x: string]: unknown;
2866
+ };
2867
+ readonly error: {
2868
+ readonly type: string;
2869
+ readonly message: string;
2870
+ readonly status?: number | undefined;
2871
+ readonly response?: {
2872
+ readonly body: string;
2873
+ } | undefined;
2874
+ readonly retryAfterMs?: number | undefined;
2875
+ };
2876
+ readonly content?: readonly [{
2877
+ readonly type: "text";
2878
+ readonly text: string;
2879
+ } | {
2880
+ readonly type: "file";
2881
+ readonly uri: string;
2882
+ readonly mime: string;
2883
+ readonly name?: string | undefined;
2884
+ }, ...({
2885
+ readonly type: "text";
2886
+ readonly text: string;
2887
+ } | {
2888
+ readonly type: "file";
2889
+ readonly uri: string;
2890
+ readonly mime: string;
2891
+ readonly name?: string | undefined;
2892
+ })[]] | undefined;
2893
+ readonly metadata?: {
2894
+ readonly [x: string]: Schema.Json;
2895
+ } | undefined;
2896
+ };
2897
+ readonly time: {
2898
+ readonly created: number;
2899
+ readonly ran?: number | undefined;
2900
+ readonly completed?: number | undefined;
2901
+ };
2902
+ } | {
2903
+ readonly type: "text";
2904
+ readonly text: string;
2905
+ readonly native?: {
2906
+ readonly [x: string]: unknown;
2907
+ } | undefined;
2908
+ } | {
2909
+ readonly type: "reasoning";
2910
+ readonly text: string;
2911
+ readonly native?: {
2912
+ readonly [x: string]: unknown;
2913
+ } | undefined;
2914
+ readonly time?: {
2915
+ readonly created: number;
2916
+ readonly completed?: number | undefined;
2917
+ } | undefined;
2918
+ })[];
2919
+ readonly snapshot?: {
2920
+ readonly start?: string | undefined;
2921
+ readonly end?: string | undefined;
2922
+ readonly files?: readonly string[] | undefined;
2923
+ } | undefined;
2924
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
2925
+ readonly rawFinish?: string | undefined;
2926
+ readonly native?: {
2927
+ readonly [x: string]: unknown;
2928
+ } | undefined;
2929
+ readonly cost?: number | undefined;
2930
+ readonly tokens?: {
2931
+ readonly input: number;
2932
+ readonly output: number;
2933
+ readonly reasoning: number;
2934
+ readonly cache: {
2935
+ readonly read: number;
2936
+ readonly write: number;
2937
+ };
2938
+ } | undefined;
2939
+ readonly error?: {
2940
+ readonly type: string;
2941
+ readonly message: string;
2942
+ readonly status?: number | undefined;
2943
+ readonly response?: {
2944
+ readonly body: string;
2945
+ } | undefined;
2946
+ readonly retryAfterMs?: number | undefined;
2947
+ } | undefined;
2948
+ readonly retry?: {
2949
+ readonly attempt: number;
2950
+ readonly at: number;
2951
+ readonly error: {
2952
+ readonly type: string;
2953
+ readonly message: string;
2954
+ readonly status?: number | undefined;
2955
+ readonly response?: {
2956
+ readonly body: string;
2957
+ } | undefined;
2958
+ readonly retryAfterMs?: number | undefined;
2959
+ };
2960
+ } | undefined;
2961
+ readonly time: {
2962
+ readonly created: number;
2963
+ readonly streamed?: number | undefined;
2964
+ readonly completed?: number | undefined;
2965
+ };
2966
+ }, "id" | "type"> | Omit<{
2967
+ readonly id: string;
2968
+ readonly metadata?: {
2969
+ readonly [x: string]: unknown;
2970
+ } | undefined;
2971
+ readonly time: {
2972
+ readonly created: number;
2973
+ };
2974
+ readonly type: "compaction";
2975
+ readonly status: "running";
2976
+ readonly reason: "auto" | "manual";
2977
+ readonly summary: string;
2978
+ }, "id" | "type"> | Omit<{
2979
+ readonly id: string;
2980
+ readonly metadata?: {
2981
+ readonly [x: string]: unknown;
2982
+ } | undefined;
2983
+ readonly time: {
2984
+ readonly created: number;
2985
+ };
2986
+ readonly type: "compaction";
2987
+ readonly cost?: number | undefined;
2988
+ readonly tokens?: {
2989
+ readonly input: number;
2990
+ readonly output: number;
2991
+ readonly reasoning: number;
2992
+ readonly cache: {
2993
+ readonly read: number;
2994
+ readonly write: number;
2995
+ };
2996
+ } | undefined;
2997
+ readonly status: "completed";
2998
+ readonly reason: "auto" | "manual";
2999
+ readonly model?: {
3000
+ readonly id: string;
3001
+ readonly providerID: string;
3002
+ readonly variant?: string | undefined;
3003
+ } | undefined;
3004
+ readonly native?: {
3005
+ readonly [x: string]: unknown;
3006
+ } | undefined;
3007
+ readonly summary: string;
3008
+ }, "id" | "type"> | Omit<{
3009
+ readonly id: string;
3010
+ readonly metadata?: {
3011
+ readonly [x: string]: unknown;
3012
+ } | undefined;
3013
+ readonly time: {
3014
+ readonly created: number;
3015
+ };
3016
+ readonly type: "compaction";
3017
+ readonly cost?: number | undefined;
3018
+ readonly tokens?: {
3019
+ readonly input: number;
3020
+ readonly output: number;
3021
+ readonly reasoning: number;
3022
+ readonly cache: {
3023
+ readonly read: number;
3024
+ readonly write: number;
3025
+ };
3026
+ } | undefined;
3027
+ readonly status: "failed";
3028
+ readonly reason: "auto" | "manual";
3029
+ readonly error: {
3030
+ readonly type: string;
3031
+ readonly message: string;
3032
+ readonly status?: number | undefined;
3033
+ readonly response?: {
3034
+ readonly body: string;
3035
+ } | undefined;
3036
+ readonly retryAfterMs?: number | undefined;
3037
+ };
3038
+ }, "id" | "type"> | Omit<{
3039
+ readonly id: string;
3040
+ readonly metadata?: {
3041
+ readonly [x: string]: unknown;
3042
+ } | undefined;
3043
+ readonly time: {
3044
+ readonly created: number;
3045
+ };
3046
+ readonly type: "idle";
3047
+ readonly outcome: "failed" | "interrupted" | "succeeded";
3048
+ readonly error?: {
3049
+ readonly type: string;
3050
+ readonly message: string;
3051
+ readonly status?: number | undefined;
3052
+ readonly response?: {
3053
+ readonly body: string;
3054
+ } | undefined;
3055
+ readonly retryAfterMs?: number | undefined;
3056
+ } | undefined;
3057
+ }, "id" | "type"> | Omit<{
3058
+ readonly id: string;
3059
+ readonly metadata?: {
3060
+ readonly [x: string]: unknown;
3061
+ } | undefined;
3062
+ readonly time: {
3063
+ readonly created: number;
3064
+ };
3065
+ readonly text: string;
3066
+ readonly agents?: readonly {
3067
+ readonly name: string;
3068
+ readonly mention?: {
3069
+ readonly start: number;
3070
+ readonly end: number;
3071
+ readonly text: string;
3072
+ } | undefined;
3073
+ }[] | undefined;
3074
+ readonly skills?: readonly {
3075
+ readonly id: string;
3076
+ readonly name: string;
3077
+ readonly text?: string | undefined;
3078
+ readonly mention?: {
3079
+ readonly start: number;
3080
+ readonly end: number;
3081
+ readonly text: string;
3082
+ } | undefined;
3083
+ }[] | undefined;
3084
+ readonly type: "user";
3085
+ readonly files?: readonly ({
3086
+ readonly data: string;
3087
+ readonly mime: string;
3088
+ readonly source: {
3089
+ readonly type: "inline";
3090
+ } | {
3091
+ readonly type: "uri";
3092
+ readonly uri: string;
3093
+ };
3094
+ readonly name?: string | undefined;
3095
+ readonly description?: string | undefined;
3096
+ readonly mention?: {
3097
+ readonly start: number;
3098
+ readonly end: number;
3099
+ readonly text: string;
3100
+ } | undefined;
3101
+ } | {
3102
+ readonly mime: string;
3103
+ readonly source: {
3104
+ readonly type: "inline";
3105
+ } | {
3106
+ readonly type: "uri";
3107
+ readonly uri: string;
3108
+ };
3109
+ readonly name?: string | undefined;
3110
+ readonly description?: string | undefined;
3111
+ readonly mention?: {
3112
+ readonly start: number;
3113
+ readonly end: number;
3114
+ readonly text: string;
3115
+ } | undefined;
3116
+ readonly uri: string;
3117
+ })[] | undefined;
3118
+ }, "id" | "type">)) => Effect.Effect<void, never, never>;
3119
+ /**
3120
+ * {@link recordRefs} for the given hashes only, such as the blobs an import took out of its own inline data, so
3121
+ * refs it carried in can't keep or expose blobs it never held.
3122
+ */
3123
+ export declare const recordHashes: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
3124
+ $client: import("effect/sql/SqlClient").SqlClient;
3125
+ }, owner: Owner, hashes: ReadonlySet<string>) => Effect.Effect<void, never, never>;
2259
3126
  /** Records the refs a rewritten message names and releases the ones it no longer does. */
2260
3127
  export declare const syncRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2261
3128
  $client: import("effect/sql/SqlClient").SqlClient;