@opencode/core 0.0.0-dev-21908 → 0.0.0-dev-21915

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 (824) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -85
  3. package/dist/aisdk-native.js +97 -97
  4. package/dist/aisdk.js +103 -103
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +79 -79
  7. package/dist/chunks/{location-lifecycle-qyq8h28g.js → event-logger-033a0jkt.js} +3 -3
  8. package/dist/chunks/{location-lifecycle-034tev2y.js → event-logger-034tev2y.js} +2 -2
  9. package/dist/chunks/{location-lifecycle-6zq7s0af.js → event-logger-061dfjk9.js} +11 -11
  10. package/dist/chunks/{location-lifecycle-3nmzsehc.js → event-logger-0eyqpy28.js} +29 -29
  11. package/dist/chunks/{location-lifecycle-j2rmyh1n.js → event-logger-0mg8kcn3.js} +43 -14
  12. package/dist/chunks/{location-lifecycle-d6j7cmfe.js → event-logger-0svvf4a3.js} +36 -36
  13. package/dist/chunks/{location-lifecycle-xf2yn8qh.js → event-logger-0xy3w4m6.js} +8 -8
  14. package/dist/chunks/{location-lifecycle-dc494qzb.js → event-logger-179sgv51.js} +27 -27
  15. package/dist/chunks/{location-lifecycle-k7mszyx5.js → event-logger-1db62psx.js} +36 -36
  16. package/dist/chunks/{location-lifecycle-1ep2p91f.js → event-logger-1ep2p91f.js} +2 -2
  17. package/dist/chunks/{location-lifecycle-3qnkc5ty.js → event-logger-1fnhqpt4.js} +16 -16
  18. package/dist/chunks/{location-lifecycle-8d5qxm04.js → event-logger-1nsj622r.js} +14 -14
  19. package/dist/chunks/{location-lifecycle-ydpy656n.js → event-logger-1qjnrqep.js} +11 -11
  20. package/dist/chunks/{location-lifecycle-b1p62gvs.js → event-logger-1rjegszx.js} +4 -4
  21. package/dist/chunks/{location-lifecycle-1x2knyw4.js → event-logger-1x2knyw4.js} +1 -1
  22. package/dist/chunks/{location-lifecycle-ra34yqmw.js → event-logger-1z6t7raf.js} +6 -6
  23. package/dist/chunks/{location-lifecycle-204s3925.js → event-logger-204s3925.js} +1 -1
  24. package/dist/chunks/{location-lifecycle-gnk6vb74.js → event-logger-213mv4pq.js} +21 -21
  25. package/dist/chunks/{location-lifecycle-43c62mg5.js → event-logger-2dbq5t1r.js} +15 -15
  26. package/dist/chunks/{location-lifecycle-cdznd2n8.js → event-logger-2kc953ej.js} +21 -21
  27. package/dist/chunks/{location-lifecycle-eh5ddjcb.js → event-logger-2nf2vr7j.js} +18 -18
  28. package/dist/chunks/{location-lifecycle-21pdxbx2.js → event-logger-2yvtks3w.js} +3 -3
  29. package/dist/chunks/{location-lifecycle-2z1j29yd.js → event-logger-2z1j29yd.js} +1 -1
  30. package/dist/chunks/{location-lifecycle-djjzzs3c.js → event-logger-30147ds3.js} +6 -6
  31. package/dist/chunks/{location-lifecycle-f1kgynkh.js → event-logger-331zmft7.js} +15 -15
  32. package/dist/chunks/{location-lifecycle-xp053dmv.js → event-logger-33j2zr63.js} +89 -89
  33. package/dist/chunks/{location-lifecycle-yj99x9f8.js → event-logger-3h86dkjt.js} +13 -13
  34. package/dist/chunks/{location-lifecycle-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
  35. package/dist/chunks/{location-lifecycle-mydme2jh.js → event-logger-3jazymwx.js} +17 -17
  36. package/dist/chunks/{location-lifecycle-3nnrz6f6.js → event-logger-3nnrz6f6.js} +1 -1
  37. package/dist/chunks/{location-lifecycle-9058a6p8.js → event-logger-408nx0y9.js} +40 -40
  38. package/dist/chunks/{location-lifecycle-r41sfy63.js → event-logger-40za9wsf.js} +6 -6
  39. package/dist/chunks/{location-lifecycle-vvy4n04y.js → event-logger-410zp742.js} +21 -21
  40. package/dist/chunks/{location-lifecycle-v66dz0c2.js → event-logger-43c01wrt.js} +19 -19
  41. package/dist/chunks/{location-lifecycle-crj7314x.js → event-logger-44552vd9.js} +12 -12
  42. package/dist/chunks/{location-lifecycle-efv53qt9.js → event-logger-4538h11c.js} +7 -7
  43. package/dist/chunks/{location-lifecycle-45056y1z.js → event-logger-4dtq8qg7.js} +58 -58
  44. package/dist/chunks/{location-lifecycle-xdh4e2a1.js → event-logger-4m87gk4h.js} +2 -2
  45. package/dist/chunks/event-logger-4my81qaj.js +18 -0
  46. package/dist/chunks/{location-lifecycle-1r9pq8px.js → event-logger-4pkf34m0.js} +77 -77
  47. package/dist/chunks/{location-lifecycle-4v008n1t.js → event-logger-4v008n1t.js} +1 -1
  48. package/dist/chunks/{location-lifecycle-24j7j0yw.js → event-logger-4xa9359s.js} +9 -9
  49. package/dist/chunks/{location-lifecycle-4xvmh7wp.js → event-logger-4xvmh7wp.js} +3 -3
  50. package/dist/chunks/{location-lifecycle-8fmmq68j.js → event-logger-4zf9yj1j.js} +115 -35
  51. package/dist/chunks/{location-lifecycle-c0c5nhmx.js → event-logger-530cxj2z.js} +35 -35
  52. package/dist/chunks/{location-lifecycle-v52ev8jp.js → event-logger-57p1m9rz.js} +32 -32
  53. package/dist/chunks/{location-lifecycle-7xyg0zkz.js → event-logger-58fpqt79.js} +9 -9
  54. package/dist/chunks/{location-lifecycle-7m0xfmn5.js → event-logger-5cppamkc.js} +23 -23
  55. package/dist/chunks/{location-lifecycle-5m9w47nd.js → event-logger-5m9w47nd.js} +1 -1
  56. package/dist/chunks/{location-lifecycle-cqxf2v2j.js → event-logger-5r72z9dp.js} +8 -8
  57. package/dist/chunks/{location-lifecycle-6n5e5r47.js → event-logger-5rn25pwd.js} +18 -18
  58. package/dist/chunks/{location-lifecycle-g6x6yjtr.js → event-logger-5rt97jkw.js} +12 -12
  59. package/dist/chunks/{location-lifecycle-1yq9hg58.js → event-logger-5zrxpy3q.js} +5 -5
  60. package/dist/chunks/{location-lifecycle-2asws2s2.js → event-logger-618s5217.js} +14 -14
  61. package/dist/chunks/{location-lifecycle-hk18cedt.js → event-logger-68ms0fh2.js} +21 -21
  62. package/dist/chunks/{location-lifecycle-6esdw8yj.js → event-logger-6esdw8yj.js} +1 -1
  63. package/dist/chunks/{location-lifecycle-da2kvbdp.js → event-logger-6nye8dts.js} +9 -9
  64. package/dist/chunks/{location-lifecycle-6pjqjmy2.js → event-logger-6pjqjmy2.js} +1 -1
  65. package/dist/chunks/{location-lifecycle-21np7pz1.js → event-logger-6szn2v48.js} +37 -37
  66. package/dist/chunks/{location-lifecycle-8wc2fpae.js → event-logger-6y263vp8.js} +5 -5
  67. package/dist/chunks/{location-lifecycle-xh54azxv.js → event-logger-6yv8zpps.js} +21 -13
  68. package/dist/chunks/{location-lifecycle-76cb1hcw.js → event-logger-76cb1hcw.js} +1 -1
  69. package/dist/chunks/{location-lifecycle-cnezdtt3.js → event-logger-76szp9yy.js} +46 -46
  70. package/dist/chunks/{location-lifecycle-15phv1ny.js → event-logger-77s6zpp3.js} +29 -29
  71. package/dist/chunks/{location-lifecycle-tghw5mys.js → event-logger-78n4qc0z.js} +4 -4
  72. package/dist/chunks/{location-lifecycle-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
  73. package/dist/chunks/{location-lifecycle-xxtgb6sa.js → event-logger-7che9vcx.js} +19 -19
  74. package/dist/chunks/event-logger-7q08zbzq.js +26 -0
  75. package/dist/chunks/{location-lifecycle-swp53ejc.js → event-logger-7vz8pb8x.js} +45 -45
  76. package/dist/chunks/{location-lifecycle-7w2ypzdf.js → event-logger-7w2ypzdf.js} +1 -1
  77. package/dist/chunks/{location-lifecycle-wsxpqbdm.js → event-logger-7ytgdqqc.js} +25 -25
  78. package/dist/chunks/{location-lifecycle-6kqqag5p.js → event-logger-83fr3fym.js} +16 -16
  79. package/dist/chunks/{location-lifecycle-44jn6qr4.js → event-logger-86g6sxng.js} +12 -12
  80. package/dist/chunks/{location-lifecycle-ndmv9r8h.js → event-logger-886bz3e9.js} +56 -30
  81. package/dist/chunks/{location-lifecycle-1e6ty7xe.js → event-logger-88a5ws0g.js} +22 -22
  82. package/dist/chunks/{location-lifecycle-583pkegd.js → event-logger-8aemar9r.js} +45 -45
  83. package/dist/chunks/{location-lifecycle-aqcs9gph.js → event-logger-8h2npe5w.js} +6 -6
  84. package/dist/chunks/{location-lifecycle-11hfp36g.js → event-logger-8jztxfpf.js} +4 -4
  85. package/dist/chunks/{location-lifecycle-z226nxt7.js → event-logger-8k8s1td8.js} +5 -5
  86. package/dist/chunks/{location-lifecycle-8wtp7s3z.js → event-logger-8wtp7s3z.js} +1 -1
  87. package/dist/chunks/{location-lifecycle-91rj84md.js → event-logger-91rj84md.js} +1 -1
  88. package/dist/chunks/event-logger-99bhpp1n.js +517 -0
  89. package/dist/chunks/{location-lifecycle-qm8ewe7w.js → event-logger-9crppwnt.js} +13 -13
  90. package/dist/chunks/{location-lifecycle-9cx9sm2q.js → event-logger-9cx9sm2q.js} +1 -1
  91. package/dist/chunks/{location-lifecycle-s0588k8a.js → event-logger-9f7hjvpa.js} +18 -18
  92. package/dist/chunks/{location-lifecycle-jn88007r.js → event-logger-9r0x1bva.js} +9 -9
  93. package/dist/chunks/{location-lifecycle-bqrrerqn.js → event-logger-9rr00cqq.js} +32 -32
  94. package/dist/chunks/{location-lifecycle-2dx8ra8x.js → event-logger-9s0e97ng.js} +36 -36
  95. package/dist/chunks/{location-lifecycle-zgd8t41s.js → event-logger-9z9tayqc.js} +9 -9
  96. package/dist/chunks/{location-lifecycle-0d9p3c2x.js → event-logger-a32zpqad.js} +9 -9
  97. package/dist/chunks/{location-lifecycle-bdmysry5.js → event-logger-a52e4zaq.js} +5 -5
  98. package/dist/chunks/{location-lifecycle-3paewqb6.js → event-logger-a8sm5zt7.js} +11 -11
  99. package/dist/chunks/{location-lifecycle-53sxntf7.js → event-logger-akgtqb0c.js} +11 -11
  100. package/dist/chunks/{location-lifecycle-ayjs7tqn.js → event-logger-ayjs7tqn.js} +2 -2
  101. package/dist/chunks/{location-lifecycle-b0mv4wxm.js → event-logger-b0mv4wxm.js} +2 -2
  102. package/dist/chunks/{location-lifecycle-jvhc8y22.js → event-logger-b42k84jp.js} +22 -22
  103. package/dist/chunks/{location-lifecycle-5nnwax6m.js → event-logger-b6vsg801.js} +5 -5
  104. package/dist/chunks/{location-lifecycle-sg3bf8v2.js → event-logger-b8teqy6w.js} +5 -5
  105. package/dist/chunks/{location-lifecycle-t7myweak.js → event-logger-basczpv8.js} +14 -14
  106. package/dist/chunks/{location-lifecycle-h6vtwdne.js → event-logger-bf5n42xj.js} +11 -11
  107. package/dist/chunks/{location-lifecycle-xp2yp5n3.js → event-logger-bfbc4kpy.js} +7 -7
  108. package/dist/chunks/{location-lifecycle-028e5jg0.js → event-logger-bn6jkna4.js} +18 -18
  109. package/dist/chunks/{location-lifecycle-5snkchxy.js → event-logger-bqe25t1z.js} +5 -5
  110. package/dist/chunks/{location-lifecycle-jneg3k74.js → event-logger-brd5eeq0.js} +8 -8
  111. package/dist/chunks/{location-lifecycle-bm4gstpq.js → event-logger-bvn4drfw.js} +8 -8
  112. package/dist/chunks/{location-lifecycle-kshh01vy.js → event-logger-bw78fe9b.js} +10 -10
  113. package/dist/chunks/{location-lifecycle-y6dv563x.js → event-logger-bwsx8aca.js} +13 -13
  114. package/dist/chunks/{location-lifecycle-kydg8q3s.js → event-logger-c1df77m2.js} +18 -18
  115. package/dist/chunks/{location-lifecycle-2f4mgkkf.js → event-logger-c1gsg3g8.js} +5 -5
  116. package/dist/chunks/{location-lifecycle-6wbd4xnq.js → event-logger-c36nnf6h.js} +6 -6
  117. package/dist/chunks/{location-lifecycle-x5338emj.js → event-logger-c9pz1jz6.js} +5 -5
  118. package/dist/chunks/{location-lifecycle-mprgj00x.js → event-logger-cdgpjepk.js} +34 -34
  119. package/dist/chunks/event-logger-cfbx046s.js +257 -0
  120. package/dist/chunks/{location-lifecycle-dvke8c51.js → event-logger-ch94d7vp.js} +5 -5
  121. package/dist/chunks/{location-lifecycle-j03kz36w.js → event-logger-ck0tns3b.js} +38 -38
  122. package/dist/chunks/{location-lifecycle-c6x7d2ts.js → event-logger-cpvd08na.js} +4 -4
  123. package/dist/chunks/{location-lifecycle-s9gx43g4.js → event-logger-cqgy4j9b.js} +33 -33
  124. package/dist/chunks/{location-lifecycle-d4v9tmah.js → event-logger-d4v9tmah.js} +2 -2
  125. package/dist/chunks/{location-lifecycle-9b138bm1.js → event-logger-dj4zrkts.js} +4 -4
  126. package/dist/chunks/{location-lifecycle-dfwbs5ec.js → event-logger-dwcq4ckc.js} +12 -12
  127. package/dist/chunks/{location-lifecycle-7zab0ebj.js → event-logger-dynzjwsk.js} +1 -1
  128. package/dist/chunks/{location-lifecycle-4nc9a7xj.js → event-logger-dzd14etx.js} +21 -21
  129. package/dist/chunks/{location-lifecycle-gk8pf4x2.js → event-logger-e066yxsa.js} +32 -32
  130. package/dist/chunks/{location-lifecycle-kccrvse4.js → event-logger-e19z48h8.js} +11 -11
  131. package/dist/chunks/{location-lifecycle-w04hajkc.js → event-logger-e6bk7rc7.js} +8 -8
  132. package/dist/chunks/{location-lifecycle-e834z07m.js → event-logger-e834z07m.js} +1 -1
  133. package/dist/chunks/{location-lifecycle-ejnm2tv5.js → event-logger-ejnhfpwt.js} +35 -35
  134. package/dist/chunks/{location-lifecycle-e07q2w5p.js → event-logger-eky6j0x6.js} +9 -9
  135. package/dist/chunks/{location-lifecycle-qyaey30s.js → event-logger-ez16syfw.js} +9 -9
  136. package/dist/chunks/{location-lifecycle-kpexrj34.js → event-logger-f1bpp1ef.js} +25 -25
  137. package/dist/chunks/{location-lifecycle-54q26zph.js → event-logger-f1gxq19d.js} +1 -1
  138. package/dist/chunks/{location-lifecycle-wpqwsn6a.js → event-logger-f7aqmhgm.js} +11 -11
  139. package/dist/chunks/{location-lifecycle-dhepf5k1.js → event-logger-f9c14s45.js} +3 -3
  140. package/dist/chunks/{location-lifecycle-ty4d2nkd.js → event-logger-fa5mv2e8.js} +33 -33
  141. package/dist/chunks/{location-lifecycle-fffv3p7h.js → event-logger-fffv3p7h.js} +1 -1
  142. package/dist/chunks/{location-lifecycle-tj0d3mv0.js → event-logger-fh08m5h2.js} +4 -4
  143. package/dist/chunks/{location-lifecycle-gnxm9zvh.js → event-logger-fjg1f0qa.js} +28 -28
  144. package/dist/chunks/{location-lifecycle-n85rjewb.js → event-logger-frm2a0t2.js} +9 -9
  145. package/dist/chunks/{location-lifecycle-fznmdakp.js → event-logger-fznmdakp.js} +1 -1
  146. package/dist/chunks/{location-lifecycle-92twe937.js → event-logger-g179cxj4.js} +34 -34
  147. package/dist/chunks/{location-lifecycle-2f4dsyv8.js → event-logger-g1ac2pg3.js} +7 -7
  148. package/dist/chunks/{location-lifecycle-g5h9c0rr.js → event-logger-g5h9c0rr.js} +2 -2
  149. package/dist/chunks/{location-lifecycle-zgt5j0h2.js → event-logger-g6dfma3d.js} +2 -2
  150. package/dist/chunks/{location-lifecycle-p6y8kjpr.js → event-logger-ga597wxg.js} +22 -22
  151. package/dist/chunks/{location-lifecycle-gg8p9cgs.js → event-logger-gg8p9cgs.js} +3 -3
  152. package/dist/chunks/{location-lifecycle-wad6xj88.js → event-logger-gy4a15hj.js} +41 -41
  153. package/dist/chunks/{location-lifecycle-0m9q59s6.js → event-logger-h3b857xk.js} +4 -4
  154. package/dist/chunks/{location-lifecycle-t92s7142.js → event-logger-h9sxfnc4.js} +31 -31
  155. package/dist/chunks/{location-lifecycle-a0qbyar6.js → event-logger-hdfrs5mg.js} +5 -5
  156. package/dist/chunks/{location-lifecycle-4z1m5q35.js → event-logger-herh7hrd.js} +8 -8
  157. package/dist/chunks/{location-lifecycle-c4a8kt2y.js → event-logger-hgbyz31g.js} +24 -24
  158. package/dist/chunks/{location-lifecycle-56t9khd1.js → event-logger-hh6grysg.js} +4 -4
  159. package/dist/chunks/{location-lifecycle-y8hpptjh.js → event-logger-ht33fk1k.js} +12 -12
  160. package/dist/chunks/{location-lifecycle-p42wc6w5.js → event-logger-hwadrnp3.js} +11 -11
  161. package/dist/chunks/{location-lifecycle-2txhztxc.js → event-logger-hzqt23km.js} +41 -26
  162. package/dist/chunks/{location-lifecycle-j113cymg.js → event-logger-j113cymg.js} +1 -1
  163. package/dist/chunks/{location-lifecycle-ak3w6k6z.js → event-logger-j4danyaa.js} +4 -4
  164. package/dist/chunks/{location-lifecycle-d9z8hdxr.js → event-logger-j7e2k5v8.js} +41 -41
  165. package/dist/chunks/{location-lifecycle-ydkf0bj3.js → event-logger-jtk69epa.js} +31 -31
  166. package/dist/chunks/{location-lifecycle-hy6qt35j.js → event-logger-jv1fc1mx.js} +14 -14
  167. package/dist/chunks/{location-lifecycle-0ft0yr9w.js → event-logger-jxr5ks98.js} +6 -6
  168. package/dist/chunks/{location-lifecycle-1x0kbyy9.js → event-logger-jz593hnq.js} +14 -14
  169. package/dist/chunks/{location-lifecycle-k814nvkf.js → event-logger-k814nvkf.js} +1 -1
  170. package/dist/chunks/{location-lifecycle-8vbpf0m9.js → event-logger-k8ya5e1r.js} +25 -25
  171. package/dist/chunks/{location-lifecycle-g2bzhkzw.js → event-logger-kfvrqrnd.js} +21 -21
  172. package/dist/chunks/{location-lifecycle-ktnx6nfw.js → event-logger-khycn197.js} +9 -9
  173. package/dist/chunks/{location-lifecycle-7mfv9kz5.js → event-logger-kqdytwcc.js} +18 -18
  174. package/dist/chunks/{location-lifecycle-kt3bjfbg.js → event-logger-kt3bjfbg.js} +1 -1
  175. package/dist/chunks/{location-lifecycle-18fg54k7.js → event-logger-kv7q9t9v.js} +55 -55
  176. package/dist/chunks/{location-lifecycle-k90hg5nq.js → event-logger-m0b3df16.js} +18 -18
  177. package/dist/chunks/{location-lifecycle-m1714858.js → event-logger-m1714858.js} +1 -1
  178. package/dist/chunks/{location-lifecycle-djtsprq9.js → event-logger-m239h48j.js} +10 -10
  179. package/dist/chunks/{location-lifecycle-8y4jps98.js → event-logger-m37sd98t.js} +4 -4
  180. package/dist/chunks/{location-lifecycle-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
  181. package/dist/chunks/{location-lifecycle-maspj1v3.js → event-logger-maspj1v3.js} +1 -1
  182. package/dist/chunks/{location-lifecycle-cynzgytk.js → event-logger-mby4m2vn.js} +11 -11
  183. package/dist/chunks/{location-lifecycle-7xx7sts6.js → event-logger-md82vg28.js} +25 -25
  184. package/dist/chunks/{location-lifecycle-krj48ye9.js → event-logger-mfp9msn1.js} +47 -47
  185. package/dist/chunks/{location-lifecycle-symkg8d2.js → event-logger-mptppmq7.js} +5 -5
  186. package/dist/chunks/{location-lifecycle-6cqcnmzq.js → event-logger-mq16y592.js} +3 -3
  187. package/dist/chunks/{location-lifecycle-70y17xeh.js → event-logger-mtrbqqrq.js} +5 -5
  188. package/dist/chunks/{location-lifecycle-39fa55hs.js → event-logger-mzrr2ceq.js} +27 -27
  189. package/dist/chunks/{location-lifecycle-vrcsa8qx.js → event-logger-n7bnkb3p.js} +9 -9
  190. package/dist/chunks/{location-lifecycle-nah043kf.js → event-logger-nah043kf.js} +1 -1
  191. package/dist/chunks/{location-lifecycle-4tk2v8fm.js → event-logger-nfht88f8.js} +40 -40
  192. package/dist/chunks/{location-lifecycle-sp01zcey.js → event-logger-nn2wptpk.js} +5 -5
  193. package/dist/chunks/{location-lifecycle-zb5gs1ba.js → event-logger-nvxqht09.js} +3 -3
  194. package/dist/chunks/{location-lifecycle-2rn5yfm1.js → event-logger-nz5t40nw.js} +13 -13
  195. package/dist/chunks/{location-lifecycle-p015t6z3.js → event-logger-p015t6z3.js} +2 -2
  196. package/dist/chunks/{location-lifecycle-bhdbhctw.js → event-logger-p2nmcv9d.js} +13 -13
  197. package/dist/chunks/{location-lifecycle-8e7tv7eg.js → event-logger-p3kn9h9d.js} +29 -29
  198. package/dist/chunks/{location-lifecycle-ztf6n3de.js → event-logger-p76me67c.js} +4 -4
  199. package/dist/chunks/{location-lifecycle-qamzk6x1.js → event-logger-pacbbjc0.js} +7 -7
  200. package/dist/chunks/{location-lifecycle-ze1jx3cz.js → event-logger-pap6y6k1.js} +193 -193
  201. package/dist/chunks/{location-lifecycle-k4px567t.js → event-logger-peyy5ms6.js} +24 -24
  202. package/dist/chunks/{location-lifecycle-bgetk685.js → event-logger-phatgdjg.js} +14 -14
  203. package/dist/chunks/{location-lifecycle-pknna89w.js → event-logger-pknna89w.js} +1 -1
  204. package/dist/chunks/{location-lifecycle-fmwh225f.js → event-logger-pmbbezah.js} +22 -22
  205. package/dist/chunks/{location-lifecycle-1qqyp8g5.js → event-logger-pqzzv18e.js} +17 -17
  206. package/dist/chunks/{location-lifecycle-mm7a63e9.js → event-logger-prq7xxp2.js} +8 -8
  207. package/dist/chunks/{location-lifecycle-vx6ny987.js → event-logger-psvq06ac.js} +4 -4
  208. package/dist/chunks/{location-lifecycle-6c56xz8q.js → event-logger-pymyzg4j.js} +11 -11
  209. package/dist/chunks/{location-lifecycle-ad26sn84.js → event-logger-q05tgvb2.js} +1 -1
  210. package/dist/chunks/{location-lifecycle-d4safsx6.js → event-logger-q2vz9kat.js} +20 -20
  211. package/dist/chunks/{location-lifecycle-0kb0esn6.js → event-logger-q61wn67c.js} +12 -12
  212. package/dist/chunks/{location-lifecycle-98ps9a1j.js → event-logger-qa95shqj.js} +23 -23
  213. package/dist/chunks/{location-lifecycle-n4w1y350.js → event-logger-qa9tft3h.js} +120 -94
  214. package/dist/chunks/{location-lifecycle-ankhr68s.js → event-logger-qd1s09xq.js} +28 -28
  215. package/dist/chunks/{location-lifecycle-neny76qq.js → event-logger-qfjvy58c.js} +6 -6
  216. package/dist/chunks/{location-lifecycle-fmnt9ehj.js → event-logger-qg7vbzw0.js} +27 -27
  217. package/dist/chunks/{location-lifecycle-hrsrp69b.js → event-logger-qgehj1ry.js} +23 -23
  218. package/dist/chunks/{location-lifecycle-dt88w47r.js → event-logger-qnxr7c2a.js} +6 -6
  219. package/dist/chunks/{location-lifecycle-72j05hbq.js → event-logger-qwcg15xq.js} +2 -2
  220. package/dist/chunks/{location-lifecycle-r0yr0wbs.js → event-logger-r0yr0wbs.js} +1 -1
  221. package/dist/chunks/{location-lifecycle-r542h3bh.js → event-logger-r542h3bh.js} +1 -1
  222. package/dist/chunks/{location-lifecycle-rb9dy4dg.js → event-logger-rb9dy4dg.js} +1 -1
  223. package/dist/chunks/{location-lifecycle-5wj3x46p.js → event-logger-re1qaq4d.js} +15 -15
  224. package/dist/chunks/{location-lifecycle-9060xwwx.js → event-logger-rrd1tyyg.js} +5 -5
  225. package/dist/chunks/{location-lifecycle-rt5dr6hb.js → event-logger-rt5dr6hb.js} +1 -1
  226. package/dist/chunks/{location-lifecycle-9x3s0wgq.js → event-logger-ryaxndx4.js} +37 -37
  227. package/dist/chunks/{location-lifecycle-61ennm6n.js → event-logger-s626qfae.js} +4 -4
  228. package/dist/chunks/{location-lifecycle-7x0pcwj8.js → event-logger-sa2m7fmb.js} +21 -21
  229. package/dist/chunks/{location-lifecycle-sa3fpqfw.js → event-logger-sa3fpqfw.js} +2 -2
  230. package/dist/chunks/{location-lifecycle-6fxgcwam.js → event-logger-sc7s3392.js} +15 -15
  231. package/dist/chunks/{location-lifecycle-x196pd4c.js → event-logger-sfe1x69m.js} +42 -42
  232. package/dist/chunks/{location-lifecycle-qc0wsmwq.js → event-logger-shd4apfp.js} +5 -5
  233. package/dist/chunks/{location-lifecycle-zw3278ky.js → event-logger-shdc20fs.js} +14 -14
  234. package/dist/chunks/{location-lifecycle-3mmzrpsj.js → event-logger-sjt0aqsb.js} +24 -24
  235. package/dist/chunks/{location-lifecycle-p6pw9whk.js → event-logger-sk0dcrgn.js} +1 -1
  236. package/dist/chunks/{location-lifecycle-35t0dhq3.js → event-logger-skpj3wch.js} +13 -13
  237. package/dist/chunks/{location-lifecycle-sqjzf8x2.js → event-logger-sqjzf8x2.js} +1 -1
  238. package/dist/chunks/{location-lifecycle-b1pn0vxn.js → event-logger-ssfehs1z.js} +4 -4
  239. package/dist/chunks/{location-lifecycle-041k09c0.js → event-logger-ssv8d6ry.js} +3 -3
  240. package/dist/chunks/{location-lifecycle-tegm2x1x.js → event-logger-st4dmjma.js} +50 -50
  241. package/dist/chunks/{location-lifecycle-0w2jttgf.js → event-logger-st7p3hwb.js} +2 -2
  242. package/dist/chunks/{location-lifecycle-5791fv37.js → event-logger-sy707q11.js} +11 -11
  243. package/dist/chunks/{location-lifecycle-vmwpcxrh.js → event-logger-syrbqdmj.js} +19 -19
  244. package/dist/chunks/{location-lifecycle-04pje3kj.js → event-logger-t5zwprfx.js} +32 -32
  245. package/dist/chunks/{location-lifecycle-13eaqaby.js → event-logger-t7z44kv1.js} +33 -33
  246. package/dist/chunks/{location-lifecycle-2gc4yf1d.js → event-logger-tbx1dsy3.js} +23 -23
  247. package/dist/chunks/{location-lifecycle-qzzfvzvj.js → event-logger-tcjkzhbf.js} +19 -19
  248. package/dist/chunks/{location-lifecycle-tczq8hjw.js → event-logger-tczq8hjw.js} +1 -1
  249. package/dist/chunks/{location-lifecycle-xmkr896k.js → event-logger-td0tf8cx.js} +11 -11
  250. package/dist/chunks/{location-lifecycle-t1g8akh6.js → event-logger-tdjd85a2.js} +34 -34
  251. package/dist/chunks/{location-lifecycle-ydsespw1.js → event-logger-tg1vr1qt.js} +8 -8
  252. package/dist/chunks/{location-lifecycle-c7c2803h.js → event-logger-ts1a0z93.js} +21 -21
  253. package/dist/chunks/{location-lifecycle-twv2r8f4.js → event-logger-twv2r8f4.js} +2 -2
  254. package/dist/chunks/{location-lifecycle-mre43e2x.js → event-logger-tyred3qc.js} +18 -18
  255. package/dist/chunks/{location-lifecycle-v2r1d0zg.js → event-logger-v2r1d0zg.js} +1 -1
  256. package/dist/chunks/{location-lifecycle-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
  257. package/dist/chunks/{location-lifecycle-a1rqxjpc.js → event-logger-vhwcqbf2.js} +19 -19
  258. package/dist/chunks/{location-lifecycle-4f3z0smc.js → event-logger-vkhmt3za.js} +32 -32
  259. package/dist/chunks/{location-lifecycle-j40t6js0.js → event-logger-vpbqyf0k.js} +22 -22
  260. package/dist/chunks/{location-lifecycle-qssmn7t2.js → event-logger-vqrx5bk3.js} +8 -8
  261. package/dist/chunks/{location-lifecycle-bdqn9720.js → event-logger-vx7ymf2n.js} +30 -30
  262. package/dist/chunks/{location-lifecycle-hjnjc3ts.js → event-logger-vxxaf4jx.js} +8 -8
  263. package/dist/chunks/{location-lifecycle-b60yey21.js → event-logger-vz52s56h.js} +54 -54
  264. package/dist/chunks/{location-lifecycle-fr8djkxe.js → event-logger-w0cs00f7.js} +18 -18
  265. package/dist/chunks/{location-lifecycle-bj67wmp5.js → event-logger-w2b5jz6s.js} +3 -3
  266. package/dist/chunks/{location-lifecycle-2kg89srt.js → event-logger-w35wzz9x.js} +4 -4
  267. package/dist/chunks/{location-lifecycle-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
  268. package/dist/chunks/{location-lifecycle-wakvkjy4.js → event-logger-wakvkjy4.js} +1 -1
  269. package/dist/chunks/{location-lifecycle-wd87259q.js → event-logger-wd87259q.js} +1 -1
  270. package/dist/chunks/{location-lifecycle-39xamrjb.js → event-logger-wvngvz36.js} +17 -17
  271. package/dist/chunks/{location-lifecycle-n510q2e5.js → event-logger-wyqjen5s.js} +11 -11
  272. package/dist/chunks/{location-lifecycle-jz86pzzm.js → event-logger-wzp5edw8.js} +8 -8
  273. package/dist/chunks/{location-lifecycle-tffwexhc.js → event-logger-x0hhhwgh.js} +35 -35
  274. package/dist/chunks/{location-lifecycle-a4tsa7r1.js → event-logger-x0z7d0h1.js} +23 -23
  275. package/dist/chunks/{location-lifecycle-vnkxp1ve.js → event-logger-x57zhnt4.js} +50 -50
  276. package/dist/chunks/{location-lifecycle-anfccx7e.js → event-logger-x98cm754.js} +18 -18
  277. package/dist/chunks/{location-lifecycle-vkj83s5t.js → event-logger-xczbbc2n.js} +13 -13
  278. package/dist/chunks/{location-lifecycle-bstexjd6.js → event-logger-xd9cc171.js} +5 -5
  279. package/dist/chunks/{location-lifecycle-6dxg04eh.js → event-logger-xm0409en.js} +6 -6
  280. package/dist/chunks/{location-lifecycle-943sj690.js → event-logger-xxadresr.js} +22 -22
  281. package/dist/chunks/{location-lifecycle-wns4vpfp.js → event-logger-xzk44jme.js} +27 -27
  282. package/dist/chunks/{location-lifecycle-yara3q77.js → event-logger-yara3q77.js} +2 -2
  283. package/dist/chunks/{location-lifecycle-yb20nhc3.js → event-logger-yb20nhc3.js} +1 -1
  284. package/dist/chunks/{location-lifecycle-rdr92g8z.js → event-logger-ygbhaca5.js} +14 -14
  285. package/dist/chunks/{location-lifecycle-q3j43vdg.js → event-logger-yyt2djfr.js} +12 -12
  286. package/dist/chunks/{location-lifecycle-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
  287. package/dist/chunks/{location-lifecycle-z38nccrw.js → event-logger-z38nccrw.js} +1 -1
  288. package/dist/chunks/{location-lifecycle-7fktg098.js → event-logger-z8rfms9g.js} +12 -12
  289. package/dist/chunks/{location-lifecycle-zkg84ctx.js → event-logger-zkg84ctx.js} +1 -1
  290. package/dist/chunks/{location-lifecycle-qedxx4df.js → event-logger-zmwdvt2x.js} +11 -11
  291. package/dist/chunks/{location-lifecycle-3svk3m7v.js → event-logger-zq9gq21d.js} +11 -11
  292. package/dist/chunks/{location-lifecycle-2bb3sknj.js → event-logger-zt0grhjq.js} +36 -36
  293. package/dist/chunks/{location-lifecycle-1hh3w1a4.js → event-logger-zt1y2eyh.js} +15 -15
  294. package/dist/chunks/{location-lifecycle-kkms64sw.js → event-logger-zxhnf3hq.js} +6 -6
  295. package/dist/codemode/catalog.js +1 -1
  296. package/dist/codemode/instructions.js +7 -7
  297. package/dist/codemode/tool.js +3 -3
  298. package/dist/codemode/web.js +1 -1
  299. package/dist/command.js +89 -89
  300. package/dist/config/discovery.js +90 -90
  301. package/dist/config/integration.js +7 -7
  302. package/dist/config/markdown.js +1 -1
  303. package/dist/config/normalize.js +107 -107
  304. package/dist/config/plugin/agent.js +121 -121
  305. package/dist/config/plugin/command.js +219 -219
  306. package/dist/config/plugin/compaction.js +162 -162
  307. package/dist/config/plugin/compatibility.js +142 -142
  308. package/dist/config/plugin/entry-observer.js +1 -1
  309. package/dist/config/plugin/formatter.js +122 -122
  310. package/dist/config/plugin/image.js +121 -121
  311. package/dist/config/plugin/instruction.js +121 -121
  312. package/dist/config/plugin/location-watcher.js +123 -123
  313. package/dist/config/plugin/mcp.js +128 -128
  314. package/dist/config/plugin/policy.js +123 -123
  315. package/dist/config/plugin/provider.js +122 -122
  316. package/dist/config/plugin/reference.js +123 -123
  317. package/dist/config/plugin/shell.js +123 -123
  318. package/dist/config/plugin/skill-file.js +138 -138
  319. package/dist/config/plugin/skill-scan.js +1 -1
  320. package/dist/config/plugin/skill.js +145 -145
  321. package/dist/config/plugin/snapshot.js +121 -121
  322. package/dist/config/plugin/source.js +124 -124
  323. package/dist/config/plugin/tool-output.js +122 -122
  324. package/dist/config/plugin/websearch.js +122 -122
  325. package/dist/config/plugin/worktree.js +123 -123
  326. package/dist/config/variable.js +1 -1
  327. package/dist/config/watch.js +1 -1
  328. package/dist/config.js +126 -126
  329. package/dist/console-access.js +1 -1
  330. package/dist/credential/sql.js +2 -2
  331. package/dist/credential.js +91 -91
  332. package/dist/database/database.js +78 -78
  333. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  334. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  335. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  336. package/dist/database/drizzle/index.js +15 -15
  337. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  340. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  343. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  344. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  345. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  346. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  347. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  348. package/dist/database/drizzle.js +16 -16
  349. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  350. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  351. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  352. package/dist/database/migration/20260225215848_workspace.js +1 -1
  353. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  354. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  355. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  356. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  357. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  358. package/dist/database/migration/20260323234822_events.js +1 -1
  359. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  360. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  361. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  362. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  363. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  364. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  365. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  366. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  367. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  368. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  369. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  370. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  371. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  372. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  373. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  374. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  375. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  376. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  377. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  378. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  379. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  380. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  381. package/dist/database/migration/20260611035744_credential.js +1 -1
  382. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  383. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  384. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  385. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  386. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  387. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  388. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  389. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  390. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  391. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  392. package/dist/database/migration/20260812213948_worktree.js +1 -1
  393. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  394. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  395. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  396. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  397. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  398. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  399. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  400. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  401. package/dist/database/migration/20261025123711_blob.js +1 -1
  402. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  403. package/dist/database/migration.gen.js +55 -55
  404. package/dist/database/migration.js +57 -57
  405. package/dist/database/path.js +2 -2
  406. package/dist/database/schema.gen.js +1 -1
  407. package/dist/database/schema.sql.js +1 -1
  408. package/dist/database/sqlite.bun.js +1 -1
  409. package/dist/database/sqlite.js +1 -1
  410. package/dist/database/sqlite.node.js +1 -1
  411. package/dist/database/sqlite.workerd.js +1 -1
  412. package/dist/database/v1-migration.bun.js +98 -98
  413. package/dist/database/v1-migration.js +1 -1
  414. package/dist/effect/app-node-builder.js +381 -381
  415. package/dist/effect/app-node-platform.js +2 -2
  416. package/dist/effect/keyed-mutex.js +3 -3
  417. package/dist/effect/websocket-constructor.js +1 -1
  418. package/dist/environment/driver.js +1 -1
  419. package/dist/environment/environment.js +101 -101
  420. package/dist/environment/exec-defaults.js +2 -2
  421. package/dist/environment/files.js +1 -1
  422. package/dist/environment/index.js +103 -103
  423. package/dist/environment/local.js +2 -2
  424. package/dist/environment/memory.js +2 -2
  425. package/dist/environment/unavailable.js +1 -1
  426. package/dist/event/sql.js +1 -1
  427. package/dist/event-logger.js +80 -80
  428. package/dist/file-access.js +140 -140
  429. package/dist/file-mutation.js +102 -102
  430. package/dist/file-retention.js +1 -1
  431. package/dist/filesystem/fff.bun.js +2 -2
  432. package/dist/filesystem/fff.js +1 -1
  433. package/dist/filesystem/fff.node.js +2 -2
  434. package/dist/filesystem/fff.workerd.js +2 -2
  435. package/dist/filesystem/file-watch.js +86 -86
  436. package/dist/filesystem/location-watcher-policy.js +6 -6
  437. package/dist/filesystem/location-watcher.js +234 -234
  438. package/dist/filesystem/protected.js +1 -1
  439. package/dist/filesystem/search.js +107 -107
  440. package/dist/filesystem/watcher-binding.js +1 -1
  441. package/dist/filesystem/watcher.js +11 -11
  442. package/dist/filesystem.js +110 -110
  443. package/dist/form.js +90 -90
  444. package/dist/formatter/builtins.js +4 -4
  445. package/dist/formatter.js +95 -95
  446. package/dist/generate.js +113 -113
  447. package/dist/git.js +11 -11
  448. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  449. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  450. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  451. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  452. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  453. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  454. package/dist/github-copilot/copilot-provider.js +17 -17
  455. package/dist/github-copilot/models.js +99 -99
  456. package/dist/github-copilot/openai-compatible-error.js +1 -1
  457. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  458. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  459. package/dist/github-copilot/responses/openai-error.js +1 -1
  460. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  461. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  462. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  463. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  464. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  465. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  466. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  467. package/dist/image/photon.js +2 -2
  468. package/dist/image.js +6 -6
  469. package/dist/instance/service.js +5 -5
  470. package/dist/instance.js +372 -372
  471. package/dist/instruction-discovery.js +92 -92
  472. package/dist/instructions/builtins.js +95 -95
  473. package/dist/instructions/index.js +5 -5
  474. package/dist/integration/connection.js +3 -3
  475. package/dist/integration.js +95 -95
  476. package/dist/job.js +82 -82
  477. package/dist/kv/sql.js +2 -2
  478. package/dist/kv.js +79 -79
  479. package/dist/location-activity.js +166 -166
  480. package/dist/location-lifecycle.js +142 -142
  481. package/dist/location-service-map.js +94 -94
  482. package/dist/location-services.js +369 -369
  483. package/dist/location.js +93 -93
  484. package/dist/managed-policy.js +9 -9
  485. package/dist/mcp/client.js +99 -99
  486. package/dist/mcp/index.js +117 -117
  487. package/dist/mcp/instructions.js +168 -168
  488. package/dist/mcp/oauth.js +84 -84
  489. package/dist/mcp/socket-client.js +1 -1
  490. package/dist/mcp/stdio.js +98 -98
  491. package/dist/mime.js +1 -1
  492. package/dist/modal/models.js +99 -99
  493. package/dist/model-resolver.js +107 -107
  494. package/dist/model-retry.js +1 -1
  495. package/dist/model.js +110 -110
  496. package/dist/models-dev.js +111 -111
  497. package/dist/oauth/page.js +1 -1
  498. package/dist/permission/saved.js +84 -84
  499. package/dist/permission/sql.js +5 -5
  500. package/dist/permission.js +141 -141
  501. package/dist/persistent-pty/binary.bun.js +1 -1
  502. package/dist/persistent-pty/daemon.js +1 -1
  503. package/dist/persistent-pty/index.js +94 -94
  504. package/dist/persistent-pty/pty-binding.js +1 -1
  505. package/dist/persistent-pty.js +81 -81
  506. package/dist/plugin/agent.js +80 -80
  507. package/dist/plugin/command.js +108 -108
  508. package/dist/plugin/hooks.js +5 -5
  509. package/dist/plugin/host.js +227 -227
  510. package/dist/plugin/identity.js +5 -5
  511. package/dist/plugin/instance.js +5 -5
  512. package/dist/plugin/internal.js +342 -342
  513. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  514. package/dist/plugin/models-dev.js +104 -104
  515. package/dist/plugin/module.js +121 -121
  516. package/dist/plugin/optimize.js +2 -2
  517. package/dist/plugin/plan.js +138 -138
  518. package/dist/plugin/promise.js +1 -1
  519. package/dist/plugin/provider/amazon-bedrock.js +98 -98
  520. package/dist/plugin/provider/azure.js +121 -121
  521. package/dist/plugin/provider/cerebras.js +1 -1
  522. package/dist/plugin/provider/chatgpt.js +121 -121
  523. package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
  524. package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
  525. package/dist/plugin/provider/cohere.js +2 -2
  526. package/dist/plugin/provider/configured.js +117 -117
  527. package/dist/plugin/provider/databricks.js +1 -1
  528. package/dist/plugin/provider/digitalocean.js +101 -101
  529. package/dist/plugin/provider/dynamic.js +2 -2
  530. package/dist/plugin/provider/factory.js +1 -1
  531. package/dist/plugin/provider/github-copilot.js +103 -103
  532. package/dist/plugin/provider/gitlab.js +101 -101
  533. package/dist/plugin/provider/google-vertex.js +118 -118
  534. package/dist/plugin/provider/kilo.js +1 -1
  535. package/dist/plugin/provider/llmgateway.js +84 -84
  536. package/dist/plugin/provider/lmstudio.js +130 -130
  537. package/dist/plugin/provider/local.js +127 -127
  538. package/dist/plugin/provider/modal.js +100 -100
  539. package/dist/plugin/provider/neon.js +1 -1
  540. package/dist/plugin/provider/nvidia.js +1 -1
  541. package/dist/plugin/provider/ollama.js +128 -128
  542. package/dist/plugin/provider/openai-context-caps.js +98 -98
  543. package/dist/plugin/provider/openai.js +121 -121
  544. package/dist/plugin/provider/opencode-legacy.js +106 -106
  545. package/dist/plugin/provider/opencode.js +127 -127
  546. package/dist/plugin/provider/openrouter.js +99 -99
  547. package/dist/plugin/provider/perplexity.js +2 -2
  548. package/dist/plugin/provider/poe.js +85 -85
  549. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  550. package/dist/plugin/provider/sap-ai-core.js +99 -99
  551. package/dist/plugin/provider/sdk-factory.js +1 -1
  552. package/dist/plugin/provider/snowflake-cortex.js +120 -120
  553. package/dist/plugin/provider/vercel.js +98 -98
  554. package/dist/plugin/provider/vllm.js +128 -128
  555. package/dist/plugin/provider/xai.js +99 -99
  556. package/dist/plugin/provider/zenmux.js +1 -1
  557. package/dist/plugin/provider.js +178 -178
  558. package/dist/plugin/sdk.js +80 -80
  559. package/dist/plugin/service.js +3 -3
  560. package/dist/plugin/skill.js +141 -141
  561. package/dist/plugin/source-directory.js +1 -1
  562. package/dist/plugin/supervisor.js +359 -359
  563. package/dist/plugin/tool-input-repair.js +4 -4
  564. package/dist/plugin/update.js +6 -6
  565. package/dist/plugin/vcs/git.js +94 -94
  566. package/dist/plugin/vcs/hg.js +94 -94
  567. package/dist/plugin/verbosity.js +101 -101
  568. package/dist/plugin/warming.js +119 -119
  569. package/dist/plugin/websearch/exa.js +7 -7
  570. package/dist/plugin/websearch/firecrawl.js +8 -8
  571. package/dist/plugin/websearch/index.js +9 -9
  572. package/dist/plugin/websearch/mcp.js +4 -4
  573. package/dist/plugin/websearch/parallel.js +6 -6
  574. package/dist/plugin/websearch/tavily.js +6 -6
  575. package/dist/plugin/websearch/tinyfish.js +8 -8
  576. package/dist/plugin.js +232 -232
  577. package/dist/project/icon.js +5 -5
  578. package/dist/project/schema.js +4 -4
  579. package/dist/project/sql.js +4 -4
  580. package/dist/project.js +92 -92
  581. package/dist/provider.js +107 -107
  582. package/dist/pty/protocol.js +1 -1
  583. package/dist/pty/ticket.js +1 -1
  584. package/dist/pty.js +106 -106
  585. package/dist/reference/instructions.js +96 -96
  586. package/dist/reference.js +96 -96
  587. package/dist/repository-cache.js +88 -88
  588. package/dist/repository.js +3 -3
  589. package/dist/ripgrep/binary.js +2 -2
  590. package/dist/ripgrep.js +105 -105
  591. package/dist/rpc.js +94 -94
  592. package/dist/schema.js +1 -1
  593. package/dist/session/affinity.js +1 -1
  594. package/dist/session/blob.js +132 -120
  595. package/dist/session/command.js +80 -80
  596. package/dist/session/compaction.js +164 -164
  597. package/dist/session/context.js +188 -188
  598. package/dist/session/diff.js +96 -96
  599. package/dist/session/environment.js +5 -5
  600. package/dist/session/error.js +3 -3
  601. package/dist/session/event.js +1 -1
  602. package/dist/session/execution/restart.js +231 -231
  603. package/dist/session/execution.js +154 -154
  604. package/dist/session/generate.js +190 -190
  605. package/dist/session/history.js +129 -127
  606. package/dist/session/inbox.js +146 -138
  607. package/dist/session/info.js +3 -3
  608. package/dist/session/instruction-entry.js +85 -85
  609. package/dist/session/instruction-state.js +8 -8
  610. package/dist/session/instructions.js +134 -134
  611. package/dist/session/message-updater.js +4 -4
  612. package/dist/session/message.js +1 -1
  613. package/dist/session/model-request.js +155 -155
  614. package/dist/session/model-transport.js +9 -9
  615. package/dist/session/move.js +156 -156
  616. package/dist/session/projector.js +134 -134
  617. package/dist/session/prompt.js +140 -140
  618. package/dist/session/recent-text.js +1 -1
  619. package/dist/session/revert.js +130 -130
  620. package/dist/session/run-coordinator.js +3 -3
  621. package/dist/session/runner/index.js +3 -3
  622. package/dist/session/runner/llm.js +238 -238
  623. package/dist/session/runner/max-steps.js +1 -1
  624. package/dist/session/runner/model.js +108 -108
  625. package/dist/session/runner/publish-llm-event.js +141 -141
  626. package/dist/session/runner/retry.js +5 -5
  627. package/dist/session/runner/step.js +154 -154
  628. package/dist/session/runner/to-llm-message.js +128 -128
  629. package/dist/session/schema.js +5 -5
  630. package/dist/session/session.js +172 -172
  631. package/dist/session/shell.js +135 -135
  632. package/dist/session/skill.js +139 -139
  633. package/dist/session/sql.js +5 -5
  634. package/dist/session/stats.js +81 -81
  635. package/dist/session/store.js +133 -133
  636. package/dist/session/stored.js +4 -4
  637. package/dist/session/subagent-completion.js +1 -1
  638. package/dist/session/subagent-job.js +219 -219
  639. package/dist/session/system-prompt.js +3 -3
  640. package/dist/session/title.js +192 -192
  641. package/dist/session/to-session-error.js +140 -140
  642. package/dist/session/transfer.js +230 -230
  643. package/dist/session/usage.js +1 -1
  644. package/dist/session.js +221 -221
  645. package/dist/shell/parse.js +6 -6
  646. package/dist/shell/result.js +1 -1
  647. package/dist/shell/scan.js +1 -1
  648. package/dist/shell/select.js +13 -13
  649. package/dist/shell.js +137 -137
  650. package/dist/skill/discovery.js +6 -6
  651. package/dist/skill/instructions.js +143 -143
  652. package/dist/skill.js +146 -146
  653. package/dist/snapshot.js +101 -101
  654. package/dist/state.js +1 -1
  655. package/dist/tool/html-markdown.js +1 -1
  656. package/dist/tool/http-body.js +1 -1
  657. package/dist/tool/mcp.js +165 -165
  658. package/dist/tool/plugin/edit.js +156 -156
  659. package/dist/tool/plugin/file-diff.js +1 -1
  660. package/dist/tool/plugin/glob.js +158 -158
  661. package/dist/tool/plugin/grep.js +160 -160
  662. package/dist/tool/plugin/mcp-resource.js +154 -154
  663. package/dist/tool/plugin/opencode.js +145 -145
  664. package/dist/tool/plugin/patch.js +158 -158
  665. package/dist/tool/plugin/question.js +136 -136
  666. package/dist/tool/plugin/read.js +161 -161
  667. package/dist/tool/plugin/shell.js +224 -224
  668. package/dist/tool/plugin/skill.js +149 -149
  669. package/dist/tool/plugin/subagent.js +224 -224
  670. package/dist/tool/plugin/todo.js +145 -145
  671. package/dist/tool/plugin/webfetch.js +147 -147
  672. package/dist/tool/plugin/websearch.js +147 -147
  673. package/dist/tool/plugin/write.js +156 -156
  674. package/dist/tool/read-filesystem.js +110 -110
  675. package/dist/tool/runtime.js +1 -1
  676. package/dist/tool-output.js +7 -7
  677. package/dist/tool.js +14 -14
  678. package/dist/types/session/blob.d.ts +929 -0
  679. package/dist/types/session/history.d.ts +853 -0
  680. package/dist/types/session/inbox.d.ts +114 -2
  681. package/dist/types/session/prompt.d.ts +2 -1
  682. package/dist/types/session/store.d.ts +7 -0
  683. package/dist/types/session/stored.d.ts +2 -2
  684. package/dist/types/session.d.ts +9 -0
  685. package/dist/usage-limits.js +93 -93
  686. package/dist/util/error-summary.js +1 -1
  687. package/dist/util/git-executable.js +3 -3
  688. package/dist/util/lazy.js +1 -1
  689. package/dist/util/slug.js +1 -1
  690. package/dist/util/token.js +1 -1
  691. package/dist/util/which.js +1 -1
  692. package/dist/util/wildcard.js +1 -1
  693. package/dist/v1/config/agent.js +5 -5
  694. package/dist/v1/config/command.js +3 -3
  695. package/dist/v1/config/mcp.js +6 -6
  696. package/dist/v1/config/migrate.js +100 -100
  697. package/dist/v1/config/permission.js +3 -3
  698. package/dist/v1/config/plugin.js +3 -3
  699. package/dist/v1/config/provider-options.js +1 -1
  700. package/dist/v1/config/provider.js +4 -4
  701. package/dist/variant.js +99 -99
  702. package/dist/vcs/patch.js +1 -1
  703. package/dist/vcs.js +97 -97
  704. package/dist/voice.js +92 -92
  705. package/dist/websearch.js +88 -88
  706. package/dist/wellknown/plugin.js +82 -82
  707. package/dist/wellknown.js +87 -87
  708. package/dist/workspace/driver.js +5 -5
  709. package/dist/workspace/sql.js +1 -1
  710. package/dist/workspace.js +88 -88
  711. package/dist/worktree/directory.js +2 -2
  712. package/dist/worktree/git.js +11 -11
  713. package/dist/worktree/sql.js +5 -5
  714. package/dist/worktree/strategies.js +97 -97
  715. package/dist/worktree.js +108 -108
  716. package/package.json +9 -9
  717. package/dist/chunks/location-lifecycle-5g0d07fr.js +0 -26
  718. package/dist/chunks/location-lifecycle-73fwqkva.js +0 -517
  719. package/dist/chunks/location-lifecycle-7yv5xa0k.js +0 -18
  720. package/dist/chunks/location-lifecycle-bv8yd5sr.js +0 -257
  721. /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
  722. /package/dist/chunks/{location-lifecycle-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
  723. /package/dist/chunks/{location-lifecycle-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
  724. /package/dist/chunks/{location-lifecycle-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
  725. /package/dist/chunks/{location-lifecycle-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
  726. /package/dist/chunks/{location-lifecycle-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
  727. /package/dist/chunks/{location-lifecycle-2bv980vf.js → event-logger-2bv980vf.js} +0 -0
  728. /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
  729. /package/dist/chunks/{location-lifecycle-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
  730. /package/dist/chunks/{location-lifecycle-3asan66x.js → event-logger-3asan66x.js} +0 -0
  731. /package/dist/chunks/{location-lifecycle-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
  732. /package/dist/chunks/{location-lifecycle-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
  733. /package/dist/chunks/{location-lifecycle-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
  734. /package/dist/chunks/{location-lifecycle-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
  735. /package/dist/chunks/{location-lifecycle-4m86bj6y.js → event-logger-4m86bj6y.js} +0 -0
  736. /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
  737. /package/dist/chunks/{location-lifecycle-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
  738. /package/dist/chunks/{location-lifecycle-53557ph1.js → event-logger-53557ph1.js} +0 -0
  739. /package/dist/chunks/{location-lifecycle-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
  740. /package/dist/chunks/{location-lifecycle-5fjb7ams.js → event-logger-5fjb7ams.js} +0 -0
  741. /package/dist/chunks/{location-lifecycle-5w3e23ze.js → event-logger-5w3e23ze.js} +0 -0
  742. /package/dist/chunks/{location-lifecycle-6prwharc.js → event-logger-6prwharc.js} +0 -0
  743. /package/dist/chunks/{location-lifecycle-6q2bdcd1.js → event-logger-6q2bdcd1.js} +0 -0
  744. /package/dist/chunks/{location-lifecycle-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
  745. /package/dist/chunks/{location-lifecycle-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
  746. /package/dist/chunks/{location-lifecycle-822emrt2.js → event-logger-822emrt2.js} +0 -0
  747. /package/dist/chunks/{location-lifecycle-84wd9syh.js → event-logger-84wd9syh.js} +0 -0
  748. /package/dist/chunks/{location-lifecycle-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
  749. /package/dist/chunks/{location-lifecycle-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
  750. /package/dist/chunks/{location-lifecycle-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
  751. /package/dist/chunks/{location-lifecycle-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
  752. /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
  753. /package/dist/chunks/{location-lifecycle-a058387c.js → event-logger-a058387c.js} +0 -0
  754. /package/dist/chunks/{location-lifecycle-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
  755. /package/dist/chunks/{location-lifecycle-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
  756. /package/dist/chunks/{location-lifecycle-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
  757. /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
  758. /package/dist/chunks/{location-lifecycle-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
  759. /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
  760. /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
  761. /package/dist/chunks/{location-lifecycle-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
  762. /package/dist/chunks/{location-lifecycle-cqv5kn06.js → event-logger-cqv5kn06.js} +0 -0
  763. /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
  764. /package/dist/chunks/{location-lifecycle-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
  765. /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
  766. /package/dist/chunks/{location-lifecycle-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
  767. /package/dist/chunks/{location-lifecycle-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
  768. /package/dist/chunks/{location-lifecycle-df08tz66.js → event-logger-df08tz66.js} +0 -0
  769. /package/dist/chunks/{location-lifecycle-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
  770. /package/dist/chunks/{location-lifecycle-e3qxr5gk.js → event-logger-e3qxr5gk.js} +0 -0
  771. /package/dist/chunks/{location-lifecycle-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
  772. /package/dist/chunks/{location-lifecycle-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
  773. /package/dist/chunks/{location-lifecycle-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
  774. /package/dist/chunks/{location-lifecycle-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
  775. /package/dist/chunks/{location-lifecycle-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
  776. /package/dist/chunks/{location-lifecycle-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
  777. /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
  778. /package/dist/chunks/{location-lifecycle-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
  779. /package/dist/chunks/{location-lifecycle-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
  780. /package/dist/chunks/{location-lifecycle-fkpq3x5p.js → event-logger-fkpq3x5p.js} +0 -0
  781. /package/dist/chunks/{location-lifecycle-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
  782. /package/dist/chunks/{location-lifecycle-g86h250q.js → event-logger-g86h250q.js} +0 -0
  783. /package/dist/chunks/{location-lifecycle-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
  784. /package/dist/chunks/{location-lifecycle-gftt206x.js → event-logger-gftt206x.js} +0 -0
  785. /package/dist/chunks/{location-lifecycle-hcxmzztb.js → event-logger-hcxmzztb.js} +0 -0
  786. /package/dist/chunks/{location-lifecycle-hk9envan.js → event-logger-hk9envan.js} +0 -0
  787. /package/dist/chunks/{location-lifecycle-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
  788. /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
  789. /package/dist/chunks/{location-lifecycle-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
  790. /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
  791. /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
  792. /package/dist/chunks/{location-lifecycle-jwr30sdr.js → event-logger-jwr30sdr.js} +0 -0
  793. /package/dist/chunks/{location-lifecycle-jze0r7bz.js → event-logger-jze0r7bz.js} +0 -0
  794. /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
  795. /package/dist/chunks/{location-lifecycle-m18g726c.js → event-logger-m18g726c.js} +0 -0
  796. /package/dist/chunks/{location-lifecycle-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
  797. /package/dist/chunks/{location-lifecycle-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
  798. /package/dist/chunks/{location-lifecycle-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
  799. /package/dist/chunks/{location-lifecycle-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
  800. /package/dist/chunks/{location-lifecycle-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
  801. /package/dist/chunks/{location-lifecycle-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
  802. /package/dist/chunks/{location-lifecycle-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
  803. /package/dist/chunks/{location-lifecycle-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
  804. /package/dist/chunks/{location-lifecycle-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
  805. /package/dist/chunks/{location-lifecycle-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
  806. /package/dist/chunks/{location-lifecycle-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
  807. /package/dist/chunks/{location-lifecycle-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
  808. /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
  809. /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
  810. /package/dist/chunks/{location-lifecycle-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
  811. /package/dist/chunks/{location-lifecycle-ve7vex1e.js → event-logger-ve7vex1e.js} +0 -0
  812. /package/dist/chunks/{location-lifecycle-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
  813. /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
  814. /package/dist/chunks/{location-lifecycle-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
  815. /package/dist/chunks/{location-lifecycle-wjj7prxr.js → event-logger-wjj7prxr.js} +0 -0
  816. /package/dist/chunks/{location-lifecycle-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
  817. /package/dist/chunks/{location-lifecycle-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
  818. /package/dist/chunks/{location-lifecycle-x61499pn.js → event-logger-x61499pn.js} +0 -0
  819. /package/dist/chunks/{location-lifecycle-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
  820. /package/dist/chunks/{location-lifecycle-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
  821. /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
  822. /package/dist/chunks/{location-lifecycle-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
  823. /package/dist/chunks/{location-lifecycle-z5v4ffb3.js → event-logger-z5v4ffb3.js} +0 -0
  824. /package/dist/chunks/{location-lifecycle-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
@@ -1,10 +1,14 @@
1
1
  export * as SessionBlob from "./blob.js";
2
2
  import { Effect, Schema } from "effect";
3
+ import type { Attachment } from "@opencode/schema/prompt";
3
4
  import type { Database } from "../database/database.js";
4
5
  import type { SessionMessage } from "./message.js";
5
6
  import type { SessionSchema } from "./schema.js";
7
+ import { SessionInboxTable, SessionMessageTable } from "./sql.js";
6
8
  import { SessionStored } from "./stored.js";
7
9
  type DatabaseService = Database.Interface["db"];
10
+ type MessageRow = typeof SessionMessageTable.$inferSelect;
11
+ type InboxRow = typeof SessionInboxTable.$inferSelect;
8
12
  /** Restores inline media for the refs in `session_message` rows. Rows without refs are returned untouched. */
9
13
  export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
10
14
  $client: import("effect/sql/SqlClient").SqlClient;
@@ -883,6 +887,911 @@ export declare const hydrateInbox: (db: import("../database/drizzle.js").EffectS
883
887
  time_created: number;
884
888
  type: "compaction" | "move" | "synthetic" | "user";
885
889
  }[], never, never>;
890
+ /** What a client that fetches bytes itself learns about a blob. */
891
+ export interface Meta {
892
+ readonly bytes: number;
893
+ readonly width: number | null;
894
+ readonly height: number | null;
895
+ }
896
+ /**
897
+ * For clients that fetch media themselves: refs stay in `rows`, except those whose blob is gone or not referenced (the media route only serves referenced blobs), which become the
898
+ * same unavailable placeholder {@link hydrate} gives. Returns the size and dimensions of every blob still named.
899
+ */
900
+ export declare const keepRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
901
+ $client: import("effect/sql/SqlClient").SqlClient;
902
+ }, rows: readonly {
903
+ data: Omit<{
904
+ readonly id: string;
905
+ readonly metadata?: {
906
+ readonly [x: string]: unknown;
907
+ } | undefined;
908
+ readonly time: {
909
+ readonly created: number;
910
+ };
911
+ readonly type: "agent-switched";
912
+ readonly agent: string;
913
+ readonly previous?: string | undefined;
914
+ }, "id" | "type"> | Omit<{
915
+ readonly id: string;
916
+ readonly metadata?: {
917
+ readonly [x: string]: unknown;
918
+ } | undefined;
919
+ readonly time: {
920
+ readonly created: number;
921
+ };
922
+ readonly type: "model-switched";
923
+ readonly model: {
924
+ readonly id: string;
925
+ readonly providerID: string;
926
+ readonly variant?: string | undefined;
927
+ };
928
+ readonly previous?: {
929
+ readonly id: string;
930
+ readonly providerID: string;
931
+ readonly variant?: string | undefined;
932
+ } | undefined;
933
+ }, "id" | "type"> | Omit<{
934
+ readonly id: string;
935
+ readonly metadata?: {
936
+ readonly [x: string]: unknown;
937
+ } | undefined;
938
+ readonly time: {
939
+ readonly created: number;
940
+ };
941
+ readonly type: "location-switched";
942
+ readonly location: {
943
+ readonly directory: string;
944
+ readonly workspaceID?: string | undefined;
945
+ };
946
+ readonly projectID?: string | undefined;
947
+ readonly subpath?: string | undefined;
948
+ readonly previous?: {
949
+ readonly location: {
950
+ readonly directory: string;
951
+ readonly workspaceID?: string | undefined;
952
+ };
953
+ readonly projectID?: string | undefined;
954
+ readonly subpath?: string | undefined;
955
+ } | undefined;
956
+ }, "id" | "type"> | Omit<{
957
+ readonly id: string;
958
+ readonly metadata?: {
959
+ readonly [x: string]: unknown;
960
+ } | undefined;
961
+ readonly time: {
962
+ readonly created: number;
963
+ };
964
+ readonly text: string;
965
+ readonly description?: string | undefined;
966
+ readonly type: "synthetic";
967
+ }, "id" | "type"> | Omit<{
968
+ readonly id: string;
969
+ readonly metadata?: {
970
+ readonly [x: string]: unknown;
971
+ } | undefined;
972
+ readonly time: {
973
+ readonly created: number;
974
+ };
975
+ readonly type: "system";
976
+ readonly text: string;
977
+ readonly description?: string | undefined;
978
+ }, "id" | "type"> | Omit<{
979
+ readonly id: string;
980
+ readonly metadata?: {
981
+ readonly [x: string]: unknown;
982
+ } | undefined;
983
+ readonly time: {
984
+ readonly created: number;
985
+ };
986
+ readonly type: "skill";
987
+ readonly skill: string;
988
+ readonly name: string;
989
+ readonly text: string;
990
+ }, "id" | "type"> | Omit<{
991
+ readonly id: string;
992
+ readonly metadata?: {
993
+ readonly [x: string]: unknown;
994
+ } | undefined;
995
+ readonly type: "shell";
996
+ readonly shellID: string;
997
+ readonly command: string;
998
+ readonly status: "exited" | "killed" | "running" | "timeout";
999
+ readonly exit?: number | undefined;
1000
+ readonly output?: {
1001
+ readonly output: string;
1002
+ readonly cursor: number;
1003
+ readonly size: number;
1004
+ readonly truncated: boolean;
1005
+ } | undefined;
1006
+ readonly time: {
1007
+ readonly created: number;
1008
+ readonly completed?: number | undefined;
1009
+ };
1010
+ }, "id" | "type"> | Omit<{
1011
+ readonly id: string;
1012
+ readonly metadata?: {
1013
+ readonly [x: string]: unknown;
1014
+ } | undefined;
1015
+ readonly type: "assistant";
1016
+ readonly agent: string;
1017
+ readonly model: {
1018
+ readonly id: string;
1019
+ readonly providerID: string;
1020
+ readonly variant?: string | undefined;
1021
+ };
1022
+ readonly content: readonly ({
1023
+ readonly type: "tool";
1024
+ readonly id: string;
1025
+ readonly name: string;
1026
+ readonly executed?: boolean | undefined;
1027
+ readonly native?: {
1028
+ readonly [x: string]: unknown;
1029
+ } | undefined;
1030
+ readonly state: {
1031
+ readonly status: "streaming";
1032
+ readonly input: string;
1033
+ } | {
1034
+ readonly status: "running";
1035
+ readonly input: {
1036
+ readonly [x: string]: unknown;
1037
+ };
1038
+ readonly metadata: {
1039
+ readonly [x: string]: Schema.Json;
1040
+ };
1041
+ } | {
1042
+ readonly status: "completed";
1043
+ readonly input: {
1044
+ readonly [x: string]: unknown;
1045
+ };
1046
+ readonly content: readonly [{
1047
+ readonly type: "text";
1048
+ readonly text: string;
1049
+ } | {
1050
+ readonly type: "file";
1051
+ readonly uri: string;
1052
+ readonly mime: string;
1053
+ readonly name?: string | undefined;
1054
+ }, ...({
1055
+ readonly type: "text";
1056
+ readonly text: string;
1057
+ } | {
1058
+ readonly type: "file";
1059
+ readonly uri: string;
1060
+ readonly mime: string;
1061
+ readonly name?: string | undefined;
1062
+ })[]];
1063
+ readonly metadata?: {
1064
+ readonly [x: string]: Schema.Json;
1065
+ } | undefined;
1066
+ } | {
1067
+ readonly status: "error";
1068
+ readonly input: {
1069
+ readonly [x: string]: unknown;
1070
+ };
1071
+ readonly error: {
1072
+ readonly type: string;
1073
+ readonly message: string;
1074
+ readonly status?: number | undefined;
1075
+ readonly response?: {
1076
+ readonly body: string;
1077
+ } | undefined;
1078
+ readonly retryAfterMs?: number | undefined;
1079
+ };
1080
+ readonly content?: readonly [{
1081
+ readonly type: "text";
1082
+ readonly text: string;
1083
+ } | {
1084
+ readonly type: "file";
1085
+ readonly uri: string;
1086
+ readonly mime: string;
1087
+ readonly name?: string | undefined;
1088
+ }, ...({
1089
+ readonly type: "text";
1090
+ readonly text: string;
1091
+ } | {
1092
+ readonly type: "file";
1093
+ readonly uri: string;
1094
+ readonly mime: string;
1095
+ readonly name?: string | undefined;
1096
+ })[]] | undefined;
1097
+ readonly metadata?: {
1098
+ readonly [x: string]: Schema.Json;
1099
+ } | undefined;
1100
+ };
1101
+ readonly time: {
1102
+ readonly created: number;
1103
+ readonly ran?: number | undefined;
1104
+ readonly completed?: number | undefined;
1105
+ };
1106
+ } | {
1107
+ readonly type: "text";
1108
+ readonly text: string;
1109
+ readonly native?: {
1110
+ readonly [x: string]: unknown;
1111
+ } | undefined;
1112
+ } | {
1113
+ readonly type: "reasoning";
1114
+ readonly text: string;
1115
+ readonly native?: {
1116
+ readonly [x: string]: unknown;
1117
+ } | undefined;
1118
+ readonly time?: {
1119
+ readonly created: number;
1120
+ readonly completed?: number | undefined;
1121
+ } | undefined;
1122
+ })[];
1123
+ readonly snapshot?: {
1124
+ readonly start?: string | undefined;
1125
+ readonly end?: string | undefined;
1126
+ readonly files?: readonly string[] | undefined;
1127
+ } | undefined;
1128
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1129
+ readonly rawFinish?: string | undefined;
1130
+ readonly native?: {
1131
+ readonly [x: string]: unknown;
1132
+ } | undefined;
1133
+ readonly cost?: number | undefined;
1134
+ readonly tokens?: {
1135
+ readonly input: number;
1136
+ readonly output: number;
1137
+ readonly reasoning: number;
1138
+ readonly cache: {
1139
+ readonly read: number;
1140
+ readonly write: number;
1141
+ };
1142
+ } | undefined;
1143
+ readonly error?: {
1144
+ readonly type: string;
1145
+ readonly message: string;
1146
+ readonly status?: number | undefined;
1147
+ readonly response?: {
1148
+ readonly body: string;
1149
+ } | undefined;
1150
+ readonly retryAfterMs?: number | undefined;
1151
+ } | undefined;
1152
+ readonly retry?: {
1153
+ readonly attempt: number;
1154
+ readonly at: number;
1155
+ readonly error: {
1156
+ readonly type: string;
1157
+ readonly message: string;
1158
+ readonly status?: number | undefined;
1159
+ readonly response?: {
1160
+ readonly body: string;
1161
+ } | undefined;
1162
+ readonly retryAfterMs?: number | undefined;
1163
+ };
1164
+ } | undefined;
1165
+ readonly time: {
1166
+ readonly created: number;
1167
+ readonly streamed?: number | undefined;
1168
+ readonly completed?: number | undefined;
1169
+ };
1170
+ }, "id" | "type"> | Omit<{
1171
+ readonly id: string;
1172
+ readonly metadata?: {
1173
+ readonly [x: string]: unknown;
1174
+ } | undefined;
1175
+ readonly time: {
1176
+ readonly created: number;
1177
+ };
1178
+ readonly type: "compaction";
1179
+ readonly status: "running";
1180
+ readonly reason: "auto" | "manual";
1181
+ readonly summary: string;
1182
+ }, "id" | "type"> | Omit<{
1183
+ readonly id: string;
1184
+ readonly metadata?: {
1185
+ readonly [x: string]: unknown;
1186
+ } | undefined;
1187
+ readonly time: {
1188
+ readonly created: number;
1189
+ };
1190
+ readonly type: "compaction";
1191
+ readonly cost?: number | undefined;
1192
+ readonly tokens?: {
1193
+ readonly input: number;
1194
+ readonly output: number;
1195
+ readonly reasoning: number;
1196
+ readonly cache: {
1197
+ readonly read: number;
1198
+ readonly write: number;
1199
+ };
1200
+ } | undefined;
1201
+ readonly status: "completed";
1202
+ readonly reason: "auto" | "manual";
1203
+ readonly model?: {
1204
+ readonly id: string;
1205
+ readonly providerID: string;
1206
+ readonly variant?: string | undefined;
1207
+ } | undefined;
1208
+ readonly native?: {
1209
+ readonly [x: string]: unknown;
1210
+ } | undefined;
1211
+ readonly summary: string;
1212
+ }, "id" | "type"> | Omit<{
1213
+ readonly id: string;
1214
+ readonly metadata?: {
1215
+ readonly [x: string]: unknown;
1216
+ } | undefined;
1217
+ readonly time: {
1218
+ readonly created: number;
1219
+ };
1220
+ readonly type: "compaction";
1221
+ readonly cost?: number | undefined;
1222
+ readonly tokens?: {
1223
+ readonly input: number;
1224
+ readonly output: number;
1225
+ readonly reasoning: number;
1226
+ readonly cache: {
1227
+ readonly read: number;
1228
+ readonly write: number;
1229
+ };
1230
+ } | undefined;
1231
+ readonly status: "failed";
1232
+ readonly reason: "auto" | "manual";
1233
+ readonly error: {
1234
+ readonly type: string;
1235
+ readonly message: string;
1236
+ readonly status?: number | undefined;
1237
+ readonly response?: {
1238
+ readonly body: string;
1239
+ } | undefined;
1240
+ readonly retryAfterMs?: number | undefined;
1241
+ };
1242
+ }, "id" | "type"> | Omit<{
1243
+ readonly id: string;
1244
+ readonly metadata?: {
1245
+ readonly [x: string]: unknown;
1246
+ } | undefined;
1247
+ readonly time: {
1248
+ readonly created: number;
1249
+ };
1250
+ readonly type: "idle";
1251
+ readonly outcome: "failed" | "interrupted" | "succeeded";
1252
+ readonly error?: {
1253
+ readonly type: string;
1254
+ readonly message: string;
1255
+ readonly status?: number | undefined;
1256
+ readonly response?: {
1257
+ readonly body: string;
1258
+ } | undefined;
1259
+ readonly retryAfterMs?: number | undefined;
1260
+ } | undefined;
1261
+ }, "id" | "type"> | Omit<{
1262
+ readonly id: string;
1263
+ readonly metadata?: {
1264
+ readonly [x: string]: unknown;
1265
+ } | undefined;
1266
+ readonly time: {
1267
+ readonly created: number;
1268
+ };
1269
+ readonly text: string;
1270
+ readonly agents?: readonly {
1271
+ readonly name: string;
1272
+ readonly mention?: {
1273
+ readonly start: number;
1274
+ readonly end: number;
1275
+ readonly text: string;
1276
+ } | undefined;
1277
+ }[] | undefined;
1278
+ readonly skills?: readonly {
1279
+ readonly id: string;
1280
+ readonly name: string;
1281
+ readonly text?: string | undefined;
1282
+ readonly mention?: {
1283
+ readonly start: number;
1284
+ readonly end: number;
1285
+ readonly text: string;
1286
+ } | undefined;
1287
+ }[] | undefined;
1288
+ readonly type: "user";
1289
+ readonly files?: readonly ({
1290
+ readonly data: string;
1291
+ readonly mime: string;
1292
+ readonly source: {
1293
+ readonly type: "inline";
1294
+ } | {
1295
+ readonly type: "uri";
1296
+ readonly uri: string;
1297
+ };
1298
+ readonly name?: string | undefined;
1299
+ readonly description?: string | undefined;
1300
+ readonly mention?: {
1301
+ readonly start: number;
1302
+ readonly end: number;
1303
+ readonly text: string;
1304
+ } | undefined;
1305
+ } | {
1306
+ readonly mime: string;
1307
+ readonly source: {
1308
+ readonly type: "inline";
1309
+ } | {
1310
+ readonly type: "uri";
1311
+ readonly uri: string;
1312
+ };
1313
+ readonly name?: string | undefined;
1314
+ readonly description?: string | undefined;
1315
+ readonly mention?: {
1316
+ readonly start: number;
1317
+ readonly end: number;
1318
+ readonly text: string;
1319
+ } | undefined;
1320
+ readonly uri: string;
1321
+ })[] | undefined;
1322
+ }, "id" | "type">;
1323
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1324
+ seq: number;
1325
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
1326
+ time_created: number;
1327
+ time_updated: number;
1328
+ type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
1329
+ }[]) => Effect.Effect<{
1330
+ rows: {
1331
+ data: Omit<{
1332
+ readonly id: string;
1333
+ readonly metadata?: {
1334
+ readonly [x: string]: unknown;
1335
+ } | undefined;
1336
+ readonly time: {
1337
+ readonly created: number;
1338
+ };
1339
+ readonly type: "agent-switched";
1340
+ readonly agent: string;
1341
+ readonly previous?: string | undefined;
1342
+ }, "id" | "type"> | Omit<{
1343
+ readonly id: string;
1344
+ readonly metadata?: {
1345
+ readonly [x: string]: unknown;
1346
+ } | undefined;
1347
+ readonly time: {
1348
+ readonly created: number;
1349
+ };
1350
+ readonly type: "model-switched";
1351
+ readonly model: {
1352
+ readonly id: string;
1353
+ readonly providerID: string;
1354
+ readonly variant?: string | undefined;
1355
+ };
1356
+ readonly previous?: {
1357
+ readonly id: string;
1358
+ readonly providerID: string;
1359
+ readonly variant?: string | undefined;
1360
+ } | undefined;
1361
+ }, "id" | "type"> | Omit<{
1362
+ readonly id: string;
1363
+ readonly metadata?: {
1364
+ readonly [x: string]: unknown;
1365
+ } | undefined;
1366
+ readonly time: {
1367
+ readonly created: number;
1368
+ };
1369
+ readonly type: "location-switched";
1370
+ readonly location: {
1371
+ readonly directory: string;
1372
+ readonly workspaceID?: string | undefined;
1373
+ };
1374
+ readonly projectID?: string | undefined;
1375
+ readonly subpath?: string | undefined;
1376
+ readonly previous?: {
1377
+ readonly location: {
1378
+ readonly directory: string;
1379
+ readonly workspaceID?: string | undefined;
1380
+ };
1381
+ readonly projectID?: string | undefined;
1382
+ readonly subpath?: string | undefined;
1383
+ } | undefined;
1384
+ }, "id" | "type"> | Omit<{
1385
+ readonly id: string;
1386
+ readonly metadata?: {
1387
+ readonly [x: string]: unknown;
1388
+ } | undefined;
1389
+ readonly time: {
1390
+ readonly created: number;
1391
+ };
1392
+ readonly text: string;
1393
+ readonly description?: string | undefined;
1394
+ readonly type: "synthetic";
1395
+ }, "id" | "type"> | Omit<{
1396
+ readonly id: string;
1397
+ readonly metadata?: {
1398
+ readonly [x: string]: unknown;
1399
+ } | undefined;
1400
+ readonly time: {
1401
+ readonly created: number;
1402
+ };
1403
+ readonly type: "system";
1404
+ readonly text: string;
1405
+ readonly description?: string | undefined;
1406
+ }, "id" | "type"> | Omit<{
1407
+ readonly id: string;
1408
+ readonly metadata?: {
1409
+ readonly [x: string]: unknown;
1410
+ } | undefined;
1411
+ readonly time: {
1412
+ readonly created: number;
1413
+ };
1414
+ readonly type: "skill";
1415
+ readonly skill: string;
1416
+ readonly name: string;
1417
+ readonly text: string;
1418
+ }, "id" | "type"> | Omit<{
1419
+ readonly id: string;
1420
+ readonly metadata?: {
1421
+ readonly [x: string]: unknown;
1422
+ } | undefined;
1423
+ readonly type: "shell";
1424
+ readonly shellID: string;
1425
+ readonly command: string;
1426
+ readonly status: "exited" | "killed" | "running" | "timeout";
1427
+ readonly exit?: number | undefined;
1428
+ readonly output?: {
1429
+ readonly output: string;
1430
+ readonly cursor: number;
1431
+ readonly size: number;
1432
+ readonly truncated: boolean;
1433
+ } | undefined;
1434
+ readonly time: {
1435
+ readonly created: number;
1436
+ readonly completed?: number | undefined;
1437
+ };
1438
+ }, "id" | "type"> | Omit<{
1439
+ readonly id: string;
1440
+ readonly metadata?: {
1441
+ readonly [x: string]: unknown;
1442
+ } | undefined;
1443
+ readonly type: "assistant";
1444
+ readonly agent: string;
1445
+ readonly model: {
1446
+ readonly id: string;
1447
+ readonly providerID: string;
1448
+ readonly variant?: string | undefined;
1449
+ };
1450
+ readonly content: readonly ({
1451
+ readonly type: "tool";
1452
+ readonly id: string;
1453
+ readonly name: string;
1454
+ readonly executed?: boolean | undefined;
1455
+ readonly native?: {
1456
+ readonly [x: string]: unknown;
1457
+ } | undefined;
1458
+ readonly state: {
1459
+ readonly status: "streaming";
1460
+ readonly input: string;
1461
+ } | {
1462
+ readonly status: "running";
1463
+ readonly input: {
1464
+ readonly [x: string]: unknown;
1465
+ };
1466
+ readonly metadata: {
1467
+ readonly [x: string]: Schema.Json;
1468
+ };
1469
+ } | {
1470
+ readonly status: "completed";
1471
+ readonly input: {
1472
+ readonly [x: string]: unknown;
1473
+ };
1474
+ readonly content: readonly [{
1475
+ readonly type: "text";
1476
+ readonly text: string;
1477
+ } | {
1478
+ readonly type: "file";
1479
+ readonly uri: string;
1480
+ readonly mime: string;
1481
+ readonly name?: string | undefined;
1482
+ }, ...({
1483
+ readonly type: "text";
1484
+ readonly text: string;
1485
+ } | {
1486
+ readonly type: "file";
1487
+ readonly uri: string;
1488
+ readonly mime: string;
1489
+ readonly name?: string | undefined;
1490
+ })[]];
1491
+ readonly metadata?: {
1492
+ readonly [x: string]: Schema.Json;
1493
+ } | undefined;
1494
+ } | {
1495
+ readonly status: "error";
1496
+ readonly input: {
1497
+ readonly [x: string]: unknown;
1498
+ };
1499
+ readonly error: {
1500
+ readonly type: string;
1501
+ readonly message: string;
1502
+ readonly status?: number | undefined;
1503
+ readonly response?: {
1504
+ readonly body: string;
1505
+ } | undefined;
1506
+ readonly retryAfterMs?: number | undefined;
1507
+ };
1508
+ readonly content?: readonly [{
1509
+ readonly type: "text";
1510
+ readonly text: string;
1511
+ } | {
1512
+ readonly type: "file";
1513
+ readonly uri: string;
1514
+ readonly mime: string;
1515
+ readonly name?: string | undefined;
1516
+ }, ...({
1517
+ readonly type: "text";
1518
+ readonly text: string;
1519
+ } | {
1520
+ readonly type: "file";
1521
+ readonly uri: string;
1522
+ readonly mime: string;
1523
+ readonly name?: string | undefined;
1524
+ })[]] | undefined;
1525
+ readonly metadata?: {
1526
+ readonly [x: string]: Schema.Json;
1527
+ } | undefined;
1528
+ };
1529
+ readonly time: {
1530
+ readonly created: number;
1531
+ readonly ran?: number | undefined;
1532
+ readonly completed?: number | undefined;
1533
+ };
1534
+ } | {
1535
+ readonly type: "text";
1536
+ readonly text: string;
1537
+ readonly native?: {
1538
+ readonly [x: string]: unknown;
1539
+ } | undefined;
1540
+ } | {
1541
+ readonly type: "reasoning";
1542
+ readonly text: string;
1543
+ readonly native?: {
1544
+ readonly [x: string]: unknown;
1545
+ } | undefined;
1546
+ readonly time?: {
1547
+ readonly created: number;
1548
+ readonly completed?: number | undefined;
1549
+ } | undefined;
1550
+ })[];
1551
+ readonly snapshot?: {
1552
+ readonly start?: string | undefined;
1553
+ readonly end?: string | undefined;
1554
+ readonly files?: readonly string[] | undefined;
1555
+ } | undefined;
1556
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1557
+ readonly rawFinish?: string | undefined;
1558
+ readonly native?: {
1559
+ readonly [x: string]: unknown;
1560
+ } | undefined;
1561
+ readonly cost?: number | undefined;
1562
+ readonly tokens?: {
1563
+ readonly input: number;
1564
+ readonly output: number;
1565
+ readonly reasoning: number;
1566
+ readonly cache: {
1567
+ readonly read: number;
1568
+ readonly write: number;
1569
+ };
1570
+ } | undefined;
1571
+ readonly error?: {
1572
+ readonly type: string;
1573
+ readonly message: string;
1574
+ readonly status?: number | undefined;
1575
+ readonly response?: {
1576
+ readonly body: string;
1577
+ } | undefined;
1578
+ readonly retryAfterMs?: number | undefined;
1579
+ } | undefined;
1580
+ readonly retry?: {
1581
+ readonly attempt: number;
1582
+ readonly at: number;
1583
+ readonly error: {
1584
+ readonly type: string;
1585
+ readonly message: string;
1586
+ readonly status?: number | undefined;
1587
+ readonly response?: {
1588
+ readonly body: string;
1589
+ } | undefined;
1590
+ readonly retryAfterMs?: number | undefined;
1591
+ };
1592
+ } | undefined;
1593
+ readonly time: {
1594
+ readonly created: number;
1595
+ readonly streamed?: number | undefined;
1596
+ readonly completed?: number | undefined;
1597
+ };
1598
+ }, "id" | "type"> | Omit<{
1599
+ readonly id: string;
1600
+ readonly metadata?: {
1601
+ readonly [x: string]: unknown;
1602
+ } | undefined;
1603
+ readonly time: {
1604
+ readonly created: number;
1605
+ };
1606
+ readonly type: "compaction";
1607
+ readonly status: "running";
1608
+ readonly reason: "auto" | "manual";
1609
+ readonly summary: string;
1610
+ }, "id" | "type"> | Omit<{
1611
+ readonly id: string;
1612
+ readonly metadata?: {
1613
+ readonly [x: string]: unknown;
1614
+ } | undefined;
1615
+ readonly time: {
1616
+ readonly created: number;
1617
+ };
1618
+ readonly type: "compaction";
1619
+ readonly cost?: number | undefined;
1620
+ readonly tokens?: {
1621
+ readonly input: number;
1622
+ readonly output: number;
1623
+ readonly reasoning: number;
1624
+ readonly cache: {
1625
+ readonly read: number;
1626
+ readonly write: number;
1627
+ };
1628
+ } | undefined;
1629
+ readonly status: "completed";
1630
+ readonly reason: "auto" | "manual";
1631
+ readonly model?: {
1632
+ readonly id: string;
1633
+ readonly providerID: string;
1634
+ readonly variant?: string | undefined;
1635
+ } | undefined;
1636
+ readonly native?: {
1637
+ readonly [x: string]: unknown;
1638
+ } | undefined;
1639
+ readonly summary: string;
1640
+ }, "id" | "type"> | Omit<{
1641
+ readonly id: string;
1642
+ readonly metadata?: {
1643
+ readonly [x: string]: unknown;
1644
+ } | undefined;
1645
+ readonly time: {
1646
+ readonly created: number;
1647
+ };
1648
+ readonly type: "compaction";
1649
+ readonly cost?: number | undefined;
1650
+ readonly tokens?: {
1651
+ readonly input: number;
1652
+ readonly output: number;
1653
+ readonly reasoning: number;
1654
+ readonly cache: {
1655
+ readonly read: number;
1656
+ readonly write: number;
1657
+ };
1658
+ } | undefined;
1659
+ readonly status: "failed";
1660
+ readonly reason: "auto" | "manual";
1661
+ readonly error: {
1662
+ readonly type: string;
1663
+ readonly message: string;
1664
+ readonly status?: number | undefined;
1665
+ readonly response?: {
1666
+ readonly body: string;
1667
+ } | undefined;
1668
+ readonly retryAfterMs?: number | undefined;
1669
+ };
1670
+ }, "id" | "type"> | Omit<{
1671
+ readonly id: string;
1672
+ readonly metadata?: {
1673
+ readonly [x: string]: unknown;
1674
+ } | undefined;
1675
+ readonly time: {
1676
+ readonly created: number;
1677
+ };
1678
+ readonly type: "idle";
1679
+ readonly outcome: "failed" | "interrupted" | "succeeded";
1680
+ readonly error?: {
1681
+ readonly type: string;
1682
+ readonly message: string;
1683
+ readonly status?: number | undefined;
1684
+ readonly response?: {
1685
+ readonly body: string;
1686
+ } | undefined;
1687
+ readonly retryAfterMs?: number | undefined;
1688
+ } | undefined;
1689
+ }, "id" | "type"> | Omit<{
1690
+ readonly id: string;
1691
+ readonly metadata?: {
1692
+ readonly [x: string]: unknown;
1693
+ } | undefined;
1694
+ readonly time: {
1695
+ readonly created: number;
1696
+ };
1697
+ readonly text: string;
1698
+ readonly agents?: readonly {
1699
+ readonly name: string;
1700
+ readonly mention?: {
1701
+ readonly start: number;
1702
+ readonly end: number;
1703
+ readonly text: string;
1704
+ } | undefined;
1705
+ }[] | undefined;
1706
+ readonly skills?: readonly {
1707
+ readonly id: string;
1708
+ readonly name: string;
1709
+ readonly text?: string | undefined;
1710
+ readonly mention?: {
1711
+ readonly start: number;
1712
+ readonly end: number;
1713
+ readonly text: string;
1714
+ } | undefined;
1715
+ }[] | undefined;
1716
+ readonly type: "user";
1717
+ readonly files?: readonly ({
1718
+ readonly data: string;
1719
+ readonly mime: string;
1720
+ readonly source: {
1721
+ readonly type: "inline";
1722
+ } | {
1723
+ readonly type: "uri";
1724
+ readonly uri: string;
1725
+ };
1726
+ readonly name?: string | undefined;
1727
+ readonly description?: string | undefined;
1728
+ readonly mention?: {
1729
+ readonly start: number;
1730
+ readonly end: number;
1731
+ readonly text: string;
1732
+ } | undefined;
1733
+ } | {
1734
+ readonly mime: string;
1735
+ readonly source: {
1736
+ readonly type: "inline";
1737
+ } | {
1738
+ readonly type: "uri";
1739
+ readonly uri: string;
1740
+ };
1741
+ readonly name?: string | undefined;
1742
+ readonly description?: string | undefined;
1743
+ readonly mention?: {
1744
+ readonly start: number;
1745
+ readonly end: number;
1746
+ readonly text: string;
1747
+ } | undefined;
1748
+ readonly uri: string;
1749
+ })[] | undefined;
1750
+ }, "id" | "type">;
1751
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1752
+ seq: number;
1753
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
1754
+ time_created: number;
1755
+ time_updated: number;
1756
+ type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
1757
+ }[];
1758
+ meta: Map<string, Meta>;
1759
+ }, never, never>;
1760
+ /** {@link keepRefs} for inbox rows. */
1761
+ export declare const keepInboxRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1762
+ $client: import("effect/sql/SqlClient").SqlClient;
1763
+ }, rows: readonly {
1764
+ delivery: "queue" | "steer";
1765
+ enqueued_seq: number;
1766
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1767
+ payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
1768
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
1769
+ time_created: number;
1770
+ type: "compaction" | "move" | "synthetic" | "user";
1771
+ }[]) => Effect.Effect<{
1772
+ rows: {
1773
+ delivery: "queue" | "steer";
1774
+ enqueued_seq: number;
1775
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1776
+ payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
1777
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
1778
+ time_created: number;
1779
+ type: "compaction" | "move" | "synthetic" | "user";
1780
+ }[];
1781
+ meta: Map<string, Meta>;
1782
+ }, never, never>;
1783
+ /** Adds each kept ref's blob size and dimensions to files decoded from {@link keepRefs} or {@link keepInboxRefs}. */
1784
+ export declare function describe(files: ReadonlyArray<Attachment>, meta: ReadonlyMap<string, Meta>): Attachment[];
1785
+ /**
1786
+ * One blob's type and bytes, for the experimental media route and `media:` prompt attachments. Only a blob some
1787
+ * message or inbox item still references is readable; an unreferenced one awaiting its sweep reads as missing.
1788
+ */
1789
+ export declare const read: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1790
+ $client: import("effect/sql/SqlClient").SqlClient;
1791
+ }, hash: string) => Effect.Effect<{
1792
+ mime: string;
1793
+ data: Buffer<ArrayBufferLike>;
1794
+ } | undefined, never, never>;
886
1795
  /** A blob's hash is the lowercase hex SHA-256 of its raw bytes. */
887
1796
  export declare const hashBytes: (raw: Uint8Array) => string;
888
1797
  /** The row a ref keeps its blob alive for: a message at its `seq`, or a pending inbox row at its `enqueued_seq`. */
@@ -891,6 +1800,8 @@ export interface Owner {
891
1800
  readonly messageID: SessionMessage.ID;
892
1801
  readonly seq: number;
893
1802
  }
1803
+ /** Reads `experimental.media_blob` from the Config in scope on every call; without one, it is off. */
1804
+ export declare const enabled: Effect.Effect<boolean, never, never>;
894
1805
  /** {@link externalize} for a user message or pending inbox user payload. */
895
1806
  export declare const externalizePayload: <T extends {
896
1807
  readonly files?: ReadonlyArray<SessionStored.File>;
@@ -904,6 +1815,24 @@ export declare const externalizePayload: <T extends {
904
1815
  export declare const externalize: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
905
1816
  $client: import("effect/sql/SqlClient").SqlClient;
906
1817
  }, 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>;
1818
+ /**
1819
+ * Moves a stored row's inline media into blobs whatever the flag says, for offline backfills. Returns the row to
1820
+ * store (the same object when nothing moved), the blobs to insert, and every hash the row then names.
1821
+ */
1822
+ export declare function split(data: MessageRow["data"] | InboxRow["payload"]): {
1823
+ data: import("@opencode/schema/session-inbox").CompactionPayload;
1824
+ 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
+ }[];
1834
+ hashes: Set<string>;
1835
+ };
907
1836
  /** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
908
1837
  export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
909
1838
  $client: import("effect/sql/SqlClient").SqlClient;