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

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 (849) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +87 -87
  3. package/dist/aisdk-native.js +99 -99
  4. package/dist/aisdk.js +105 -105
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +77 -77
  7. package/dist/chunks/{repository-av5s4abm.js → filesystem-04kfhdy6.js} +4 -4
  8. package/dist/chunks/{repository-34aktkbd.js → filesystem-0ef2mh1p.js} +11 -11
  9. package/dist/chunks/{repository-0j7gp832.js → filesystem-0j7gp832.js} +1 -1
  10. package/dist/chunks/{repository-56v7dcaj.js → filesystem-0j7sp27n.js} +5 -5
  11. package/dist/chunks/{repository-ha3gr0r3.js → filesystem-0p5w6zwq.js} +22 -22
  12. package/dist/chunks/{repository-ch4a6gtw.js → filesystem-0w2jttgf.js} +2 -2
  13. package/dist/chunks/{repository-ry8wv614.js → filesystem-11khfpwy.js} +10 -10
  14. package/dist/chunks/{repository-pgz7m435.js → filesystem-167dk08f.js} +34 -34
  15. package/dist/chunks/{repository-kgnmyx47.js → filesystem-195h2ce0.js} +33 -33
  16. package/dist/chunks/{repository-653nzf8n.js → filesystem-195qsevx.js} +74 -74
  17. package/dist/chunks/{repository-28z6cbgf.js → filesystem-19gd0q7m.js} +20 -20
  18. package/dist/chunks/{repository-pach9r6p.js → filesystem-1e6my1g7.js} +17 -17
  19. package/dist/chunks/{repository-gv0adxtq.js → filesystem-1fyseb9g.js} +30 -30
  20. package/dist/chunks/{repository-c46s9eb3.js → filesystem-1gyrxqmm.js} +5 -5
  21. package/dist/chunks/{repository-8b5v3532.js → filesystem-1q8aebw4.js} +5 -5
  22. package/dist/chunks/{repository-1x2knyw4.js → filesystem-1x2knyw4.js} +1 -1
  23. package/dist/chunks/{repository-dyy4zt3v.js → filesystem-204nxwvy.js} +47 -47
  24. package/dist/chunks/{repository-204s3925.js → filesystem-204s3925.js} +1 -1
  25. package/dist/chunks/{repository-vaq1yek0.js → filesystem-26x8chrq.js} +6 -6
  26. package/dist/chunks/{repository-1ep2p91f.js → filesystem-27w5k9zf.js} +2 -2
  27. package/dist/chunks/{repository-8ykqf5wm.js → filesystem-2am13szv.js} +8 -8
  28. package/dist/chunks/filesystem-2dkjcnxp.js +18 -0
  29. package/dist/chunks/{repository-8mkcdndv.js → filesystem-2gdytpx5.js} +29 -29
  30. package/dist/chunks/{repository-vfvg8wtj.js → filesystem-2k2r9cp7.js} +17 -17
  31. package/dist/chunks/{repository-0qj6yjmx.js → filesystem-2rhrbycz.js} +5 -5
  32. package/dist/chunks/{repository-1xbe02wa.js → filesystem-31s64znz.js} +24 -24
  33. package/dist/chunks/{repository-e2ne77ac.js → filesystem-36qx82yz.js} +4 -4
  34. package/dist/chunks/{repository-ayjs7tqn.js → filesystem-3cbjf1nt.js} +2 -2
  35. package/dist/chunks/{repository-d7jw5fp3.js → filesystem-3gse1gra.js} +15 -15
  36. package/dist/chunks/{repository-ak9j0n4g.js → filesystem-3gytc1y7.js} +45 -45
  37. package/dist/chunks/{repository-3hepkmqq.js → filesystem-3hepkmqq.js} +1 -1
  38. package/dist/chunks/{repository-p7y2ae2b.js → filesystem-3j4skgfc.js} +9 -9
  39. package/dist/chunks/{repository-2s8qs2ty.js → filesystem-3n9wrer5.js} +19 -19
  40. package/dist/chunks/{repository-3nnrz6f6.js → filesystem-3nnrz6f6.js} +1 -1
  41. package/dist/chunks/{repository-msv0m990.js → filesystem-3xfh9pkc.js} +16 -16
  42. package/dist/chunks/{repository-tm50zxtt.js → filesystem-40j8v2af.js} +348 -348
  43. package/dist/chunks/{repository-3vy7y2j7.js → filesystem-43h1mxk5.js} +78 -78
  44. package/dist/chunks/{repository-xkb2c2nh.js → filesystem-4m1azjz9.js} +21 -21
  45. package/dist/chunks/{repository-vsgz7a0v.js → filesystem-4papv57p.js} +30 -30
  46. package/dist/chunks/{repository-4pyp9zr9.js → filesystem-4pyp9zr9.js} +1 -1
  47. package/dist/chunks/{repository-x51cbw6r.js → filesystem-4r140ydd.js} +10 -10
  48. package/dist/chunks/{repository-4v008n1t.js → filesystem-4v008n1t.js} +1 -1
  49. package/dist/chunks/{repository-d9k7070j.js → filesystem-4xgq8f2s.js} +14 -14
  50. package/dist/chunks/{repository-4pjd4h0r.js → filesystem-53f1f277.js} +8 -8
  51. package/dist/chunks/{repository-f57gywq5.js → filesystem-57ye470h.js} +5 -5
  52. package/dist/chunks/{repository-8bw97m0q.js → filesystem-5d1r9gpy.js} +16 -16
  53. package/dist/chunks/{repository-40za9wsf.js → filesystem-5enarcya.js} +6 -6
  54. package/dist/chunks/{repository-86050tb7.js → filesystem-5erf8ecf.js} +23 -23
  55. package/dist/chunks/{repository-p718ct0k.js → filesystem-5f4zfvgc.js} +4 -4
  56. package/dist/chunks/{repository-fac3sjkm.js → filesystem-5hsr0zt7.js} +27 -27
  57. package/dist/chunks/{repository-5eksgbhk.js → filesystem-5k0ygmt7.js} +30 -30
  58. package/dist/chunks/{repository-8xe30kkw.js → filesystem-5khgwaht.js} +23 -23
  59. package/dist/chunks/{repository-5m9w47nd.js → filesystem-5m9w47nd.js} +1 -1
  60. package/dist/chunks/{repository-r96ere88.js → filesystem-5w1mdqt7.js} +4 -4
  61. package/dist/chunks/{repository-94k7vj63.js → filesystem-62brbbaq.js} +20 -20
  62. package/dist/chunks/{repository-59bskyqz.js → filesystem-630xfjjk.js} +3 -3
  63. package/dist/chunks/{repository-mpe4epve.js → filesystem-684rr1fc.js} +5 -5
  64. package/dist/chunks/{repository-6esdw8yj.js → filesystem-6esdw8yj.js} +1 -1
  65. package/dist/chunks/{repository-xa7zr3zm.js → filesystem-6s4bs33q.js} +6 -6
  66. package/dist/chunks/{repository-w8qtt4th.js → filesystem-76cb1hcw.js} +4 -4
  67. package/dist/chunks/{repository-3tzpckpe.js → filesystem-79dcp6vm.js} +11 -11
  68. package/dist/chunks/{repository-53qx6cqq.js → filesystem-79vckntf.js} +36 -36
  69. package/dist/chunks/{repository-7bmhse3q.js → filesystem-7bmhse3q.js} +1 -1
  70. package/dist/chunks/{repository-yd5kqwzv.js → filesystem-7g2g3969.js} +21 -21
  71. package/dist/chunks/{repository-d41dy4jz.js → filesystem-7gf675tv.js} +25 -25
  72. package/dist/chunks/{repository-bw29t359.js → filesystem-7m14jn42.js} +12 -12
  73. package/dist/chunks/{repository-7w2ypzdf.js → filesystem-7w2ypzdf.js} +1 -1
  74. package/dist/chunks/{repository-r2v87c26.js → filesystem-7xx3q0hc.js} +9 -9
  75. package/dist/chunks/{repository-8b3vzgkx.js → filesystem-8b3vzgkx.js} +1 -1
  76. package/dist/chunks/{repository-dvnqv6yn.js → filesystem-8dfptpqb.js} +4 -4
  77. package/dist/chunks/{repository-55g1gb2r.js → filesystem-8fgfvr5b.js} +14 -14
  78. package/dist/chunks/{repository-8jztxfpf.js → filesystem-8jztxfpf.js} +1 -1
  79. package/dist/chunks/{repository-d4adk9sf.js → filesystem-8k393grp.js} +6 -6
  80. package/dist/chunks/{repository-x4v825th.js → filesystem-8sv07mwj.js} +11 -11
  81. package/dist/chunks/{repository-5dgv37f6.js → filesystem-8txy58cb.js} +15 -15
  82. package/dist/chunks/{repository-8wtp7s3z.js → filesystem-8wtp7s3z.js} +1 -1
  83. package/dist/chunks/{repository-abrs8pjj.js → filesystem-8x0pab5n.js} +10 -10
  84. package/dist/chunks/{repository-wb47rx5c.js → filesystem-8x6dz44a.js} +5 -5
  85. package/dist/chunks/{repository-87e2vapc.js → filesystem-90kfhhe6.js} +35 -35
  86. package/dist/chunks/{repository-90zstvax.js → filesystem-90zstvax.js} +1 -1
  87. package/dist/chunks/{repository-m227na57.js → filesystem-98tqkwke.js} +11 -11
  88. package/dist/chunks/{repository-war8sgwz.js → filesystem-9a0z0sm4.js} +19 -19
  89. package/dist/chunks/{repository-gk3m201e.js → filesystem-9azm90ns.js} +20 -20
  90. package/dist/chunks/{repository-chfbpvyw.js → filesystem-9bnd18qk.js} +17 -17
  91. package/dist/chunks/{repository-v816cg4v.js → filesystem-9exsw83t.js} +11 -11
  92. package/dist/chunks/{repository-zapma743.js → filesystem-9js77jy1.js} +3 -3
  93. package/dist/chunks/{repository-ntref8y6.js → filesystem-9jzp3j8d.js} +24 -24
  94. package/dist/chunks/{repository-4jdk4m55.js → filesystem-9pt42hrs.js} +18 -18
  95. package/dist/chunks/{repository-2mfa6jt6.js → filesystem-9t393xpw.js} +39 -39
  96. package/dist/chunks/{repository-9n6p1q61.js → filesystem-9yk2b1f9.js} +7 -7
  97. package/dist/chunks/{repository-034tev2y.js → filesystem-aj7mw0zk.js} +2 -2
  98. package/dist/chunks/{repository-jkgxvka5.js → filesystem-aktfspq0.js} +11 -11
  99. package/dist/chunks/{repository-k48h5se1.js → filesystem-am4a9j2m.js} +3 -3
  100. package/dist/chunks/{repository-g0x9f173.js → filesystem-amvexxv0.js} +45 -45
  101. package/dist/chunks/{repository-5mprhnrj.js → filesystem-b4a5nyx5.js} +196 -196
  102. package/dist/chunks/{repository-b6vsg801.js → filesystem-b6vsg801.js} +2 -2
  103. package/dist/chunks/{repository-fvg4pwjj.js → filesystem-bafv7pw0.js} +7 -7
  104. package/dist/chunks/{repository-dmpan285.js → filesystem-bd6gbyhv.js} +8 -8
  105. package/dist/chunks/{repository-ha05q1k1.js → filesystem-bm0v3ha5.js} +26 -26
  106. package/dist/chunks/{repository-kv757zv6.js → filesystem-bpqrf6t1.js} +12 -12
  107. package/dist/chunks/{repository-4bwthz3m.js → filesystem-bsrm4kv0.js} +6 -6
  108. package/dist/chunks/{repository-xd9cc171.js → filesystem-bstexjd6.js} +5 -5
  109. package/dist/chunks/{repository-zdf3gzwx.js → filesystem-bt2f0stj.js} +33 -33
  110. package/dist/chunks/{repository-7hdgky85.js → filesystem-bt9jv65t.js} +32 -32
  111. package/dist/chunks/{repository-b8fn1a2b.js → filesystem-bv0cpx15.js} +9 -9
  112. package/dist/chunks/{repository-8dx40r31.js → filesystem-c28jsxxt.js} +24 -24
  113. package/dist/chunks/{repository-sqkqhx99.js → filesystem-c6zarp28.js} +14 -14
  114. package/dist/chunks/{repository-n7wq2c5f.js → filesystem-c951tkze.js} +7 -7
  115. package/dist/chunks/{repository-c9t2ty9q.js → filesystem-c9t2ty9q.js} +1 -1
  116. package/dist/chunks/{repository-meq5xayt.js → filesystem-ce6qzbvg.js} +17 -17
  117. package/dist/chunks/filesystem-cn3hegtz.js +26 -0
  118. package/dist/chunks/{repository-0ahs07zn.js → filesystem-cpvd08na.js} +4 -4
  119. package/dist/chunks/{repository-r1zag3k4.js → filesystem-crx66x63.js} +21 -21
  120. package/dist/chunks/{repository-cwrgdav8.js → filesystem-cwrgdav8.js} +2 -2
  121. package/dist/chunks/{repository-4127byac.js → filesystem-cx9pac8b.js} +4 -4
  122. package/dist/chunks/{repository-semxt4qn.js → filesystem-d3ckdkwn.js} +22 -22
  123. package/dist/chunks/{repository-bp73kexw.js → filesystem-daeazrnz.js} +14 -14
  124. package/dist/chunks/{repository-9wzjb77v.js → filesystem-dkqbcpdf.js} +5 -5
  125. package/dist/chunks/{repository-dt77769w.js → filesystem-dt77769w.js} +1 -1
  126. package/dist/chunks/filesystem-dwbakpgx.js +257 -0
  127. package/dist/chunks/{repository-4twczz1d.js → filesystem-e4zn5652.js} +3 -3
  128. package/dist/chunks/{repository-e834z07m.js → filesystem-e834z07m.js} +1 -1
  129. package/dist/chunks/{repository-8t5bg94k.js → filesystem-e8mz2xb5.js} +45 -45
  130. package/dist/chunks/{repository-zvwzcwk0.js → filesystem-e9fqtmvn.js} +6 -6
  131. package/dist/chunks/{repository-fmff55yr.js → filesystem-ehrt3y5n.js} +12 -12
  132. package/dist/chunks/{repository-nyqa861q.js → filesystem-enmtzxqx.js} +13 -13
  133. package/dist/chunks/{repository-6a610sb4.js → filesystem-ew8c46dw.js} +11 -11
  134. package/dist/chunks/{repository-ngwn9sfh.js → filesystem-f76bnh21.js} +32 -32
  135. package/dist/chunks/{repository-2y8z5rdx.js → filesystem-f7b4jqep.js} +19 -19
  136. package/dist/chunks/{repository-j2h2v56y.js → filesystem-fdje41h6.js} +32 -32
  137. package/dist/chunks/{repository-fffv3p7h.js → filesystem-fffv3p7h.js} +1 -1
  138. package/dist/chunks/{repository-w6qag2k8.js → filesystem-ffg810n4.js} +21 -21
  139. package/dist/chunks/{repository-prq7xxp2.js → filesystem-fg9p65nk.js} +6 -6
  140. package/dist/chunks/{repository-kmkjyfhv.js → filesystem-fghs85vj.js} +19 -19
  141. package/dist/chunks/{repository-7nc6vhv1.js → filesystem-fs6ar2fx.js} +36 -36
  142. package/dist/chunks/{repository-aa83a44m.js → filesystem-fzbtpn6v.js} +4 -4
  143. package/dist/chunks/{repository-w687dnns.js → filesystem-fznmdakp.js} +4 -4
  144. package/dist/chunks/{repository-vzrdr816.js → filesystem-g14zw2sb.js} +46 -46
  145. package/dist/chunks/{repository-99hh273v.js → filesystem-g2d7pwec.js} +6 -6
  146. package/dist/chunks/{repository-rkvjm6bb.js → filesystem-g8ffzbm5.js} +3 -3
  147. package/dist/chunks/{repository-mtf9rx2d.js → filesystem-gcbtwra8.js} +8 -8
  148. package/dist/chunks/{repository-0erz1dmz.js → filesystem-gerrpf33.js} +4 -4
  149. package/dist/chunks/{repository-3ys2qbze.js → filesystem-gfv476g8.js} +9 -9
  150. package/dist/chunks/{repository-t2dqqkmp.js → filesystem-gfwwbhdd.js} +22 -22
  151. package/dist/chunks/{repository-a2zbwxm7.js → filesystem-ghs82689.js} +11 -11
  152. package/dist/chunks/{repository-d4v9tmah.js → filesystem-gn8tkhbf.js} +2 -2
  153. package/dist/chunks/{repository-50jfwd0b.js → filesystem-gq549b3b.js} +4 -4
  154. package/dist/chunks/{repository-1yck77gx.js → filesystem-gr5tmgzz.js} +5 -5
  155. package/dist/chunks/{repository-94cvkwyc.js → filesystem-gyqryh5y.js} +8 -8
  156. package/dist/chunks/{repository-360yt0tf.js → filesystem-h0ppebc3.js} +8 -8
  157. package/dist/chunks/{repository-vzr2jnmc.js → filesystem-h5137fsx.js} +5 -5
  158. package/dist/chunks/{repository-2yksqsyz.js → filesystem-h68jz125.js} +41 -41
  159. package/dist/chunks/{repository-hds1b6c6.js → filesystem-hb2vdfk5.js} +13 -13
  160. package/dist/chunks/{repository-h0rg6s60.js → filesystem-hd3k4wz8.js} +4 -4
  161. package/dist/chunks/{repository-d9s3h93w.js → filesystem-hk9d81vf.js} +21 -21
  162. package/dist/chunks/{repository-hpg1pkwy.js → filesystem-hpg1pkwy.js} +1 -1
  163. package/dist/chunks/{repository-t9nzfb3m.js → filesystem-ht92kc8y.js} +20 -20
  164. package/dist/chunks/{repository-6ahrxn7h.js → filesystem-j3gxxqsz.js} +26 -26
  165. package/dist/chunks/{repository-jfaecv01.js → filesystem-jfaecv01.js} +1 -1
  166. package/dist/chunks/{repository-y6699624.js → filesystem-jphwvgs8.js} +8 -8
  167. package/dist/chunks/{repository-2qfs2vgm.js → filesystem-js15026g.js} +13 -13
  168. package/dist/chunks/{repository-jtnps1zs.js → filesystem-jtnps1zs.js} +2 -2
  169. package/dist/chunks/{repository-qwzfnxry.js → filesystem-jv7sy112.js} +23 -20
  170. package/dist/chunks/{repository-gsn0hbky.js → filesystem-jydyt1jv.js} +29 -29
  171. package/dist/chunks/{repository-c1gtqsga.js → filesystem-jz8jyxed.js} +27 -27
  172. package/dist/chunks/{repository-n6mm56gb.js → filesystem-jzcwvdq8.js} +13 -13
  173. package/dist/chunks/{repository-q6earb14.js → filesystem-k004b52r.js} +25 -25
  174. package/dist/chunks/{repository-gpcc0bgy.js → filesystem-k4a4wn9h.js} +9 -9
  175. package/dist/chunks/{repository-k814nvkf.js → filesystem-k814nvkf.js} +1 -1
  176. package/dist/chunks/{repository-2scem4zq.js → filesystem-k93vvdep.js} +11 -11
  177. package/dist/chunks/{repository-s27fe866.js → filesystem-kavymhq0.js} +5 -5
  178. package/dist/chunks/{repository-s9br1ntq.js → filesystem-kbh9re52.js} +41 -41
  179. package/dist/chunks/{repository-nrqpxzzq.js → filesystem-kcbmbrq1.js} +16 -16
  180. package/dist/chunks/{repository-fhded4xh.js → filesystem-kg14195c.js} +8 -8
  181. package/dist/chunks/{repository-mvfvs5vr.js → filesystem-kkkxjsrn.js} +12 -12
  182. package/dist/chunks/{repository-kt3bjfbg.js → filesystem-kt3bjfbg.js} +1 -1
  183. package/dist/chunks/{repository-m1714858.js → filesystem-m1714858.js} +1 -1
  184. package/dist/chunks/{repository-bsdpkvp5.js → filesystem-m337p9dc.js} +9 -9
  185. package/dist/chunks/{repository-tqsn5rpq.js → filesystem-m8pt14ww.js} +6 -6
  186. package/dist/chunks/{repository-m9w0rfyh.js → filesystem-m9w0rfyh.js} +1 -1
  187. package/dist/chunks/{repository-9f15z1yv.js → filesystem-mbca2wch.js} +10 -10
  188. package/dist/chunks/{repository-yj5jfd5z.js → filesystem-mjyzbzxc.js} +5 -5
  189. package/dist/chunks/{repository-7x55e4f3.js → filesystem-mkryjhx5.js} +32 -32
  190. package/dist/chunks/{repository-e05k2b0s.js → filesystem-mstrsafp.js} +1 -1
  191. package/dist/chunks/{repository-4j3arzw1.js → filesystem-mv5c0h3x.js} +6 -6
  192. package/dist/chunks/{repository-pjbbp4st.js → filesystem-mw6cyxws.js} +29 -29
  193. package/dist/chunks/{repository-x78jh7xq.js → filesystem-n561m3b7.js} +19 -19
  194. package/dist/chunks/{repository-770pw0s1.js → filesystem-nah043kf.js} +4 -4
  195. package/dist/chunks/{repository-jzn0pxw0.js → filesystem-nazdnmrt.js} +15 -15
  196. package/dist/chunks/{repository-4zevbb2g.js → filesystem-nrefv84q.js} +48 -48
  197. package/dist/chunks/{repository-4qxgbnr8.js → filesystem-nshrevkn.js} +6 -6
  198. package/dist/chunks/{repository-626sad5p.js → filesystem-nsve5tx4.js} +11 -11
  199. package/dist/chunks/{repository-15wkvq9x.js → filesystem-ny1sy5a3.js} +4 -4
  200. package/dist/chunks/{repository-p015t6z3.js → filesystem-p015t6z3.js} +2 -2
  201. package/dist/chunks/{repository-p7vhpwh8.js → filesystem-p7vhpwh8.js} +1 -1
  202. package/dist/chunks/{repository-ymz7p2c9.js → filesystem-pakndkhn.js} +3 -3
  203. package/dist/chunks/{repository-anr40x3d.js → filesystem-pdbtcapx.js} +28 -28
  204. package/dist/chunks/{repository-30h5vszr.js → filesystem-pjg812bt.js} +21 -21
  205. package/dist/chunks/{repository-5h9w1760.js → filesystem-pkayehgb.js} +15 -15
  206. package/dist/chunks/{repository-pknna89w.js → filesystem-pknna89w.js} +1 -1
  207. package/dist/chunks/{repository-vaqj36aw.js → filesystem-pnr9n7z9.js} +16 -16
  208. package/dist/chunks/{repository-yara3q77.js → filesystem-pxtfkpje.js} +2 -2
  209. package/dist/chunks/{repository-24rck98s.js → filesystem-q09rr5xd.js} +27 -27
  210. package/dist/chunks/{repository-bzecdqed.js → filesystem-q9n7yxac.js} +10 -10
  211. package/dist/chunks/{repository-xrjfkxwf.js → filesystem-qcgrm8q2.js} +33 -33
  212. package/dist/chunks/{repository-cmdwg2dr.js → filesystem-qh51c2hm.js} +14 -14
  213. package/dist/chunks/{repository-1d0hekf1.js → filesystem-qm7hy0s1.js} +32 -32
  214. package/dist/chunks/{repository-qp7r0hxv.js → filesystem-qp7r0hxv.js} +1 -1
  215. package/dist/chunks/{repository-qqvy8y24.js → filesystem-qqvy8y24.js} +1 -1
  216. package/dist/chunks/{repository-pamhxmwe.js → filesystem-qvmjkfdq.js} +11 -11
  217. package/dist/chunks/{repository-hbwwzcqk.js → filesystem-qwzahezh.js} +3 -3
  218. package/dist/chunks/{repository-j360sx8s.js → filesystem-qy5vca9h.js} +5 -5
  219. package/dist/chunks/{repository-r0yr0wbs.js → filesystem-r0yr0wbs.js} +1 -1
  220. package/dist/chunks/{repository-9f3sjfep.js → filesystem-r4j0x99n.js} +9 -9
  221. package/dist/chunks/{repository-r542h3bh.js → filesystem-r542h3bh.js} +1 -1
  222. package/dist/chunks/{repository-t9xxwrxt.js → filesystem-r66kyd6j.js} +24 -24
  223. package/dist/chunks/{repository-267kfj3b.js → filesystem-rawze43q.js} +37 -37
  224. package/dist/chunks/{repository-rb9dy4dg.js → filesystem-rb9dy4dg.js} +1 -1
  225. package/dist/chunks/{repository-sg06s8x8.js → filesystem-rrjvevf9.js} +14 -14
  226. package/dist/chunks/{repository-rt5dr6hb.js → filesystem-rt5dr6hb.js} +1 -1
  227. package/dist/chunks/{repository-2jpjfffa.js → filesystem-rx9fgwcp.js} +9 -9
  228. package/dist/chunks/{repository-q61bmwds.js → filesystem-rxg1n2es.js} +3 -3
  229. package/dist/chunks/{repository-1r2kzq99.js → filesystem-s336ghke.js} +14 -14
  230. package/dist/chunks/{repository-s7gmm2q3.js → filesystem-s7gmm2q3.js} +3 -3
  231. package/dist/chunks/{repository-97c5t57a.js → filesystem-s7wv3tb2.js} +18 -18
  232. package/dist/chunks/{repository-sa3fpqfw.js → filesystem-sa3fpqfw.js} +2 -2
  233. package/dist/chunks/{repository-b5rc0sm5.js → filesystem-smjmfamq.js} +94 -92
  234. package/dist/chunks/{repository-k9zkdd2y.js → filesystem-snb901t2.js} +4 -4
  235. package/dist/chunks/{repository-v65we5h7.js → filesystem-snc187et.js} +21 -21
  236. package/dist/chunks/{repository-yq02jwn4.js → filesystem-srb5905y.js} +17 -17
  237. package/dist/chunks/{repository-svcy3p9a.js → filesystem-svcy3p9a.js} +1 -1
  238. package/dist/chunks/{repository-95g2r518.js → filesystem-t5ntgcha.js} +30 -30
  239. package/dist/chunks/{repository-tczq8hjw.js → filesystem-tczq8hjw.js} +1 -1
  240. package/dist/chunks/{repository-w8k3kdvv.js → filesystem-tfzwejs7.js} +11 -11
  241. package/dist/chunks/{repository-xgjk47c2.js → filesystem-tg6k312r.js} +19 -19
  242. package/dist/chunks/{repository-w4a5rcbb.js → filesystem-tge6e9e7.js} +15 -15
  243. package/dist/chunks/{repository-xdeca17p.js → filesystem-tgpcajrp.js} +27 -27
  244. package/dist/chunks/{repository-wvdwzn2w.js → filesystem-tvp0dzzs.js} +2 -2
  245. package/dist/chunks/{repository-z4pj4x9b.js → filesystem-twh1nspr.js} +9 -9
  246. package/dist/chunks/{repository-twssxy5n.js → filesystem-twssxy5n.js} +2 -2
  247. package/dist/chunks/{repository-cge55dh8.js → filesystem-tz83c6yk.js} +31 -31
  248. package/dist/chunks/{repository-s7kyse9r.js → filesystem-v0t96s7a.js} +4 -4
  249. package/dist/chunks/{repository-v2r1d0zg.js → filesystem-v2r1d0zg.js} +1 -1
  250. package/dist/chunks/{repository-hp5ggfzb.js → filesystem-v7t6jh72.js} +11 -11
  251. package/dist/chunks/{repository-gcjdgkn2.js → filesystem-vc2a1z4h.js} +9 -9
  252. package/dist/chunks/{repository-nfsrfhgk.js → filesystem-vd8rwa0c.js} +18 -18
  253. package/dist/chunks/{repository-a7vyxcv1.js → filesystem-vh2h6g1h.js} +18 -18
  254. package/dist/chunks/{repository-g7esga4v.js → filesystem-vmfhgzt5.js} +5 -5
  255. package/dist/chunks/{repository-5sdj5p51.js → filesystem-vpe8h0t6.js} +56 -56
  256. package/dist/chunks/{repository-tdzpe7ny.js → filesystem-vsmzqk2y.js} +56 -56
  257. package/dist/chunks/{repository-wbqjejvk.js → filesystem-vsr0eqbt.js} +2 -2
  258. package/dist/chunks/{repository-q2z2t1q0.js → filesystem-vx54jen0.js} +42 -42
  259. package/dist/chunks/{repository-91h4454q.js → filesystem-vykrxgmq.js} +1 -1
  260. package/dist/chunks/{repository-0f4tqvx5.js → filesystem-vys2hz9a.js} +2 -2
  261. package/dist/chunks/{repository-w3wsvvr9.js → filesystem-w3wsvvr9.js} +1 -1
  262. package/dist/chunks/{repository-sfy613zk.js → filesystem-waj9pdqz.js} +28 -28
  263. package/dist/chunks/{repository-wakvkjy4.js → filesystem-wakvkjy4.js} +1 -1
  264. package/dist/chunks/{repository-bkvh1vz1.js → filesystem-wav8c0w2.js} +25 -25
  265. package/dist/chunks/{repository-wd87259q.js → filesystem-wd87259q.js} +1 -1
  266. package/dist/chunks/{repository-wnhgecwx.js → filesystem-wnhgecwx.js} +1 -1
  267. package/dist/chunks/{repository-yekse1yq.js → filesystem-wr75p8wj.js} +21 -21
  268. package/dist/chunks/{repository-vykevjvn.js → filesystem-wz5tj16h.js} +5 -5
  269. package/dist/chunks/{repository-99q7081m.js → filesystem-x6rjmcaj.js} +17 -17
  270. package/dist/chunks/{repository-f44s1d53.js → filesystem-x85yhxtw.js} +23 -23
  271. package/dist/chunks/{repository-hax9wfhq.js → filesystem-xfqm8zp4.js} +8 -8
  272. package/dist/chunks/{repository-s6h2s3rz.js → filesystem-xk2zn0cv.js} +4 -4
  273. package/dist/chunks/{repository-j368t596.js → filesystem-xkkam4tz.js} +11 -11
  274. package/dist/chunks/{repository-xvjkytpn.js → filesystem-xm3a73ht.js} +7 -7
  275. package/dist/chunks/{repository-b0npgc9t.js → filesystem-xt0z8zst.js} +8 -8
  276. package/dist/chunks/{repository-kkebvfyp.js → filesystem-y73qp9rw.js} +23 -23
  277. package/dist/chunks/{repository-yb20nhc3.js → filesystem-yb20nhc3.js} +1 -1
  278. package/dist/chunks/{repository-zx29snpc.js → filesystem-yc4xwjk4.js} +9 -9
  279. package/dist/chunks/{repository-421f5x70.js → filesystem-ydjecrt5.js} +30 -14
  280. package/dist/chunks/{repository-g20aks6e.js → filesystem-yh0hfha7.js} +21 -21
  281. package/dist/chunks/{repository-2zp5a6yg.js → filesystem-yjjyz0e3.js} +3 -3
  282. package/dist/chunks/{repository-160yv0cs.js → filesystem-ykvsfm8k.js} +8 -8
  283. package/dist/chunks/{repository-nkr6yq9m.js → filesystem-ym1e38ts.js} +6 -6
  284. package/dist/chunks/{repository-7y253f34.js → filesystem-yr0nyka5.js} +10 -10
  285. package/dist/chunks/{repository-bz487fe5.js → filesystem-yvpg4w4a.js} +29 -29
  286. package/dist/chunks/{repository-n4cszq6s.js → filesystem-ywhza86r.js} +18 -18
  287. package/dist/chunks/{repository-g7fty37q.js → filesystem-yyx7mbnb.js} +23 -23
  288. package/dist/chunks/{repository-746hfkms.js → filesystem-z2m3me10.js} +17 -17
  289. package/dist/chunks/{repository-cncfqw11.js → filesystem-z2wtb6wa.js} +48 -48
  290. package/dist/chunks/{repository-z38nccrw.js → filesystem-z38nccrw.js} +1 -1
  291. package/dist/chunks/{repository-k7a4agay.js → filesystem-z8rc56ez.js} +19 -19
  292. package/dist/chunks/{repository-mzbswx4t.js → filesystem-zb5gs1ba.js} +3 -3
  293. package/dist/chunks/{repository-dsq3hdx8.js → filesystem-zcrmr4y4.js} +47 -47
  294. package/dist/chunks/{repository-6y263vp8.js → filesystem-zk53j53a.js} +5 -5
  295. package/dist/chunks/{repository-qx66ja59.js → filesystem-zqvff56k.js} +15 -15
  296. package/dist/chunks/{repository-ys7d052r.js → filesystem-zryjy72y.js} +27 -27
  297. package/dist/chunks/{repository-skbttzty.js → filesystem-zwftgptp.js} +9 -9
  298. package/dist/chunks/{repository-a2pcb318.js → filesystem-zyc5d1d0.js} +26 -26
  299. package/dist/chunks/{repository-5d4p0r89.js → filesystem-zytxfbbq.js} +15 -15
  300. package/dist/codemode/catalog.js +1 -1
  301. package/dist/codemode/instructions.js +7 -7
  302. package/dist/codemode/tool.js +3 -3
  303. package/dist/codemode/web.js +1 -1
  304. package/dist/command.js +91 -91
  305. package/dist/config/discovery.js +94 -94
  306. package/dist/config/integration.js +3 -3
  307. package/dist/config/markdown.js +1 -1
  308. package/dist/config/normalize.js +109 -109
  309. package/dist/config/plugin/agent.js +125 -125
  310. package/dist/config/plugin/command.js +223 -223
  311. package/dist/config/plugin/compaction.js +164 -164
  312. package/dist/config/plugin/compatibility.js +144 -144
  313. package/dist/config/plugin/entry-observer.js +1 -1
  314. package/dist/config/plugin/formatter.js +124 -124
  315. package/dist/config/plugin/image.js +123 -123
  316. package/dist/config/plugin/instruction.js +123 -123
  317. package/dist/config/plugin/location-watcher.js +123 -123
  318. package/dist/config/plugin/mcp.js +132 -132
  319. package/dist/config/plugin/policy.js +125 -125
  320. package/dist/config/plugin/provider.js +124 -124
  321. package/dist/config/plugin/reference.js +125 -125
  322. package/dist/config/plugin/shell.js +125 -125
  323. package/dist/config/plugin/skill-file.js +140 -140
  324. package/dist/config/plugin/skill-scan.js +3 -3
  325. package/dist/config/plugin/skill.js +147 -147
  326. package/dist/config/plugin/snapshot.js +123 -123
  327. package/dist/config/plugin/source.js +126 -126
  328. package/dist/config/plugin/tool-output.js +124 -124
  329. package/dist/config/plugin/websearch.js +124 -124
  330. package/dist/config/plugin/worktree.js +125 -125
  331. package/dist/config/variable.js +1 -1
  332. package/dist/config/watch.js +1 -1
  333. package/dist/config.js +126 -126
  334. package/dist/console-access.js +1 -1
  335. package/dist/credential/sql.js +2 -2
  336. package/dist/credential.js +93 -93
  337. package/dist/database/database.js +74 -74
  338. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  339. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  340. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  341. package/dist/database/drizzle/index.js +13 -13
  342. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  343. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  344. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  345. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  346. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  347. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  348. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  349. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  350. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  351. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  352. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  353. package/dist/database/drizzle.js +14 -14
  354. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  355. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  356. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  357. package/dist/database/migration/20260225215848_workspace.js +1 -1
  358. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  359. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  360. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  361. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  362. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  363. package/dist/database/migration/20260323234822_events.js +1 -1
  364. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  365. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  366. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  367. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  368. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  369. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  370. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  371. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  372. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  373. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  374. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  375. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  376. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  377. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  378. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  379. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  380. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  381. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  382. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  383. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  384. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  385. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  386. package/dist/database/migration/20260611035744_credential.js +1 -1
  387. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  388. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  389. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  390. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  391. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  392. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  393. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  394. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  395. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  396. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  397. package/dist/database/migration/20260812213948_worktree.js +1 -1
  398. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  399. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  400. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  401. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  402. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  403. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  404. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  405. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  406. package/dist/database/migration/20261025123711_blob.js +1 -1
  407. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  408. package/dist/database/migration/20261026223005_schedule.js +1 -1
  409. package/dist/database/migration/20261029002625_session_part.js +1 -1
  410. package/dist/database/migration.gen.js +57 -57
  411. package/dist/database/migration.js +59 -59
  412. package/dist/database/path.js +2 -2
  413. package/dist/database/schema.gen.js +1 -1
  414. package/dist/database/schema.sql.js +1 -1
  415. package/dist/database/sqlite.bun.js +1 -1
  416. package/dist/database/sqlite.js +1 -1
  417. package/dist/database/sqlite.node.js +1 -1
  418. package/dist/database/sqlite.workerd.js +1 -1
  419. package/dist/database/v1-migration.bun.js +102 -102
  420. package/dist/database/v1-migration.js +1 -1
  421. package/dist/effect/app-node-builder.js +387 -387
  422. package/dist/effect/app-node-platform.js +2 -2
  423. package/dist/effect/keyed-mutex.js +1 -1
  424. package/dist/effect/websocket-constructor.js +1 -1
  425. package/dist/environment/driver.js +1 -1
  426. package/dist/environment/environment.js +103 -103
  427. package/dist/environment/exec-defaults.js +2 -2
  428. package/dist/environment/files.js +1 -1
  429. package/dist/environment/index.js +105 -105
  430. package/dist/environment/local.js +2 -2
  431. package/dist/environment/memory.js +2 -2
  432. package/dist/environment/unavailable.js +3 -3
  433. package/dist/event/sql.js +1 -1
  434. package/dist/event-logger.js +78 -78
  435. package/dist/file-access.js +150 -150
  436. package/dist/file-mutation.js +104 -104
  437. package/dist/file-retention.js +1 -1
  438. package/dist/filesystem/fff.bun.js +2 -2
  439. package/dist/filesystem/fff.js +1 -1
  440. package/dist/filesystem/fff.node.js +2 -2
  441. package/dist/filesystem/fff.workerd.js +2 -2
  442. package/dist/filesystem/file-watch.js +85 -85
  443. package/dist/filesystem/location-watcher-policy.js +6 -6
  444. package/dist/filesystem/location-watcher.js +234 -234
  445. package/dist/filesystem/protected.js +3 -3
  446. package/dist/filesystem/search.js +109 -109
  447. package/dist/filesystem/watcher-binding.js +1 -1
  448. package/dist/filesystem/watcher.js +11 -11
  449. package/dist/filesystem.js +112 -112
  450. package/dist/form.js +82 -82
  451. package/dist/formatter/builtins.js +4 -4
  452. package/dist/formatter.js +97 -97
  453. package/dist/generate.js +117 -117
  454. package/dist/git.js +11 -11
  455. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  456. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  457. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  458. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  459. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  460. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  461. package/dist/github-copilot/copilot-provider.js +17 -17
  462. package/dist/github-copilot/models.js +109 -109
  463. package/dist/github-copilot/openai-compatible-error.js +1 -1
  464. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  465. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  466. package/dist/github-copilot/responses/openai-error.js +1 -1
  467. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  468. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  469. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  470. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  471. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  472. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  473. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  474. package/dist/image/notice.js +1 -1
  475. package/dist/image/photon-normalize.js +1 -1
  476. package/dist/image/photon-worker.js +1 -1
  477. package/dist/image/photon.js +4 -4
  478. package/dist/image.js +6 -6
  479. package/dist/instance/service.js +5 -5
  480. package/dist/instance.js +378 -378
  481. package/dist/instruction-discovery.js +94 -94
  482. package/dist/instructions/builtins.js +97 -97
  483. package/dist/instructions/index.js +5 -5
  484. package/dist/integration/connection.js +3 -3
  485. package/dist/integration.js +97 -97
  486. package/dist/job.js +86 -86
  487. package/dist/kv/sql.js +2 -2
  488. package/dist/kv.js +81 -81
  489. package/dist/location-activity.js +165 -165
  490. package/dist/location-lifecycle.js +144 -144
  491. package/dist/location-service-map.js +96 -96
  492. package/dist/location-services.js +375 -375
  493. package/dist/location.js +99 -99
  494. package/dist/managed-policy.js +3 -3
  495. package/dist/mcp/client.js +101 -101
  496. package/dist/mcp/index.js +119 -119
  497. package/dist/mcp/instructions.js +168 -168
  498. package/dist/mcp/oauth.js +86 -86
  499. package/dist/mcp/socket-client.js +1 -1
  500. package/dist/mcp/stdio.js +100 -100
  501. package/dist/mime.js +1 -1
  502. package/dist/modal/models.js +109 -109
  503. package/dist/model-resolver.js +109 -109
  504. package/dist/model-retry.js +1 -1
  505. package/dist/model.js +112 -112
  506. package/dist/models-dev/v1.js +1 -1
  507. package/dist/models-dev.js +112 -112
  508. package/dist/oauth/page.js +1 -1
  509. package/dist/permission/saved.js +88 -88
  510. package/dist/permission/sql.js +5 -5
  511. package/dist/permission.js +147 -147
  512. package/dist/persistent-pty/binary.bun.js +1 -1
  513. package/dist/persistent-pty/daemon.js +1 -1
  514. package/dist/persistent-pty/index.js +98 -98
  515. package/dist/persistent-pty/pty-binding.js +1 -1
  516. package/dist/persistent-pty.js +83 -83
  517. package/dist/plugin/agent.js +84 -84
  518. package/dist/plugin/command.js +112 -112
  519. package/dist/plugin/goal.js +3 -3
  520. package/dist/plugin/hooks.js +5 -5
  521. package/dist/plugin/host.js +229 -229
  522. package/dist/plugin/identity.js +5 -5
  523. package/dist/plugin/instance.js +5 -5
  524. package/dist/plugin/internal.js +348 -348
  525. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  526. package/dist/plugin/models-dev.js +107 -107
  527. package/dist/plugin/module.js +123 -123
  528. package/dist/plugin/optimize.js +2 -2
  529. package/dist/plugin/plan.js +140 -140
  530. package/dist/plugin/promise.js +1 -1
  531. package/dist/plugin/provider/amazon-bedrock.js +101 -101
  532. package/dist/plugin/provider/azure.js +121 -121
  533. package/dist/plugin/provider/cerebras.js +1 -1
  534. package/dist/plugin/provider/chatgpt.js +123 -123
  535. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  536. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  537. package/dist/plugin/provider/configured.js +119 -119
  538. package/dist/plugin/provider/credential-settings.js +82 -82
  539. package/dist/plugin/provider/databricks.js +1 -1
  540. package/dist/plugin/provider/digitalocean.js +103 -103
  541. package/dist/plugin/provider/dynamic.js +2 -2
  542. package/dist/plugin/provider/github-copilot.js +105 -105
  543. package/dist/plugin/provider/gitlab.js +104 -104
  544. package/dist/plugin/provider/google-vertex.js +120 -120
  545. package/dist/plugin/provider/kilo.js +1 -1
  546. package/dist/plugin/provider/llmgateway.js +86 -86
  547. package/dist/plugin/provider/lmstudio.js +132 -132
  548. package/dist/plugin/provider/local.js +129 -129
  549. package/dist/plugin/provider/modal.js +102 -102
  550. package/dist/plugin/provider/neon.js +1 -1
  551. package/dist/plugin/provider/nvidia.js +1 -1
  552. package/dist/plugin/provider/ollama.js +130 -130
  553. package/dist/plugin/provider/openai-context-caps.js +100 -100
  554. package/dist/plugin/provider/openai.js +123 -123
  555. package/dist/plugin/provider/opencode.js +126 -126
  556. package/dist/plugin/provider/openrouter.js +101 -101
  557. package/dist/plugin/provider/poe.js +87 -87
  558. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  559. package/dist/plugin/provider/sap-ai-core.js +101 -101
  560. package/dist/plugin/provider/sdk-factory.js +1 -1
  561. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  562. package/dist/plugin/provider/vllm.js +132 -132
  563. package/dist/plugin/provider/xai.js +101 -101
  564. package/dist/plugin/provider/zenmux.js +1 -1
  565. package/dist/plugin/provider.js +174 -174
  566. package/dist/plugin/sdk.js +82 -82
  567. package/dist/plugin/service.js +3 -3
  568. package/dist/plugin/skill.js +143 -143
  569. package/dist/plugin/source-directory.js +1 -1
  570. package/dist/plugin/supervisor.js +366 -366
  571. package/dist/plugin/tool-input-repair.js +4 -4
  572. package/dist/plugin/update.js +6 -6
  573. package/dist/plugin/vcs/git.js +96 -96
  574. package/dist/plugin/vcs/hg.js +96 -96
  575. package/dist/plugin/verbosity.js +103 -103
  576. package/dist/plugin/warming.js +121 -121
  577. package/dist/plugin/websearch/exa.js +5 -5
  578. package/dist/plugin/websearch/firecrawl.js +6 -6
  579. package/dist/plugin/websearch/index.js +9 -9
  580. package/dist/plugin/websearch/mcp.js +4 -4
  581. package/dist/plugin/websearch/parallel.js +8 -8
  582. package/dist/plugin/websearch/tavily.js +4 -4
  583. package/dist/plugin/websearch/tinyfish.js +8 -8
  584. package/dist/plugin.js +236 -236
  585. package/dist/project/icon.js +5 -5
  586. package/dist/project/schema.js +8 -8
  587. package/dist/project/sql.js +4 -4
  588. package/dist/project.js +98 -98
  589. package/dist/provider.js +109 -109
  590. package/dist/pty/protocol.js +1 -1
  591. package/dist/pty/ticket.js +1 -1
  592. package/dist/pty.js +104 -104
  593. package/dist/reference/instructions.js +98 -98
  594. package/dist/reference.js +98 -98
  595. package/dist/repository-cache.js +90 -90
  596. package/dist/repository.js +3 -3
  597. package/dist/ripgrep/binary.js +2 -2
  598. package/dist/ripgrep.js +105 -105
  599. package/dist/rpc.js +96 -96
  600. package/dist/schedule/sql.js +6 -6
  601. package/dist/schedule.js +229 -229
  602. package/dist/schema.js +1 -1
  603. package/dist/session/affinity.js +1 -1
  604. package/dist/session/background.js +1 -1
  605. package/dist/session/blob.js +132 -122
  606. package/dist/session/command.js +82 -82
  607. package/dist/session/compaction.js +166 -166
  608. package/dist/session/context.js +188 -188
  609. package/dist/session/diff.js +98 -98
  610. package/dist/session/environment.js +5 -5
  611. package/dist/session/error.js +5 -5
  612. package/dist/session/event.js +1 -1
  613. package/dist/session/execution/restart.js +231 -231
  614. package/dist/session/execution.js +154 -154
  615. package/dist/session/generate.js +190 -190
  616. package/dist/session/history.js +129 -129
  617. package/dist/session/inbox.js +138 -138
  618. package/dist/session/info.js +3 -3
  619. package/dist/session/instruction-entry.js +87 -87
  620. package/dist/session/instruction-state.js +8 -8
  621. package/dist/session/instructions.js +134 -134
  622. package/dist/session/message-updater.js +2 -2
  623. package/dist/session/message.js +1 -1
  624. package/dist/session/model-request.js +153 -153
  625. package/dist/session/model-transport.js +5 -5
  626. package/dist/session/move.js +158 -158
  627. package/dist/session/projector.js +136 -136
  628. package/dist/session/prompt.js +142 -142
  629. package/dist/session/recent-text.js +1 -1
  630. package/dist/session/revert.js +132 -132
  631. package/dist/session/run-coordinator.js +1 -1
  632. package/dist/session/runner/index.js +3 -3
  633. package/dist/session/runner/llm.js +241 -241
  634. package/dist/session/runner/max-steps.js +1 -1
  635. package/dist/session/runner/model.js +110 -110
  636. package/dist/session/runner/publish-llm-event.js +143 -143
  637. package/dist/session/runner/retry.js +5 -5
  638. package/dist/session/runner/step.js +156 -156
  639. package/dist/session/runner/to-llm-message.js +130 -130
  640. package/dist/session/schema.js +5 -5
  641. package/dist/session/session.js +174 -174
  642. package/dist/session/shell.js +137 -137
  643. package/dist/session/skill.js +141 -141
  644. package/dist/session/sql.js +5 -5
  645. package/dist/session/stats.js +81 -81
  646. package/dist/session/store.js +135 -135
  647. package/dist/session/stored.js +4 -4
  648. package/dist/session/subagent-completion.js +1 -1
  649. package/dist/session/subagent-job.js +217 -217
  650. package/dist/session/system-prompt.js +3 -3
  651. package/dist/session/title.js +194 -194
  652. package/dist/session/to-session-error.js +142 -142
  653. package/dist/session/transfer.js +250 -228
  654. package/dist/session/usage.js +1 -1
  655. package/dist/session.js +227 -227
  656. package/dist/shell/parse.js +8 -8
  657. package/dist/shell/result.js +1 -1
  658. package/dist/shell/scan.js +1 -1
  659. package/dist/shell/select.js +13 -13
  660. package/dist/shell.js +139 -139
  661. package/dist/skill/discovery.js +6 -6
  662. package/dist/skill/instructions.js +145 -145
  663. package/dist/skill.js +148 -148
  664. package/dist/snapshot.js +99 -99
  665. package/dist/state.js +1 -1
  666. package/dist/tool/html-markdown.js +1 -1
  667. package/dist/tool/http-body.js +1 -1
  668. package/dist/tool/mcp.js +167 -167
  669. package/dist/tool/plugin/edit.js +158 -158
  670. package/dist/tool/plugin/file-diff.js +1 -1
  671. package/dist/tool/plugin/glob.js +156 -156
  672. package/dist/tool/plugin/grep.js +158 -158
  673. package/dist/tool/plugin/image-generate.js +231 -231
  674. package/dist/tool/plugin/mcp-resource.js +156 -156
  675. package/dist/tool/plugin/opencode.js +155 -155
  676. package/dist/tool/plugin/patch.js +158 -158
  677. package/dist/tool/plugin/question.js +140 -140
  678. package/dist/tool/plugin/read.js +161 -161
  679. package/dist/tool/plugin/schedule.js +221 -221
  680. package/dist/tool/plugin/shell.js +226 -226
  681. package/dist/tool/plugin/skill.js +151 -151
  682. package/dist/tool/plugin/subagent.js +228 -228
  683. package/dist/tool/plugin/todo.js +147 -147
  684. package/dist/tool/plugin/webfetch.js +149 -149
  685. package/dist/tool/plugin/websearch.js +145 -145
  686. package/dist/tool/plugin/write.js +154 -154
  687. package/dist/tool/read-filesystem.js +110 -110
  688. package/dist/tool/runtime.js +1 -1
  689. package/dist/tool-output.js +7 -7
  690. package/dist/tool.js +12 -12
  691. package/dist/types/config/plugin/command.d.ts +1 -1
  692. package/dist/types/instance.d.ts +1 -1
  693. package/dist/types/location-activity.d.ts +1 -1
  694. package/dist/types/mcp/index.d.ts +1 -1
  695. package/dist/types/plugin/command.d.ts +1 -1
  696. package/dist/types/plugin/host.d.ts +2 -2
  697. package/dist/types/plugin/internal.d.ts +1 -1
  698. package/dist/types/plugin/models-dev.d.ts +1 -1
  699. package/dist/types/session/blob.d.ts +884 -17
  700. package/dist/types/session/compaction.d.ts +1 -1
  701. package/dist/types/session/execution/restart.d.ts +1 -1
  702. package/dist/types/session/execution.d.ts +1 -1
  703. package/dist/types/session/revert.d.ts +2 -2
  704. package/dist/types/session/runner/step.d.ts +1 -1
  705. package/dist/types/session/session.d.ts +1 -1
  706. package/dist/types/session/title.d.ts +1 -1
  707. package/dist/types/tool/mcp.d.ts +1 -1
  708. package/dist/types/tool/plugin/subagent.d.ts +1 -1
  709. package/dist/usage-limits.js +97 -97
  710. package/dist/util/error-summary.js +1 -1
  711. package/dist/util/git-executable.js +3 -3
  712. package/dist/util/lazy.js +1 -1
  713. package/dist/util/slug.js +1 -1
  714. package/dist/util/token.js +1 -1
  715. package/dist/util/which.js +1 -1
  716. package/dist/util/wildcard.js +1 -1
  717. package/dist/v1/config/agent.js +5 -5
  718. package/dist/v1/config/command.js +3 -3
  719. package/dist/v1/config/mcp.js +4 -4
  720. package/dist/v1/config/migrate.js +102 -102
  721. package/dist/v1/config/permission.js +3 -3
  722. package/dist/v1/config/plugin.js +1 -1
  723. package/dist/v1/config/provider-options.js +1 -1
  724. package/dist/v1/config/provider.js +4 -4
  725. package/dist/variant.js +103 -103
  726. package/dist/vcs/patch.js +1 -1
  727. package/dist/vcs.js +99 -99
  728. package/dist/voice.js +98 -98
  729. package/dist/websearch.js +94 -94
  730. package/dist/wellknown/plugin.js +84 -84
  731. package/dist/wellknown.js +89 -89
  732. package/dist/workspace/driver.js +5 -5
  733. package/dist/workspace/sql.js +1 -1
  734. package/dist/workspace.js +88 -88
  735. package/dist/worktree/directory.js +2 -2
  736. package/dist/worktree/git.js +11 -11
  737. package/dist/worktree/sql.js +5 -5
  738. package/dist/worktree/strategies.js +99 -99
  739. package/dist/worktree.js +106 -106
  740. package/package.json +8 -8
  741. package/dist/chunks/repository-fvnssjxv.js +0 -26
  742. package/dist/chunks/repository-qn96veqe.js +0 -257
  743. package/dist/chunks/repository-vdh3rgac.js +0 -18
  744. /package/dist/chunks/{repository-0qkdqm5v.js → filesystem-0qkdqm5v.js} +0 -0
  745. /package/dist/chunks/{repository-0zkw76rk.js → filesystem-0zkw76rk.js} +0 -0
  746. /package/dist/chunks/{repository-17cy0kzp.js → filesystem-17cy0kzp.js} +0 -0
  747. /package/dist/chunks/{repository-1cnp2v09.js → filesystem-1cnp2v09.js} +0 -0
  748. /package/dist/chunks/{repository-1jakw16s.js → filesystem-1jakw16s.js} +0 -0
  749. /package/dist/chunks/{repository-24dcb14g.js → filesystem-24dcb14g.js} +0 -0
  750. /package/dist/chunks/{repository-2710q6r3.js → filesystem-2710q6r3.js} +0 -0
  751. /package/dist/chunks/{repository-2bv980vf.js → filesystem-2bv980vf.js} +0 -0
  752. /package/dist/chunks/{repository-2c3vjs8z.js → filesystem-2c3vjs8z.js} +0 -0
  753. /package/dist/chunks/{repository-359p4xyc.js → filesystem-359p4xyc.js} +0 -0
  754. /package/dist/chunks/{repository-3asan66x.js → filesystem-3asan66x.js} +0 -0
  755. /package/dist/chunks/{repository-3v8g72cx.js → filesystem-3v8g72cx.js} +0 -0
  756. /package/dist/chunks/{repository-3wcehsnq.js → filesystem-3wcehsnq.js} +0 -0
  757. /package/dist/chunks/{repository-43n2bw4t.js → filesystem-43n2bw4t.js} +0 -0
  758. /package/dist/chunks/{repository-4knz6hnm.js → filesystem-4knz6hnm.js} +0 -0
  759. /package/dist/chunks/{repository-4vcrnpx2.js → filesystem-4vcrnpx2.js} +0 -0
  760. /package/dist/chunks/{repository-4y7fprxs.js → filesystem-4y7fprxs.js} +0 -0
  761. /package/dist/chunks/{repository-53557ph1.js → filesystem-53557ph1.js} +0 -0
  762. /package/dist/chunks/{repository-550bvhaj.js → filesystem-550bvhaj.js} +0 -0
  763. /package/dist/chunks/{repository-5w3e23ze.js → filesystem-5w3e23ze.js} +0 -0
  764. /package/dist/chunks/{repository-6prwharc.js → filesystem-6prwharc.js} +0 -0
  765. /package/dist/chunks/{repository-6q2bdcd1.js → filesystem-6q2bdcd1.js} +0 -0
  766. /package/dist/chunks/{repository-7akdwqpd.js → filesystem-7akdwqpd.js} +0 -0
  767. /package/dist/chunks/{repository-7m9af43g.js → filesystem-7m9af43g.js} +0 -0
  768. /package/dist/chunks/{repository-822emrt2.js → filesystem-822emrt2.js} +0 -0
  769. /package/dist/chunks/{repository-84wd9syh.js → filesystem-84wd9syh.js} +0 -0
  770. /package/dist/chunks/{repository-88xbtdfr.js → filesystem-88xbtdfr.js} +0 -0
  771. /package/dist/chunks/{repository-8n3pysct.js → filesystem-8n3pysct.js} +0 -0
  772. /package/dist/chunks/{repository-8wj87zfr.js → filesystem-8wj87zfr.js} +0 -0
  773. /package/dist/chunks/{repository-9a4afbnw.js → filesystem-9a4afbnw.js} +0 -0
  774. /package/dist/chunks/{repository-9rqn6x4v.js → filesystem-9rqn6x4v.js} +0 -0
  775. /package/dist/chunks/{repository-a058387c.js → filesystem-a058387c.js} +0 -0
  776. /package/dist/chunks/{repository-a6k6eb26.js → filesystem-a6k6eb26.js} +0 -0
  777. /package/dist/chunks/{repository-af5trqkr.js → filesystem-af5trqkr.js} +0 -0
  778. /package/dist/chunks/{repository-afrmfg78.js → filesystem-afrmfg78.js} +0 -0
  779. /package/dist/chunks/{repository-aqzs7mqg.js → filesystem-aqzs7mqg.js} +0 -0
  780. /package/dist/chunks/{repository-atq7p7m5.js → filesystem-atq7p7m5.js} +0 -0
  781. /package/dist/chunks/{repository-beh6qq61.js → filesystem-beh6qq61.js} +0 -0
  782. /package/dist/chunks/{repository-bkyjaxrp.js → filesystem-bkyjaxrp.js} +0 -0
  783. /package/dist/chunks/{repository-bmr6ed5q.js → filesystem-bmr6ed5q.js} +0 -0
  784. /package/dist/chunks/{repository-cf4snx6d.js → filesystem-cf4snx6d.js} +0 -0
  785. /package/dist/chunks/{repository-cqv5kn06.js → filesystem-cqv5kn06.js} +0 -0
  786. /package/dist/chunks/{repository-cvy3z8tj.js → filesystem-cvy3z8tj.js} +0 -0
  787. /package/dist/chunks/{repository-d9fn303g.js → filesystem-d9fn303g.js} +0 -0
  788. /package/dist/chunks/{repository-d9jj8t3e.js → filesystem-d9jj8t3e.js} +0 -0
  789. /package/dist/chunks/{repository-dajrwvna.js → filesystem-dajrwvna.js} +0 -0
  790. /package/dist/chunks/{repository-dap0rakb.js → filesystem-dap0rakb.js} +0 -0
  791. /package/dist/chunks/{repository-df08tz66.js → filesystem-df08tz66.js} +0 -0
  792. /package/dist/chunks/{repository-dy18nga0.js → filesystem-dy18nga0.js} +0 -0
  793. /package/dist/chunks/{repository-e5kj55wp.js → filesystem-e5kj55wp.js} +0 -0
  794. /package/dist/chunks/{repository-e73j6tqm.js → filesystem-e73j6tqm.js} +0 -0
  795. /package/dist/chunks/{repository-ec1grn59.js → filesystem-ec1grn59.js} +0 -0
  796. /package/dist/chunks/{repository-eh3zwz77.js → filesystem-eh3zwz77.js} +0 -0
  797. /package/dist/chunks/{repository-emrn6kk6.js → filesystem-emrn6kk6.js} +0 -0
  798. /package/dist/chunks/{repository-f0mxakyp.js → filesystem-f0mxakyp.js} +0 -0
  799. /package/dist/chunks/{repository-f6n9ztr4.js → filesystem-f6n9ztr4.js} +0 -0
  800. /package/dist/chunks/{repository-faypxj3z.js → filesystem-faypxj3z.js} +0 -0
  801. /package/dist/chunks/{repository-fd410y7t.js → filesystem-fd410y7t.js} +0 -0
  802. /package/dist/chunks/{repository-fkpq3x5p.js → filesystem-fkpq3x5p.js} +0 -0
  803. /package/dist/chunks/{repository-g4wezp1m.js → filesystem-g4wezp1m.js} +0 -0
  804. /package/dist/chunks/{repository-g86h250q.js → filesystem-g86h250q.js} +0 -0
  805. /package/dist/chunks/{repository-gebd4c9n.js → filesystem-gebd4c9n.js} +0 -0
  806. /package/dist/chunks/{repository-gftt206x.js → filesystem-gftt206x.js} +0 -0
  807. /package/dist/chunks/{repository-hcxmzztb.js → filesystem-hcxmzztb.js} +0 -0
  808. /package/dist/chunks/{repository-hk9envan.js → filesystem-hk9envan.js} +0 -0
  809. /package/dist/chunks/{repository-j2ntwpah.js → filesystem-j2ntwpah.js} +0 -0
  810. /package/dist/chunks/{repository-j5zkgpj8.js → filesystem-j5zkgpj8.js} +0 -0
  811. /package/dist/chunks/{repository-jjkms2e6.js → filesystem-jjkms2e6.js} +0 -0
  812. /package/dist/chunks/{repository-jr7sbwjy.js → filesystem-jr7sbwjy.js} +0 -0
  813. /package/dist/chunks/{repository-jwfs4k6c.js → filesystem-jwfs4k6c.js} +0 -0
  814. /package/dist/chunks/{repository-jwr30sdr.js → filesystem-jwr30sdr.js} +0 -0
  815. /package/dist/chunks/{repository-jze0r7bz.js → filesystem-jze0r7bz.js} +0 -0
  816. /package/dist/chunks/{repository-jzg6c2d5.js → filesystem-jzg6c2d5.js} +0 -0
  817. /package/dist/chunks/{repository-m18g726c.js → filesystem-m18g726c.js} +0 -0
  818. /package/dist/chunks/{repository-mp448xyj.js → filesystem-mp448xyj.js} +0 -0
  819. /package/dist/chunks/{repository-msx8hqn2.js → filesystem-msx8hqn2.js} +0 -0
  820. /package/dist/chunks/{repository-n05xt0ee.js → filesystem-n05xt0ee.js} +0 -0
  821. /package/dist/chunks/{repository-n3j8tn72.js → filesystem-n3j8tn72.js} +0 -0
  822. /package/dist/chunks/{repository-ncqqe42p.js → filesystem-ncqqe42p.js} +0 -0
  823. /package/dist/chunks/{repository-nh4v3znn.js → filesystem-nh4v3znn.js} +0 -0
  824. /package/dist/chunks/{repository-njntx4h6.js → filesystem-njntx4h6.js} +0 -0
  825. /package/dist/chunks/{repository-p5j5bg0f.js → filesystem-p5j5bg0f.js} +0 -0
  826. /package/dist/chunks/{repository-p71gwv9c.js → filesystem-p71gwv9c.js} +0 -0
  827. /package/dist/chunks/{repository-q3sfg36h.js → filesystem-q3sfg36h.js} +0 -0
  828. /package/dist/chunks/{repository-q74kybfr.js → filesystem-q74kybfr.js} +0 -0
  829. /package/dist/chunks/{repository-qaymkmh1.js → filesystem-qaymkmh1.js} +0 -0
  830. /package/dist/chunks/{repository-qb87gjwd.js → filesystem-qb87gjwd.js} +0 -0
  831. /package/dist/chunks/{repository-qfa1cgps.js → filesystem-qfa1cgps.js} +0 -0
  832. /package/dist/chunks/{repository-qg3g05ea.js → filesystem-qg3g05ea.js} +0 -0
  833. /package/dist/chunks/{repository-qrg20bc0.js → filesystem-qrg20bc0.js} +0 -0
  834. /package/dist/chunks/{repository-rcb2kzg1.js → filesystem-rcb2kzg1.js} +0 -0
  835. /package/dist/chunks/{repository-sdp7kfr6.js → filesystem-sdp7kfr6.js} +0 -0
  836. /package/dist/chunks/{repository-ssg3fenm.js → filesystem-ssg3fenm.js} +0 -0
  837. /package/dist/chunks/{repository-ty7weeps.js → filesystem-ty7weeps.js} +0 -0
  838. /package/dist/chunks/{repository-ve7vex1e.js → filesystem-ve7vex1e.js} +0 -0
  839. /package/dist/chunks/{repository-w803qqfp.js → filesystem-w803qqfp.js} +0 -0
  840. /package/dist/chunks/{repository-wc3fc9cn.js → filesystem-wc3fc9cn.js} +0 -0
  841. /package/dist/chunks/{repository-wer8tq1h.js → filesystem-wer8tq1h.js} +0 -0
  842. /package/dist/chunks/{repository-wtztk69x.js → filesystem-wtztk69x.js} +0 -0
  843. /package/dist/chunks/{repository-x0ckcb58.js → filesystem-x0ckcb58.js} +0 -0
  844. /package/dist/chunks/{repository-x61499pn.js → filesystem-x61499pn.js} +0 -0
  845. /package/dist/chunks/{repository-y44na4kk.js → filesystem-y44na4kk.js} +0 -0
  846. /package/dist/chunks/{repository-y8f7s663.js → filesystem-y8f7s663.js} +0 -0
  847. /package/dist/chunks/{repository-ygaqb7jw.js → filesystem-ygaqb7jw.js} +0 -0
  848. /package/dist/chunks/{repository-z5v4ffb3.js → filesystem-z5v4ffb3.js} +0 -0
  849. /package/dist/chunks/{repository-z9919s4g.js → filesystem-z9919s4g.js} +0 -0
