@opencode/core 0.0.0-dev-605 → 0.0.0-dev-639

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 (933) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +90 -90
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +108 -108
  5. package/dist/app.js +7 -7
  6. package/dist/artifact.js +239 -238
  7. package/dist/bus.js +84 -84
  8. package/dist/chunks/{repository-cache-kqz76vss.js → state-005hgbmc.js} +6 -6
  9. package/dist/chunks/{repository-cache-0gk8k154.js → state-03ytfdv2.js} +56 -56
  10. package/dist/chunks/{repository-cache-31hb070v.js → state-058yze6e.js} +300 -103
  11. package/dist/chunks/{repository-cache-93ctvjtr.js → state-0702g9ty.js} +13 -13
  12. package/dist/chunks/{repository-cache-g4qx8njx.js → state-0afahd95.js} +10 -10
  13. package/dist/chunks/{repository-cache-bq8k2rb4.js → state-0ah14zvb.js} +30 -30
  14. package/dist/chunks/{repository-cache-27zyrpv6.js → state-0hknhewd.js} +7 -7
  15. package/dist/chunks/{repository-cache-sqjzf8x2.js → state-0j7gp832.js} +4 -4
  16. package/dist/chunks/{repository-cache-0ma9gw4f.js → state-0ma9gw4f.js} +2 -2
  17. package/dist/chunks/{repository-cache-0mgprbja.js → state-0mgprbja.js} +4 -4
  18. package/dist/chunks/{repository-cache-ydbbrfg1.js → state-0pzjnp4k.js} +5 -5
  19. package/dist/chunks/{repository-cache-xjbsd7zy.js → state-0x9bxa2j.js} +9 -9
  20. package/dist/chunks/{repository-cache-shqt4tg1.js → state-0zawj110.js} +19 -19
  21. package/dist/chunks/{repository-cache-1aqsckx4.js → state-1aqsckx4.js} +1 -1
  22. package/dist/chunks/{repository-cache-3hg9251g.js → state-1ey5qnnv.js} +27 -27
  23. package/dist/chunks/{repository-cache-49hd1xwg.js → state-1f4wmeda.js} +8 -8
  24. package/dist/chunks/{repository-cache-vajcf8z8.js → state-1nnzvr93.js} +11 -11
  25. package/dist/chunks/{repository-cache-bsjf3n8a.js → state-1ns54vtm.js} +28 -28
  26. package/dist/chunks/{repository-cache-9dwca51d.js → state-1p1x9nxz.js} +36 -36
  27. package/dist/chunks/{repository-cache-h861acdj.js → state-1pkqygy7.js} +43 -43
  28. package/dist/chunks/{repository-cache-9jtk5nne.js → state-1r5qzbyh.js} +9 -9
  29. package/dist/chunks/{repository-cache-hng2z574.js → state-1r6wypvn.js} +8 -8
  30. package/dist/chunks/{repository-cache-pkmmfs3s.js → state-1wzytdev.js} +31 -31
  31. package/dist/chunks/{repository-cache-1x2knyw4.js → state-1x2knyw4.js} +1 -1
  32. package/dist/chunks/{repository-cache-p2tq4kr4.js → state-1zb0f7xb.js} +4 -4
  33. package/dist/chunks/{repository-cache-b0v1b7fn.js → state-1zxzscwb.js} +17 -17
  34. package/dist/chunks/{repository-cache-1ks5bmjz.js → state-200c8bwh.js} +20 -20
  35. package/dist/chunks/{repository-cache-c82xecz8.js → state-22ywckht.js} +8 -8
  36. package/dist/chunks/{repository-cache-26wfx3k0.js → state-26wfx3k0.js} +1 -1
  37. package/dist/chunks/{repository-cache-27w5k9zf.js → state-27w5k9zf.js} +2 -2
  38. package/dist/chunks/{repository-cache-0hq8hh55.js → state-28rbnsxr.js} +4 -4
  39. package/dist/chunks/{repository-cache-tz8eqr11.js → state-2b2r7h3k.js} +9 -9
  40. package/dist/chunks/{repository-cache-2cdjxzfg.js → state-2cdjxzfg.js} +1 -1
  41. package/dist/chunks/{repository-cache-s4dd1dkr.js → state-2h02dkxy.js} +13 -13
  42. package/dist/chunks/{repository-cache-3xvjtn27.js → state-2hwamttx.js} +16 -16
  43. package/dist/chunks/{repository-cache-8n065enx.js → state-2jah2drd.js} +25 -25
  44. package/dist/chunks/{repository-cache-s1ba0vj0.js → state-2p60zmnr.js} +2 -2
  45. package/dist/chunks/{repository-cache-q5rkgeb7.js → state-2yg9jg90.js} +31 -31
  46. package/dist/chunks/{repository-cache-rwk2fnkc.js → state-30682yka.js} +3 -3
  47. package/dist/chunks/{repository-cache-ayf0r5fr.js → state-32x69y22.js} +18 -18
  48. package/dist/chunks/{repository-cache-rfpd92cq.js → state-3572fg0x.js} +14 -14
  49. package/dist/chunks/{repository-cache-pc5xv1xx.js → state-39fx35ej.js} +23 -23
  50. package/dist/chunks/{repository-cache-3cbjf1nt.js → state-3cbjf1nt.js} +2 -2
  51. package/dist/chunks/{repository-cache-d1bpbjnm.js → state-3dbwnewe.js} +43 -43
  52. package/dist/chunks/{repository-cache-3hepkmqq.js → state-3hepkmqq.js} +1 -1
  53. package/dist/chunks/{repository-cache-cq64w893.js → state-3m4ecmrv.js} +43 -43
  54. package/dist/chunks/{repository-cache-7fc7hhs4.js → state-3rhkght6.js} +27 -27
  55. package/dist/chunks/{repository-cache-2zg8vxn7.js → state-3rtabnqb.js} +12 -12
  56. package/dist/chunks/{repository-cache-cpvd08na.js → state-3ryz99p0.js} +4 -4
  57. package/dist/chunks/{repository-cache-4ke1hpwn.js → state-3zc0ew3n.js} +11 -11
  58. package/dist/chunks/{repository-cache-94t12mdt.js → state-40gk5z43.js} +29 -29
  59. package/dist/chunks/{repository-cache-40y6dtc2.js → state-40y6dtc2.js} +1 -1
  60. package/dist/chunks/{repository-cache-jxd6f16v.js → state-44pmzq9c.js} +2 -2
  61. package/dist/chunks/{repository-cache-barjrk5t.js → state-46gvyp4n.js} +32 -32
  62. package/dist/chunks/{repository-cache-zybks6b0.js → state-47xsyjcp.js} +5 -5
  63. package/dist/chunks/{repository-cache-x3nq4fqn.js → state-4bdwn29n.js} +8 -8
  64. package/dist/chunks/{repository-cache-4dx1dgte.js → state-4dx1dgte.js} +1 -1
  65. package/dist/chunks/{repository-cache-ewan1qgf.js → state-4ek5prqz.js} +59 -59
  66. package/dist/chunks/{repository-cache-4f25tdd0.js → state-4f25tdd0.js} +1 -1
  67. package/dist/chunks/{repository-cache-9f3jsh1d.js → state-4g3sdj5g.js} +9 -9
  68. package/dist/chunks/{repository-cache-27hvkd05.js → state-4m3x3yd1.js} +11 -11
  69. package/dist/chunks/{repository-cache-4pyp9zr9.js → state-4pyp9zr9.js} +1 -1
  70. package/dist/chunks/{repository-cache-t68b6a1a.js → state-4s8zsgt8.js} +47 -47
  71. package/dist/chunks/{repository-cache-gkyhj69x.js → state-4sk3nywx.js} +33 -33
  72. package/dist/chunks/{repository-cache-4v008n1t.js → state-4v008n1t.js} +1 -1
  73. package/dist/chunks/{repository-cache-s1dbe4ph.js → state-52dgcxsx.js} +17 -17
  74. package/dist/chunks/{repository-cache-jx8bmjsr.js → state-561j2z15.js} +4 -4
  75. package/dist/chunks/{repository-cache-vw7tgt0x.js → state-56js796r.js} +22 -22
  76. package/dist/chunks/{repository-cache-9v8670en.js → state-5c63qkqm.js} +18 -18
  77. package/dist/chunks/{repository-cache-5m9w47nd.js → state-5m9w47nd.js} +1 -1
  78. package/dist/chunks/{repository-cache-fksnpssn.js → state-5qm3ncyd.js} +41 -41
  79. package/dist/chunks/{repository-cache-25x0fh9y.js → state-63vhtyqq.js} +19 -19
  80. package/dist/chunks/{repository-cache-djadtdmr.js → state-64eehrrp.js} +8 -8
  81. package/dist/chunks/{repository-cache-jhwp234h.js → state-6dqyy18z.js} +4 -4
  82. package/dist/chunks/{repository-cache-nn2nd58t.js → state-6edbc7zm.js} +7 -7
  83. package/dist/chunks/{repository-cache-v2x3jtqh.js → state-6mksr8nq.js} +6 -6
  84. package/dist/chunks/{repository-cache-pjg7v7g5.js → state-6nnngxg4.js} +11 -11
  85. package/dist/chunks/{repository-cache-2ra1cvjf.js → state-6t8b10qe.js} +6 -6
  86. package/dist/chunks/{repository-cache-bjtg0brr.js → state-6w8cmh26.js} +9 -9
  87. package/dist/chunks/{repository-cache-n8p1a6g7.js → state-6z6h3x2w.js} +18 -18
  88. package/dist/chunks/{repository-cache-smhgbwgb.js → state-72pwv4xr.js} +15 -15
  89. package/dist/chunks/{repository-cache-f7nfmysm.js → state-73zcwtb4.js} +37 -37
  90. package/dist/chunks/{repository-cache-y58zdc56.js → state-77e1x0tb.js} +20 -20
  91. package/dist/chunks/{repository-cache-6y9mx2ek.js → state-78nzcbrg.js} +34 -34
  92. package/dist/chunks/{repository-cache-fkteqegr.js → state-797jepss.js} +25 -25
  93. package/dist/chunks/{repository-cache-4dc9r7jw.js → state-7b6jtnth.js} +6 -6
  94. package/dist/chunks/{repository-cache-7bmhse3q.js → state-7bmhse3q.js} +1 -1
  95. package/dist/chunks/{repository-cache-h5km7rmp.js → state-7d3s8vk4.js} +48 -48
  96. package/dist/chunks/{repository-cache-j1w6jv9f.js → state-7hmcdcr2.js} +3 -3
  97. package/dist/chunks/{repository-cache-rvc92y6q.js → state-7m5p5bky.js} +15 -15
  98. package/dist/chunks/{repository-cache-qj27ec1j.js → state-7nqkf5r1.js} +2 -2
  99. package/dist/chunks/{repository-cache-k55yvrq8.js → state-7te94ftx.js} +16 -16
  100. package/dist/chunks/{repository-cache-ra4eg6v2.js → state-7vqhr0z6.js} +13 -13
  101. package/dist/chunks/{repository-cache-7w2ypzdf.js → state-7w2ypzdf.js} +1 -1
  102. package/dist/chunks/{repository-cache-7weczvnd.js → state-7weczvnd.js} +1 -1
  103. package/dist/chunks/{repository-cache-w6312yaw.js → state-7x89mc78.js} +19 -19
  104. package/dist/chunks/{repository-cache-7z4ak66b.js → state-80m5xgxj.js} +8 -8
  105. package/dist/chunks/{repository-cache-775hqbnd.js → state-80mg3ag8.js} +3 -3
  106. package/dist/chunks/{repository-cache-82phgae0.js → state-82phgae0.js} +2 -2
  107. package/dist/chunks/{repository-cache-89287pr7.js → state-89287pr7.js} +1 -1
  108. package/dist/chunks/{repository-cache-v19wj8hw.js → state-89ejrav2.js} +1 -1
  109. package/dist/chunks/{repository-cache-w2sb21bb.js → state-89zbskah.js} +8 -8
  110. package/dist/chunks/{repository-cache-25h84942.js → state-8b3vzgkx.js} +4 -4
  111. package/dist/chunks/{repository-cache-5whx36p1.js → state-8cg7mtm3.js} +4 -4
  112. package/dist/chunks/{repository-cache-3417we6b.js → state-8r6b1jv8.js} +20 -20
  113. package/dist/chunks/{repository-cache-3qgwywyc.js → state-8t99kr38.js} +4 -4
  114. package/dist/chunks/{repository-cache-xpsvaypt.js → state-8v66b1mn.js} +9 -9
  115. package/dist/chunks/{repository-cache-d557ra3j.js → state-8w90g9rp.js} +15 -15
  116. package/dist/chunks/{repository-cache-8wtp7s3z.js → state-8wtp7s3z.js} +1 -1
  117. package/dist/chunks/{repository-cache-8z6m94af.js → state-8z6m94af.js} +3 -3
  118. package/dist/chunks/{repository-cache-kh8gdsej.js → state-8zv0xmg5.js} +2 -2
  119. package/dist/chunks/{repository-cache-90zstvax.js → state-90zstvax.js} +1 -1
  120. package/dist/chunks/{repository-cache-6g3dkt3t.js → state-921kp94s.js} +10 -10
  121. package/dist/chunks/{repository-cache-zr3g104n.js → state-92jryngg.js} +25 -25
  122. package/dist/chunks/{repository-cache-963hk181.js → state-963hk181.js} +2 -2
  123. package/dist/chunks/{repository-cache-fy5egg00.js → state-977r5w0v.js} +4 -4
  124. package/dist/chunks/{repository-cache-m5m4mawt.js → state-993bn7g3.js} +29 -29
  125. package/dist/chunks/{repository-cache-dt4jdg3a.js → state-9eg6gkma.js} +5 -5
  126. package/dist/chunks/{repository-cache-qew61d36.js → state-9gr1b0wk.js} +16 -16
  127. package/dist/chunks/{repository-cache-r0m92t3y.js → state-9h1ss44a.js} +8 -8
  128. package/dist/chunks/{repository-cache-w1zmw0j0.js → state-9kc3pfzw.js} +12 -12
  129. package/dist/chunks/{repository-cache-n1wvmqaw.js → state-9paapht9.js} +12 -12
  130. package/dist/chunks/{repository-cache-gyh9cr2k.js → state-9pea0zhc.js} +14 -14
  131. package/dist/chunks/{repository-cache-z0cbg25n.js → state-9pq98ypf.js} +24 -24
  132. package/dist/chunks/{repository-cache-2kg89srt.js → state-9q8g9sv8.js} +4 -4
  133. package/dist/chunks/{repository-cache-ekkxmf4g.js → state-9vvzrg4f.js} +10 -10
  134. package/dist/chunks/{repository-cache-2nkkrr4x.js → state-9wjcjbgb.js} +3 -3
  135. package/dist/chunks/{repository-cache-tb0r11sh.js → state-9ytd7gcc.js} +21 -21
  136. package/dist/chunks/{repository-cache-p5fywhk1.js → state-aafk9y72.js} +5 -5
  137. package/dist/chunks/{repository-cache-p07n1nra.js → state-aaj9jfft.js} +22 -22
  138. package/dist/chunks/{repository-cache-hy8c1z76.js → state-aedwt843.js} +8 -8
  139. package/dist/chunks/{repository-cache-aj7mw0zk.js → state-aj7mw0zk.js} +2 -2
  140. package/dist/chunks/{repository-cache-v6nb87wz.js → state-aje6kyw0.js} +6 -6
  141. package/dist/chunks/{repository-cache-sspakpas.js → state-am22a7bw.js} +11 -11
  142. package/dist/chunks/{repository-cache-anvcme1c.js → state-anvcme1c.js} +1 -1
  143. package/dist/chunks/{repository-cache-8phvsahy.js → state-aphxkpa5.js} +9 -9
  144. package/dist/chunks/{repository-cache-zjyc304t.js → state-avttgdgt.js} +18 -18
  145. package/dist/chunks/{repository-cache-xhc0sbzt.js → state-ayz01erp.js} +5 -5
  146. package/dist/chunks/{repository-cache-9qsmkj40.js → state-b1yjrp7m.js} +11 -11
  147. package/dist/chunks/{repository-cache-wxgjsayh.js → state-b3j5jf8z.js} +11 -11
  148. package/dist/chunks/{repository-cache-3n8f9t2c.js → state-b6dg22k5.js} +6 -6
  149. package/dist/chunks/{repository-cache-cb6hg470.js → state-b8jqv5nz.js} +5 -5
  150. package/dist/chunks/{repository-cache-fcepfbwx.js → state-b9gqeys9.js} +11 -11
  151. package/dist/chunks/{repository-cache-bb3mmwvh.js → state-bb3mmwvh.js} +2 -2
  152. package/dist/chunks/{repository-cache-1bhkzdch.js → state-bbqav1wc.js} +21 -21
  153. package/dist/chunks/{repository-cache-bdhd9h6e.js → state-bdhd9h6e.js} +1 -1
  154. package/dist/chunks/{repository-cache-3vnxarw0.js → state-bgg73g7v.js} +8 -8
  155. package/dist/chunks/{repository-cache-r8ne8z0s.js → state-bjaq03r1.js} +17 -17
  156. package/dist/chunks/{repository-cache-d9qsesfx.js → state-bk2z9g4f.js} +40 -40
  157. package/dist/chunks/{repository-cache-j29phncd.js → state-bn0zqt6f.js} +36 -36
  158. package/dist/chunks/{repository-cache-maahcrgj.js → state-bncpbghn.js} +16 -16
  159. package/dist/chunks/{repository-cache-874wyhaa.js → state-bppeetk9.js} +26 -26
  160. package/dist/chunks/{repository-cache-bstexjd6.js → state-bstexjd6.js} +1 -1
  161. package/dist/chunks/{repository-cache-t2w0276p.js → state-byrn1x2h.js} +6 -6
  162. package/dist/chunks/{repository-cache-9zwexsxs.js → state-bys6f9s7.js} +5 -5
  163. package/dist/chunks/{repository-cache-c5zvymhv.js → state-c5zvymhv.js} +1 -1
  164. package/dist/chunks/{repository-cache-jsj2kb7z.js → state-c6090a4k.js} +30 -30
  165. package/dist/chunks/{repository-cache-b6vsg801.js → state-c7cw818c.js} +40 -63
  166. package/dist/chunks/{repository-cache-wa8k00xj.js → state-ceq6pwch.js} +6 -6
  167. package/dist/chunks/{repository-cache-11v5wvkn.js → state-cfs5ew59.js} +9 -5
  168. package/dist/chunks/state-cjs9h53k.js +26 -0
  169. package/dist/chunks/{repository-cache-zh3qqm7s.js → state-cwaehys5.js} +18 -18
  170. package/dist/chunks/{repository-cache-cwrgdav8.js → state-cwrgdav8.js} +2 -2
  171. package/dist/chunks/{repository-cache-64c9es3a.js → state-cydqd7ep.js} +17 -17
  172. package/dist/chunks/{repository-cache-f7jx66g0.js → state-d3r3jjg0.js} +21 -21
  173. package/dist/chunks/{repository-cache-phybxfj4.js → state-d4dp9kyp.js} +13 -13
  174. package/dist/chunks/{repository-cache-d4v9tmah.js → state-d4v9tmah.js} +2 -2
  175. package/dist/chunks/{repository-cache-p4y4gte6.js → state-d5v54jh8.js} +9 -9
  176. package/dist/chunks/{repository-cache-24abvbg3.js → state-d6m9wv98.js} +30 -30
  177. package/dist/chunks/{repository-cache-12p8jfwf.js → state-dfsfebr9.js} +15 -15
  178. package/dist/chunks/{repository-cache-35y1ta0e.js → state-dnvezvpm.js} +4 -4
  179. package/dist/chunks/{repository-cache-dt77769w.js → state-dt77769w.js} +1 -1
  180. package/dist/chunks/{repository-cache-2bzd8xhn.js → state-dv6nbphe.js} +16 -16
  181. package/dist/chunks/{repository-cache-e834z07m.js → state-e834z07m.js} +1 -1
  182. package/dist/chunks/{repository-cache-a3fn0gmm.js → state-eavcrtrz.js} +2 -2
  183. package/dist/chunks/{repository-cache-eqw4pqj1.js → state-eqw4pqj1.js} +2 -2
  184. package/dist/chunks/state-ev660z6k.js +18 -0
  185. package/dist/chunks/{repository-cache-5fn96twt.js → state-f61f7jdk.js} +18 -18
  186. package/dist/chunks/{repository-cache-str9wgcc.js → state-f7bknhyh.js} +51 -51
  187. package/dist/chunks/{repository-cache-kt9nnfjs.js → state-f9hnarx8.js} +66 -52
  188. package/dist/chunks/{repository-cache-fffv3p7h.js → state-fffv3p7h.js} +1 -1
  189. package/dist/chunks/{repository-cache-fg9p65nk.js → state-fg9p65nk.js} +2 -2
  190. package/dist/chunks/{repository-cache-ncxak54a.js → state-fm77cfpy.js} +91 -91
  191. package/dist/chunks/{repository-cache-vbegfqj5.js → state-fr628t37.js} +18 -18
  192. package/dist/chunks/{repository-cache-5rrtfrnm.js → state-fw350tjq.js} +41 -41
  193. package/dist/chunks/{repository-cache-xpxrcxw7.js → state-g01nwhfp.js} +22 -22
  194. package/dist/chunks/{repository-cache-j8sdmxac.js → state-g0hf1nfa.js} +5 -5
  195. package/dist/chunks/{repository-cache-cwy0vxkf.js → state-g1wbt592.js} +24 -24
  196. package/dist/chunks/{repository-cache-zqab1dhd.js → state-g7gy25a0.js} +16 -16
  197. package/dist/chunks/{repository-cache-4krr2nde.js → state-g95r1ctc.js} +3 -3
  198. package/dist/chunks/{repository-cache-d0gzc6r9.js → state-g9xbwnwv.js} +7 -7
  199. package/dist/chunks/{repository-cache-gbjdnr5j.js → state-gbjdnr5j.js} +2 -2
  200. package/dist/chunks/{repository-cache-0hyhtq4c.js → state-gdqzzjg1.js} +4 -4
  201. package/dist/chunks/{repository-cache-k9d0tmsy.js → state-gfgje09d.js} +78 -78
  202. package/dist/chunks/{repository-cache-8ef1n296.js → state-ggfch722.js} +20 -20
  203. package/dist/chunks/{repository-cache-mw6xpct4.js → state-gh7fsshn.js} +35 -35
  204. package/dist/chunks/{repository-cache-ghrv1g9c.js → state-ghrv1g9c.js} +1 -1
  205. package/dist/chunks/{repository-cache-0w3jajew.js → state-gjs6kf30.js} +30 -30
  206. package/dist/chunks/{repository-cache-6cv5ggqa.js → state-gr7rgkrw.js} +35 -35
  207. package/dist/chunks/{repository-cache-8eynzsy4.js → state-gtrj8c21.js} +2 -2
  208. package/dist/chunks/{repository-cache-nhgkss9c.js → state-h353fke4.js} +7 -7
  209. package/dist/chunks/{repository-cache-p5tk1xdz.js → state-h9xvjfqn.js} +4 -4
  210. package/dist/chunks/{repository-cache-p911a251.js → state-hbh5ad0e.js} +10 -10
  211. package/dist/chunks/{repository-cache-dvnqv6yn.js → state-hced1q2j.js} +4 -4
  212. package/dist/chunks/{repository-cache-a4qk5w5d.js → state-hjddz07k.js} +31 -31
  213. package/dist/chunks/{repository-cache-ezxsjh08.js → state-hn0qwvdh.js} +10 -10
  214. package/dist/chunks/{repository-cache-rhrvxtbv.js → state-hn3egxjd.js} +3 -3
  215. package/dist/chunks/{repository-cache-qmncx9et.js → state-hqqnejca.js} +10 -10
  216. package/dist/chunks/{repository-cache-bb3pv0r8.js → state-hrpg1pdd.js} +7 -7
  217. package/dist/chunks/{repository-cache-7f2htwtk.js → state-j0p3wt22.js} +8 -8
  218. package/dist/chunks/{repository-cache-4d5w7vpt.js → state-j4y0kh3f.js} +28 -28
  219. package/dist/chunks/{repository-cache-cnh7rm97.js → state-jfjvxp5c.js} +5 -5
  220. package/dist/chunks/{repository-cache-qp1j9gx1.js → state-jh1m9pe1.js} +16 -16
  221. package/dist/chunks/state-jm70asfg.js +21 -0
  222. package/dist/chunks/{repository-cache-1j777bfw.js → state-jnzh5xfy.js} +11 -11
  223. package/dist/chunks/{repository-cache-mrgb2a4m.js → state-k1xhm3vy.js} +86 -86
  224. package/dist/chunks/{repository-cache-kzczzf4v.js → state-kzczzf4v.js} +1 -1
  225. package/dist/chunks/{repository-cache-m1714858.js → state-m1714858.js} +1 -1
  226. package/dist/chunks/{repository-cache-4tn3tan0.js → state-m5266p9d.js} +5 -5
  227. package/dist/chunks/{repository-cache-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
  228. package/dist/chunks/{repository-cache-96w3k37w.js → state-mdvqzrzy.js} +40 -40
  229. package/dist/chunks/{repository-cache-wf1m3h04.js → state-mg1jj979.js} +18 -18
  230. package/dist/chunks/{repository-cache-6h8zfbw9.js → state-mj23vw6g.js} +6 -6
  231. package/dist/chunks/{repository-cache-24n4d6cx.js → state-mjc37m1k.js} +18 -18
  232. package/dist/chunks/{repository-cache-mm06edep.js → state-mm06edep.js} +1 -1
  233. package/dist/chunks/{repository-cache-0xmsj0de.js → state-mnv2jyz7.js} +6 -6
  234. package/dist/chunks/{repository-cache-t9pw00nj.js → state-mq99xgvr.js} +29 -14
  235. package/dist/chunks/{repository-cache-ybws1qgk.js → state-msd2a3qm.js} +4 -4
  236. package/dist/chunks/{repository-cache-pa6k4317.js → state-mv6jdq2w.js} +9 -9
  237. package/dist/chunks/{repository-cache-zm7k6k12.js → state-mye87mks.js} +21 -21
  238. package/dist/chunks/{repository-cache-tfbh0ys0.js → state-nchq7fqh.js} +31 -31
  239. package/dist/chunks/{repository-cache-wx3jdmfq.js → state-nppp2r4z.js} +18 -18
  240. package/dist/chunks/{repository-cache-rj7jtxy8.js → state-nt907s04.js} +3 -3
  241. package/dist/chunks/{repository-cache-ysbrq79k.js → state-nvj53022.js} +29 -29
  242. package/dist/chunks/{repository-cache-nx4vzyjd.js → state-nx4vzyjd.js} +2 -2
  243. package/dist/chunks/{repository-cache-xw5mamnk.js → state-p1zyyx7p.js} +18 -18
  244. package/dist/chunks/{repository-cache-6rw411p0.js → state-p2g6jje1.js} +13 -13
  245. package/dist/chunks/{repository-cache-8mst53cj.js → state-pagshcxp.js} +23 -23
  246. package/dist/chunks/{repository-cache-ssbjkerf.js → state-phz1cjg9.js} +11 -11
  247. package/dist/chunks/{repository-cache-pknna89w.js → state-pknna89w.js} +1 -1
  248. package/dist/chunks/{repository-cache-6rqkmd8e.js → state-q56wpc8y.js} +2 -2
  249. package/dist/chunks/{repository-cache-1veh5y7b.js → state-q9d90wga.js} +18 -18
  250. package/dist/chunks/{repository-cache-qvbkypgt.js → state-qfef7h1d.js} +11 -11
  251. package/dist/chunks/{repository-cache-qfz6bxfd.js → state-qfz6bxfd.js} +1 -1
  252. package/dist/chunks/{repository-cache-z1tseqzz.js → state-qke86nqk.js} +39 -39
  253. package/dist/chunks/{repository-cache-k53hj7rs.js → state-qm790n5p.js} +11 -11
  254. package/dist/chunks/{repository-cache-qp7r0hxv.js → state-qp7r0hxv.js} +1 -1
  255. package/dist/chunks/{repository-cache-qsdghx1p.js → state-qsdghx1p.js} +1 -1
  256. package/dist/chunks/{repository-cache-qw2t3dzn.js → state-qw2t3dzn.js} +3 -3
  257. package/dist/chunks/{repository-cache-14k4sggx.js → state-r3bpf7pz.js} +7 -7
  258. package/dist/chunks/{repository-cache-h8pahg21.js → state-r3jp95ya.js} +8 -8
  259. package/dist/chunks/{repository-cache-z597atea.js → state-r3nbcy9x.js} +10 -10
  260. package/dist/chunks/{repository-cache-40za9wsf.js → state-r41sfy63.js} +6 -6
  261. package/dist/chunks/{repository-cache-a87ec6x6.js → state-r6q4sfpa.js} +12 -12
  262. package/dist/chunks/{repository-cache-q94k5xag.js → state-rabw2mys.js} +11 -11
  263. package/dist/chunks/{repository-cache-rb9dy4dg.js → state-rb9dy4dg.js} +1 -1
  264. package/dist/chunks/{repository-cache-begae6zc.js → state-rdawdz7g.js} +20 -20
  265. package/dist/chunks/{repository-cache-jbv7by8f.js → state-rfrdehgj.js} +5 -5
  266. package/dist/chunks/{repository-cache-ng4tgbdz.js → state-rg9szfbb.js} +12 -12
  267. package/dist/chunks/{repository-cache-rgc9cx3e.js → state-rgc9cx3e.js} +2 -2
  268. package/dist/chunks/{repository-cache-530xg6vw.js → state-rjeg9c4a.js} +6 -6
  269. package/dist/chunks/{repository-cache-rt5dr6hb.js → state-rt5dr6hb.js} +1 -1
  270. package/dist/chunks/{repository-cache-sa3fpqfw.js → state-sa3fpqfw.js} +2 -2
  271. package/dist/chunks/{repository-cache-sbya78hr.js → state-sbya78hr.js} +1 -1
  272. package/dist/chunks/{repository-cache-8nxj1m7z.js → state-sg44rzx3.js} +7 -7
  273. package/dist/chunks/{repository-cache-ygwvpf8d.js → state-sheyags7.js} +21 -21
  274. package/dist/chunks/{repository-cache-rk0hf552.js → state-sq0c2t7p.js} +27 -27
  275. package/dist/chunks/{repository-cache-xk70r0xg.js → state-sqv6sja0.js} +17 -13
  276. package/dist/chunks/{repository-cache-svcy3p9a.js → state-svcy3p9a.js} +1 -1
  277. package/dist/chunks/{repository-cache-fcbvcd8w.js → state-sw8sg13a.js} +3 -3
  278. package/dist/chunks/{repository-cache-96djdqw5.js → state-szwm4crx.js} +4 -4
  279. package/dist/chunks/{repository-cache-t62dywgn.js → state-t62dywgn.js} +1 -1
  280. package/dist/chunks/{repository-cache-tczq8hjw.js → state-tczq8hjw.js} +1 -1
  281. package/dist/chunks/{repository-cache-gxs71cxp.js → state-tg7s7b5t.js} +4 -4
  282. package/dist/chunks/{repository-cache-tmc7xdjs.js → state-tmc7xdjs.js} +1 -1
  283. package/dist/chunks/{repository-cache-4ac5e6w9.js → state-tptg6stc.js} +7 -7
  284. package/dist/chunks/{repository-cache-j376ae4e.js → state-tr8x705m.js} +5 -5
  285. package/dist/chunks/{repository-cache-j3gab23w.js → state-trq16rvm.js} +21 -16
  286. package/dist/chunks/{repository-cache-g3s7hktw.js → state-tsj3mfe2.js} +8 -8
  287. package/dist/chunks/{repository-cache-twssxy5n.js → state-twssxy5n.js} +2 -2
  288. package/dist/chunks/{repository-cache-me215f18.js → state-tyr5qtmx.js} +1 -1
  289. package/dist/chunks/{repository-cache-m4kbpbwy.js → state-v157w7rk.js} +40 -40
  290. package/dist/chunks/{repository-cache-k4w24gzt.js → state-v1gkajza.js} +21 -21
  291. package/dist/chunks/{repository-cache-v2r1d0zg.js → state-v2r1d0zg.js} +1 -1
  292. package/dist/chunks/{repository-cache-32hjadc8.js → state-va3qjjz1.js} +58 -33
  293. package/dist/chunks/{repository-cache-y47xsr57.js → state-vaty8g2w.js} +18 -18
  294. package/dist/chunks/{repository-cache-vmeb0awz.js → state-vcbjdmh4.js} +7 -7
  295. package/dist/chunks/{repository-cache-9r6t02y1.js → state-vgd0xb2g.js} +11 -11
  296. package/dist/chunks/{repository-cache-vjf35v1f.js → state-vjf35v1f.js} +1 -1
  297. package/dist/chunks/{repository-cache-bhfd478d.js → state-vmxsyvj6.js} +4 -4
  298. package/dist/chunks/{repository-cache-twgcqmbs.js → state-vmy3bva4.js} +26 -26
  299. package/dist/chunks/{repository-cache-2n444ktb.js → state-vnjc296t.js} +2 -2
  300. package/dist/chunks/{repository-cache-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
  301. package/dist/chunks/{repository-cache-w687dnns.js → state-w687dnns.js} +1 -1
  302. package/dist/chunks/{repository-cache-26x8xhvd.js → state-w90vmn9j.js} +37 -37
  303. package/dist/chunks/{repository-cache-6pxkgvpn.js → state-w9dedz0k.js} +4 -4
  304. package/dist/chunks/{repository-cache-kqfwe6fh.js → state-wag7rwyd.js} +15 -15
  305. package/dist/chunks/{repository-cache-wakvkjy4.js → state-wakvkjy4.js} +1 -1
  306. package/dist/chunks/{repository-cache-8zsy9fqe.js → state-wcejgkpf.js} +16 -16
  307. package/dist/chunks/{repository-cache-wd87259q.js → state-wd87259q.js} +1 -1
  308. package/dist/chunks/{repository-cache-sqtk4kde.js → state-wj190css.js} +17 -17
  309. package/dist/chunks/{repository-cache-hqk2k8xj.js → state-wjvxg2e5.js} +28 -28
  310. package/dist/chunks/{repository-cache-wnhgecwx.js → state-wnhgecwx.js} +1 -1
  311. package/dist/chunks/{repository-cache-q5kt2txt.js → state-wq9h8gy5.js} +2 -2
  312. package/dist/chunks/{repository-cache-pz0sfbj3.js → state-wsmen7jm.js} +14 -14
  313. package/dist/chunks/{repository-cache-9mrfv1j4.js → state-wsv0t92k.js} +9 -9
  314. package/dist/chunks/{repository-cache-nyxvvj5y.js → state-wvr8xscb.js} +4 -4
  315. package/dist/chunks/{repository-cache-bz0790vs.js → state-wzsrndbq.js} +20 -20
  316. package/dist/chunks/{repository-cache-nw32hq9a.js → state-x261zjn4.js} +13 -13
  317. package/dist/chunks/{repository-cache-0xx27840.js → state-x2x6btqw.js} +5 -5
  318. package/dist/chunks/{repository-cache-s8w07hhj.js → state-x5q33sjw.js} +21 -21
  319. package/dist/chunks/{repository-cache-tqhrmc4d.js → state-x72hckx5.js} +11 -11
  320. package/dist/chunks/{repository-cache-sm0v90f9.js → state-x8r4ndq1.js} +7 -7
  321. package/dist/chunks/{repository-cache-by7xstp6.js → state-xf3wmjdz.js} +25 -25
  322. package/dist/chunks/{repository-cache-axm2n1bv.js → state-xh3npcfc.js} +45 -45
  323. package/dist/chunks/{repository-cache-xjr6c8m4.js → state-xjr6c8m4.js} +1 -1
  324. package/dist/chunks/{repository-cache-xksw6ev0.js → state-xksw6ev0.js} +1 -1
  325. package/dist/chunks/{repository-cache-rcbjwvze.js → state-xsact9zs.js} +4 -4
  326. package/dist/chunks/{repository-cache-ddwaa558.js → state-xsvq7cjt.js} +4 -4
  327. package/dist/chunks/{repository-cache-yp198zx3.js → state-xytydggh.js} +11 -11
  328. package/dist/chunks/{repository-cache-ecgv8t09.js → state-yagqa7s0.js} +11 -11
  329. package/dist/chunks/{repository-cache-yb20nhc3.js → state-yb20nhc3.js} +1 -1
  330. package/dist/chunks/{repository-cache-0ejkdvg9.js → state-yhdjqea2.js} +180 -180
  331. package/dist/chunks/{repository-cache-m8b0hmkn.js → state-yhycmjqj.js} +23 -23
  332. package/dist/chunks/{repository-cache-9a7pwgbe.js → state-yjt5dh5y.js} +6 -6
  333. package/dist/chunks/{repository-cache-fg6qht7z.js → state-yntprw1s.js} +21 -21
  334. package/dist/chunks/{repository-cache-yr705xyq.js → state-yr705xyq.js} +1 -1
  335. package/dist/chunks/{repository-cache-xza8sa1q.js → state-yrbn0ame.js} +21 -21
  336. package/dist/chunks/{repository-cache-yvtc2x31.js → state-yvtc2x31.js} +1 -1
  337. package/dist/chunks/{repository-cache-93cqz5g6.js → state-yw8h6eng.js} +28 -28
  338. package/dist/chunks/{repository-cache-q2yv65ar.js → state-z90jk6wv.js} +16 -16
  339. package/dist/chunks/{repository-cache-j9nxzz3g.js → state-ze75qvmd.js} +3 -3
  340. package/dist/chunks/{repository-cache-hnb0d39k.js → state-zevbv6wf.js} +9 -9
  341. package/dist/chunks/{repository-cache-qkc4txyr.js → state-zgq5ynfz.js} +4 -4
  342. package/dist/chunks/state-zkbhzvnx.js +16 -0
  343. package/dist/chunks/state-zmntsdyf.js +571 -0
  344. package/dist/chunks/{repository-cache-zpdbqgja.js → state-zpdbqgja.js} +1 -1
  345. package/dist/chunks/{repository-cache-g84d5t96.js → state-zwb43w27.js} +5 -5
  346. package/dist/chunks/state-zxk0t9p9.js +265 -0
  347. package/dist/chunks/{repository-cache-hxewmaf0.js → state-zxnyrn6k.js} +32 -32
  348. package/dist/codemode/catalog.js +1 -1
  349. package/dist/codemode/execution.js +5 -5
  350. package/dist/codemode/fetch.js +146 -145
  351. package/dist/codemode/instructions.js +5 -5
  352. package/dist/codemode/tool.js +152 -151
  353. package/dist/command.js +94 -94
  354. package/dist/config/discovery.js +95 -95
  355. package/dist/config/integration.js +3 -3
  356. package/dist/config/managed.js +1 -1
  357. package/dist/config/markdown.js +1 -1
  358. package/dist/config/normalize.js +112 -112
  359. package/dist/config/plugin/agent.js +131 -131
  360. package/dist/config/plugin/command.js +235 -234
  361. package/dist/config/plugin/compaction.js +172 -171
  362. package/dist/config/plugin/compatibility.js +151 -150
  363. package/dist/config/plugin/entry-observer.js +1 -1
  364. package/dist/config/plugin/formatter.js +131 -131
  365. package/dist/config/plugin/image.js +130 -130
  366. package/dist/config/plugin/instruction.js +130 -130
  367. package/dist/config/plugin/location-watcher.js +132 -132
  368. package/dist/config/plugin/mcp.js +139 -139
  369. package/dist/config/plugin/policy.js +130 -130
  370. package/dist/config/plugin/provider.js +130 -130
  371. package/dist/config/plugin/reference.js +132 -132
  372. package/dist/config/plugin/shell.js +132 -132
  373. package/dist/config/plugin/skill-file.js +147 -146
  374. package/dist/config/plugin/skill-scan.js +1 -1
  375. package/dist/config/plugin/skill.js +154 -153
  376. package/dist/config/plugin/snapshot.js +130 -130
  377. package/dist/config/plugin/source.js +132 -132
  378. package/dist/config/plugin/tool-output.js +131 -131
  379. package/dist/config/plugin/websearch.js +131 -131
  380. package/dist/config/plugin/worktree.js +132 -132
  381. package/dist/config/variable.js +1 -1
  382. package/dist/config/watch.js +1 -1
  383. package/dist/config.js +131 -131
  384. package/dist/console-access.js +5 -5
  385. package/dist/credential/sql.js +2 -2
  386. package/dist/credential.js +92 -92
  387. package/dist/database/batch.js +12 -0
  388. package/dist/database/database.js +81 -81
  389. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  390. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  391. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  392. package/dist/database/drizzle/index.js +15 -15
  393. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  394. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  395. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  396. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  397. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  398. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  399. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  400. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  401. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  402. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  403. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  404. package/dist/database/drizzle.js +16 -16
  405. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  406. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  407. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  408. package/dist/database/migration/20260225215848_workspace.js +1 -1
  409. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  410. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  411. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  412. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  413. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  414. package/dist/database/migration/20260323234822_events.js +1 -1
  415. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  416. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  417. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  418. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  419. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  420. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  421. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  422. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  423. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  424. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  425. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  426. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  427. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  428. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  429. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  430. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  431. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  432. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  433. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  434. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  435. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  436. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  437. package/dist/database/migration/20260611035744_credential.js +1 -1
  438. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  439. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  440. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  441. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  442. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  443. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  444. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  445. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  446. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  447. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  448. package/dist/database/migration/20260812213948_worktree.js +1 -1
  449. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  450. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  451. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  452. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  453. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  454. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  455. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  456. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  457. package/dist/database/migration/20261025123711_blob.js +1 -1
  458. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  459. package/dist/database/migration/20261026223005_schedule.js +1 -1
  460. package/dist/database/migration/20261029002625_session_part.js +1 -1
  461. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  462. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  463. package/dist/database/migration/20261030054400_job.js +1 -1
  464. package/dist/database/migration.gen.js +60 -60
  465. package/dist/database/migration.js +76 -62
  466. package/dist/database/path.js +2 -2
  467. package/dist/database/schema.gen.js +1 -1
  468. package/dist/database/schema.sql.js +1 -1
  469. package/dist/database/v1-migration.bun.js +101 -101
  470. package/dist/database/v1-migration.js +1 -1
  471. package/dist/effect/app-node-builder.js +438 -437
  472. package/dist/effect/app-node-platform.js +2 -2
  473. package/dist/effect/keyed-mutex.js +3 -3
  474. package/dist/effect/websocket-constructor.js +1 -1
  475. package/dist/environment/driver.js +1 -1
  476. package/dist/environment/environment.js +105 -105
  477. package/dist/environment/exec-defaults.js +2 -2
  478. package/dist/environment/files.js +1 -1
  479. package/dist/environment/index.js +107 -107
  480. package/dist/environment/local.js +2 -2
  481. package/dist/environment/memory.js +2 -2
  482. package/dist/environment/unavailable.js +1 -1
  483. package/dist/event/sql.js +1 -1
  484. package/dist/event-logger.js +85 -85
  485. package/dist/file-access.js +158 -157
  486. package/dist/file-mutation.js +108 -108
  487. package/dist/file-retention.js +1 -1
  488. package/dist/file-write.js +162 -161
  489. package/dist/filesystem/fff.bun.js +2 -2
  490. package/dist/filesystem/fff.js +1 -1
  491. package/dist/filesystem/fff.node.js +2 -2
  492. package/dist/filesystem/fff.workerd.js +2 -2
  493. package/dist/filesystem/file-watch.js +91 -91
  494. package/dist/filesystem/location-watcher-policy.js +6 -6
  495. package/dist/filesystem/location-watcher.js +250 -249
  496. package/dist/filesystem/protected.js +1 -1
  497. package/dist/filesystem/search.js +113 -113
  498. package/dist/filesystem/watcher-binding.js +1 -1
  499. package/dist/filesystem/watcher.js +9 -9
  500. package/dist/filesystem.js +118 -118
  501. package/dist/form.js +89 -89
  502. package/dist/formatter/builtins.js +2 -2
  503. package/dist/formatter.js +100 -100
  504. package/dist/generate.js +120 -120
  505. package/dist/git.js +11 -11
  506. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  507. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  508. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  509. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  510. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  511. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  512. package/dist/github-copilot/copilot-provider.js +17 -17
  513. package/dist/github-copilot/models.js +112 -112
  514. package/dist/github-copilot/openai-compatible-error.js +1 -1
  515. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  516. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  517. package/dist/github-copilot/responses/openai-error.js +1 -1
  518. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  519. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  520. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  521. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  522. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  523. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  524. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  525. package/dist/image/notice.js +3 -3
  526. package/dist/image/photon-normalize.js +1 -1
  527. package/dist/image/photon-worker.js +1 -1
  528. package/dist/image/photon.js +4 -4
  529. package/dist/image.js +6 -6
  530. package/dist/instance/service.js +5 -5
  531. package/dist/instance.js +429 -428
  532. package/dist/instruction-discovery.js +95 -95
  533. package/dist/instructions/builtins.js +100 -100
  534. package/dist/instructions/index.js +1 -1
  535. package/dist/integration/connection.js +3 -3
  536. package/dist/integration.js +96 -96
  537. package/dist/job/list.js +5 -5
  538. package/dist/job/recovery.js +2 -2
  539. package/dist/job/sql.js +2 -2
  540. package/dist/job.js +90 -90
  541. package/dist/kv/sql.js +2 -2
  542. package/dist/kv.js +84 -84
  543. package/dist/location-activity.js +182 -181
  544. package/dist/location-lifecycle.js +151 -150
  545. package/dist/location-service-map.js +99 -99
  546. package/dist/location-services.js +426 -425
  547. package/dist/location.js +94 -94
  548. package/dist/managed-policy.js +3 -3
  549. package/dist/mcp/client.js +156 -155
  550. package/dist/mcp/connection.js +106 -106
  551. package/dist/mcp/index.js +120 -120
  552. package/dist/mcp/instructions.js +182 -181
  553. package/dist/mcp/oauth.js +89 -89
  554. package/dist/mcp/socket-client.js +1 -1
  555. package/dist/mcp/stdio.js +155 -154
  556. package/dist/mime.js +1 -1
  557. package/dist/modal/models.js +112 -112
  558. package/dist/model-resolver.js +112 -112
  559. package/dist/model-retry.js +1 -1
  560. package/dist/model.js +111 -111
  561. package/dist/models-dev/v1.js +1 -1
  562. package/dist/models-dev.js +121 -121
  563. package/dist/oauth/page.js +1 -1
  564. package/dist/permission/saved.js +93 -93
  565. package/dist/permission/sql.js +5 -5
  566. package/dist/permission.js +150 -149
  567. package/dist/persistent-pty/binary.bun.js +1 -1
  568. package/dist/persistent-pty/daemon.js +1 -1
  569. package/dist/persistent-pty/index.js +97 -97
  570. package/dist/persistent-pty/pty-binding.js +1 -1
  571. package/dist/persistent-pty.js +86 -86
  572. package/dist/plugin/agent.js +85 -85
  573. package/dist/plugin/command.js +115 -115
  574. package/dist/plugin/goal.js +3 -3
  575. package/dist/plugin/hooks.js +5 -5
  576. package/dist/plugin/host.js +241 -240
  577. package/dist/plugin/identity.js +5 -5
  578. package/dist/plugin/instance.js +5 -5
  579. package/dist/plugin/internal.js +405 -404
  580. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  581. package/dist/plugin/models-dev.js +110 -110
  582. package/dist/plugin/module.js +127 -127
  583. package/dist/plugin/optimize.js +2 -2
  584. package/dist/plugin/plan.js +147 -146
  585. package/dist/plugin/promise.js +1 -1
  586. package/dist/plugin/provider/amazon-bedrock.js +106 -106
  587. package/dist/plugin/provider/azure.js +133 -133
  588. package/dist/plugin/provider/cerebras.js +1 -1
  589. package/dist/plugin/provider/chatgpt.js +133 -133
  590. package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
  591. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  592. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  593. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  594. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  595. package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
  596. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  597. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  598. package/dist/plugin/provider/claude-agent/claude/status.js +7 -7
  599. package/dist/plugin/provider/claude-agent/index.js +146 -146
  600. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  601. package/dist/plugin/provider/claude-agent/integration.js +113 -113
  602. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +1 -1
  603. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  604. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +4 -4
  605. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  606. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  607. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +1 -1
  608. package/dist/plugin/provider/claude-agent/language-model/usage.js +1 -1
  609. package/dist/plugin/provider/claude-agent/provider.js +108 -108
  610. package/dist/plugin/provider/claude-agent/session.js +112 -112
  611. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  612. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  613. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  614. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  615. package/dist/plugin/provider/claude-agent/sync/record.js +1 -1
  616. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  617. package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
  618. package/dist/plugin/provider/claude-agent/tools/pending.js +1 -1
  619. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  620. package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
  621. package/dist/plugin/provider/cloudflare-ai-gateway.js +130 -130
  622. package/dist/plugin/provider/cloudflare-workers-ai.js +130 -130
  623. package/dist/plugin/provider/configured.js +126 -126
  624. package/dist/plugin/provider/credential-settings.js +88 -88
  625. package/dist/plugin/provider/databricks.js +1 -1
  626. package/dist/plugin/provider/digitalocean.js +109 -109
  627. package/dist/plugin/provider/dynamic.js +2 -2
  628. package/dist/plugin/provider/github-copilot.js +111 -111
  629. package/dist/plugin/provider/gitlab.js +109 -109
  630. package/dist/plugin/provider/google-vertex.js +127 -127
  631. package/dist/plugin/provider/kilo.js +1 -1
  632. package/dist/plugin/provider/llmgateway.js +89 -89
  633. package/dist/plugin/provider/lmstudio.js +140 -140
  634. package/dist/plugin/provider/local.js +137 -137
  635. package/dist/plugin/provider/modal.js +108 -108
  636. package/dist/plugin/provider/neon.js +1 -1
  637. package/dist/plugin/provider/nvidia.js +1 -1
  638. package/dist/plugin/provider/ollama.js +140 -140
  639. package/dist/plugin/provider/openai-context-caps.js +106 -106
  640. package/dist/plugin/provider/openai.js +133 -133
  641. package/dist/plugin/provider/opencode.js +158 -157
  642. package/dist/plugin/provider/openrouter.js +104 -104
  643. package/dist/plugin/provider/poe.js +90 -90
  644. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  645. package/dist/plugin/provider/refresh.js +87 -87
  646. package/dist/plugin/provider/sap-ai-core.js +104 -104
  647. package/dist/plugin/provider/sdk-factory.js +1 -1
  648. package/dist/plugin/provider/snowflake-cortex.js +131 -131
  649. package/dist/plugin/provider/vllm.js +140 -140
  650. package/dist/plugin/provider/xai.js +104 -104
  651. package/dist/plugin/provider/zenmux.js +1 -1
  652. package/dist/plugin/provider.js +236 -235
  653. package/dist/plugin/sdk.js +87 -87
  654. package/dist/plugin/service.js +3 -3
  655. package/dist/plugin/skill.js +150 -149
  656. package/dist/plugin/source-directory.js +1 -1
  657. package/dist/plugin/supervisor.js +415 -414
  658. package/dist/plugin/tool-input-repair.js +4 -4
  659. package/dist/plugin/update.js +6 -6
  660. package/dist/plugin/vcs/git.js +99 -99
  661. package/dist/plugin/vcs/hg.js +99 -99
  662. package/dist/plugin/verbosity.js +106 -106
  663. package/dist/plugin/warming.js +130 -130
  664. package/dist/plugin/websearch/exa.js +8 -8
  665. package/dist/plugin/websearch/firecrawl.js +9 -9
  666. package/dist/plugin/websearch/index.js +10 -10
  667. package/dist/plugin/websearch/mcp.js +4 -4
  668. package/dist/plugin/websearch/parallel.js +9 -9
  669. package/dist/plugin/websearch/provider.js +1 -1
  670. package/dist/plugin/websearch/tavily.js +5 -5
  671. package/dist/plugin/websearch/tinyfish.js +7 -7
  672. package/dist/plugin.js +244 -243
  673. package/dist/project/icon.js +5 -5
  674. package/dist/project/schema.js +2 -2
  675. package/dist/project/sql.js +4 -4
  676. package/dist/project.js +93 -93
  677. package/dist/provider.js +110 -110
  678. package/dist/pty/protocol.js +1 -1
  679. package/dist/pty/ticket.js +1 -1
  680. package/dist/pty.js +101 -101
  681. package/dist/reference/instructions.js +101 -101
  682. package/dist/reference.js +101 -101
  683. package/dist/repository-cache.js +93 -93
  684. package/dist/repository.js +1 -1
  685. package/dist/ripgrep/binary.js +2 -2
  686. package/dist/ripgrep.js +111 -111
  687. package/dist/rpc.js +99 -99
  688. package/dist/schedule/check.js +246 -245
  689. package/dist/schedule/sql.js +6 -6
  690. package/dist/schedule.js +252 -251
  691. package/dist/schema.js +1 -1
  692. package/dist/session/affinity.js +1 -1
  693. package/dist/session/background.js +1 -1
  694. package/dist/session/blob.js +132 -129
  695. package/dist/session/command.js +85 -85
  696. package/dist/session/compaction.js +174 -173
  697. package/dist/session/context.js +201 -200
  698. package/dist/session/diff.js +101 -101
  699. package/dist/session/environment.js +5 -5
  700. package/dist/session/error.js +5 -5
  701. package/dist/session/event.js +1 -1
  702. package/dist/session/execution/restart.js +251 -250
  703. package/dist/session/execution.js +166 -165
  704. package/dist/session/generate.js +203 -202
  705. package/dist/session/history.js +143 -136
  706. package/dist/session/inbox.js +150 -149
  707. package/dist/session/info.js +3 -3
  708. package/dist/session/instruction-entry.js +90 -90
  709. package/dist/session/instruction-state.js +8 -8
  710. package/dist/session/instructions.js +142 -141
  711. package/dist/session/message-updater.js +2 -2
  712. package/dist/session/message.js +1 -1
  713. package/dist/session/model-request.js +169 -168
  714. package/dist/session/model-transport.js +9 -9
  715. package/dist/session/move.js +168 -167
  716. package/dist/session/projector.js +144 -143
  717. package/dist/session/prompt.js +149 -148
  718. package/dist/session/recent-text.js +1 -1
  719. package/dist/session/revert.js +140 -139
  720. package/dist/session/run-coordinator.js +1 -1
  721. package/dist/session/runner/index.js +3 -3
  722. package/dist/session/runner/llm.js +255 -254
  723. package/dist/session/runner/max-steps.js +1 -1
  724. package/dist/session/runner/model.js +113 -113
  725. package/dist/session/runner/publish-llm-event.js +150 -149
  726. package/dist/session/runner/retry.js +3 -3
  727. package/dist/session/runner/step.js +162 -161
  728. package/dist/session/runner/to-llm-message.js +138 -137
  729. package/dist/session/schema.js +3 -3
  730. package/dist/session/session.js +185 -184
  731. package/dist/session/shell.js +145 -145
  732. package/dist/session/skill.js +148 -147
  733. package/dist/session/sql.js +5 -5
  734. package/dist/session/stats.js +92 -92
  735. package/dist/session/store.js +143 -142
  736. package/dist/session/stored.js +2 -2
  737. package/dist/session/subagent-completion.js +3 -3
  738. package/dist/session/subagent-job.js +234 -233
  739. package/dist/session/system-prompt.js +3 -3
  740. package/dist/session/title.js +201 -200
  741. package/dist/session/to-session-error.js +149 -148
  742. package/dist/session/transfer.js +246 -242
  743. package/dist/session/usage.js +1 -1
  744. package/dist/session.js +236 -235
  745. package/dist/shared-cache.js +5 -5
  746. package/dist/shell/parse.js +6 -6
  747. package/dist/shell/result.js +1 -1
  748. package/dist/shell/scan.js +1 -1
  749. package/dist/shell/select.js +15 -15
  750. package/dist/shell.js +147 -147
  751. package/dist/skill/discovery.js +6 -6
  752. package/dist/skill/instructions.js +152 -151
  753. package/dist/skill.js +155 -154
  754. package/dist/snapshot.js +104 -104
  755. package/dist/state.js +1 -1
  756. package/dist/tool/html-markdown.js +1 -1
  757. package/dist/tool/http-body.js +1 -1
  758. package/dist/tool/mcp.js +181 -180
  759. package/dist/tool/plugin/artifact.js +233 -232
  760. package/dist/tool/plugin/edit.js +168 -167
  761. package/dist/tool/plugin/file-diff.js +1 -1
  762. package/dist/tool/plugin/glob.js +172 -171
  763. package/dist/tool/plugin/grep.js +165 -164
  764. package/dist/tool/plugin/image-generate.js +244 -243
  765. package/dist/tool/plugin/mcp-resource.js +165 -164
  766. package/dist/tool/plugin/opencode.js +164 -163
  767. package/dist/tool/plugin/patch.js +167 -166
  768. package/dist/tool/plugin/question.js +147 -146
  769. package/dist/tool/plugin/read.js +173 -172
  770. package/dist/tool/plugin/schedule.js +252 -251
  771. package/dist/tool/plugin/shell.js +240 -239
  772. package/dist/tool/plugin/skill.js +158 -157
  773. package/dist/tool/plugin/subagent.js +237 -236
  774. package/dist/tool/plugin/todo.js +154 -153
  775. package/dist/tool/plugin/webfetch.js +152 -151
  776. package/dist/tool/plugin/websearch.js +156 -155
  777. package/dist/tool/plugin/write.js +169 -168
  778. package/dist/tool/read-filesystem.js +116 -116
  779. package/dist/tool/runtime.js +1 -1
  780. package/dist/tool/search.js +109 -109
  781. package/dist/tool-output.js +7 -7
  782. package/dist/tool.js +160 -159
  783. package/dist/types/database/batch.d.ts +11 -0
  784. package/dist/types/database/migration.d.ts +5 -2
  785. package/dist/types/session/blob.d.ts +234 -853
  786. package/dist/types/session/history.d.ts +2202 -324
  787. package/dist/types/session/message-updater.d.ts +10 -0
  788. package/dist/usage-limits.js +96 -96
  789. package/dist/util/error-summary.js +1 -1
  790. package/dist/util/git-executable.js +3 -3
  791. package/dist/util/lazy.js +1 -1
  792. package/dist/util/slug.js +1 -1
  793. package/dist/util/token.js +1 -1
  794. package/dist/util/which.js +1 -1
  795. package/dist/util/wildcard.js +1 -1
  796. package/dist/v1/config/agent.js +5 -5
  797. package/dist/v1/config/command.js +3 -3
  798. package/dist/v1/config/mcp.js +4 -4
  799. package/dist/v1/config/migrate.js +105 -105
  800. package/dist/v1/config/permission.js +3 -3
  801. package/dist/v1/config/plugin.js +1 -1
  802. package/dist/v1/config/provider-options.js +1 -1
  803. package/dist/v1/config/provider.js +2 -2
  804. package/dist/variant.js +106 -106
  805. package/dist/vcs/patch.js +1 -1
  806. package/dist/vcs.js +100 -100
  807. package/dist/voice.js +95 -95
  808. package/dist/websearch.js +91 -91
  809. package/dist/wellknown/plugin.js +87 -87
  810. package/dist/wellknown.js +88 -88
  811. package/dist/workspace/driver.js +5 -5
  812. package/dist/workspace/sql.js +1 -1
  813. package/dist/workspace.js +93 -93
  814. package/dist/worktree/directory.js +2 -2
  815. package/dist/worktree/git.js +11 -11
  816. package/dist/worktree/sql.js +5 -5
  817. package/dist/worktree/strategies.js +102 -102
  818. package/dist/worktree.js +113 -113
  819. package/package.json +8 -8
  820. package/dist/chunks/repository-cache-2jjfs7g5.js +0 -16
  821. package/dist/chunks/repository-cache-f8ma18fn.js +0 -18
  822. package/dist/chunks/repository-cache-gf5rrebp.js +0 -571
  823. package/dist/chunks/repository-cache-x0g2yw4m.js +0 -26
  824. package/dist/chunks/repository-cache-x7kkwesj.js +0 -265
  825. /package/dist/chunks/{repository-cache-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
  826. /package/dist/chunks/{repository-cache-0zkw76rk.js → state-0zkw76rk.js} +0 -0
  827. /package/dist/chunks/{repository-cache-108x4f4w.js → state-108x4f4w.js} +0 -0
  828. /package/dist/chunks/{repository-cache-17cy0kzp.js → state-17cy0kzp.js} +0 -0
  829. /package/dist/chunks/{repository-cache-1cnp2v09.js → state-1cnp2v09.js} +0 -0
  830. /package/dist/chunks/{repository-cache-1kah00gy.js → state-1kah00gy.js} +0 -0
  831. /package/dist/chunks/{repository-cache-24dcb14g.js → state-24dcb14g.js} +0 -0
  832. /package/dist/chunks/{repository-cache-2710q6r3.js → state-2710q6r3.js} +0 -0
  833. /package/dist/chunks/{repository-cache-2bv980vf.js → state-2bv980vf.js} +0 -0
  834. /package/dist/chunks/{repository-cache-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
  835. /package/dist/chunks/{repository-cache-359p4xyc.js → state-359p4xyc.js} +0 -0
  836. /package/dist/chunks/{repository-cache-3af0jn4w.js → state-3af0jn4w.js} +0 -0
  837. /package/dist/chunks/{repository-cache-3asan66x.js → state-3asan66x.js} +0 -0
  838. /package/dist/chunks/{repository-cache-3v8g72cx.js → state-3v8g72cx.js} +0 -0
  839. /package/dist/chunks/{repository-cache-3wcehsnq.js → state-3wcehsnq.js} +0 -0
  840. /package/dist/chunks/{repository-cache-43n2bw4t.js → state-43n2bw4t.js} +0 -0
  841. /package/dist/chunks/{repository-cache-4knz6hnm.js → state-4knz6hnm.js} +0 -0
  842. /package/dist/chunks/{repository-cache-4qk9sjk2.js → state-4qk9sjk2.js} +0 -0
  843. /package/dist/chunks/{repository-cache-4y7fprxs.js → state-4y7fprxs.js} +0 -0
  844. /package/dist/chunks/{repository-cache-53557ph1.js → state-53557ph1.js} +0 -0
  845. /package/dist/chunks/{repository-cache-550bvhaj.js → state-550bvhaj.js} +0 -0
  846. /package/dist/chunks/{repository-cache-5w3e23ze.js → state-5w3e23ze.js} +0 -0
  847. /package/dist/chunks/{repository-cache-6agm2x70.js → state-6agm2x70.js} +0 -0
  848. /package/dist/chunks/{repository-cache-6prwharc.js → state-6prwharc.js} +0 -0
  849. /package/dist/chunks/{repository-cache-6q2bdcd1.js → state-6q2bdcd1.js} +0 -0
  850. /package/dist/chunks/{repository-cache-7akdwqpd.js → state-7akdwqpd.js} +0 -0
  851. /package/dist/chunks/{repository-cache-7m9af43g.js → state-7m9af43g.js} +0 -0
  852. /package/dist/chunks/{repository-cache-822emrt2.js → state-822emrt2.js} +0 -0
  853. /package/dist/chunks/{repository-cache-84wd9syh.js → state-84wd9syh.js} +0 -0
  854. /package/dist/chunks/{repository-cache-88xbtdfr.js → state-88xbtdfr.js} +0 -0
  855. /package/dist/chunks/{repository-cache-8n3pysct.js → state-8n3pysct.js} +0 -0
  856. /package/dist/chunks/{repository-cache-8wj87zfr.js → state-8wj87zfr.js} +0 -0
  857. /package/dist/chunks/{repository-cache-9a4afbnw.js → state-9a4afbnw.js} +0 -0
  858. /package/dist/chunks/{repository-cache-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
  859. /package/dist/chunks/{repository-cache-a6k6eb26.js → state-a6k6eb26.js} +0 -0
  860. /package/dist/chunks/{repository-cache-af5trqkr.js → state-af5trqkr.js} +0 -0
  861. /package/dist/chunks/{repository-cache-afrmfg78.js → state-afrmfg78.js} +0 -0
  862. /package/dist/chunks/{repository-cache-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
  863. /package/dist/chunks/{repository-cache-atq7p7m5.js → state-atq7p7m5.js} +0 -0
  864. /package/dist/chunks/{repository-cache-beh6qq61.js → state-beh6qq61.js} +0 -0
  865. /package/dist/chunks/{repository-cache-bhmrqjy3.js → state-bhmrqjy3.js} +0 -0
  866. /package/dist/chunks/{repository-cache-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
  867. /package/dist/chunks/{repository-cache-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
  868. /package/dist/chunks/{repository-cache-cf4snx6d.js → state-cf4snx6d.js} +0 -0
  869. /package/dist/chunks/{repository-cache-cqv5kn06.js → state-cqv5kn06.js} +0 -0
  870. /package/dist/chunks/{repository-cache-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
  871. /package/dist/chunks/{repository-cache-d9fn303g.js → state-d9fn303g.js} +0 -0
  872. /package/dist/chunks/{repository-cache-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
  873. /package/dist/chunks/{repository-cache-dap0rakb.js → state-dap0rakb.js} +0 -0
  874. /package/dist/chunks/{repository-cache-df08tz66.js → state-df08tz66.js} +0 -0
  875. /package/dist/chunks/{repository-cache-dy18nga0.js → state-dy18nga0.js} +0 -0
  876. /package/dist/chunks/{repository-cache-e5kj55wp.js → state-e5kj55wp.js} +0 -0
  877. /package/dist/chunks/{repository-cache-ean2d8b5.js → state-ean2d8b5.js} +0 -0
  878. /package/dist/chunks/{repository-cache-ec1grn59.js → state-ec1grn59.js} +0 -0
  879. /package/dist/chunks/{repository-cache-emrn6kk6.js → state-emrn6kk6.js} +0 -0
  880. /package/dist/chunks/{repository-cache-f0mxakyp.js → state-f0mxakyp.js} +0 -0
  881. /package/dist/chunks/{repository-cache-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
  882. /package/dist/chunks/{repository-cache-faypxj3z.js → state-faypxj3z.js} +0 -0
  883. /package/dist/chunks/{repository-cache-fd410y7t.js → state-fd410y7t.js} +0 -0
  884. /package/dist/chunks/{repository-cache-fkpq3x5p.js → state-fkpq3x5p.js} +0 -0
  885. /package/dist/chunks/{repository-cache-g4wezp1m.js → state-g4wezp1m.js} +0 -0
  886. /package/dist/chunks/{repository-cache-g86h250q.js → state-g86h250q.js} +0 -0
  887. /package/dist/chunks/{repository-cache-gebd4c9n.js → state-gebd4c9n.js} +0 -0
  888. /package/dist/chunks/{repository-cache-gftt206x.js → state-gftt206x.js} +0 -0
  889. /package/dist/chunks/{repository-cache-hcxmzztb.js → state-hcxmzztb.js} +0 -0
  890. /package/dist/chunks/{repository-cache-hk9envan.js → state-hk9envan.js} +0 -0
  891. /package/dist/chunks/{repository-cache-j2ntwpah.js → state-j2ntwpah.js} +0 -0
  892. /package/dist/chunks/{repository-cache-j5zkgpj8.js → state-j5zkgpj8.js} +0 -0
  893. /package/dist/chunks/{repository-cache-jjkms2e6.js → state-jjkms2e6.js} +0 -0
  894. /package/dist/chunks/{repository-cache-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
  895. /package/dist/chunks/{repository-cache-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
  896. /package/dist/chunks/{repository-cache-jwr30sdr.js → state-jwr30sdr.js} +0 -0
  897. /package/dist/chunks/{repository-cache-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
  898. /package/dist/chunks/{repository-cache-m18g726c.js → state-m18g726c.js} +0 -0
  899. /package/dist/chunks/{repository-cache-mp448xyj.js → state-mp448xyj.js} +0 -0
  900. /package/dist/chunks/{repository-cache-msx8hqn2.js → state-msx8hqn2.js} +0 -0
  901. /package/dist/chunks/{repository-cache-n05xt0ee.js → state-n05xt0ee.js} +0 -0
  902. /package/dist/chunks/{repository-cache-n3j8tn72.js → state-n3j8tn72.js} +0 -0
  903. /package/dist/chunks/{repository-cache-nh4v3znn.js → state-nh4v3znn.js} +0 -0
  904. /package/dist/chunks/{repository-cache-njntx4h6.js → state-njntx4h6.js} +0 -0
  905. /package/dist/chunks/{repository-cache-p71gwv9c.js → state-p71gwv9c.js} +0 -0
  906. /package/dist/chunks/{repository-cache-q3sfg36h.js → state-q3sfg36h.js} +0 -0
  907. /package/dist/chunks/{repository-cache-q74kybfr.js → state-q74kybfr.js} +0 -0
  908. /package/dist/chunks/{repository-cache-qaymkmh1.js → state-qaymkmh1.js} +0 -0
  909. /package/dist/chunks/{repository-cache-qb87gjwd.js → state-qb87gjwd.js} +0 -0
  910. /package/dist/chunks/{repository-cache-qfa1cgps.js → state-qfa1cgps.js} +0 -0
  911. /package/dist/chunks/{repository-cache-qg3g05ea.js → state-qg3g05ea.js} +0 -0
  912. /package/dist/chunks/{repository-cache-qrg20bc0.js → state-qrg20bc0.js} +0 -0
  913. /package/dist/chunks/{repository-cache-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
  914. /package/dist/chunks/{repository-cache-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
  915. /package/dist/chunks/{repository-cache-ssg3fenm.js → state-ssg3fenm.js} +0 -0
  916. /package/dist/chunks/{repository-cache-syrav9an.js → state-syrav9an.js} +0 -0
  917. /package/dist/chunks/{repository-cache-t03h4f5z.js → state-t03h4f5z.js} +0 -0
  918. /package/dist/chunks/{repository-cache-ty7weeps.js → state-ty7weeps.js} +0 -0
  919. /package/dist/chunks/{repository-cache-ve7vex1e.js → state-ve7vex1e.js} +0 -0
  920. /package/dist/chunks/{repository-cache-vtarvj67.js → state-vtarvj67.js} +0 -0
  921. /package/dist/chunks/{repository-cache-w803qqfp.js → state-w803qqfp.js} +0 -0
  922. /package/dist/chunks/{repository-cache-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
  923. /package/dist/chunks/{repository-cache-wer8tq1h.js → state-wer8tq1h.js} +0 -0
  924. /package/dist/chunks/{repository-cache-wtztk69x.js → state-wtztk69x.js} +0 -0
  925. /package/dist/chunks/{repository-cache-x0ckcb58.js → state-x0ckcb58.js} +0 -0
  926. /package/dist/chunks/{repository-cache-x61499pn.js → state-x61499pn.js} +0 -0
  927. /package/dist/chunks/{repository-cache-y44na4kk.js → state-y44na4kk.js} +0 -0
  928. /package/dist/chunks/{repository-cache-y8f7s663.js → state-y8f7s663.js} +0 -0
  929. /package/dist/chunks/{repository-cache-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
  930. /package/dist/chunks/{repository-cache-z0h12gs8.js → state-z0h12gs8.js} +0 -0
  931. /package/dist/chunks/{repository-cache-z5v4ffb3.js → state-z5v4ffb3.js} +0 -0
  932. /package/dist/chunks/{repository-cache-z9919s4g.js → state-z9919s4g.js} +0 -0
  933. /package/dist/chunks/{repository-cache-zxpyjp51.js → state-zxpyjp51.js} +0 -0
@@ -5,11 +5,18 @@ import type { Database } from "../database/database.js";
5
5
  import type { Instance } from "../instance/service.js";
6
6
  import type { SessionMessage } from "./message.js";
7
7
  import type { SessionSchema } from "./schema.js";
8
- import { BlobTable, SessionInboxTable, SessionMessageTable } from "./sql.js";
8
+ import { SessionInboxTable, SessionMessageTable } from "./sql.js";
9
9
  import { SessionStored } from "./stored.js";
10
10
  type DatabaseService = Database.Interface["db"];
11
11
  type MessageRow = typeof SessionMessageTable.$inferSelect;
12
12
  type InboxRow = typeof SessionInboxTable.$inferSelect;
13
+ type Part = Extract<MessageRow["data"], {
14
+ readonly content: unknown;
15
+ }>["content"][number];
16
+ /** A stored row, one `session_part` row, or the `session_part` rows of one assistant message. */
17
+ type Refs = MessageRow["data"] | InboxRow["payload"] | Part | {
18
+ readonly content: ReadonlyArray<Part>;
19
+ };
13
20
  /** Restores inline media for the refs in `session_message` rows. Rows without refs are returned untouched. */
14
21
  export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
15
22
  $client: import("effect/sql/SqlClient").SqlClient;
@@ -1838,14 +1845,226 @@ export declare const externalizePayload: <T extends {
1838
1845
  export declare const externalize: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1839
1846
  $client: import("effect/sql/SqlClient").SqlClient;
1840
1847
  }, 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>;
1848
+ /** {@link externalize} for one assistant part. Returns the same part when nothing moved. */
1849
+ export declare const externalizePart: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1850
+ $client: import("effect/sql/SqlClient").SqlClient;
1851
+ }, part: {
1852
+ readonly type: "tool";
1853
+ readonly id: string;
1854
+ readonly name: string;
1855
+ readonly executed?: boolean | undefined;
1856
+ readonly native?: {
1857
+ readonly [x: string]: unknown;
1858
+ } | undefined;
1859
+ readonly state: {
1860
+ readonly status: "streaming";
1861
+ readonly input: string;
1862
+ } | {
1863
+ readonly status: "running";
1864
+ readonly input: {
1865
+ readonly [x: string]: unknown;
1866
+ };
1867
+ readonly metadata: {
1868
+ readonly [x: string]: Schema.Json;
1869
+ };
1870
+ } | {
1871
+ readonly status: "completed";
1872
+ readonly input: {
1873
+ readonly [x: string]: unknown;
1874
+ };
1875
+ readonly content: readonly [{
1876
+ readonly type: "text";
1877
+ readonly text: string;
1878
+ } | {
1879
+ readonly type: "file";
1880
+ readonly uri: string;
1881
+ readonly mime: string;
1882
+ readonly name?: string | undefined;
1883
+ }, ...({
1884
+ readonly type: "text";
1885
+ readonly text: string;
1886
+ } | {
1887
+ readonly type: "file";
1888
+ readonly uri: string;
1889
+ readonly mime: string;
1890
+ readonly name?: string | undefined;
1891
+ })[]];
1892
+ readonly metadata?: {
1893
+ readonly [x: string]: Schema.Json;
1894
+ } | undefined;
1895
+ } | {
1896
+ readonly status: "error";
1897
+ readonly input: {
1898
+ readonly [x: string]: unknown;
1899
+ };
1900
+ readonly error: {
1901
+ readonly type: string;
1902
+ readonly message: string;
1903
+ readonly status?: number | undefined;
1904
+ readonly response?: {
1905
+ readonly body: string;
1906
+ } | undefined;
1907
+ readonly retryAfterMs?: number | undefined;
1908
+ };
1909
+ readonly content?: readonly [{
1910
+ readonly type: "text";
1911
+ readonly text: string;
1912
+ } | {
1913
+ readonly type: "file";
1914
+ readonly uri: string;
1915
+ readonly mime: string;
1916
+ readonly name?: string | undefined;
1917
+ }, ...({
1918
+ readonly type: "text";
1919
+ readonly text: string;
1920
+ } | {
1921
+ readonly type: "file";
1922
+ readonly uri: string;
1923
+ readonly mime: string;
1924
+ readonly name?: string | undefined;
1925
+ })[]] | undefined;
1926
+ readonly metadata?: {
1927
+ readonly [x: string]: Schema.Json;
1928
+ } | undefined;
1929
+ };
1930
+ readonly time: {
1931
+ readonly created: import("effect/DateTime").Utc;
1932
+ readonly ran?: import("effect/DateTime").Utc | undefined;
1933
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1934
+ };
1935
+ } | {
1936
+ readonly type: "text";
1937
+ readonly text: string;
1938
+ readonly native?: {
1939
+ readonly [x: string]: unknown;
1940
+ } | undefined;
1941
+ } | {
1942
+ readonly type: "reasoning";
1943
+ readonly text: string;
1944
+ readonly native?: {
1945
+ readonly [x: string]: unknown;
1946
+ } | undefined;
1947
+ readonly time?: {
1948
+ readonly created: import("effect/DateTime").Utc;
1949
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1950
+ } | undefined;
1951
+ }) => Effect.Effect<{
1952
+ readonly type: "tool";
1953
+ readonly id: string;
1954
+ readonly name: string;
1955
+ readonly executed?: boolean | undefined;
1956
+ readonly native?: {
1957
+ readonly [x: string]: unknown;
1958
+ } | undefined;
1959
+ readonly state: {
1960
+ readonly status: "streaming";
1961
+ readonly input: string;
1962
+ } | {
1963
+ readonly status: "running";
1964
+ readonly input: {
1965
+ readonly [x: string]: unknown;
1966
+ };
1967
+ readonly metadata: {
1968
+ readonly [x: string]: Schema.Json;
1969
+ };
1970
+ } | {
1971
+ readonly status: "completed";
1972
+ readonly input: {
1973
+ readonly [x: string]: unknown;
1974
+ };
1975
+ readonly content: readonly [{
1976
+ readonly type: "text";
1977
+ readonly text: string;
1978
+ } | {
1979
+ readonly type: "file";
1980
+ readonly uri: string;
1981
+ readonly mime: string;
1982
+ readonly name?: string | undefined;
1983
+ }, ...({
1984
+ readonly type: "text";
1985
+ readonly text: string;
1986
+ } | {
1987
+ readonly type: "file";
1988
+ readonly uri: string;
1989
+ readonly mime: string;
1990
+ readonly name?: string | undefined;
1991
+ })[]];
1992
+ readonly metadata?: {
1993
+ readonly [x: string]: Schema.Json;
1994
+ } | undefined;
1995
+ } | {
1996
+ readonly status: "error";
1997
+ readonly input: {
1998
+ readonly [x: string]: unknown;
1999
+ };
2000
+ readonly error: {
2001
+ readonly type: string;
2002
+ readonly message: string;
2003
+ readonly status?: number | undefined;
2004
+ readonly response?: {
2005
+ readonly body: string;
2006
+ } | undefined;
2007
+ readonly retryAfterMs?: number | undefined;
2008
+ };
2009
+ readonly content?: readonly [{
2010
+ readonly type: "text";
2011
+ readonly text: string;
2012
+ } | {
2013
+ readonly type: "file";
2014
+ readonly uri: string;
2015
+ readonly mime: string;
2016
+ readonly name?: string | undefined;
2017
+ }, ...({
2018
+ readonly type: "text";
2019
+ readonly text: string;
2020
+ } | {
2021
+ readonly type: "file";
2022
+ readonly uri: string;
2023
+ readonly mime: string;
2024
+ readonly name?: string | undefined;
2025
+ })[]] | undefined;
2026
+ readonly metadata?: {
2027
+ readonly [x: string]: Schema.Json;
2028
+ } | undefined;
2029
+ };
2030
+ readonly time: {
2031
+ readonly created: import("effect/DateTime").Utc;
2032
+ readonly ran?: import("effect/DateTime").Utc | undefined;
2033
+ readonly completed?: import("effect/DateTime").Utc | undefined;
2034
+ };
2035
+ } | {
2036
+ readonly type: "text";
2037
+ readonly text: string;
2038
+ readonly native?: {
2039
+ readonly [x: string]: unknown;
2040
+ } | undefined;
2041
+ } | {
2042
+ readonly type: "reasoning";
2043
+ readonly text: string;
2044
+ readonly native?: {
2045
+ readonly [x: string]: unknown;
2046
+ } | undefined;
2047
+ readonly time?: {
2048
+ readonly created: import("effect/DateTime").Utc;
2049
+ readonly completed?: import("effect/DateTime").Utc | undefined;
2050
+ } | undefined;
2051
+ }, never, never>;
1841
2052
  /**
1842
2053
  * Moves a stored row's inline media into blobs whatever the flag says, for offline backfills. Returns the row to
1843
2054
  * store (the same object when nothing moved), the blobs to insert, and every hash the row then names.
1844
2055
  */
1845
- export declare function split<T extends MessageRow["data"] | InboxRow["payload"]>(data: T): {
2056
+ export declare function split<T extends MessageRow["data"] | InboxRow["payload"] | Part>(data: T): {
1846
2057
  data: T;
1847
2058
  moved: boolean;
1848
- blobs: Array<typeof BlobTable.$inferInsert>;
2059
+ blobs: {
2060
+ bytes: number;
2061
+ data: Buffer<ArrayBufferLike>;
2062
+ hash: string;
2063
+ height?: number | null | undefined;
2064
+ mime: string;
2065
+ time_created?: number | undefined;
2066
+ width?: number | null | undefined;
2067
+ }[];
1849
2068
  hashes: Set<string>;
1850
2069
  };
1851
2070
  /**
@@ -2696,856 +2915,18 @@ export declare const externalizeRow: (db: import("../database/drizzle.js").Effec
2696
2915
  /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
2697
2916
  export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2698
2917
  $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>;
3126
- /** Records the refs a rewritten message names and releases the ones it no longer does. */
3127
- export declare const syncRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
3128
- $client: import("effect/sql/SqlClient").SqlClient;
3129
- }, owner: Owner, data: Omit<{
3130
- readonly id: string;
3131
- readonly metadata?: {
3132
- readonly [x: string]: unknown;
3133
- } | undefined;
3134
- readonly time: {
3135
- readonly created: number;
3136
- };
3137
- readonly type: "agent-switched";
3138
- readonly agent: string;
3139
- readonly previous?: string | undefined;
3140
- }, "id" | "type"> | Omit<{
3141
- readonly id: string;
3142
- readonly metadata?: {
3143
- readonly [x: string]: unknown;
3144
- } | undefined;
3145
- readonly time: {
3146
- readonly created: number;
3147
- };
3148
- readonly type: "model-switched";
3149
- readonly model: {
3150
- readonly id: string;
3151
- readonly providerID: string;
3152
- readonly variant?: string | undefined;
3153
- };
3154
- readonly previous?: {
3155
- readonly id: string;
3156
- readonly providerID: string;
3157
- readonly variant?: string | undefined;
3158
- } | undefined;
3159
- }, "id" | "type"> | Omit<{
3160
- readonly id: string;
3161
- readonly metadata?: {
3162
- readonly [x: string]: unknown;
3163
- } | undefined;
3164
- readonly time: {
3165
- readonly created: number;
3166
- };
3167
- readonly type: "location-switched";
3168
- readonly location: {
3169
- readonly directory: string;
3170
- readonly workspaceID?: string | undefined;
3171
- };
3172
- readonly projectID?: string | undefined;
3173
- readonly subpath?: string | undefined;
3174
- readonly previous?: {
3175
- readonly location: {
3176
- readonly directory: string;
3177
- readonly workspaceID?: string | undefined;
3178
- };
3179
- readonly projectID?: string | undefined;
3180
- readonly subpath?: string | undefined;
3181
- } | undefined;
3182
- }, "id" | "type"> | Omit<{
3183
- readonly id: string;
3184
- readonly metadata?: {
3185
- readonly [x: string]: unknown;
3186
- } | undefined;
3187
- readonly time: {
3188
- readonly created: number;
3189
- };
3190
- readonly text: string;
3191
- readonly description?: string | undefined;
3192
- readonly type: "synthetic";
3193
- }, "id" | "type"> | Omit<{
3194
- readonly id: string;
3195
- readonly metadata?: {
3196
- readonly [x: string]: unknown;
3197
- } | undefined;
3198
- readonly time: {
3199
- readonly created: number;
3200
- };
3201
- readonly type: "system";
3202
- readonly text: string;
3203
- readonly description?: string | undefined;
3204
- }, "id" | "type"> | Omit<{
3205
- readonly id: string;
3206
- readonly metadata?: {
3207
- readonly [x: string]: unknown;
3208
- } | undefined;
3209
- readonly time: {
3210
- readonly created: number;
3211
- };
3212
- readonly type: "skill";
3213
- readonly skill: string;
3214
- readonly name: string;
3215
- readonly text: string;
3216
- }, "id" | "type"> | Omit<{
3217
- readonly id: string;
3218
- readonly metadata?: {
3219
- readonly [x: string]: unknown;
3220
- } | undefined;
3221
- readonly type: "shell";
3222
- readonly shellID: string;
3223
- readonly command: string;
3224
- readonly status: "exited" | "killed" | "running" | "timeout";
3225
- readonly exit?: number | undefined;
3226
- readonly output?: {
3227
- readonly output: string;
3228
- readonly cursor: number;
3229
- readonly size: number;
3230
- readonly truncated: boolean;
3231
- } | undefined;
3232
- readonly time: {
3233
- readonly created: number;
3234
- readonly completed?: number | undefined;
3235
- };
3236
- }, "id" | "type"> | Omit<{
3237
- readonly id: string;
3238
- readonly metadata?: {
3239
- readonly [x: string]: unknown;
3240
- } | undefined;
3241
- readonly type: "assistant";
3242
- readonly agent: string;
3243
- readonly model: {
3244
- readonly id: string;
3245
- readonly providerID: string;
3246
- readonly variant?: string | undefined;
3247
- };
3248
- readonly content: readonly ({
3249
- readonly type: "tool";
3250
- readonly id: string;
3251
- readonly name: string;
3252
- readonly executed?: boolean | undefined;
3253
- readonly native?: {
3254
- readonly [x: string]: unknown;
3255
- } | undefined;
3256
- readonly state: {
3257
- readonly status: "streaming";
3258
- readonly input: string;
3259
- } | {
3260
- readonly status: "running";
3261
- readonly input: {
3262
- readonly [x: string]: unknown;
3263
- };
3264
- readonly metadata: {
3265
- readonly [x: string]: Schema.Json;
3266
- };
3267
- } | {
3268
- readonly status: "completed";
3269
- readonly input: {
3270
- readonly [x: string]: unknown;
3271
- };
3272
- readonly content: readonly [{
3273
- readonly type: "text";
3274
- readonly text: string;
3275
- } | {
3276
- readonly type: "file";
3277
- readonly uri: string;
3278
- readonly mime: string;
3279
- readonly name?: string | undefined;
3280
- }, ...({
3281
- readonly type: "text";
3282
- readonly text: string;
3283
- } | {
3284
- readonly type: "file";
3285
- readonly uri: string;
3286
- readonly mime: string;
3287
- readonly name?: string | undefined;
3288
- })[]];
3289
- readonly metadata?: {
3290
- readonly [x: string]: Schema.Json;
3291
- } | undefined;
3292
- } | {
3293
- readonly status: "error";
3294
- readonly input: {
3295
- readonly [x: string]: unknown;
3296
- };
3297
- readonly error: {
3298
- readonly type: string;
3299
- readonly message: string;
3300
- readonly status?: number | undefined;
3301
- readonly response?: {
3302
- readonly body: string;
3303
- } | undefined;
3304
- readonly retryAfterMs?: number | undefined;
3305
- };
3306
- readonly content?: readonly [{
3307
- readonly type: "text";
3308
- readonly text: string;
3309
- } | {
3310
- readonly type: "file";
3311
- readonly uri: string;
3312
- readonly mime: string;
3313
- readonly name?: string | undefined;
3314
- }, ...({
3315
- readonly type: "text";
3316
- readonly text: string;
3317
- } | {
3318
- readonly type: "file";
3319
- readonly uri: string;
3320
- readonly mime: string;
3321
- readonly name?: string | undefined;
3322
- })[]] | undefined;
3323
- readonly metadata?: {
3324
- readonly [x: string]: Schema.Json;
3325
- } | undefined;
3326
- };
3327
- readonly time: {
3328
- readonly created: number;
3329
- readonly ran?: number | undefined;
3330
- readonly completed?: number | undefined;
3331
- };
3332
- } | {
3333
- readonly type: "text";
3334
- readonly text: string;
3335
- readonly native?: {
3336
- readonly [x: string]: unknown;
3337
- } | undefined;
3338
- } | {
3339
- readonly type: "reasoning";
3340
- readonly text: string;
3341
- readonly native?: {
3342
- readonly [x: string]: unknown;
3343
- } | undefined;
3344
- readonly time?: {
3345
- readonly created: number;
3346
- readonly completed?: number | undefined;
3347
- } | undefined;
3348
- })[];
3349
- readonly snapshot?: {
3350
- readonly start?: string | undefined;
3351
- readonly end?: string | undefined;
3352
- readonly files?: readonly string[] | undefined;
3353
- } | undefined;
3354
- readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
3355
- readonly rawFinish?: string | undefined;
3356
- readonly native?: {
3357
- readonly [x: string]: unknown;
3358
- } | undefined;
3359
- readonly cost?: number | undefined;
3360
- readonly tokens?: {
3361
- readonly input: number;
3362
- readonly output: number;
3363
- readonly reasoning: number;
3364
- readonly cache: {
3365
- readonly read: number;
3366
- readonly write: number;
3367
- };
3368
- } | undefined;
3369
- readonly error?: {
3370
- readonly type: string;
3371
- readonly message: string;
3372
- readonly status?: number | undefined;
3373
- readonly response?: {
3374
- readonly body: string;
3375
- } | undefined;
3376
- readonly retryAfterMs?: number | undefined;
3377
- } | undefined;
3378
- readonly retry?: {
3379
- readonly attempt: number;
3380
- readonly at: number;
3381
- readonly error: {
3382
- readonly type: string;
3383
- readonly message: string;
3384
- readonly status?: number | undefined;
3385
- readonly response?: {
3386
- readonly body: string;
3387
- } | undefined;
3388
- readonly retryAfterMs?: number | undefined;
3389
- };
3390
- } | undefined;
3391
- readonly time: {
3392
- readonly created: number;
3393
- readonly streamed?: number | undefined;
3394
- readonly completed?: number | undefined;
3395
- };
3396
- }, "id" | "type"> | Omit<{
3397
- readonly id: string;
3398
- readonly metadata?: {
3399
- readonly [x: string]: unknown;
3400
- } | undefined;
3401
- readonly time: {
3402
- readonly created: number;
3403
- };
3404
- readonly type: "compaction";
3405
- readonly status: "running";
3406
- readonly reason: "auto" | "manual";
3407
- readonly summary: string;
3408
- }, "id" | "type"> | Omit<{
3409
- readonly id: string;
3410
- readonly metadata?: {
3411
- readonly [x: string]: unknown;
3412
- } | undefined;
3413
- readonly time: {
3414
- readonly created: number;
3415
- };
3416
- readonly type: "compaction";
3417
- readonly cost?: number | undefined;
3418
- readonly tokens?: {
3419
- readonly input: number;
3420
- readonly output: number;
3421
- readonly reasoning: number;
3422
- readonly cache: {
3423
- readonly read: number;
3424
- readonly write: number;
3425
- };
3426
- } | undefined;
3427
- readonly status: "completed";
3428
- readonly reason: "auto" | "manual";
3429
- readonly model?: {
3430
- readonly id: string;
3431
- readonly providerID: string;
3432
- readonly variant?: string | undefined;
3433
- } | undefined;
3434
- readonly native?: {
3435
- readonly [x: string]: unknown;
3436
- } | undefined;
3437
- readonly summary: string;
3438
- }, "id" | "type"> | Omit<{
3439
- readonly id: string;
3440
- readonly metadata?: {
3441
- readonly [x: string]: unknown;
3442
- } | undefined;
3443
- readonly time: {
3444
- readonly created: number;
3445
- };
3446
- readonly type: "compaction";
3447
- readonly cost?: number | undefined;
3448
- readonly tokens?: {
3449
- readonly input: number;
3450
- readonly output: number;
3451
- readonly reasoning: number;
3452
- readonly cache: {
3453
- readonly read: number;
3454
- readonly write: number;
3455
- };
3456
- } | undefined;
3457
- readonly status: "failed";
3458
- readonly reason: "auto" | "manual";
3459
- readonly error: {
3460
- readonly type: string;
3461
- readonly message: string;
3462
- readonly status?: number | undefined;
3463
- readonly response?: {
3464
- readonly body: string;
3465
- } | undefined;
3466
- readonly retryAfterMs?: number | undefined;
3467
- };
3468
- }, "id" | "type"> | Omit<{
3469
- readonly id: string;
3470
- readonly metadata?: {
3471
- readonly [x: string]: unknown;
3472
- } | undefined;
3473
- readonly time: {
3474
- readonly created: number;
3475
- };
3476
- readonly type: "idle";
3477
- readonly outcome: "failed" | "interrupted" | "succeeded";
3478
- readonly error?: {
3479
- readonly type: string;
3480
- readonly message: string;
3481
- readonly status?: number | undefined;
3482
- readonly response?: {
3483
- readonly body: string;
3484
- } | undefined;
3485
- readonly retryAfterMs?: number | undefined;
3486
- } | undefined;
3487
- }, "id" | "type"> | Omit<{
3488
- readonly id: string;
3489
- readonly metadata?: {
3490
- readonly [x: string]: unknown;
3491
- } | undefined;
3492
- readonly time: {
3493
- readonly created: number;
3494
- };
3495
- readonly text: string;
3496
- readonly agents?: readonly {
3497
- readonly name: string;
3498
- readonly mention?: {
3499
- readonly start: number;
3500
- readonly end: number;
3501
- readonly text: string;
3502
- } | undefined;
3503
- }[] | undefined;
3504
- readonly skills?: readonly {
3505
- readonly id: string;
3506
- readonly name: string;
3507
- readonly text?: string | undefined;
3508
- readonly mention?: {
3509
- readonly start: number;
3510
- readonly end: number;
3511
- readonly text: string;
3512
- } | undefined;
3513
- }[] | undefined;
3514
- readonly type: "user";
3515
- readonly files?: readonly ({
3516
- readonly data: string;
3517
- readonly mime: string;
3518
- readonly source: {
3519
- readonly type: "inline";
3520
- } | {
3521
- readonly type: "uri";
3522
- readonly uri: string;
3523
- };
3524
- readonly name?: string | undefined;
3525
- readonly description?: string | undefined;
3526
- readonly mention?: {
3527
- readonly start: number;
3528
- readonly end: number;
3529
- readonly text: string;
3530
- } | undefined;
3531
- } | {
3532
- readonly mime: string;
3533
- readonly source: {
3534
- readonly type: "inline";
3535
- } | {
3536
- readonly type: "uri";
3537
- readonly uri: string;
3538
- };
3539
- readonly name?: string | undefined;
3540
- readonly description?: string | undefined;
3541
- readonly mention?: {
3542
- readonly start: number;
3543
- readonly end: number;
3544
- readonly text: string;
3545
- } | undefined;
3546
- readonly uri: string;
3547
- })[] | undefined;
3548
- }, "id" | "type">) => Effect.Effect<void, never, never>;
2918
+ }, owner: Owner, data: Refs) => Effect.Effect<void, never, never>;
2919
+ /**
2920
+ * {@link recordRefs} for the given hashes only, such as the blobs an import took out of its own inline data, so
2921
+ * refs it carried in can't keep or expose blobs it never held.
2922
+ */
2923
+ export declare const recordHashes: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2924
+ $client: import("effect/sql/SqlClient").SqlClient;
2925
+ }, owner: Owner, hashes: ReadonlySet<string>) => Effect.Effect<void, never, never>;
2926
+ /** Records the refs a rewritten message names and releases the ones it no longer does. */
2927
+ export declare const syncRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2928
+ $client: import("effect/sql/SqlClient").SqlClient;
2929
+ }, owner: Owner, data: Refs) => Effect.Effect<void, never, never>;
3549
2930
  /** Releases the blobs a removed message or cancelled inbox row referenced. */
3550
2931
  export declare const releaseMessage: (db: DatabaseService, sessionID: SessionSchema.ID, messageID: SessionMessage.ID) => Effect.Effect<void, never, never>;
3551
2932
  /** Releases the blobs referenced at or after `seq`, for a revert. */