@@ -1,10 +1,11 @@
1
1
  export * as SessionBlob from "./blob.js";
2
- import { Effect, Schema } from "effect";
2
+ import { Context, Effect, Schema } from "effect";
3
3
  import type { Attachment } from "@opencode/schema/prompt";
4
4
  import type { Database } from "../database/database.js";
5
+ import type { Instance } from "../instance/service.js";
5
6
  import type { SessionMessage } from "./message.js";
6
7
  import type { SessionSchema } from "./schema.js";
7
- import { SessionInboxTable, SessionMessageTable } from "./sql.js";
8
+ import { BlobTable, SessionInboxTable, SessionMessageTable } from "./sql.js";
8
9
  import { SessionStored } from "./stored.js";
9
10
  type DatabaseService = Database.Interface["db"];
10
11
  type MessageRow = typeof SessionMessageTable.$inferSelect;
@@ -1802,6 +1803,28 @@ export interface Owner {
1802
1803
  }
1803
1804
  /** Reads `experimental.media_blob` from the Config in scope on every call; without one, it is off. */
1804
1805
  export declare const enabled: Effect.Effect<boolean, never, never>;
1806
+ /**
1807
+ * {@link enabled} as `session`'s location configures it, where its media is written. Off when that location can't
1808
+ * boot or load its config, which surfaces as defects too, so a broken location never fails the caller.
1809
+ */
1810
+ export declare const enabledFor: (instances: Instance.Interface, session: SessionSchema.Info) => Effect.Effect<boolean, never, never>;
1811
+ /**
1812
+ * Whether a fork's projection stores the child's copied media as blobs. `Session.fork` sets it from the parent's
1813
+ * location; the projection ignores the caller's own config, and a replayed fork without it copies media inline.
1814
+ */
1815
+ export declare const ForkMedia: Context.Reference<boolean>;
1816
+ /** Inserts blobs, keeping any that already exist. */
1817
+ export declare const save: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1818
+ $client: import("effect/sql/SqlClient").SqlClient;
1819
+ }, blobs: readonly {
1820
+ bytes: number;
1821
+ data: Buffer<ArrayBufferLike>;
1822
+ hash: string;
1823
+ height?: number | null | undefined;
1824
+ mime: string;
1825
+ time_created?: number | undefined;
1826
+ width?: number | null | undefined;
1827
+ }[]) => Effect.Effect<void, never, never>;
1805
1828
  /** {@link externalize} for a user message or pending inbox user payload. */
1806
1829
  export declare const externalizePayload: <T extends {
1807
1830
  readonly files?: ReadonlyArray<SessionStored.File>;
@@ -1819,24 +1842,19 @@ export declare const externalize: (db: import("../database/drizzle.js").EffectSQ
1819
1842
  * Moves a stored row's inline media into blobs whatever the flag says, for offline backfills. Returns the row to
1820
1843
  * store (the same object when nothing moved), the blobs to insert, and every hash the row then names.
1821
1844
  */
1822
- export declare function split(data: MessageRow["data"] | InboxRow["payload"]): {
1823
- data: import("@opencode/schema/session-inbox").CompactionPayload;
1845
+ export declare function split<T extends MessageRow["data"] | InboxRow["payload"]>(data: T): {
1846
+ data: T;
1824
1847
  moved: boolean;
1825
- blobs: {
1826
- bytes: number;
1827
- data: Buffer<ArrayBufferLike>;
1828
- hash: string;
1829
- height?: number | null | undefined;
1830
- mime: string;
1831
- time_created?: number | undefined;
1832
- width?: number | null | undefined;
1833
- }[];
1848
+ blobs: Array<typeof BlobTable.$inferInsert>;
1834
1849
  hashes: Set<string>;
1835
1850
  };
1836
- /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
1837
- export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1851
+ /**
1852
+ * {@link split} for a message row copied into another session by a fork: saves the moved blobs and returns the row
1853
+ * to store. Callers check {@link ForkMedia} and record the copy's refs.
1854
+ */
1855
+ export declare const externalizeRow: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1838
1856
  $client: import("effect/sql/SqlClient").SqlClient;
1839
- }, owner: Owner, data: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload | (Omit<{
1857
+ }, data: Omit<{
1840
1858
  readonly id: string;
1841
1859
  readonly metadata?: {
1842
1860
  readonly [x: string]: unknown;
@@ -2255,7 +2273,856 @@ export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQL
2255
2273
  } | undefined;
2256
2274
  readonly uri: string;
2257
2275
  })[] | undefined;
2258
- }, "id" | "type">)) => Effect.Effect<void, never, never>;
2276
+ }, "id" | "type">) => Effect.Effect<Omit<{
2277
+ readonly id: string;
2278
+ readonly metadata?: {
2279
+ readonly [x: string]: unknown;
2280
+ } | undefined;
2281
+ readonly time: {
2282
+ readonly created: number;
2283
+ };
2284
+ readonly type: "agent-switched";
2285
+ readonly agent: string;
2286
+ readonly previous?: string | undefined;
2287
+ }, "id" | "type"> | Omit<{
2288
+ readonly id: string;
2289
+ readonly metadata?: {
2290
+ readonly [x: string]: unknown;
2291
+ } | undefined;
2292
+ readonly time: {
2293
+ readonly created: number;
2294
+ };
2295
+ readonly type: "model-switched";
2296
+ readonly model: {
2297
+ readonly id: string;
2298
+ readonly providerID: string;
2299
+ readonly variant?: string | undefined;
2300
+ };
2301
+ readonly previous?: {
2302
+ readonly id: string;
2303
+ readonly providerID: string;
2304
+ readonly variant?: string | undefined;
2305
+ } | undefined;
2306
+ }, "id" | "type"> | Omit<{
2307
+ readonly id: string;
2308
+ readonly metadata?: {
2309
+ readonly [x: string]: unknown;
2310
+ } | undefined;
2311
+ readonly time: {
2312
+ readonly created: number;
2313
+ };
2314
+ readonly type: "location-switched";
2315
+ readonly location: {
2316
+ readonly directory: string;
2317
+ readonly workspaceID?: string | undefined;
2318
+ };
2319
+ readonly projectID?: string | undefined;
2320
+ readonly subpath?: string | undefined;
2321
+ readonly previous?: {
2322
+ readonly location: {
2323
+ readonly directory: string;
2324
+ readonly workspaceID?: string | undefined;
2325
+ };
2326
+ readonly projectID?: string | undefined;
2327
+ readonly subpath?: string | undefined;
2328
+ } | undefined;
2329
+ }, "id" | "type"> | Omit<{
2330
+ readonly id: string;
2331
+ readonly metadata?: {
2332
+ readonly [x: string]: unknown;
2333
+ } | undefined;
2334
+ readonly time: {
2335
+ readonly created: number;
2336
+ };
2337
+ readonly text: string;
2338
+ readonly description?: string | undefined;
2339
+ readonly type: "synthetic";
2340
+ }, "id" | "type"> | Omit<{
2341
+ readonly id: string;
2342
+ readonly metadata?: {
2343
+ readonly [x: string]: unknown;
2344
+ } | undefined;
2345
+ readonly time: {
2346
+ readonly created: number;
2347
+ };
2348
+ readonly type: "system";
2349
+ readonly text: string;
2350
+ readonly description?: string | undefined;
2351
+ }, "id" | "type"> | Omit<{
2352
+ readonly id: string;
2353
+ readonly metadata?: {
2354
+ readonly [x: string]: unknown;
2355
+ } | undefined;
2356
+ readonly time: {
2357
+ readonly created: number;
2358
+ };
2359
+ readonly type: "skill";
2360
+ readonly skill: string;
2361
+ readonly name: string;
2362
+ readonly text: string;
2363
+ }, "id" | "type"> | Omit<{
2364
+ readonly id: string;
2365
+ readonly metadata?: {
2366
+ readonly [x: string]: unknown;
2367
+ } | undefined;
2368
+ readonly type: "shell";
2369
+ readonly shellID: string;
2370
+ readonly command: string;
2371
+ readonly status: "exited" | "killed" | "running" | "timeout";
2372
+ readonly exit?: number | undefined;
2373
+ readonly output?: {
2374
+ readonly output: string;
2375
+ readonly cursor: number;
2376
+ readonly size: number;
2377
+ readonly truncated: boolean;
2378
+ } | undefined;
2379
+ readonly time: {
2380
+ readonly created: number;
2381
+ readonly completed?: number | undefined;
2382
+ };
2383
+ }, "id" | "type"> | Omit<{
2384
+ readonly id: string;
2385
+ readonly metadata?: {
2386
+ readonly [x: string]: unknown;
2387
+ } | undefined;
2388
+ readonly type: "assistant";
2389
+ readonly agent: string;
2390
+ readonly model: {
2391
+ readonly id: string;
2392
+ readonly providerID: string;
2393
+ readonly variant?: string | undefined;
2394
+ };
2395
+ readonly content: readonly ({
2396
+ readonly type: "tool";
2397
+ readonly id: string;
2398
+ readonly name: string;
2399
+ readonly executed?: boolean | undefined;
2400
+ readonly native?: {
2401
+ readonly [x: string]: unknown;
2402
+ } | undefined;
2403
+ readonly state: {
2404
+ readonly status: "streaming";
2405
+ readonly input: string;
2406
+ } | {
2407
+ readonly status: "running";
2408
+ readonly input: {
2409
+ readonly [x: string]: unknown;
2410
+ };
2411
+ readonly metadata: {
2412
+ readonly [x: string]: Schema.Json;
2413
+ };
2414
+ } | {
2415
+ readonly status: "completed";
2416
+ readonly input: {
2417
+ readonly [x: string]: unknown;
2418
+ };
2419
+ readonly content: readonly [{
2420
+ readonly type: "text";
2421
+ readonly text: string;
2422
+ } | {
2423
+ readonly type: "file";
2424
+ readonly uri: string;
2425
+ readonly mime: string;
2426
+ readonly name?: string | undefined;
2427
+ }, ...({
2428
+ readonly type: "text";
2429
+ readonly text: string;
2430
+ } | {
2431
+ readonly type: "file";
2432
+ readonly uri: string;
2433
+ readonly mime: string;
2434
+ readonly name?: string | undefined;
2435
+ })[]];
2436
+ readonly metadata?: {
2437
+ readonly [x: string]: Schema.Json;
2438
+ } | undefined;
2439
+ } | {
2440
+ readonly status: "error";
2441
+ readonly input: {
2442
+ readonly [x: string]: unknown;
2443
+ };
2444
+ readonly error: {
2445
+ readonly type: string;
2446
+ readonly message: string;
2447
+ readonly status?: number | undefined;
2448
+ readonly response?: {
2449
+ readonly body: string;
2450
+ } | undefined;
2451
+ readonly retryAfterMs?: number | undefined;
2452
+ };
2453
+ readonly content?: readonly [{
2454
+ readonly type: "text";
2455
+ readonly text: string;
2456
+ } | {
2457
+ readonly type: "file";
2458
+ readonly uri: string;
2459
+ readonly mime: string;
2460
+ readonly name?: string | undefined;
2461
+ }, ...({
2462
+ readonly type: "text";
2463
+ readonly text: string;
2464
+ } | {
2465
+ readonly type: "file";
2466
+ readonly uri: string;
2467
+ readonly mime: string;
2468
+ readonly name?: string | undefined;
2469
+ })[]] | undefined;
2470
+ readonly metadata?: {
2471
+ readonly [x: string]: Schema.Json;
2472
+ } | undefined;
2473
+ };
2474
+ readonly time: {
2475
+ readonly created: number;
2476
+ readonly ran?: number | undefined;
2477
+ readonly completed?: number | undefined;
2478
+ };
2479
+ } | {
2480
+ readonly type: "text";
2481
+ readonly text: string;
2482
+ readonly native?: {
2483
+ readonly [x: string]: unknown;
2484
+ } | undefined;
2485
+ } | {
2486
+ readonly type: "reasoning";
2487
+ readonly text: string;
2488
+ readonly native?: {
2489
+ readonly [x: string]: unknown;
2490
+ } | undefined;
2491
+ readonly time?: {
2492
+ readonly created: number;
2493
+ readonly completed?: number | undefined;
2494
+ } | undefined;
2495
+ })[];
2496
+ readonly snapshot?: {
2497
+ readonly start?: string | undefined;
2498
+ readonly end?: string | undefined;
2499
+ readonly files?: readonly string[] | undefined;
2500
+ } | undefined;
2501
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
2502
+ readonly rawFinish?: string | undefined;
2503
+ readonly native?: {
2504
+ readonly [x: string]: unknown;
2505
+ } | undefined;
2506
+ readonly cost?: number | undefined;
2507
+ readonly tokens?: {
2508
+ readonly input: number;
2509
+ readonly output: number;
2510
+ readonly reasoning: number;
2511
+ readonly cache: {
2512
+ readonly read: number;
2513
+ readonly write: number;
2514
+ };
2515
+ } | undefined;
2516
+ readonly error?: {
2517
+ readonly type: string;
2518
+ readonly message: string;
2519
+ readonly status?: number | undefined;
2520
+ readonly response?: {
2521
+ readonly body: string;
2522
+ } | undefined;
2523
+ readonly retryAfterMs?: number | undefined;
2524
+ } | undefined;
2525
+ readonly retry?: {
2526
+ readonly attempt: number;
2527
+ readonly at: number;
2528
+ readonly error: {
2529
+ readonly type: string;
2530
+ readonly message: string;
2531
+ readonly status?: number | undefined;
2532
+ readonly response?: {
2533
+ readonly body: string;
2534
+ } | undefined;
2535
+ readonly retryAfterMs?: number | undefined;
2536
+ };
2537
+ } | undefined;
2538
+ readonly time: {
2539
+ readonly created: number;
2540
+ readonly streamed?: number | undefined;
2541
+ readonly completed?: number | undefined;
2542
+ };
2543
+ }, "id" | "type"> | Omit<{
2544
+ readonly id: string;
2545
+ readonly metadata?: {
2546
+ readonly [x: string]: unknown;
2547
+ } | undefined;
2548
+ readonly time: {
2549
+ readonly created: number;
2550
+ };
2551
+ readonly type: "compaction";
2552
+ readonly status: "running";
2553
+ readonly reason: "auto" | "manual";
2554
+ readonly summary: string;
2555
+ }, "id" | "type"> | Omit<{
2556
+ readonly id: string;
2557
+ readonly metadata?: {
2558
+ readonly [x: string]: unknown;
2559
+ } | undefined;
2560
+ readonly time: {
2561
+ readonly created: number;
2562
+ };
2563
+ readonly type: "compaction";
2564
+ readonly cost?: number | undefined;
2565
+ readonly tokens?: {
2566
+ readonly input: number;
2567
+ readonly output: number;
2568
+ readonly reasoning: number;
2569
+ readonly cache: {
2570
+ readonly read: number;
2571
+ readonly write: number;
2572
+ };
2573
+ } | undefined;
2574
+ readonly status: "completed";
2575
+ readonly reason: "auto" | "manual";
2576
+ readonly model?: {
2577
+ readonly id: string;
2578
+ readonly providerID: string;
2579
+ readonly variant?: string | undefined;
2580
+ } | undefined;
2581
+ readonly native?: {
2582
+ readonly [x: string]: unknown;
2583
+ } | undefined;
2584
+ readonly summary: string;
2585
+ }, "id" | "type"> | Omit<{
2586
+ readonly id: string;
2587
+ readonly metadata?: {
2588
+ readonly [x: string]: unknown;
2589
+ } | undefined;
2590
+ readonly time: {
2591
+ readonly created: number;
2592
+ };
2593
+ readonly type: "compaction";
2594
+ readonly cost?: number | undefined;
2595
+ readonly tokens?: {
2596
+ readonly input: number;
2597
+ readonly output: number;
2598
+ readonly reasoning: number;
2599
+ readonly cache: {
2600
+ readonly read: number;
2601
+ readonly write: number;
2602
+ };
2603
+ } | undefined;
2604
+ readonly status: "failed";
2605
+ readonly reason: "auto" | "manual";
2606
+ readonly error: {
2607
+ readonly type: string;
2608
+ readonly message: string;
2609
+ readonly status?: number | undefined;
2610
+ readonly response?: {
2611
+ readonly body: string;
2612
+ } | undefined;
2613
+ readonly retryAfterMs?: number | undefined;
2614
+ };
2615
+ }, "id" | "type"> | Omit<{
2616
+ readonly id: string;
2617
+ readonly metadata?: {
2618
+ readonly [x: string]: unknown;
2619
+ } | undefined;
2620
+ readonly time: {
2621
+ readonly created: number;
2622
+ };
2623
+ readonly type: "idle";
2624
+ readonly outcome: "failed" | "interrupted" | "succeeded";
2625
+ readonly error?: {
2626
+ readonly type: string;
2627
+ readonly message: string;
2628
+ readonly status?: number | undefined;
2629
+ readonly response?: {
2630
+ readonly body: string;
2631
+ } | undefined;
2632
+ readonly retryAfterMs?: number | undefined;
2633
+ } | undefined;
2634
+ }, "id" | "type"> | Omit<{
2635
+ readonly id: string;
2636
+ readonly metadata?: {
2637
+ readonly [x: string]: unknown;
2638
+ } | undefined;
2639
+ readonly time: {
2640
+ readonly created: number;
2641
+ };
2642
+ readonly text: string;
2643
+ readonly agents?: readonly {
2644
+ readonly name: string;
2645
+ readonly mention?: {
2646
+ readonly start: number;
2647
+ readonly end: number;
2648
+ readonly text: string;
2649
+ } | undefined;
2650
+ }[] | undefined;
2651
+ readonly skills?: readonly {
2652
+ readonly id: string;
2653
+ readonly name: string;
2654
+ readonly text?: string | undefined;
2655
+ readonly mention?: {
2656
+ readonly start: number;
2657
+ readonly end: number;
2658
+ readonly text: string;
2659
+ } | undefined;
2660
+ }[] | undefined;
2661
+ readonly type: "user";
2662
+ readonly files?: readonly ({
2663
+ readonly data: string;
2664
+ readonly mime: string;
2665
+ readonly source: {
2666
+ readonly type: "inline";
2667
+ } | {
2668
+ readonly type: "uri";
2669
+ readonly uri: string;
2670
+ };
2671
+ readonly name?: string | undefined;
2672
+ readonly description?: string | undefined;
2673
+ readonly mention?: {
2674
+ readonly start: number;
2675
+ readonly end: number;
2676
+ readonly text: string;
2677
+ } | undefined;
2678
+ } | {
2679
+ readonly mime: string;
2680
+ readonly source: {
2681
+ readonly type: "inline";
2682
+ } | {
2683
+ readonly type: "uri";
2684
+ readonly uri: string;
2685
+ };
2686
+ readonly name?: string | undefined;
2687
+ readonly description?: string | undefined;
2688
+ readonly mention?: {
2689
+ readonly start: number;
2690
+ readonly end: number;
2691
+ readonly text: string;
2692
+ } | undefined;
2693
+ readonly uri: string;
2694
+ })[] | undefined;
2695
+ }, "id" | "type">, never, never>;
2696
+ /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
2697
+ export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2698
+ $client: import("effect/sql/SqlClient").SqlClient;
2699
+ }, owner: Owner, data: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload | (Omit<{
2700
+ readonly id: string;
2701
+ readonly metadata?: {
2702
+ readonly [x: string]: unknown;
2703
+ } | undefined;
2704
+ readonly time: {
2705
+ readonly created: number;
2706
+ };
2707
+ readonly type: "agent-switched";
2708
+ readonly agent: string;
2709
+ readonly previous?: string | undefined;
2710
+ }, "id" | "type"> | Omit<{
2711
+ readonly id: string;
2712
+ readonly metadata?: {
2713
+ readonly [x: string]: unknown;
2714
+ } | undefined;
2715
+ readonly time: {
2716
+ readonly created: number;
2717
+ };
2718
+ readonly type: "model-switched";
2719
+ readonly model: {
2720
+ readonly id: string;
2721
+ readonly providerID: string;
2722
+ readonly variant?: string | undefined;
2723
+ };
2724
+ readonly previous?: {
2725
+ readonly id: string;
2726
+ readonly providerID: string;
2727
+ readonly variant?: string | undefined;
2728
+ } | undefined;
2729
+ }, "id" | "type"> | Omit<{
2730
+ readonly id: string;
2731
+ readonly metadata?: {
2732
+ readonly [x: string]: unknown;
2733
+ } | undefined;
2734
+ readonly time: {
2735
+ readonly created: number;
2736
+ };
2737
+ readonly type: "location-switched";
2738
+ readonly location: {
2739
+ readonly directory: string;
2740
+ readonly workspaceID?: string | undefined;
2741
+ };
2742
+ readonly projectID?: string | undefined;
2743
+ readonly subpath?: string | undefined;
2744
+ readonly previous?: {
2745
+ readonly location: {
2746
+ readonly directory: string;
2747
+ readonly workspaceID?: string | undefined;
2748
+ };
2749
+ readonly projectID?: string | undefined;
2750
+ readonly subpath?: string | undefined;
2751
+ } | undefined;
2752
+ }, "id" | "type"> | Omit<{
2753
+ readonly id: string;
2754
+ readonly metadata?: {
2755
+ readonly [x: string]: unknown;
2756
+ } | undefined;
2757
+ readonly time: {
2758
+ readonly created: number;
2759
+ };
2760
+ readonly text: string;
2761
+ readonly description?: string | undefined;
2762
+ readonly type: "synthetic";
2763
+ }, "id" | "type"> | Omit<{
2764
+ readonly id: string;
2765
+ readonly metadata?: {
2766
+ readonly [x: string]: unknown;
2767
+ } | undefined;
2768
+ readonly time: {
2769
+ readonly created: number;
2770
+ };
2771
+ readonly type: "system";
2772
+ readonly text: string;
2773
+ readonly description?: string | undefined;
2774
+ }, "id" | "type"> | Omit<{
2775
+ readonly id: string;
2776
+ readonly metadata?: {
2777
+ readonly [x: string]: unknown;
2778
+ } | undefined;
2779
+ readonly time: {
2780
+ readonly created: number;
2781
+ };
2782
+ readonly type: "skill";
2783
+ readonly skill: string;
2784
+ readonly name: string;
2785
+ readonly text: string;
2786
+ }, "id" | "type"> | Omit<{
2787
+ readonly id: string;
2788
+ readonly metadata?: {
2789
+ readonly [x: string]: unknown;
2790
+ } | undefined;
2791
+ readonly type: "shell";
2792
+ readonly shellID: string;
2793
+ readonly command: string;
2794
+ readonly status: "exited" | "killed" | "running" | "timeout";
2795
+ readonly exit?: number | undefined;
2796
+ readonly output?: {
2797
+ readonly output: string;
2798
+ readonly cursor: number;
2799
+ readonly size: number;
2800
+ readonly truncated: boolean;
2801
+ } | undefined;
2802
+ readonly time: {
2803
+ readonly created: number;
2804
+ readonly completed?: number | undefined;
2805
+ };
2806
+ }, "id" | "type"> | Omit<{
2807
+ readonly id: string;
2808
+ readonly metadata?: {
2809
+ readonly [x: string]: unknown;
2810
+ } | undefined;
2811
+ readonly type: "assistant";
2812
+ readonly agent: string;
2813
+ readonly model: {
2814
+ readonly id: string;
2815
+ readonly providerID: string;
2816
+ readonly variant?: string | undefined;
2817
+ };
2818
+ readonly content: readonly ({
2819
+ readonly type: "tool";
2820
+ readonly id: string;
2821
+ readonly name: string;
2822
+ readonly executed?: boolean | undefined;
2823
+ readonly native?: {
2824
+ readonly [x: string]: unknown;
2825
+ } | undefined;
2826
+ readonly state: {
2827
+ readonly status: "streaming";
2828
+ readonly input: string;
2829
+ } | {
2830
+ readonly status: "running";
2831
+ readonly input: {
2832
+ readonly [x: string]: unknown;
2833
+ };
2834
+ readonly metadata: {
2835
+ readonly [x: string]: Schema.Json;
2836
+ };
2837
+ } | {
2838
+ readonly status: "completed";
2839
+ readonly input: {
2840
+ readonly [x: string]: unknown;
2841
+ };
2842
+ readonly content: readonly [{
2843
+ readonly type: "text";
2844
+ readonly text: string;
2845
+ } | {
2846
+ readonly type: "file";
2847
+ readonly uri: string;
2848
+ readonly mime: string;
2849
+ readonly name?: string | undefined;
2850
+ }, ...({
2851
+ readonly type: "text";
2852
+ readonly text: string;
2853
+ } | {
2854
+ readonly type: "file";
2855
+ readonly uri: string;
2856
+ readonly mime: string;
2857
+ readonly name?: string | undefined;
2858
+ })[]];
2859
+ readonly metadata?: {
2860
+ readonly [x: string]: Schema.Json;
2861
+ } | undefined;
2862
+ } | {
2863
+ readonly status: "error";
2864
+ readonly input: {
2865
+ readonly [x: string]: unknown;
2866
+ };
2867
+ readonly error: {
2868
+ readonly type: string;
2869
+ readonly message: string;
2870
+ readonly status?: number | undefined;
2871
+ readonly response?: {
2872
+ readonly body: string;
2873
+ } | undefined;
2874
+ readonly retryAfterMs?: number | undefined;
2875
+ };
2876
+ readonly content?: readonly [{
2877
+ readonly type: "text";
2878
+ readonly text: string;
2879
+ } | {
2880
+ readonly type: "file";
2881
+ readonly uri: string;
2882
+ readonly mime: string;
2883
+ readonly name?: string | undefined;
2884
+ }, ...({
2885
+ readonly type: "text";
2886
+ readonly text: string;
2887
+ } | {
2888
+ readonly type: "file";
2889
+ readonly uri: string;
2890
+ readonly mime: string;
2891
+ readonly name?: string | undefined;
2892
+ })[]] | undefined;
2893
+ readonly metadata?: {
2894
+ readonly [x: string]: Schema.Json;
2895
+ } | undefined;
2896
+ };
2897
+ readonly time: {
2898
+ readonly created: number;
2899
+ readonly ran?: number | undefined;
2900
+ readonly completed?: number | undefined;
2901
+ };
2902
+ } | {
2903
+ readonly type: "text";
2904
+ readonly text: string;
2905
+ readonly native?: {
2906
+ readonly [x: string]: unknown;
2907
+ } | undefined;
2908
+ } | {
2909
+ readonly type: "reasoning";
2910
+ readonly text: string;
2911
+ readonly native?: {
2912
+ readonly [x: string]: unknown;
2913
+ } | undefined;
2914
+ readonly time?: {
2915
+ readonly created: number;
2916
+ readonly completed?: number | undefined;
2917
+ } | undefined;
2918
+ })[];
2919
+ readonly snapshot?: {
2920
+ readonly start?: string | undefined;
2921
+ readonly end?: string | undefined;
2922
+ readonly files?: readonly string[] | undefined;
2923
+ } | undefined;
2924
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
2925
+ readonly rawFinish?: string | undefined;
2926
+ readonly native?: {
2927
+ readonly [x: string]: unknown;
2928
+ } | undefined;
2929
+ readonly cost?: number | undefined;
2930
+ readonly tokens?: {
2931
+ readonly input: number;
2932
+ readonly output: number;
2933
+ readonly reasoning: number;
2934
+ readonly cache: {
2935
+ readonly read: number;
2936
+ readonly write: number;
2937
+ };
2938
+ } | undefined;
2939
+ readonly error?: {
2940
+ readonly type: string;
2941
+ readonly message: string;
2942
+ readonly status?: number | undefined;
2943
+ readonly response?: {
2944
+ readonly body: string;
2945
+ } | undefined;
2946
+ readonly retryAfterMs?: number | undefined;
2947
+ } | undefined;
2948
+ readonly retry?: {
2949
+ readonly attempt: number;
2950
+ readonly at: number;
2951
+ readonly error: {
2952
+ readonly type: string;
2953
+ readonly message: string;
2954
+ readonly status?: number | undefined;
2955
+ readonly response?: {
2956
+ readonly body: string;
2957
+ } | undefined;
2958
+ readonly retryAfterMs?: number | undefined;
2959
+ };
2960
+ } | undefined;
2961
+ readonly time: {
2962
+ readonly created: number;
2963
+ readonly streamed?: number | undefined;
2964
+ readonly completed?: number | undefined;
2965
+ };
2966
+ }, "id" | "type"> | Omit<{
2967
+ readonly id: string;
2968
+ readonly metadata?: {
2969
+ readonly [x: string]: unknown;
2970
+ } | undefined;
2971
+ readonly time: {
2972
+ readonly created: number;
2973
+ };
2974
+ readonly type: "compaction";
2975
+ readonly status: "running";
2976
+ readonly reason: "auto" | "manual";
2977
+ readonly summary: string;
2978
+ }, "id" | "type"> | Omit<{
2979
+ readonly id: string;
2980
+ readonly metadata?: {
2981
+ readonly [x: string]: unknown;
2982
+ } | undefined;
2983
+ readonly time: {
2984
+ readonly created: number;
2985
+ };
2986
+ readonly type: "compaction";
2987
+ readonly cost?: number | undefined;
2988
+ readonly tokens?: {
2989
+ readonly input: number;
2990
+ readonly output: number;
2991
+ readonly reasoning: number;
2992
+ readonly cache: {
2993
+ readonly read: number;
2994
+ readonly write: number;
2995
+ };
2996
+ } | undefined;
2997
+ readonly status: "completed";
2998
+ readonly reason: "auto" | "manual";
2999
+ readonly model?: {
3000
+ readonly id: string;
3001
+ readonly providerID: string;
3002
+ readonly variant?: string | undefined;
3003
+ } | undefined;
3004
+ readonly native?: {
3005
+ readonly [x: string]: unknown;
3006
+ } | undefined;
3007
+ readonly summary: string;
3008
+ }, "id" | "type"> | Omit<{
3009
+ readonly id: string;
3010
+ readonly metadata?: {
3011
+ readonly [x: string]: unknown;
3012
+ } | undefined;
3013
+ readonly time: {
3014
+ readonly created: number;
3015
+ };
3016
+ readonly type: "compaction";
3017
+ readonly cost?: number | undefined;
3018
+ readonly tokens?: {
3019
+ readonly input: number;
3020
+ readonly output: number;
3021
+ readonly reasoning: number;
3022
+ readonly cache: {
3023
+ readonly read: number;
3024
+ readonly write: number;
3025
+ };
3026
+ } | undefined;
3027
+ readonly status: "failed";
3028
+ readonly reason: "auto" | "manual";
3029
+ readonly error: {
3030
+ readonly type: string;
3031
+ readonly message: string;
3032
+ readonly status?: number | undefined;
3033
+ readonly response?: {
3034
+ readonly body: string;
3035
+ } | undefined;
3036
+ readonly retryAfterMs?: number | undefined;
3037
+ };
3038
+ }, "id" | "type"> | Omit<{
3039
+ readonly id: string;
3040
+ readonly metadata?: {
3041
+ readonly [x: string]: unknown;
3042
+ } | undefined;
3043
+ readonly time: {
3044
+ readonly created: number;
3045
+ };
3046
+ readonly type: "idle";
3047
+ readonly outcome: "failed" | "interrupted" | "succeeded";
3048
+ readonly error?: {
3049
+ readonly type: string;
3050
+ readonly message: string;
3051
+ readonly status?: number | undefined;
3052
+ readonly response?: {
3053
+ readonly body: string;
3054
+ } | undefined;
3055
+ readonly retryAfterMs?: number | undefined;
3056
+ } | undefined;
3057
+ }, "id" | "type"> | Omit<{
3058
+ readonly id: string;
3059
+ readonly metadata?: {
3060
+ readonly [x: string]: unknown;
3061
+ } | undefined;
3062
+ readonly time: {
3063
+ readonly created: number;
3064
+ };
3065
+ readonly text: string;
3066
+ readonly agents?: readonly {
3067
+ readonly name: string;
3068
+ readonly mention?: {
3069
+ readonly start: number;
3070
+ readonly end: number;
3071
+ readonly text: string;
3072
+ } | undefined;
3073
+ }[] | undefined;
3074
+ readonly skills?: readonly {
3075
+ readonly id: string;
3076
+ readonly name: string;
3077
+ readonly text?: string | undefined;
3078
+ readonly mention?: {
3079
+ readonly start: number;
3080
+ readonly end: number;
3081
+ readonly text: string;
3082
+ } | undefined;
3083
+ }[] | undefined;
3084
+ readonly type: "user";
3085
+ readonly files?: readonly ({
3086
+ readonly data: string;
3087
+ readonly mime: string;
3088
+ readonly source: {
3089
+ readonly type: "inline";
3090
+ } | {
3091
+ readonly type: "uri";
3092
+ readonly uri: string;
3093
+ };
3094
+ readonly name?: string | undefined;
3095
+ readonly description?: string | undefined;
3096
+ readonly mention?: {
3097
+ readonly start: number;
3098
+ readonly end: number;
3099
+ readonly text: string;
3100
+ } | undefined;
3101
+ } | {
3102
+ readonly mime: string;
3103
+ readonly source: {
3104
+ readonly type: "inline";
3105
+ } | {
3106
+ readonly type: "uri";
3107
+ readonly uri: string;
3108
+ };
3109
+ readonly name?: string | undefined;
3110
+ readonly description?: string | undefined;
3111
+ readonly mention?: {
3112
+ readonly start: number;
3113
+ readonly end: number;
3114
+ readonly text: string;
3115
+ } | undefined;
3116
+ readonly uri: string;
3117
+ })[] | undefined;
3118
+ }, "id" | "type">)) => Effect.Effect<void, never, never>;
3119
+ /**
3120
+ * {@link recordRefs} for the given hashes only, such as the blobs an import took out of its own inline data, so
3121
+ * refs it carried in can't keep or expose blobs it never held.
3122
+ */
3123
+ export declare const recordHashes: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
3124
+ $client: import("effect/sql/SqlClient").SqlClient;
3125
+ }, owner: Owner, hashes: ReadonlySet<string>) => Effect.Effect<void, never, never>;
2259
3126
  /** Records the refs a rewritten message names and releases the ones it no longer does. */
2260
3127
  export declare const syncRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
2261
3128
  $client: import("effect/sql/SqlClient").SqlClient;