@opencode/core 0.0.0-dev-21105 → 0.0.0-dev-21107

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 (898) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +5 -5
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{form-enfjksvz.js → tool-output-01h3a36h.js} +34 -34
  8. package/dist/chunks/{form-ksghmgr8.js → tool-output-03368f8h.js} +30 -30
  9. package/dist/chunks/{form-0b5g1ynf.js → tool-output-0b5g1ynf.js} +4 -4
  10. package/dist/chunks/{form-jrdn16tm.js → tool-output-0gkagqrr.js} +11 -11
  11. package/dist/chunks/{form-wk5z6jzv.js → tool-output-0jq9fyba.js} +9 -9
  12. package/dist/chunks/{form-arm62a2s.js → tool-output-0m8fs28f.js} +2 -2
  13. package/dist/chunks/{form-0cnk6m96.js → tool-output-0nwc5kee.js} +21 -21
  14. package/dist/chunks/{form-fww2ha2b.js → tool-output-0p78r4x4.js} +10 -10
  15. package/dist/chunks/{form-8d85tyyw.js → tool-output-0r6s63y7.js} +1 -1
  16. package/dist/chunks/{form-0vbcp93d.js → tool-output-0vbcp93d.js} +2 -2
  17. package/dist/chunks/{form-etdkazj2.js → tool-output-0x5yx3bz.js} +9 -9
  18. package/dist/chunks/{form-6yvzt56s.js → tool-output-11zcqr0c.js} +21 -21
  19. package/dist/chunks/{form-901f95hp.js → tool-output-15zejkyp.js} +19 -19
  20. package/dist/chunks/{form-d49tyx67.js → tool-output-1ncy2y84.js} +7 -7
  21. package/dist/chunks/{form-79f3pcaf.js → tool-output-1zmkb8s9.js} +4 -4
  22. package/dist/chunks/{form-jcabavvb.js → tool-output-28fn03bn.js} +15 -15
  23. package/dist/chunks/{form-k4kf9yqz.js → tool-output-2aqr53fq.js} +8 -8
  24. package/dist/chunks/{form-8nhzyrxz.js → tool-output-2c0ahkfh.js} +25 -25
  25. package/dist/chunks/{form-a89e0tac.js → tool-output-2k71kv7p.js} +4 -4
  26. package/dist/chunks/{form-qgn6gcr1.js → tool-output-2k8khapm.js} +5 -5
  27. package/dist/chunks/{form-prs36zqv.js → tool-output-2vk74zb2.js} +15 -15
  28. package/dist/chunks/{form-2w2jw15j.js → tool-output-2z0vpwpb.js} +21 -21
  29. package/dist/chunks/{form-h7s7r6s9.js → tool-output-31xfzrxg.js} +5 -5
  30. package/dist/chunks/{form-a7ksjw1b.js → tool-output-3bazwrz0.js} +10 -10
  31. package/dist/chunks/{form-3fc6dm20.js → tool-output-3fc6dm20.js} +1 -1
  32. package/dist/chunks/{form-pnzf6mjf.js → tool-output-3g8j9he4.js} +1 -1
  33. package/dist/chunks/{form-e04zm3w2.js → tool-output-3gfqta41.js} +15 -15
  34. package/dist/chunks/{form-3hepkmqq.js → tool-output-3hepkmqq.js} +1 -1
  35. package/dist/chunks/{form-3hwn7j4h.js → tool-output-3hwn7j4h.js} +2 -2
  36. package/dist/chunks/{form-jej310j1.js → tool-output-3jd31z68.js} +19 -19
  37. package/dist/chunks/{form-jmktzpps.js → tool-output-3rgzm53c.js} +18 -18
  38. package/dist/chunks/{form-3smtnn6g.js → tool-output-3smtnn6g.js} +1 -1
  39. package/dist/chunks/{form-3tvqynh2.js → tool-output-3tvqynh2.js} +1 -1
  40. package/dist/chunks/{form-x661k3y3.js → tool-output-3y377wv9.js} +4 -4
  41. package/dist/chunks/{form-3zsf4n22.js → tool-output-3zsf4n22.js} +1 -1
  42. package/dist/chunks/{form-0vawvjhj.js → tool-output-40jpxat6.js} +6 -6
  43. package/dist/chunks/{form-v0es1rhs.js → tool-output-4434d9q2.js} +9 -9
  44. package/dist/chunks/{form-dsy27fts.js → tool-output-4cczkxn0.js} +3 -3
  45. package/dist/chunks/{form-t5xyb1ja.js → tool-output-4ek1fza7.js} +20 -20
  46. package/dist/chunks/{form-tjtx32p0.js → tool-output-4fey8vza.js} +46 -46
  47. package/dist/chunks/{form-g3tb3bkv.js → tool-output-4py6xhxg.js} +10 -10
  48. package/dist/chunks/{form-2hr5nhwa.js → tool-output-52fpbh6z.js} +8 -8
  49. package/dist/chunks/{form-1sgdx4a3.js → tool-output-533mvt3d.js} +24 -24
  50. package/dist/chunks/{form-xrm6a1t7.js → tool-output-5342vq26.js} +14 -14
  51. package/dist/chunks/{form-54ma36ye.js → tool-output-54ma36ye.js} +1 -1
  52. package/dist/chunks/{form-4ekscj25.js → tool-output-58hng72m.js} +5 -5
  53. package/dist/chunks/{form-5m9w47nd.js → tool-output-5m9w47nd.js} +1 -1
  54. package/dist/chunks/{form-1mw1ka0c.js → tool-output-5n8bzj3g.js} +38 -38
  55. package/dist/chunks/{form-c5j6ww4m.js → tool-output-5qy53gv6.js} +11 -11
  56. package/dist/chunks/{form-h6tscvwz.js → tool-output-5t9vx4rq.js} +11 -11
  57. package/dist/chunks/{form-t1cks73m.js → tool-output-62esjtgn.js} +9 -9
  58. package/dist/chunks/{form-tdch55bj.js → tool-output-65cxbzac.js} +9 -9
  59. package/dist/chunks/{form-7v6bcey3.js → tool-output-6azzqc0z.js} +8 -8
  60. package/dist/chunks/{form-srbwjet0.js → tool-output-6djpdt2h.js} +15 -15
  61. package/dist/chunks/{form-tsbpfnxq.js → tool-output-6g5esjj0.js} +23 -23
  62. package/dist/chunks/{form-gh864679.js → tool-output-6m2fchhq.js} +8 -8
  63. package/dist/chunks/{form-95s8xwj6.js → tool-output-6p9zhm8s.js} +5 -5
  64. package/dist/chunks/{form-6xb47vfp.js → tool-output-6xb47vfp.js} +1 -1
  65. package/dist/chunks/{form-w5h454c3.js → tool-output-7612f9d9.js} +22 -19
  66. package/dist/chunks/{form-775gj3j1.js → tool-output-775gj3j1.js} +2 -2
  67. package/dist/chunks/{form-y82mnqt8.js → tool-output-7b1rpwgp.js} +3 -3
  68. package/dist/chunks/{form-7bmhse3q.js → tool-output-7bmhse3q.js} +1 -1
  69. package/dist/chunks/tool-output-7esqvdrt.js +26 -0
  70. package/dist/chunks/{form-gn31e51v.js → tool-output-7gfgfe5t.js} +11 -11
  71. package/dist/chunks/{form-nkr0z86r.js → tool-output-7gpjaa72.js} +30 -30
  72. package/dist/chunks/{form-ae1d2cnk.js → tool-output-7hjg3qr5.js} +50 -50
  73. package/dist/chunks/{form-1q3h93r0.js → tool-output-7kx77xh0.js} +10 -10
  74. package/dist/chunks/{form-gkkd4eh1.js → tool-output-7skpr4yr.js} +21 -21
  75. package/dist/chunks/{form-84txncab.js → tool-output-84txncab.js} +1 -1
  76. package/dist/chunks/{form-4g66ymys.js → tool-output-87k58gkv.js} +4 -4
  77. package/dist/chunks/{form-2gytb7wg.js → tool-output-896w72mm.js} +14 -14
  78. package/dist/chunks/{form-1gfgk62c.js → tool-output-8ank75fn.js} +8 -8
  79. package/dist/chunks/{form-8gngkb78.js → tool-output-8fkk14fj.js} +11 -11
  80. package/dist/chunks/{form-t4c2ejeg.js → tool-output-8fq9cdtt.js} +9 -9
  81. package/dist/chunks/{form-ejeb2f46.js → tool-output-8j77w7ez.js} +11 -11
  82. package/dist/chunks/{form-8m6m0r52.js → tool-output-8m6m0r52.js} +1 -1
  83. package/dist/chunks/{form-qenf3jww.js → tool-output-8n6avrs4.js} +13 -13
  84. package/dist/chunks/{form-6rm5yzkt.js → tool-output-8wbxkt1z.js} +4 -4
  85. package/dist/chunks/{form-7bdytd2w.js → tool-output-9044jed8.js} +10 -10
  86. package/dist/chunks/{form-91qna3x0.js → tool-output-91qna3x0.js} +3 -3
  87. package/dist/chunks/{form-8w33d7yj.js → tool-output-9296v61x.js} +9 -9
  88. package/dist/chunks/{form-hg42hcse.js → tool-output-9bmm07as.js} +13 -13
  89. package/dist/chunks/{form-w2qf73x2.js → tool-output-9dv1jfw1.js} +20 -17
  90. package/dist/chunks/{form-d4cbjqqc.js → tool-output-9my2x6wz.js} +10 -10
  91. package/dist/chunks/{form-4qa0gxex.js → tool-output-9qh33kv4.js} +8 -8
  92. package/dist/chunks/{form-npc7606s.js → tool-output-9t2yzk0x.js} +8 -8
  93. package/dist/chunks/{form-apds20hx.js → tool-output-9xm2b2ta.js} +5 -5
  94. package/dist/chunks/{form-76njjj1w.js → tool-output-a26ckshg.js} +41 -41
  95. package/dist/chunks/{form-mcpys3nw.js → tool-output-a2kqt7yy.js} +13 -13
  96. package/dist/chunks/{form-kkmzdvsx.js → tool-output-a5ekmvfj.js} +24 -24
  97. package/dist/chunks/{form-1g9yzgxb.js → tool-output-a80hgxqz.js} +21 -21
  98. package/dist/chunks/{form-cdv1e2mm.js → tool-output-ah84bfqd.js} +29 -29
  99. package/dist/chunks/{form-cwcv4v74.js → tool-output-ahf6grxb.js} +19 -19
  100. package/dist/chunks/{form-yx0rmv9r.js → tool-output-ak9msbxp.js} +4 -4
  101. package/dist/chunks/{form-e0g3rkc8.js → tool-output-akfer8xa.js} +1 -1
  102. package/dist/chunks/{form-a6et1nw0.js → tool-output-amce43sf.js} +19 -19
  103. package/dist/chunks/{form-g3ew9s85.js → tool-output-amzat5vn.js} +18 -18
  104. package/dist/chunks/{form-f4a633pw.js → tool-output-b19hasgs.js} +5 -5
  105. package/dist/chunks/{form-qa91yeft.js → tool-output-b5ns35kd.js} +16 -16
  106. package/dist/chunks/{form-g686f6pq.js → tool-output-bacj9t34.js} +9 -9
  107. package/dist/chunks/{form-j4fmqw4y.js → tool-output-benaxzdw.js} +2 -2
  108. package/dist/chunks/{form-0thqkfh6.js → tool-output-bfarv9hj.js} +52 -52
  109. package/dist/chunks/{form-1bmjn0qh.js → tool-output-bfegkxfd.js} +8 -8
  110. package/dist/chunks/{form-wz5ft07p.js → tool-output-bg0ab6ke.js} +4 -4
  111. package/dist/chunks/{form-jgmgg0kd.js → tool-output-bhg3hqkd.js} +26 -26
  112. package/dist/chunks/{form-1ffvrpkg.js → tool-output-bjx1sjef.js} +6 -6
  113. package/dist/chunks/{form-mv3hx7wz.js → tool-output-bmr56wjg.js} +4 -4
  114. package/dist/chunks/{form-gj71zhbs.js → tool-output-bx0gyb4h.js} +5 -5
  115. package/dist/chunks/{form-ya7tddt7.js → tool-output-bxhwdmpf.js} +20 -20
  116. package/dist/chunks/{form-c1fqxshp.js → tool-output-c1fqxshp.js} +3 -3
  117. package/dist/chunks/{form-j4kckz96.js → tool-output-c4jhdyz3.js} +34 -34
  118. package/dist/chunks/{form-wasck064.js → tool-output-cc1d1de7.js} +10 -10
  119. package/dist/chunks/{form-n57xz5tc.js → tool-output-cg27wf5h.js} +318 -318
  120. package/dist/chunks/{form-da9q9y1p.js → tool-output-cmcw90at.js} +39 -39
  121. package/dist/chunks/{form-17xwg79a.js → tool-output-cnvq06kx.js} +4 -4
  122. package/dist/chunks/{form-z501vt5b.js → tool-output-dg8dvwgd.js} +12 -12
  123. package/dist/chunks/{form-x18hf8e6.js → tool-output-dmkhjyd8.js} +7 -7
  124. package/dist/chunks/{form-dqxsqydv.js → tool-output-dqxsqydv.js} +1 -1
  125. package/dist/chunks/{form-re7rb3aw.js → tool-output-dzn6zjdt.js} +32 -32
  126. package/dist/chunks/{form-8akyp47s.js → tool-output-dzwfbtgn.js} +22 -22
  127. package/dist/chunks/{form-wtywgeq9.js → tool-output-e09bbf7h.js} +25 -25
  128. package/dist/chunks/{form-rvh56s2y.js → tool-output-e1armjht.js} +28 -28
  129. package/dist/chunks/{form-e80seqcp.js → tool-output-e80seqcp.js} +1 -1
  130. package/dist/chunks/{form-mhpqhn3p.js → tool-output-e8fsf4jj.js} +27 -27
  131. package/dist/chunks/{form-98n93haa.js → tool-output-e8qq2qb7.js} +4 -4
  132. package/dist/chunks/{form-4kv7khez.js → tool-output-e8re3nba.js} +14 -14
  133. package/dist/chunks/{form-43bw2k76.js → tool-output-ec3zzpe3.js} +30 -30
  134. package/dist/chunks/{form-epy0rrb9.js → tool-output-ed65qe44.js} +13 -13
  135. package/dist/chunks/{form-eej6y6fw.js → tool-output-eej6y6fw.js} +2 -2
  136. package/dist/chunks/{form-ef5x83kb.js → tool-output-ef5x83kb.js} +1 -1
  137. package/dist/chunks/{form-xbeqzkq0.js → tool-output-f0mzc1a5.js} +31 -31
  138. package/dist/chunks/{form-erd65f1s.js → tool-output-f6nm7q73.js} +27 -27
  139. package/dist/chunks/{form-8c12240n.js → tool-output-fbr2cbta.js} +31 -31
  140. package/dist/chunks/tool-output-fcy631f0.js +62 -0
  141. package/dist/chunks/tool-output-fn9t717r.js +59 -0
  142. package/dist/chunks/{form-djszqvmq.js → tool-output-ft3hqk2c.js} +9 -9
  143. package/dist/chunks/{form-ghp9faw8.js → tool-output-fteeg136.js} +11 -11
  144. package/dist/chunks/{form-tpw6cwsb.js → tool-output-g0445xdp.js} +8 -8
  145. package/dist/chunks/{form-srshcccg.js → tool-output-g3z8fmgm.js} +2 -2
  146. package/dist/chunks/{form-gd4qta3r.js → tool-output-gd4qta3r.js} +1 -1
  147. package/dist/chunks/{form-12a633mt.js → tool-output-gmm8fkqt.js} +3 -3
  148. package/dist/chunks/tool-output-grnq534p.js +257 -0
  149. package/dist/chunks/{form-na2mqbmn.js → tool-output-gtyp3v7n.js} +33 -33
  150. package/dist/chunks/{form-1gyqrq6p.js → tool-output-gx2rmat0.js} +16 -16
  151. package/dist/chunks/{form-sqmzwr9m.js → tool-output-h04zhhvt.js} +9 -9
  152. package/dist/chunks/{form-nvmcdg7v.js → tool-output-h43vj0zt.js} +16 -16
  153. package/dist/chunks/{form-h6vf3j39.js → tool-output-h6vf3j39.js} +1 -1
  154. package/dist/chunks/{form-vdwbg7py.js → tool-output-hc42tqs2.js} +6 -6
  155. package/dist/chunks/{form-ak3qsp58.js → tool-output-hcfbb8m3.js} +4 -4
  156. package/dist/chunks/{form-hgz4x7wa.js → tool-output-hgz4x7wa.js} +1 -1
  157. package/dist/chunks/{form-hq3c8me3.js → tool-output-hq3c8me3.js} +1 -1
  158. package/dist/chunks/{form-c2sed5cq.js → tool-output-hzrfc1p4.js} +2 -2
  159. package/dist/chunks/{form-z0tkdgf1.js → tool-output-j0hekj3x.js} +18 -18
  160. package/dist/chunks/{form-g5j39fp8.js → tool-output-j55j0vay.js} +7 -7
  161. package/dist/chunks/{form-hgwjhw5g.js → tool-output-jb1yd8b6.js} +10 -10
  162. package/dist/chunks/{form-1ae71dfs.js → tool-output-jb9mn43j.js} +15 -15
  163. package/dist/chunks/{form-0tww4wex.js → tool-output-jkx9kfq8.js} +33 -33
  164. package/dist/chunks/tool-output-jqh9b0xq.js +18 -0
  165. package/dist/chunks/{form-60qrxp7p.js → tool-output-k5hxj8k3.js} +51 -51
  166. package/dist/chunks/{form-0js0xjhh.js → tool-output-k6n9r6x9.js} +3 -3
  167. package/dist/chunks/{form-9p9gtwv3.js → tool-output-kacxkzp8.js} +41 -41
  168. package/dist/chunks/{form-8cms378j.js → tool-output-kafx12aa.js} +8 -8
  169. package/dist/chunks/{form-7gdkps73.js → tool-output-kdsq7b80.js} +15 -15
  170. package/dist/chunks/{form-7eenkzgj.js → tool-output-kjsrb11v.js} +3 -3
  171. package/dist/chunks/{form-v99yejb3.js → tool-output-kq9sgcg8.js} +13 -13
  172. package/dist/chunks/{form-3yt14ahe.js → tool-output-krdey6nc.js} +6 -6
  173. package/dist/chunks/{form-kwb1v3vj.js → tool-output-kwb1v3vj.js} +1 -1
  174. package/dist/chunks/{form-v871hv85.js → tool-output-ky8tb5p2.js} +3 -3
  175. package/dist/chunks/{form-pwtnz7b5.js → tool-output-m6n8cqg4.js} +24 -24
  176. package/dist/chunks/{form-m9w0rfyh.js → tool-output-m9w0rfyh.js} +1 -1
  177. package/dist/chunks/{form-mjagy123.js → tool-output-ma15yhyh.js} +5 -5
  178. package/dist/chunks/{form-maspj1v3.js → tool-output-maspj1v3.js} +1 -1
  179. package/dist/chunks/{form-3n8x12gt.js → tool-output-mdee9cge.js} +18 -18
  180. package/dist/chunks/{form-2a813mr4.js → tool-output-mqbd7g5r.js} +11 -11
  181. package/dist/chunks/{form-yrcj3v3g.js → tool-output-n1n192bv.js} +4 -4
  182. package/dist/chunks/{form-56301932.js → tool-output-n64rk8nt.js} +3 -3
  183. package/dist/chunks/{form-sxzvkvgj.js → tool-output-n8dykrk6.js} +6 -6
  184. package/dist/chunks/{form-88h1x7q7.js → tool-output-n8s6b8z8.js} +12 -12
  185. package/dist/chunks/{form-pn0jkhpq.js → tool-output-nqt17azn.js} +11 -11
  186. package/dist/chunks/{form-5az94262.js → tool-output-p4djwky6.js} +22 -22
  187. package/dist/chunks/{form-f8t4d16m.js → tool-output-phb9r7tb.js} +28 -28
  188. package/dist/chunks/{form-pjvnvgmy.js → tool-output-pjvnvgmy.js} +1 -1
  189. package/dist/chunks/{form-pknna89w.js → tool-output-pknna89w.js} +1 -1
  190. package/dist/chunks/{form-q6atrn4y.js → tool-output-pqxnwpek.js} +4 -4
  191. package/dist/chunks/{form-6pc27hjz.js → tool-output-py3kkmfq.js} +6 -6
  192. package/dist/chunks/{form-2vs2nh1n.js → tool-output-q5asdkn4.js} +4 -4
  193. package/dist/chunks/{form-qfwkm3zm.js → tool-output-qefxx717.js} +160 -160
  194. package/dist/chunks/{form-f25jab1e.js → tool-output-qgpdbx62.js} +15 -15
  195. package/dist/chunks/{form-qnc92qwc.js → tool-output-qnc92qwc.js} +1 -1
  196. package/dist/chunks/{form-w0t5s28e.js → tool-output-qr8m035q.js} +11 -11
  197. package/dist/chunks/{form-8pe5aa2t.js → tool-output-qre1cjed.js} +6 -6
  198. package/dist/chunks/{form-qsdy395h.js → tool-output-qsdy395h.js} +1 -1
  199. package/dist/chunks/{form-r0fd0dmv.js → tool-output-qsh63st8.js} +11 -11
  200. package/dist/chunks/{form-p7ns44ff.js → tool-output-r2wxtxw6.js} +16 -16
  201. package/dist/chunks/{form-319ctarb.js → tool-output-r4hp03yv.js} +1 -1
  202. package/dist/chunks/{form-bbgghgw2.js → tool-output-r7nqe98r.js} +27 -27
  203. package/dist/chunks/{form-qa2wssbs.js → tool-output-r9bv3gpp.js} +86 -86
  204. package/dist/chunks/{form-rdw6cm16.js → tool-output-rdw6cm16.js} +1 -1
  205. package/dist/chunks/{form-rert0e01.js → tool-output-rert0e01.js} +2 -2
  206. package/dist/chunks/{form-rj3eygr5.js → tool-output-rj3eygr5.js} +2 -2
  207. package/dist/chunks/{form-5sdmzxjs.js → tool-output-rqqrckg0.js} +26 -26
  208. package/dist/chunks/{form-9e6jq2sd.js → tool-output-s0q9dz9s.js} +65 -65
  209. package/dist/chunks/{form-jcjsg0yw.js → tool-output-sa7bb2tp.js} +1 -1
  210. package/dist/chunks/{form-sa8ekw3f.js → tool-output-sa8ekw3f.js} +2 -2
  211. package/dist/chunks/{form-dr0qdjyn.js → tool-output-sacqkzdh.js} +24 -24
  212. package/dist/chunks/{form-pkywwt6e.js → tool-output-sd53vgfk.js} +14 -14
  213. package/dist/chunks/{form-2qb81z4b.js → tool-output-sfgkfzbx.js} +18 -18
  214. package/dist/chunks/{form-5atndy4c.js → tool-output-sm1zwwqr.js} +20 -20
  215. package/dist/chunks/{form-645n92dz.js → tool-output-sqg3zcxb.js} +13 -13
  216. package/dist/chunks/{form-c2r6z7pt.js → tool-output-ssh3qp3e.js} +5 -5
  217. package/dist/chunks/{form-7g33d3vx.js → tool-output-swps22qz.js} +8 -8
  218. package/dist/chunks/{form-syv4x271.js → tool-output-syv4x271.js} +1 -1
  219. package/dist/chunks/{form-1xw87vn2.js → tool-output-t01je07b.js} +6 -6
  220. package/dist/chunks/{form-fnvzehws.js → tool-output-t46q35ac.js} +32 -32
  221. package/dist/chunks/{form-t550f9t1.js → tool-output-t550f9t1.js} +1 -1
  222. package/dist/chunks/{form-ntmr2xz8.js → tool-output-t760r0v7.js} +17 -17
  223. package/dist/chunks/{form-0wws6hjz.js → tool-output-t7xh5d6v.js} +11 -11
  224. package/dist/chunks/{form-mwa48nkk.js → tool-output-tahwk2yc.js} +17 -17
  225. package/dist/chunks/{form-tazgh4e4.js → tool-output-tazgh4e4.js} +1 -1
  226. package/dist/chunks/{form-89znhe33.js → tool-output-tcezcvh9.js} +4 -4
  227. package/dist/chunks/{form-tdstcens.js → tool-output-tdstcens.js} +1 -1
  228. package/dist/chunks/{form-y23yj848.js → tool-output-tfgdn8y4.js} +20 -20
  229. package/dist/chunks/{form-db0xh7a7.js → tool-output-tgycnz6r.js} +26 -26
  230. package/dist/chunks/{form-y3446w5g.js → tool-output-thvynrj3.js} +7 -7
  231. package/dist/chunks/{form-ykmtdm3w.js → tool-output-tkc9kv8c.js} +31 -31
  232. package/dist/chunks/{form-8rqycdgd.js → tool-output-tkmwgdpd.js} +4 -4
  233. package/dist/chunks/{form-tm0kqsz3.js → tool-output-tm0kqsz3.js} +1 -1
  234. package/dist/chunks/{form-tyytaxap.js → tool-output-tyytaxap.js} +1 -1
  235. package/dist/chunks/{form-dvhv3b5e.js → tool-output-v24zhtzr.js} +17 -17
  236. package/dist/chunks/{form-j0rkyft6.js → tool-output-v29b0dxv.js} +17 -17
  237. package/dist/chunks/{form-v7p4zvkq.js → tool-output-v7p4zvkq.js} +2 -2
  238. package/dist/chunks/{form-xex3azfv.js → tool-output-v9ngkz6k.js} +20 -20
  239. package/dist/chunks/{form-veqvce7d.js → tool-output-veqvce7d.js} +1 -1
  240. package/dist/chunks/{form-jjjszhzk.js → tool-output-vfvywm3n.js} +24 -24
  241. package/dist/chunks/{form-mb14aw74.js → tool-output-vjjaysxc.js} +2 -2
  242. package/dist/chunks/{form-q1he1383.js → tool-output-vvpskrme.js} +32 -32
  243. package/dist/chunks/{form-148jjfyp.js → tool-output-vwbadyhr.js} +4 -4
  244. package/dist/chunks/{form-vzs5sf6e.js → tool-output-vzs5sf6e.js} +1 -1
  245. package/dist/chunks/{form-z3t7mm12.js → tool-output-vzynrrjd.js} +16 -16
  246. package/dist/chunks/{form-24q4p3nw.js → tool-output-w1qs94fw.js} +34 -34
  247. package/dist/chunks/{form-g6yfr6ja.js → tool-output-w39jehkq.js} +5 -5
  248. package/dist/chunks/{form-w3wsvvr9.js → tool-output-w3wsvvr9.js} +1 -1
  249. package/dist/chunks/{form-0bj3nf4q.js → tool-output-w4a8jmgt.js} +5 -5
  250. package/dist/chunks/{form-rh9s7fne.js → tool-output-w921dxx8.js} +45 -45
  251. package/dist/chunks/{form-0y5h5hqm.js → tool-output-wa8vv1fs.js} +8 -8
  252. package/dist/chunks/{form-wd87259q.js → tool-output-wd87259q.js} +1 -1
  253. package/dist/chunks/{form-scvg7r3v.js → tool-output-wr5f0mpr.js} +12 -12
  254. package/dist/chunks/{form-eawn7k72.js → tool-output-wt1xcks8.js} +18 -18
  255. package/dist/chunks/{form-ekd234cw.js → tool-output-wt41kpwr.js} +80 -80
  256. package/dist/chunks/{form-0j6p9vqs.js → tool-output-x5psnpj7.js} +19 -19
  257. package/dist/chunks/{form-965qm7dd.js → tool-output-x82db1es.js} +11 -11
  258. package/dist/chunks/{form-eb2ky45d.js → tool-output-x8rs868f.js} +27 -27
  259. package/dist/chunks/{form-2pdg46mn.js → tool-output-xdjq0qq8.js} +10 -10
  260. package/dist/chunks/{form-8ywxhbtv.js → tool-output-xf64mr7k.js} +8 -8
  261. package/dist/chunks/{form-drwq78ky.js → tool-output-xfkkasph.js} +4 -4
  262. package/dist/chunks/{form-deefrv65.js → tool-output-xk048zvw.js} +4 -4
  263. package/dist/chunks/{form-gtv92395.js → tool-output-xnfeye1a.js} +20 -20
  264. package/dist/chunks/{form-beh5shbh.js → tool-output-xtx6j1wk.js} +44 -44
  265. package/dist/chunks/{form-2qy1ne1f.js → tool-output-xvjnyne3.js} +21 -21
  266. package/dist/chunks/{form-j6ktnsbj.js → tool-output-xw6avn3p.js} +12 -12
  267. package/dist/chunks/{form-924pcbt5.js → tool-output-y168q3qk.js} +4 -4
  268. package/dist/chunks/{form-y1fvbwt7.js → tool-output-y1fvbwt7.js} +1 -1
  269. package/dist/chunks/{form-01a0dr57.js → tool-output-y1n4p2mq.js} +15 -15
  270. package/dist/chunks/{form-14hxsfdw.js → tool-output-y1p34exz.js} +9 -9
  271. package/dist/chunks/{form-y71avatq.js → tool-output-y71avatq.js} +1 -1
  272. package/dist/chunks/{form-jtsn5x2a.js → tool-output-y9ecf5vt.js} +11 -11
  273. package/dist/chunks/{form-6nhx3y9w.js → tool-output-y9s9xvs6.js} +8 -8
  274. package/dist/chunks/{form-1z57bhj8.js → tool-output-ydjc2qnb.js} +13 -13
  275. package/dist/chunks/{form-h4pp1fb1.js → tool-output-ykxnpq60.js} +13 -13
  276. package/dist/chunks/{form-yp2x3t23.js → tool-output-yp2x3t23.js} +1 -1
  277. package/dist/chunks/{form-z0bkrqjs.js → tool-output-z0bkrqjs.js} +1 -1
  278. package/dist/chunks/{form-cdjk4qrs.js → tool-output-z6nff98x.js} +41 -41
  279. package/dist/chunks/{form-zr2ceqn5.js → tool-output-zr2ceqn5.js} +1 -1
  280. package/dist/chunks/{form-xxzne356.js → tool-output-zrqcsdz0.js} +12 -12
  281. package/dist/chunks/{form-b36rn7vd.js → tool-output-zt8s8fb6.js} +18 -18
  282. package/dist/chunks/{form-9v2kfm1y.js → tool-output-zwz7qm57.js} +25 -25
  283. package/dist/chunks/{form-zxq2ej10.js → tool-output-zxq2ej10.js} +1 -1
  284. package/dist/chunks/{form-7erbtyx3.js → tool-output-zz2n01x7.js} +11 -11
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +7 -7
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +83 -83
  290. package/dist/config/discovery.js +86 -86
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +101 -101
  293. package/dist/config/plugin/agent.js +116 -116
  294. package/dist/config/plugin/command.js +204 -203
  295. package/dist/config/plugin/compaction.js +155 -154
  296. package/dist/config/plugin/compatibility.js +134 -134
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +117 -117
  299. package/dist/config/plugin/image.js +116 -116
  300. package/dist/config/plugin/instruction.js +116 -116
  301. package/dist/config/plugin/location-watcher.js +116 -116
  302. package/dist/config/plugin/mcp.js +123 -123
  303. package/dist/config/plugin/policy.js +117 -117
  304. package/dist/config/plugin/provider.js +116 -116
  305. package/dist/config/plugin/reference.js +118 -118
  306. package/dist/config/plugin/shell.js +116 -116
  307. package/dist/config/plugin/skill-file.js +104 -104
  308. package/dist/config/plugin/skill.js +135 -135
  309. package/dist/config/plugin/snapshot.js +116 -116
  310. package/dist/config/plugin/source.js +119 -119
  311. package/dist/config/plugin/tool-output.js +117 -117
  312. package/dist/config/plugin/websearch.js +115 -115
  313. package/dist/config/plugin/worktree.js +118 -118
  314. package/dist/config/variable.js +1 -1
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +119 -119
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +85 -85
  319. package/dist/database/database.js +68 -68
  320. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +13 -13
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +14 -14
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  385. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  386. package/dist/database/migration.gen.js +51 -51
  387. package/dist/database/migration.js +53 -53
  388. package/dist/database/path.js +2 -2
  389. package/dist/database/schema.gen.js +1 -1
  390. package/dist/database/schema.sql.js +1 -1
  391. package/dist/database/sqlite.bun.js +1 -1
  392. package/dist/database/sqlite.js +1 -1
  393. package/dist/database/sqlite.node.js +1 -1
  394. package/dist/database/sqlite.workerd.js +1 -1
  395. package/dist/database/v1-migration.bun.js +78 -78
  396. package/dist/database/v1-migration.js +1 -1
  397. package/dist/effect/app-node-builder.js +368 -367
  398. package/dist/effect/app-node-platform.js +2 -2
  399. package/dist/effect/keyed-mutex.js +1 -1
  400. package/dist/effect/websocket-constructor.js +1 -1
  401. package/dist/environment/driver.js +1 -1
  402. package/dist/environment/environment.js +95 -95
  403. package/dist/environment/exec-defaults.js +2 -2
  404. package/dist/environment/files.js +1 -1
  405. package/dist/environment/index.js +97 -97
  406. package/dist/environment/local.js +2 -2
  407. package/dist/environment/memory.js +2 -2
  408. package/dist/environment/unavailable.js +1 -1
  409. package/dist/event/sql.js +1 -1
  410. package/dist/event-logger.js +72 -72
  411. package/dist/file-access.js +106 -106
  412. package/dist/file-mutation.js +96 -96
  413. package/dist/file-retention.js +1 -1
  414. package/dist/filesystem/fff.bun.js +2 -2
  415. package/dist/filesystem/fff.js +1 -1
  416. package/dist/filesystem/fff.node.js +2 -2
  417. package/dist/filesystem/fff.workerd.js +2 -2
  418. package/dist/filesystem/location-watcher-policy.js +6 -6
  419. package/dist/filesystem/location-watcher.js +219 -218
  420. package/dist/filesystem/protected.js +3 -3
  421. package/dist/filesystem/search.js +105 -105
  422. package/dist/filesystem/watcher-binding.js +1 -1
  423. package/dist/filesystem/watcher.js +13 -13
  424. package/dist/filesystem.js +108 -108
  425. package/dist/form.js +86 -86
  426. package/dist/formatter/builtins.js +2 -2
  427. package/dist/formatter.js +89 -89
  428. package/dist/generate.js +106 -105
  429. package/dist/git.js +10 -10
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +93 -93
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +6 -6
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +359 -358
  453. package/dist/instruction-discovery.js +86 -86
  454. package/dist/instructions/builtins.js +89 -89
  455. package/dist/instructions/index.js +1 -1
  456. package/dist/integration/connection.js +3 -3
  457. package/dist/integration.js +91 -91
  458. package/dist/job.js +80 -80
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +75 -75
  461. package/dist/location-activity.js +130 -130
  462. package/dist/location-lifecycle.js +109 -109
  463. package/dist/location-service-map.js +88 -88
  464. package/dist/location-services.js +356 -355
  465. package/dist/location.js +91 -91
  466. package/dist/managed-policy.js +8 -8
  467. package/dist/mcp/client.js +93 -93
  468. package/dist/mcp/index.js +111 -111
  469. package/dist/mcp/instructions.js +131 -131
  470. package/dist/mcp/oauth.js +80 -80
  471. package/dist/mcp/stdio.js +92 -92
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +93 -93
  474. package/dist/model-resolver.js +98 -98
  475. package/dist/model-retry.js +10 -0
  476. package/dist/model.js +98 -98
  477. package/dist/models-dev.js +109 -109
  478. package/dist/oauth/page.js +1 -1
  479. package/dist/permission/saved.js +78 -78
  480. package/dist/permission/sql.js +5 -5
  481. package/dist/permission.js +105 -105
  482. package/dist/persistent-pty/binary.bun.js +1 -1
  483. package/dist/persistent-pty/daemon.js +1 -1
  484. package/dist/persistent-pty/index.js +90 -90
  485. package/dist/persistent-pty/pty-binding.js +1 -1
  486. package/dist/persistent-pty.js +77 -77
  487. package/dist/plugin/agent.js +76 -76
  488. package/dist/plugin/command.js +102 -102
  489. package/dist/plugin/hooks.js +5 -5
  490. package/dist/plugin/host.js +212 -211
  491. package/dist/plugin/identity.js +3 -3
  492. package/dist/plugin/instance.js +5 -5
  493. package/dist/plugin/internal.js +330 -329
  494. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  495. package/dist/plugin/models-dev.js +98 -98
  496. package/dist/plugin/module.js +117 -117
  497. package/dist/plugin/optimize.js +4 -4
  498. package/dist/plugin/plan.js +104 -104
  499. package/dist/plugin/promise.js +1 -1
  500. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  501. package/dist/plugin/provider/azure.js +114 -114
  502. package/dist/plugin/provider/cerebras.js +1 -1
  503. package/dist/plugin/provider/chatgpt.js +116 -116
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +112 -112
  508. package/dist/plugin/provider/databricks.js +1 -1
  509. package/dist/plugin/provider/digitalocean.js +95 -95
  510. package/dist/plugin/provider/dynamic.js +2 -2
  511. package/dist/plugin/provider/factory.js +1 -1
  512. package/dist/plugin/provider/github-copilot.js +97 -97
  513. package/dist/plugin/provider/gitlab.js +95 -95
  514. package/dist/plugin/provider/google-vertex.js +113 -113
  515. package/dist/plugin/provider/kilo.js +1 -1
  516. package/dist/plugin/provider/llmgateway.js +80 -80
  517. package/dist/plugin/provider/lmstudio.js +125 -125
  518. package/dist/plugin/provider/local.js +122 -122
  519. package/dist/plugin/provider/modal.js +94 -94
  520. package/dist/plugin/provider/neon.js +1 -1
  521. package/dist/plugin/provider/nvidia.js +1 -1
  522. package/dist/plugin/provider/ollama.js +125 -125
  523. package/dist/plugin/provider/openai.js +118 -118
  524. package/dist/plugin/provider/opencode.js +100 -100
  525. package/dist/plugin/provider/openrouter.js +93 -93
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/poe.js +81 -81
  528. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  529. package/dist/plugin/provider/sap-ai-core.js +93 -93
  530. package/dist/plugin/provider/sdk-factory.js +1 -1
  531. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  532. package/dist/plugin/provider/vercel.js +92 -92
  533. package/dist/plugin/provider/vllm.js +125 -125
  534. package/dist/plugin/provider/xai.js +93 -93
  535. package/dist/plugin/provider/zenmux.js +1 -1
  536. package/dist/plugin/provider.js +168 -168
  537. package/dist/plugin/sdk.js +78 -78
  538. package/dist/plugin/service.js +3 -3
  539. package/dist/plugin/skill.js +134 -134
  540. package/dist/plugin/source-directory.js +1 -1
  541. package/dist/plugin/supervisor.js +349 -348
  542. package/dist/plugin/tool-input-repair.js +4 -4
  543. package/dist/plugin/update.js +6 -6
  544. package/dist/plugin/vcs/git.js +88 -88
  545. package/dist/plugin/vcs/hg.js +88 -88
  546. package/dist/plugin/verbosity.js +95 -95
  547. package/dist/plugin/warming.js +114 -114
  548. package/dist/plugin/websearch/exa.js +7 -7
  549. package/dist/plugin/websearch/firecrawl.js +6 -6
  550. package/dist/plugin/websearch/index.js +9 -9
  551. package/dist/plugin/websearch/mcp.js +4 -4
  552. package/dist/plugin/websearch/parallel.js +8 -8
  553. package/dist/plugin/websearch/tavily.js +4 -4
  554. package/dist/plugin/websearch/tinyfish.js +8 -8
  555. package/dist/plugin.js +219 -218
  556. package/dist/project/schema.js +8 -8
  557. package/dist/project/sql.js +4 -4
  558. package/dist/project.js +92 -92
  559. package/dist/provider.js +97 -97
  560. package/dist/pty/protocol.js +1 -1
  561. package/dist/pty/ticket.js +1 -1
  562. package/dist/pty.js +99 -99
  563. package/dist/reference/instructions.js +89 -89
  564. package/dist/reference.js +91 -91
  565. package/dist/repository-cache.js +83 -83
  566. package/dist/repository.js +1 -1
  567. package/dist/ripgrep/binary.js +2 -2
  568. package/dist/ripgrep.js +99 -99
  569. package/dist/rpc.js +88 -88
  570. package/dist/schema.js +1 -1
  571. package/dist/session/affinity.js +1 -1
  572. package/dist/session/command.js +76 -76
  573. package/dist/session/compaction.js +138 -137
  574. package/dist/session/context.js +155 -155
  575. package/dist/session/diff.js +90 -90
  576. package/dist/session/environment.js +5 -5
  577. package/dist/session/error.js +5 -5
  578. package/dist/session/event.js +1 -1
  579. package/dist/session/execution/restart.js +212 -211
  580. package/dist/session/execution.js +127 -127
  581. package/dist/session/generate.js +157 -156
  582. package/dist/session/history.js +13 -13
  583. package/dist/session/inbox.js +90 -90
  584. package/dist/session/info.js +3 -3
  585. package/dist/session/instruction-entry.js +81 -81
  586. package/dist/session/instruction-state.js +8 -8
  587. package/dist/session/instructions.js +99 -99
  588. package/dist/session/message-updater.js +4 -4
  589. package/dist/session/message.js +1 -1
  590. package/dist/session/model-request.js +122 -122
  591. package/dist/session/model-transport.js +9 -9
  592. package/dist/session/move.js +131 -131
  593. package/dist/session/projector.js +88 -88
  594. package/dist/session/prompt.js +107 -107
  595. package/dist/session/provider-context.js +3 -3
  596. package/dist/session/revert.js +92 -92
  597. package/dist/session/run-coordinator.js +1 -1
  598. package/dist/session/runner/index.js +3 -3
  599. package/dist/session/runner/llm.js +225 -224
  600. package/dist/session/runner/max-steps.js +1 -1
  601. package/dist/session/runner/model.js +100 -100
  602. package/dist/session/runner/publish-llm-event.js +115 -115
  603. package/dist/session/runner/retry.js +3 -2
  604. package/dist/session/runner/step.js +128 -127
  605. package/dist/session/runner/to-llm-message.js +2 -2
  606. package/dist/session/schema.js +3 -3
  607. package/dist/session/session.js +164 -164
  608. package/dist/session/shell.js +130 -130
  609. package/dist/session/skill.js +105 -105
  610. package/dist/session/sql.js +5 -5
  611. package/dist/session/stats.js +75 -75
  612. package/dist/session/store.js +85 -85
  613. package/dist/session/subagent-completion.js +1 -1
  614. package/dist/session/subagent-job.js +206 -205
  615. package/dist/session/system-prompt.js +3 -3
  616. package/dist/session/title.js +159 -159
  617. package/dist/session/to-session-error.js +113 -113
  618. package/dist/session/transfer.js +211 -210
  619. package/dist/session/usage.js +1 -1
  620. package/dist/session.js +210 -209
  621. package/dist/shell/parse.js +6 -6
  622. package/dist/shell/result.js +1 -1
  623. package/dist/shell/scan.js +1 -1
  624. package/dist/shell/select.js +11 -11
  625. package/dist/shell.js +132 -132
  626. package/dist/skill/discovery.js +6 -6
  627. package/dist/skill/instructions.js +109 -109
  628. package/dist/skill.js +106 -106
  629. package/dist/snapshot.js +93 -93
  630. package/dist/state.js +1 -1
  631. package/dist/tool/html-markdown.js +1 -1
  632. package/dist/tool/http-body.js +1 -1
  633. package/dist/tool/mcp.js +130 -130
  634. package/dist/tool/plugin/edit.js +122 -122
  635. package/dist/tool/plugin/file-diff.js +1 -1
  636. package/dist/tool/plugin/glob.js +126 -126
  637. package/dist/tool/plugin/grep.js +124 -124
  638. package/dist/tool/plugin/mcp-resource.js +119 -119
  639. package/dist/tool/plugin/opencode.js +111 -111
  640. package/dist/tool/plugin/patch.js +124 -124
  641. package/dist/tool/plugin/question.js +105 -105
  642. package/dist/tool/plugin/read.js +127 -127
  643. package/dist/tool/plugin/shell.js +209 -208
  644. package/dist/tool/plugin/skill.js +115 -115
  645. package/dist/tool/plugin/subagent.js +213 -212
  646. package/dist/tool/plugin/webfetch.js +114 -114
  647. package/dist/tool/plugin/websearch.js +114 -114
  648. package/dist/tool/plugin/write.js +122 -122
  649. package/dist/tool/read-filesystem.js +102 -102
  650. package/dist/tool/runtime.js +1 -1
  651. package/dist/tool-output.js +7 -7
  652. package/dist/tool.js +16 -16
  653. package/dist/types/account/sql.d.ts +3 -3
  654. package/dist/types/codemode/tool.d.ts +9 -9
  655. package/dist/types/config/discovery.d.ts +2 -2
  656. package/dist/types/config/plugin/entry-observer.d.ts +1 -1
  657. package/dist/types/config/plugin/instruction.d.ts +1 -1
  658. package/dist/types/config.d.ts +1 -1
  659. package/dist/types/credential/sql.d.ts +1 -1
  660. package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +1 -1
  661. package/dist/types/database/migration/20260805200742_import_legacy_credentials.d.ts +1 -1
  662. package/dist/types/database/path.d.ts +16 -16
  663. package/dist/types/database/sqlite.bun.d.ts +1 -1
  664. package/dist/types/database/sqlite.node.d.ts +1 -1
  665. package/dist/types/database/sqlite.workerd.d.ts +1 -1
  666. package/dist/types/effect/websocket-constructor.d.ts +2 -1
  667. package/dist/types/environment/files.d.ts +1 -1
  668. package/dist/types/event/sql.d.ts +2 -2
  669. package/dist/types/file-mutation.d.ts +4 -3
  670. package/dist/types/filesystem.d.ts +1 -1
  671. package/dist/types/form.d.ts +55 -55
  672. package/dist/types/github-copilot/chat/openai-compatible-chat-language-model.d.ts +27 -27
  673. package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +80 -80
  674. package/dist/types/github-copilot/responses/tool/file-search.d.ts +1 -1
  675. package/dist/types/github-copilot/responses/tool/image-generation.d.ts +5 -5
  676. package/dist/types/github-copilot/responses/tool/web-search-preview.d.ts +1 -1
  677. package/dist/types/github-copilot/responses/tool/web-search.d.ts +1 -1
  678. package/dist/types/image/photon-wasm.workerd.d.ts +1 -1
  679. package/dist/types/image/photon.d.ts +5 -5
  680. package/dist/types/instance.d.ts +1 -1
  681. package/dist/types/integration.d.ts +257 -257
  682. package/dist/types/kv/sql.d.ts +1 -1
  683. package/dist/types/managed-policy.d.ts +2 -2
  684. package/dist/types/mcp/client.d.ts +74 -74
  685. package/dist/types/mcp/index.d.ts +1 -1
  686. package/dist/types/mime.d.ts +1 -1
  687. package/dist/types/model-resolver.d.ts +1 -1
  688. package/dist/types/model-retry.d.ts +14 -0
  689. package/dist/types/model.d.ts +73 -73
  690. package/dist/types/permission/sql.d.ts +1 -1
  691. package/dist/types/permission.d.ts +1 -1
  692. package/dist/types/plugin/command.d.ts +1 -1
  693. package/dist/types/plugin/host.d.ts +2 -2
  694. package/dist/types/plugin/internal.d.ts +1 -1
  695. package/dist/types/plugin/module.d.ts +7 -7
  696. package/dist/types/plugin/provider/azure.d.ts +2 -2
  697. package/dist/types/plugin/provider/chatgpt.d.ts +2 -2
  698. package/dist/types/plugin/provider/digitalocean.d.ts +1 -1
  699. package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
  700. package/dist/types/plugin/provider/gitlab.d.ts +1 -1
  701. package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
  702. package/dist/types/plugin/provider/local.d.ts +3 -3
  703. package/dist/types/plugin/provider/ollama.d.ts +2 -2
  704. package/dist/types/plugin/provider/opencode.d.ts +1 -1
  705. package/dist/types/plugin/provider/poe.d.ts +1 -1
  706. package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
  707. package/dist/types/plugin/provider/vllm.d.ts +2 -2
  708. package/dist/types/plugin/supervisor.d.ts +2 -2
  709. package/dist/types/plugin/websearch/exa.d.ts +1 -1
  710. package/dist/types/plugin/websearch/firecrawl.d.ts +1 -1
  711. package/dist/types/plugin/websearch/index.d.ts +1 -1
  712. package/dist/types/plugin/websearch/mcp.d.ts +1 -1
  713. package/dist/types/plugin/websearch/parallel.d.ts +1 -1
  714. package/dist/types/plugin/websearch/tavily.d.ts +1 -1
  715. package/dist/types/plugin/websearch/tinyfish.d.ts +1 -1
  716. package/dist/types/project/sql.d.ts +75 -75
  717. package/dist/types/provider.d.ts +1 -1
  718. package/dist/types/session/command.d.ts +1 -1
  719. package/dist/types/session/compaction.d.ts +1 -1
  720. package/dist/types/session/diff.d.ts +1 -1
  721. package/dist/types/session/execution/restart.d.ts +1 -1
  722. package/dist/types/session/execution.d.ts +2 -2
  723. package/dist/types/session/generate.d.ts +1 -1
  724. package/dist/types/session/history.d.ts +826 -826
  725. package/dist/types/session/inbox.d.ts +110 -110
  726. package/dist/types/session/instruction-entry.d.ts +2 -2
  727. package/dist/types/session/instruction-state.d.ts +1 -1
  728. package/dist/types/session/model-request.d.ts +1 -1
  729. package/dist/types/session/prompt.d.ts +7 -7
  730. package/dist/types/session/revert.d.ts +1 -1
  731. package/dist/types/session/runner/index.d.ts +42 -46
  732. package/dist/types/session/runner/step.d.ts +86 -96
  733. package/dist/types/session/session.d.ts +27 -27
  734. package/dist/types/session/skill.d.ts +1 -1
  735. package/dist/types/session/sql.d.ts +139 -139
  736. package/dist/types/session/stats.d.ts +1 -1
  737. package/dist/types/session/store.d.ts +5 -5
  738. package/dist/types/session/subagent-completion.d.ts +1 -1
  739. package/dist/types/session/title.d.ts +1 -1
  740. package/dist/types/session/transfer.d.ts +26 -26
  741. package/dist/types/session.d.ts +5 -5
  742. package/dist/types/shell/result.d.ts +14 -14
  743. package/dist/types/state.d.ts +1 -1
  744. package/dist/types/tool/plugin/read.d.ts +2 -2
  745. package/dist/types/tool/plugin/shell.d.ts +1 -1
  746. package/dist/types/tool/plugin/skill.d.ts +1 -1
  747. package/dist/types/tool/plugin/webfetch.d.ts +1 -1
  748. package/dist/types/tool/read-filesystem.d.ts +4 -4
  749. package/dist/types/tool/runtime.d.ts +1 -1
  750. package/dist/types/util/error.d.ts +36 -32
  751. package/dist/types/v1/config/agent.d.ts +2 -2
  752. package/dist/types/v1/config/error.d.ts +51 -46
  753. package/dist/types/v1/config/migrate.d.ts +14 -14
  754. package/dist/types/v1/config/permission.d.ts +3 -3
  755. package/dist/types/wellknown.d.ts +4 -6
  756. package/dist/types/workspace/sql.d.ts +1 -1
  757. package/dist/types/worktree/git.d.ts +3 -3
  758. package/dist/types/worktree/sql.d.ts +1 -1
  759. package/dist/util/error-summary.js +1 -1
  760. package/dist/util/error.js +1 -1
  761. package/dist/util/git-executable.js +2 -2
  762. package/dist/util/iife.js +1 -1
  763. package/dist/util/lazy.js +1 -1
  764. package/dist/util/slug.js +1 -1
  765. package/dist/util/token.js +1 -1
  766. package/dist/util/which.js +1 -1
  767. package/dist/util/wildcard.js +1 -1
  768. package/dist/v1/config/agent.js +5 -5
  769. package/dist/v1/config/command.js +3 -3
  770. package/dist/v1/config/error.js +2 -2
  771. package/dist/v1/config/mcp.js +4 -4
  772. package/dist/v1/config/migrate.js +94 -94
  773. package/dist/v1/config/permission.js +3 -3
  774. package/dist/v1/config/plugin.js +3 -3
  775. package/dist/v1/config/provider-options.js +1 -1
  776. package/dist/v1/config/provider.js +4 -4
  777. package/dist/variant.js +95 -95
  778. package/dist/vcs/patch.js +1 -1
  779. package/dist/vcs.js +91 -91
  780. package/dist/voice.js +90 -90
  781. package/dist/websearch.js +82 -82
  782. package/dist/wellknown/plugin.js +78 -78
  783. package/dist/wellknown.js +81 -81
  784. package/dist/workspace/driver.js +3 -3
  785. package/dist/workspace/sql.js +1 -1
  786. package/dist/workspace.js +82 -82
  787. package/dist/worktree/directory.js +2 -2
  788. package/dist/worktree/git.js +10 -10
  789. package/dist/worktree/sql.js +5 -5
  790. package/dist/worktree/strategies.js +91 -91
  791. package/dist/worktree.js +98 -98
  792. package/package.json +9 -9
  793. package/dist/chunks/form-4v7qdvcn.js +0 -18
  794. package/dist/chunks/form-bp1dmp05.js +0 -257
  795. package/dist/chunks/form-e9jspw56.js +0 -26
  796. package/dist/chunks/form-scgrse2b.js +0 -80
  797. /package/dist/chunks/{form-0qkdqm5v.js → tool-output-0qkdqm5v.js} +0 -0
  798. /package/dist/chunks/{form-0zkw76rk.js → tool-output-0zkw76rk.js} +0 -0
  799. /package/dist/chunks/{form-17cy0kzp.js → tool-output-17cy0kzp.js} +0 -0
  800. /package/dist/chunks/{form-1cnp2v09.js → tool-output-1cnp2v09.js} +0 -0
  801. /package/dist/chunks/{form-1kg9ymc8.js → tool-output-1kg9ymc8.js} +0 -0
  802. /package/dist/chunks/{form-24dcb14g.js → tool-output-24dcb14g.js} +0 -0
  803. /package/dist/chunks/{form-2710q6r3.js → tool-output-2710q6r3.js} +0 -0
  804. /package/dist/chunks/{form-2axfhc9x.js → tool-output-2axfhc9x.js} +0 -0
  805. /package/dist/chunks/{form-2bv980vf.js → tool-output-2bv980vf.js} +0 -0
  806. /package/dist/chunks/{form-2c3vjs8z.js → tool-output-2c3vjs8z.js} +0 -0
  807. /package/dist/chunks/{form-359p4xyc.js → tool-output-359p4xyc.js} +0 -0
  808. /package/dist/chunks/{form-3asan66x.js → tool-output-3asan66x.js} +0 -0
  809. /package/dist/chunks/{form-3t0ybcrp.js → tool-output-3t0ybcrp.js} +0 -0
  810. /package/dist/chunks/{form-3v8g72cx.js → tool-output-3v8g72cx.js} +0 -0
  811. /package/dist/chunks/{form-3wcehsnq.js → tool-output-3wcehsnq.js} +0 -0
  812. /package/dist/chunks/{form-43n2bw4t.js → tool-output-43n2bw4t.js} +0 -0
  813. /package/dist/chunks/{form-4knz6hnm.js → tool-output-4knz6hnm.js} +0 -0
  814. /package/dist/chunks/{form-4vcrnpx2.js → tool-output-4vcrnpx2.js} +0 -0
  815. /package/dist/chunks/{form-4y7fprxs.js → tool-output-4y7fprxs.js} +0 -0
  816. /package/dist/chunks/{form-53557ph1.js → tool-output-53557ph1.js} +0 -0
  817. /package/dist/chunks/{form-550bvhaj.js → tool-output-550bvhaj.js} +0 -0
  818. /package/dist/chunks/{form-5qd3pb7m.js → tool-output-5qd3pb7m.js} +0 -0
  819. /package/dist/chunks/{form-6prwharc.js → tool-output-6prwharc.js} +0 -0
  820. /package/dist/chunks/{form-6q2bdcd1.js → tool-output-6q2bdcd1.js} +0 -0
  821. /package/dist/chunks/{form-7akdwqpd.js → tool-output-7akdwqpd.js} +0 -0
  822. /package/dist/chunks/{form-7m9af43g.js → tool-output-7m9af43g.js} +0 -0
  823. /package/dist/chunks/{form-822emrt2.js → tool-output-822emrt2.js} +0 -0
  824. /package/dist/chunks/{form-84wd9syh.js → tool-output-84wd9syh.js} +0 -0
  825. /package/dist/chunks/{form-88xbtdfr.js → tool-output-88xbtdfr.js} +0 -0
  826. /package/dist/chunks/{form-8n3pysct.js → tool-output-8n3pysct.js} +0 -0
  827. /package/dist/chunks/{form-8wj87zfr.js → tool-output-8wj87zfr.js} +0 -0
  828. /package/dist/chunks/{form-9a4afbnw.js → tool-output-9a4afbnw.js} +0 -0
  829. /package/dist/chunks/{form-9rqn6x4v.js → tool-output-9rqn6x4v.js} +0 -0
  830. /package/dist/chunks/{form-a6k6eb26.js → tool-output-a6k6eb26.js} +0 -0
  831. /package/dist/chunks/{form-af5trqkr.js → tool-output-af5trqkr.js} +0 -0
  832. /package/dist/chunks/{form-afrmfg78.js → tool-output-afrmfg78.js} +0 -0
  833. /package/dist/chunks/{form-aqzs7mqg.js → tool-output-aqzs7mqg.js} +0 -0
  834. /package/dist/chunks/{form-atq7p7m5.js → tool-output-atq7p7m5.js} +0 -0
  835. /package/dist/chunks/{form-bkyjaxrp.js → tool-output-bkyjaxrp.js} +0 -0
  836. /package/dist/chunks/{form-bmr6ed5q.js → tool-output-bmr6ed5q.js} +0 -0
  837. /package/dist/chunks/{form-cf4snx6d.js → tool-output-cf4snx6d.js} +0 -0
  838. /package/dist/chunks/{form-cvy3z8tj.js → tool-output-cvy3z8tj.js} +0 -0
  839. /package/dist/chunks/{form-d9fn303g.js → tool-output-d9fn303g.js} +0 -0
  840. /package/dist/chunks/{form-d9jj8t3e.js → tool-output-d9jj8t3e.js} +0 -0
  841. /package/dist/chunks/{form-dajrwvna.js → tool-output-dajrwvna.js} +0 -0
  842. /package/dist/chunks/{form-dap0rakb.js → tool-output-dap0rakb.js} +0 -0
  843. /package/dist/chunks/{form-df08tz66.js → tool-output-df08tz66.js} +0 -0
  844. /package/dist/chunks/{form-dy18nga0.js → tool-output-dy18nga0.js} +0 -0
  845. /package/dist/chunks/{form-e5kj55wp.js → tool-output-e5kj55wp.js} +0 -0
  846. /package/dist/chunks/{form-e73j6tqm.js → tool-output-e73j6tqm.js} +0 -0
  847. /package/dist/chunks/{form-ec1grn59.js → tool-output-ec1grn59.js} +0 -0
  848. /package/dist/chunks/{form-eh3zwz77.js → tool-output-eh3zwz77.js} +0 -0
  849. /package/dist/chunks/{form-emrn6kk6.js → tool-output-emrn6kk6.js} +0 -0
  850. /package/dist/chunks/{form-f0mxakyp.js → tool-output-f0mxakyp.js} +0 -0
  851. /package/dist/chunks/{form-f6n9ztr4.js → tool-output-f6n9ztr4.js} +0 -0
  852. /package/dist/chunks/{form-faypxj3z.js → tool-output-faypxj3z.js} +0 -0
  853. /package/dist/chunks/{form-fd410y7t.js → tool-output-fd410y7t.js} +0 -0
  854. /package/dist/chunks/{form-g4wezp1m.js → tool-output-g4wezp1m.js} +0 -0
  855. /package/dist/chunks/{form-g86h250q.js → tool-output-g86h250q.js} +0 -0
  856. /package/dist/chunks/{form-gebd4c9n.js → tool-output-gebd4c9n.js} +0 -0
  857. /package/dist/chunks/{form-gftt206x.js → tool-output-gftt206x.js} +0 -0
  858. /package/dist/chunks/{form-hcxmzztb.js → tool-output-hcxmzztb.js} +0 -0
  859. /package/dist/chunks/{form-hk9envan.js → tool-output-hk9envan.js} +0 -0
  860. /package/dist/chunks/{form-j2ntwpah.js → tool-output-j2ntwpah.js} +0 -0
  861. /package/dist/chunks/{form-j5zkgpj8.js → tool-output-j5zkgpj8.js} +0 -0
  862. /package/dist/chunks/{form-jjkms2e6.js → tool-output-jjkms2e6.js} +0 -0
  863. /package/dist/chunks/{form-jr7sbwjy.js → tool-output-jr7sbwjy.js} +0 -0
  864. /package/dist/chunks/{form-jwfs4k6c.js → tool-output-jwfs4k6c.js} +0 -0
  865. /package/dist/chunks/{form-jze0r7bz.js → tool-output-jze0r7bz.js} +0 -0
  866. /package/dist/chunks/{form-jzg6c2d5.js → tool-output-jzg6c2d5.js} +0 -0
  867. /package/dist/chunks/{form-m18g726c.js → tool-output-m18g726c.js} +0 -0
  868. /package/dist/chunks/{form-mp448xyj.js → tool-output-mp448xyj.js} +0 -0
  869. /package/dist/chunks/{form-msx8hqn2.js → tool-output-msx8hqn2.js} +0 -0
  870. /package/dist/chunks/{form-n05xt0ee.js → tool-output-n05xt0ee.js} +0 -0
  871. /package/dist/chunks/{form-n3j8tn72.js → tool-output-n3j8tn72.js} +0 -0
  872. /package/dist/chunks/{form-njntx4h6.js → tool-output-njntx4h6.js} +0 -0
  873. /package/dist/chunks/{form-pkyv6v7h.js → tool-output-pkyv6v7h.js} +0 -0
  874. /package/dist/chunks/{form-pyv0edze.js → tool-output-pyv0edze.js} +0 -0
  875. /package/dist/chunks/{form-q3sfg36h.js → tool-output-q3sfg36h.js} +0 -0
  876. /package/dist/chunks/{form-q74kybfr.js → tool-output-q74kybfr.js} +0 -0
  877. /package/dist/chunks/{form-qaymkmh1.js → tool-output-qaymkmh1.js} +0 -0
  878. /package/dist/chunks/{form-qb87gjwd.js → tool-output-qb87gjwd.js} +0 -0
  879. /package/dist/chunks/{form-qfa1cgps.js → tool-output-qfa1cgps.js} +0 -0
  880. /package/dist/chunks/{form-qg3g05ea.js → tool-output-qg3g05ea.js} +0 -0
  881. /package/dist/chunks/{form-qrg20bc0.js → tool-output-qrg20bc0.js} +0 -0
  882. /package/dist/chunks/{form-rcb2kzg1.js → tool-output-rcb2kzg1.js} +0 -0
  883. /package/dist/chunks/{form-sdp7kfr6.js → tool-output-sdp7kfr6.js} +0 -0
  884. /package/dist/chunks/{form-ssg3fenm.js → tool-output-ssg3fenm.js} +0 -0
  885. /package/dist/chunks/{form-ve7vex1e.js → tool-output-ve7vex1e.js} +0 -0
  886. /package/dist/chunks/{form-w803qqfp.js → tool-output-w803qqfp.js} +0 -0
  887. /package/dist/chunks/{form-wc3fc9cn.js → tool-output-wc3fc9cn.js} +0 -0
  888. /package/dist/chunks/{form-wer8tq1h.js → tool-output-wer8tq1h.js} +0 -0
  889. /package/dist/chunks/{form-wjj7prxr.js → tool-output-wjj7prxr.js} +0 -0
  890. /package/dist/chunks/{form-wtztk69x.js → tool-output-wtztk69x.js} +0 -0
  891. /package/dist/chunks/{form-x0ckcb58.js → tool-output-x0ckcb58.js} +0 -0
  892. /package/dist/chunks/{form-x61499pn.js → tool-output-x61499pn.js} +0 -0
  893. /package/dist/chunks/{form-y44na4kk.js → tool-output-y44na4kk.js} +0 -0
  894. /package/dist/chunks/{form-y8f7s663.js → tool-output-y8f7s663.js} +0 -0
  895. /package/dist/chunks/{form-ygaqb7jw.js → tool-output-ygaqb7jw.js} +0 -0
  896. /package/dist/chunks/{form-ym463w8f.js → tool-output-ym463w8f.js} +0 -0
  897. /package/dist/chunks/{form-z5v4ffb3.js → tool-output-z5v4ffb3.js} +0 -0
  898. /package/dist/chunks/{form-z9919s4g.js → tool-output-z9919s4g.js} +0 -0
@@ -16,173 +16,123 @@ export declare const latestCompaction: (db: import("../database/drizzle.js").Eff
16
16
  } | undefined, never, never>;
17
17
  export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
18
18
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
19
- readonly type: "agent-switched";
19
+ readonly metadata?: {
20
+ readonly [x: string]: unknown;
21
+ } | undefined;
20
22
  readonly time: {
21
23
  readonly created: import("effect/DateTime").Utc;
22
24
  };
23
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
25
+ readonly type: "compaction";
26
+ readonly status: "running";
27
+ readonly reason: "auto" | "manual";
28
+ readonly summary: string;
29
+ readonly recent: string;
30
+ } | {
31
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
24
32
  readonly metadata?: {
25
33
  readonly [x: string]: unknown;
26
34
  } | undefined;
27
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
28
- } | {
29
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
30
- readonly type: "model-switched";
31
35
  readonly time: {
32
36
  readonly created: import("effect/DateTime").Utc;
33
37
  };
34
- readonly model: {
35
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
36
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
37
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
38
- };
39
- readonly metadata?: {
40
- readonly [x: string]: unknown;
38
+ readonly type: "compaction";
39
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
40
+ readonly tokens?: {
41
+ readonly input: number;
42
+ readonly output: number;
43
+ readonly reasoning: number;
44
+ readonly cache: {
45
+ readonly read: number;
46
+ readonly write: number;
47
+ };
41
48
  } | undefined;
42
- readonly previous?: {
49
+ readonly status: "completed";
50
+ readonly reason: "auto" | "manual";
51
+ readonly model?: {
43
52
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
44
53
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
45
54
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
46
55
  } | undefined;
47
- } | {
48
- readonly location: {
49
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
50
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
51
- };
52
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
53
- readonly type: "location-switched";
54
- readonly time: {
55
- readonly created: import("effect/DateTime").Utc;
56
- };
57
- readonly metadata?: {
56
+ readonly providerState?: {
58
57
  readonly [x: string]: unknown;
59
58
  } | undefined;
60
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
61
- readonly previous?: {
62
- readonly location: {
63
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
64
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
59
+ readonly summary: string;
60
+ readonly recent: string;
61
+ readonly providerContext?: {
62
+ readonly version: 1;
63
+ readonly provenance: {
64
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
65
+ readonly provider: string;
66
+ readonly modelID: string;
67
+ readonly route: string;
68
+ readonly protocol: string;
69
+ readonly endpoint: string;
65
70
  };
66
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
67
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
71
+ readonly messages: Schema.Json;
68
72
  } | undefined;
69
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
70
73
  } | {
71
74
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
72
- readonly type: "user";
73
- readonly time: {
74
- readonly created: import("effect/DateTime").Utc;
75
- };
76
- readonly text: string;
77
75
  readonly metadata?: {
78
76
  readonly [x: string]: unknown;
79
77
  } | undefined;
80
- readonly files?: readonly {
81
- readonly data: string;
82
- readonly source: {
83
- readonly type: "inline";
84
- } | {
85
- readonly type: "uri";
86
- readonly uri: string;
87
- };
88
- readonly mime: string;
89
- readonly name?: string | undefined;
90
- readonly description?: string | undefined;
91
- readonly mention?: {
92
- readonly start: number;
93
- readonly end: number;
94
- readonly text: string;
95
- } | undefined;
96
- }[] | undefined;
97
- readonly agents?: readonly {
98
- readonly name: string;
99
- readonly mention?: {
100
- readonly start: number;
101
- readonly end: number;
102
- readonly text: string;
103
- } | undefined;
104
- }[] | undefined;
105
- readonly skills?: readonly {
106
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
107
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
108
- readonly text?: string | undefined;
109
- readonly mention?: {
110
- readonly start: number;
111
- readonly end: number;
112
- readonly text: string;
113
- } | undefined;
114
- }[] | undefined;
115
- } | {
116
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
117
- readonly type: "synthetic";
118
78
  readonly time: {
119
79
  readonly created: import("effect/DateTime").Utc;
120
80
  };
121
- readonly text: string;
122
- readonly description?: string | undefined;
123
- readonly metadata?: {
124
- readonly [x: string]: unknown;
81
+ readonly type: "compaction";
82
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
83
+ readonly tokens?: {
84
+ readonly input: number;
85
+ readonly output: number;
86
+ readonly reasoning: number;
87
+ readonly cache: {
88
+ readonly read: number;
89
+ readonly write: number;
90
+ };
125
91
  } | undefined;
92
+ readonly status: "failed";
93
+ readonly reason: "auto" | "manual";
94
+ readonly error: {
95
+ readonly type: string;
96
+ readonly message: string;
97
+ readonly status?: number | undefined;
98
+ readonly response?: {
99
+ readonly body: string;
100
+ } | undefined;
101
+ };
126
102
  } | {
127
103
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
128
- readonly type: "system";
129
- readonly time: {
130
- readonly created: import("effect/DateTime").Utc;
131
- };
132
- readonly text: string;
133
- readonly description?: string | undefined;
134
104
  readonly metadata?: {
135
105
  readonly [x: string]: unknown;
136
106
  } | undefined;
137
- } | {
138
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
139
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
140
- readonly type: "skill";
141
107
  readonly time: {
142
108
  readonly created: import("effect/DateTime").Utc;
143
109
  };
144
- readonly text: string;
145
- readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
146
- readonly metadata?: {
147
- readonly [x: string]: unknown;
148
- } | undefined;
110
+ readonly type: "agent-switched";
111
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
112
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
149
113
  } | {
150
114
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
151
- readonly type: "shell";
152
- readonly status: "timeout" | "running" | "exited" | "killed";
153
- readonly command: string;
154
- readonly time: {
155
- readonly created: import("effect/DateTime").Utc;
156
- readonly completed?: import("effect/DateTime").Utc | undefined;
157
- };
158
- readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
159
115
  readonly metadata?: {
160
116
  readonly [x: string]: unknown;
161
117
  } | undefined;
162
- readonly output?: {
163
- readonly output: string;
164
- readonly cursor: number;
165
- readonly size: number;
166
- readonly truncated: boolean;
167
- } | undefined;
168
- readonly exit?: number | undefined;
169
- } | {
170
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
171
118
  readonly type: "assistant";
172
- readonly time: {
173
- readonly created: import("effect/DateTime").Utc;
174
- readonly completed?: import("effect/DateTime").Utc | undefined;
175
- readonly streamed?: import("effect/DateTime").Utc | undefined;
176
- };
119
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
177
120
  readonly model: {
178
121
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
179
122
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
180
123
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
181
124
  };
182
125
  readonly content: readonly ({
183
- readonly name: string;
184
- readonly id: string;
185
126
  readonly type: "tool";
127
+ readonly id: string;
128
+ readonly name: string;
129
+ readonly executed?: boolean | undefined;
130
+ readonly providerState?: {
131
+ readonly [x: string]: unknown;
132
+ } | undefined;
133
+ readonly providerResultState?: {
134
+ readonly [x: string]: unknown;
135
+ } | undefined;
186
136
  readonly state: {
187
137
  readonly status: "streaming";
188
138
  readonly input: string;
@@ -232,9 +182,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
232
182
  readonly body: string;
233
183
  } | undefined;
234
184
  };
235
- readonly metadata?: {
236
- readonly [x: string]: Schema.Json;
237
- } | undefined;
238
185
  readonly content?: readonly [{
239
186
  readonly type: "text";
240
187
  readonly text: string;
@@ -252,19 +199,15 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
252
199
  readonly mime: string;
253
200
  readonly name?: string | undefined;
254
201
  })[]] | undefined;
202
+ readonly metadata?: {
203
+ readonly [x: string]: Schema.Json;
204
+ } | undefined;
255
205
  };
256
206
  readonly time: {
257
207
  readonly created: import("effect/DateTime").Utc;
258
- readonly completed?: import("effect/DateTime").Utc | undefined;
259
208
  readonly ran?: import("effect/DateTime").Utc | undefined;
209
+ readonly completed?: import("effect/DateTime").Utc | undefined;
260
210
  };
261
- readonly executed?: boolean | undefined;
262
- readonly providerState?: {
263
- readonly [x: string]: unknown;
264
- } | undefined;
265
- readonly providerResultState?: {
266
- readonly [x: string]: unknown;
267
- } | undefined;
268
211
  } | {
269
212
  readonly type: "text";
270
213
  readonly text: string;
@@ -282,29 +225,17 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
282
225
  readonly completed?: import("effect/DateTime").Utc | undefined;
283
226
  } | undefined;
284
227
  })[];
285
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
286
- readonly metadata?: {
287
- readonly [x: string]: unknown;
288
- } | undefined;
289
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
290
- readonly error?: {
291
- readonly type: string;
292
- readonly message: string;
293
- readonly status?: number | undefined;
294
- readonly response?: {
295
- readonly body: string;
296
- } | undefined;
297
- } | undefined;
298
- readonly providerState?: {
299
- readonly [x: string]: unknown;
300
- } | undefined;
301
228
  readonly snapshot?: {
302
229
  readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
303
230
  readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
304
231
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
305
232
  } | undefined;
306
- readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
233
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
307
234
  readonly rawFinish?: string | undefined;
235
+ readonly providerState?: {
236
+ readonly [x: string]: unknown;
237
+ } | undefined;
238
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
308
239
  readonly tokens?: {
309
240
  readonly input: number;
310
241
  readonly output: number;
@@ -314,6 +245,14 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
314
245
  readonly write: number;
315
246
  };
316
247
  } | undefined;
248
+ readonly error?: {
249
+ readonly type: string;
250
+ readonly message: string;
251
+ readonly status?: number | undefined;
252
+ readonly response?: {
253
+ readonly body: string;
254
+ } | undefined;
255
+ } | undefined;
317
256
  readonly retry?: {
318
257
  readonly attempt: number;
319
258
  readonly at: import("effect/DateTime").Utc;
@@ -326,184 +265,143 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
326
265
  } | undefined;
327
266
  };
328
267
  } | undefined;
329
- } | {
330
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
331
- readonly type: "compaction";
332
- readonly status: "running";
333
268
  readonly time: {
334
269
  readonly created: import("effect/DateTime").Utc;
270
+ readonly streamed?: import("effect/DateTime").Utc | undefined;
271
+ readonly completed?: import("effect/DateTime").Utc | undefined;
335
272
  };
336
- readonly summary: string;
337
- readonly reason: "auto" | "manual";
338
- readonly recent: string;
273
+ } | {
274
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
339
275
  readonly metadata?: {
340
276
  readonly [x: string]: unknown;
341
277
  } | undefined;
342
- } | {
343
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
344
- readonly type: "compaction";
345
- readonly status: "completed";
346
278
  readonly time: {
347
279
  readonly created: import("effect/DateTime").Utc;
348
280
  };
349
- readonly summary: string;
350
- readonly reason: "auto" | "manual";
351
- readonly recent: string;
352
- readonly metadata?: {
353
- readonly [x: string]: unknown;
354
- } | undefined;
355
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
356
- readonly model?: {
357
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
358
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
359
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
360
- } | undefined;
361
- readonly providerState?: {
362
- readonly [x: string]: unknown;
363
- } | undefined;
364
- readonly tokens?: {
365
- readonly input: number;
366
- readonly output: number;
367
- readonly reasoning: number;
368
- readonly cache: {
369
- readonly read: number;
370
- readonly write: number;
371
- };
372
- } | undefined;
373
- readonly providerContext?: {
374
- readonly version: 1;
375
- readonly provenance: {
376
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
377
- readonly provider: string;
378
- readonly modelID: string;
379
- readonly route: string;
380
- readonly protocol: string;
381
- readonly endpoint: string;
382
- };
383
- readonly messages: Schema.Json;
384
- } | undefined;
385
- } | {
386
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
387
- readonly type: "compaction";
388
- readonly status: "failed";
389
- readonly time: {
390
- readonly created: import("effect/DateTime").Utc;
391
- };
392
- readonly error: {
281
+ readonly type: "idle";
282
+ readonly outcome: "failed" | "interrupted" | "succeeded";
283
+ readonly error?: {
393
284
  readonly type: string;
394
285
  readonly message: string;
395
286
  readonly status?: number | undefined;
396
287
  readonly response?: {
397
288
  readonly body: string;
398
289
  } | undefined;
399
- };
400
- readonly reason: "auto" | "manual";
401
- readonly metadata?: {
402
- readonly [x: string]: unknown;
403
- } | undefined;
404
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
405
- readonly tokens?: {
406
- readonly input: number;
407
- readonly output: number;
408
- readonly reasoning: number;
409
- readonly cache: {
410
- readonly read: number;
411
- readonly write: number;
412
- };
413
290
  } | undefined;
414
291
  } | {
415
292
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
416
- readonly type: "idle";
417
- readonly time: {
418
- readonly created: import("effect/DateTime").Utc;
419
- };
420
- readonly outcome: "failed" | "succeeded" | "interrupted";
421
293
  readonly metadata?: {
422
294
  readonly [x: string]: unknown;
423
295
  } | undefined;
424
- readonly error?: {
425
- readonly type: string;
426
- readonly message: string;
427
- readonly status?: number | undefined;
428
- readonly response?: {
429
- readonly body: string;
430
- } | undefined;
431
- } | undefined;
432
- }, MessageDecodeError, never>;
433
- export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
434
- $client: import("effect/sql/SqlClient").SqlClient;
435
- }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<({
436
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
437
- readonly type: "agent-switched";
438
296
  readonly time: {
439
297
  readonly created: import("effect/DateTime").Utc;
440
298
  };
441
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
442
- readonly metadata?: {
443
- readonly [x: string]: unknown;
299
+ readonly type: "location-switched";
300
+ readonly location: {
301
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
302
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
303
+ };
304
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
305
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
306
+ readonly previous?: {
307
+ readonly location: {
308
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
309
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
310
+ };
311
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
312
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
444
313
  } | undefined;
445
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
446
314
  } | {
447
315
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
448
- readonly type: "model-switched";
316
+ readonly metadata?: {
317
+ readonly [x: string]: unknown;
318
+ } | undefined;
449
319
  readonly time: {
450
320
  readonly created: import("effect/DateTime").Utc;
451
321
  };
322
+ readonly type: "model-switched";
452
323
  readonly model: {
453
324
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
454
325
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
455
326
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
456
327
  };
457
- readonly metadata?: {
458
- readonly [x: string]: unknown;
459
- } | undefined;
460
328
  readonly previous?: {
461
329
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
462
330
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
463
331
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
464
332
  } | undefined;
465
333
  } | {
466
- readonly location: {
467
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
468
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
469
- };
470
334
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
471
- readonly type: "location-switched";
335
+ readonly metadata?: {
336
+ readonly [x: string]: unknown;
337
+ } | undefined;
338
+ readonly type: "shell";
339
+ readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
340
+ readonly command: string;
341
+ readonly status: "exited" | "killed" | "running" | "timeout";
342
+ readonly exit?: number | undefined;
343
+ readonly output?: {
344
+ readonly output: string;
345
+ readonly cursor: number;
346
+ readonly size: number;
347
+ readonly truncated: boolean;
348
+ } | undefined;
472
349
  readonly time: {
473
350
  readonly created: import("effect/DateTime").Utc;
351
+ readonly completed?: import("effect/DateTime").Utc | undefined;
474
352
  };
353
+ } | {
354
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
475
355
  readonly metadata?: {
476
356
  readonly [x: string]: unknown;
477
357
  } | undefined;
478
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
479
- readonly previous?: {
480
- readonly location: {
481
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
482
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
483
- };
484
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
485
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
358
+ readonly time: {
359
+ readonly created: import("effect/DateTime").Utc;
360
+ };
361
+ readonly type: "skill";
362
+ readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
363
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
364
+ readonly text: string;
365
+ } | {
366
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
367
+ readonly metadata?: {
368
+ readonly [x: string]: unknown;
486
369
  } | undefined;
487
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
370
+ readonly time: {
371
+ readonly created: import("effect/DateTime").Utc;
372
+ };
373
+ readonly text: string;
374
+ readonly description?: string | undefined;
375
+ readonly type: "synthetic";
488
376
  } | {
489
377
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
490
- readonly type: "user";
378
+ readonly metadata?: {
379
+ readonly [x: string]: unknown;
380
+ } | undefined;
491
381
  readonly time: {
492
382
  readonly created: import("effect/DateTime").Utc;
493
383
  };
384
+ readonly type: "system";
494
385
  readonly text: string;
386
+ readonly description?: string | undefined;
387
+ } | {
388
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
495
389
  readonly metadata?: {
496
390
  readonly [x: string]: unknown;
497
391
  } | undefined;
392
+ readonly time: {
393
+ readonly created: import("effect/DateTime").Utc;
394
+ };
395
+ readonly text: string;
498
396
  readonly files?: readonly {
499
397
  readonly data: string;
398
+ readonly mime: string;
500
399
  readonly source: {
501
400
  readonly type: "inline";
502
401
  } | {
503
402
  readonly type: "uri";
504
403
  readonly uri: string;
505
404
  };
506
- readonly mime: string;
507
405
  readonly name?: string | undefined;
508
406
  readonly description?: string | undefined;
509
407
  readonly mention?: {
@@ -521,8 +419,8 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
521
419
  } | undefined;
522
420
  }[] | undefined;
523
421
  readonly skills?: readonly {
524
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
525
422
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
423
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
526
424
  readonly text?: string | undefined;
527
425
  readonly mention?: {
528
426
  readonly start: number;
@@ -530,77 +428,129 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
530
428
  readonly text: string;
531
429
  } | undefined;
532
430
  }[] | undefined;
533
- } | {
431
+ readonly type: "user";
432
+ }, MessageDecodeError, never>;
433
+ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
434
+ $client: import("effect/sql/SqlClient").SqlClient;
435
+ }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<({
534
436
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
535
- readonly type: "synthetic";
437
+ readonly metadata?: {
438
+ readonly [x: string]: unknown;
439
+ } | undefined;
536
440
  readonly time: {
537
441
  readonly created: import("effect/DateTime").Utc;
538
442
  };
539
- readonly text: string;
540
- readonly description?: string | undefined;
443
+ readonly type: "compaction";
444
+ readonly status: "running";
445
+ readonly reason: "auto" | "manual";
446
+ readonly summary: string;
447
+ readonly recent: string;
448
+ } | {
449
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
541
450
  readonly metadata?: {
542
451
  readonly [x: string]: unknown;
543
452
  } | undefined;
544
- } | {
545
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
546
- readonly type: "system";
547
453
  readonly time: {
548
454
  readonly created: import("effect/DateTime").Utc;
549
455
  };
550
- readonly text: string;
551
- readonly description?: string | undefined;
552
- readonly metadata?: {
456
+ readonly type: "compaction";
457
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
458
+ readonly tokens?: {
459
+ readonly input: number;
460
+ readonly output: number;
461
+ readonly reasoning: number;
462
+ readonly cache: {
463
+ readonly read: number;
464
+ readonly write: number;
465
+ };
466
+ } | undefined;
467
+ readonly status: "completed";
468
+ readonly reason: "auto" | "manual";
469
+ readonly model?: {
470
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
471
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
472
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
473
+ } | undefined;
474
+ readonly providerState?: {
553
475
  readonly [x: string]: unknown;
554
476
  } | undefined;
477
+ readonly summary: string;
478
+ readonly recent: string;
479
+ readonly providerContext?: {
480
+ readonly version: 1;
481
+ readonly provenance: {
482
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
483
+ readonly provider: string;
484
+ readonly modelID: string;
485
+ readonly route: string;
486
+ readonly protocol: string;
487
+ readonly endpoint: string;
488
+ };
489
+ readonly messages: Schema.Json;
490
+ } | undefined;
555
491
  } | {
556
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
557
492
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
558
- readonly type: "skill";
493
+ readonly metadata?: {
494
+ readonly [x: string]: unknown;
495
+ } | undefined;
559
496
  readonly time: {
560
497
  readonly created: import("effect/DateTime").Utc;
561
498
  };
562
- readonly text: string;
563
- readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
564
- readonly metadata?: {
565
- readonly [x: string]: unknown;
499
+ readonly type: "compaction";
500
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
501
+ readonly tokens?: {
502
+ readonly input: number;
503
+ readonly output: number;
504
+ readonly reasoning: number;
505
+ readonly cache: {
506
+ readonly read: number;
507
+ readonly write: number;
508
+ };
566
509
  } | undefined;
510
+ readonly status: "failed";
511
+ readonly reason: "auto" | "manual";
512
+ readonly error: {
513
+ readonly type: string;
514
+ readonly message: string;
515
+ readonly status?: number | undefined;
516
+ readonly response?: {
517
+ readonly body: string;
518
+ } | undefined;
519
+ };
567
520
  } | {
568
521
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
569
- readonly type: "shell";
570
- readonly status: "timeout" | "running" | "exited" | "killed";
571
- readonly command: string;
522
+ readonly metadata?: {
523
+ readonly [x: string]: unknown;
524
+ } | undefined;
572
525
  readonly time: {
573
526
  readonly created: import("effect/DateTime").Utc;
574
- readonly completed?: import("effect/DateTime").Utc | undefined;
575
527
  };
576
- readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
528
+ readonly type: "agent-switched";
529
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
530
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
531
+ } | {
532
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
577
533
  readonly metadata?: {
578
534
  readonly [x: string]: unknown;
579
535
  } | undefined;
580
- readonly output?: {
581
- readonly output: string;
582
- readonly cursor: number;
583
- readonly size: number;
584
- readonly truncated: boolean;
585
- } | undefined;
586
- readonly exit?: number | undefined;
587
- } | {
588
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
589
536
  readonly type: "assistant";
590
- readonly time: {
591
- readonly created: import("effect/DateTime").Utc;
592
- readonly completed?: import("effect/DateTime").Utc | undefined;
593
- readonly streamed?: import("effect/DateTime").Utc | undefined;
594
- };
537
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
595
538
  readonly model: {
596
539
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
597
540
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
598
541
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
599
542
  };
600
543
  readonly content: readonly ({
601
- readonly name: string;
602
- readonly id: string;
603
544
  readonly type: "tool";
545
+ readonly id: string;
546
+ readonly name: string;
547
+ readonly executed?: boolean | undefined;
548
+ readonly providerState?: {
549
+ readonly [x: string]: unknown;
550
+ } | undefined;
551
+ readonly providerResultState?: {
552
+ readonly [x: string]: unknown;
553
+ } | undefined;
604
554
  readonly state: {
605
555
  readonly status: "streaming";
606
556
  readonly input: string;
@@ -650,9 +600,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
650
600
  readonly body: string;
651
601
  } | undefined;
652
602
  };
653
- readonly metadata?: {
654
- readonly [x: string]: Schema.Json;
655
- } | undefined;
656
603
  readonly content?: readonly [{
657
604
  readonly type: "text";
658
605
  readonly text: string;
@@ -670,19 +617,15 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
670
617
  readonly mime: string;
671
618
  readonly name?: string | undefined;
672
619
  })[]] | undefined;
620
+ readonly metadata?: {
621
+ readonly [x: string]: Schema.Json;
622
+ } | undefined;
673
623
  };
674
624
  readonly time: {
675
625
  readonly created: import("effect/DateTime").Utc;
676
- readonly completed?: import("effect/DateTime").Utc | undefined;
677
626
  readonly ran?: import("effect/DateTime").Utc | undefined;
627
+ readonly completed?: import("effect/DateTime").Utc | undefined;
678
628
  };
679
- readonly executed?: boolean | undefined;
680
- readonly providerState?: {
681
- readonly [x: string]: unknown;
682
- } | undefined;
683
- readonly providerResultState?: {
684
- readonly [x: string]: unknown;
685
- } | undefined;
686
629
  } | {
687
630
  readonly type: "text";
688
631
  readonly text: string;
@@ -700,29 +643,17 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
700
643
  readonly completed?: import("effect/DateTime").Utc | undefined;
701
644
  } | undefined;
702
645
  })[];
703
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
704
- readonly metadata?: {
705
- readonly [x: string]: unknown;
706
- } | undefined;
707
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
708
- readonly error?: {
709
- readonly type: string;
710
- readonly message: string;
711
- readonly status?: number | undefined;
712
- readonly response?: {
713
- readonly body: string;
714
- } | undefined;
715
- } | undefined;
716
- readonly providerState?: {
717
- readonly [x: string]: unknown;
718
- } | undefined;
719
646
  readonly snapshot?: {
720
647
  readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
721
648
  readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
722
649
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
723
650
  } | undefined;
724
- readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
651
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
725
652
  readonly rawFinish?: string | undefined;
653
+ readonly providerState?: {
654
+ readonly [x: string]: unknown;
655
+ } | undefined;
656
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
726
657
  readonly tokens?: {
727
658
  readonly input: number;
728
659
  readonly output: number;
@@ -732,6 +663,14 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
732
663
  readonly write: number;
733
664
  };
734
665
  } | undefined;
666
+ readonly error?: {
667
+ readonly type: string;
668
+ readonly message: string;
669
+ readonly status?: number | undefined;
670
+ readonly response?: {
671
+ readonly body: string;
672
+ } | undefined;
673
+ } | undefined;
735
674
  readonly retry?: {
736
675
  readonly attempt: number;
737
676
  readonly at: import("effect/DateTime").Utc;
@@ -744,109 +683,170 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
744
683
  } | undefined;
745
684
  };
746
685
  } | undefined;
747
- } | {
748
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
749
- readonly type: "compaction";
750
- readonly status: "running";
751
686
  readonly time: {
752
687
  readonly created: import("effect/DateTime").Utc;
688
+ readonly streamed?: import("effect/DateTime").Utc | undefined;
689
+ readonly completed?: import("effect/DateTime").Utc | undefined;
753
690
  };
754
- readonly summary: string;
755
- readonly reason: "auto" | "manual";
756
- readonly recent: string;
691
+ } | {
692
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
757
693
  readonly metadata?: {
758
694
  readonly [x: string]: unknown;
759
695
  } | undefined;
696
+ readonly time: {
697
+ readonly created: import("effect/DateTime").Utc;
698
+ };
699
+ readonly type: "idle";
700
+ readonly outcome: "failed" | "interrupted" | "succeeded";
701
+ readonly error?: {
702
+ readonly type: string;
703
+ readonly message: string;
704
+ readonly status?: number | undefined;
705
+ readonly response?: {
706
+ readonly body: string;
707
+ } | undefined;
708
+ } | undefined;
760
709
  } | {
761
710
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
762
- readonly type: "compaction";
763
- readonly status: "completed";
711
+ readonly metadata?: {
712
+ readonly [x: string]: unknown;
713
+ } | undefined;
764
714
  readonly time: {
765
715
  readonly created: import("effect/DateTime").Utc;
766
716
  };
767
- readonly summary: string;
768
- readonly reason: "auto" | "manual";
769
- readonly recent: string;
717
+ readonly type: "location-switched";
718
+ readonly location: {
719
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
720
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
721
+ };
722
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
723
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
724
+ readonly previous?: {
725
+ readonly location: {
726
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
727
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
728
+ };
729
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
730
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
731
+ } | undefined;
732
+ } | {
733
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
770
734
  readonly metadata?: {
771
735
  readonly [x: string]: unknown;
772
736
  } | undefined;
773
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
774
- readonly model?: {
737
+ readonly time: {
738
+ readonly created: import("effect/DateTime").Utc;
739
+ };
740
+ readonly type: "model-switched";
741
+ readonly model: {
742
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
743
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
744
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
745
+ };
746
+ readonly previous?: {
775
747
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
776
748
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
777
749
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
778
750
  } | undefined;
779
- readonly providerState?: {
751
+ } | {
752
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
753
+ readonly metadata?: {
780
754
  readonly [x: string]: unknown;
781
755
  } | undefined;
782
- readonly tokens?: {
783
- readonly input: number;
784
- readonly output: number;
785
- readonly reasoning: number;
786
- readonly cache: {
787
- readonly read: number;
788
- readonly write: number;
789
- };
790
- } | undefined;
791
- readonly providerContext?: {
792
- readonly version: 1;
793
- readonly provenance: {
794
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
795
- readonly provider: string;
796
- readonly modelID: string;
797
- readonly route: string;
798
- readonly protocol: string;
799
- readonly endpoint: string;
800
- };
801
- readonly messages: Schema.Json;
756
+ readonly type: "shell";
757
+ readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
758
+ readonly command: string;
759
+ readonly status: "exited" | "killed" | "running" | "timeout";
760
+ readonly exit?: number | undefined;
761
+ readonly output?: {
762
+ readonly output: string;
763
+ readonly cursor: number;
764
+ readonly size: number;
765
+ readonly truncated: boolean;
802
766
  } | undefined;
767
+ readonly time: {
768
+ readonly created: import("effect/DateTime").Utc;
769
+ readonly completed?: import("effect/DateTime").Utc | undefined;
770
+ };
803
771
  } | {
804
772
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
805
- readonly type: "compaction";
806
- readonly status: "failed";
773
+ readonly metadata?: {
774
+ readonly [x: string]: unknown;
775
+ } | undefined;
807
776
  readonly time: {
808
777
  readonly created: import("effect/DateTime").Utc;
809
778
  };
810
- readonly error: {
811
- readonly type: string;
812
- readonly message: string;
813
- readonly status?: number | undefined;
814
- readonly response?: {
815
- readonly body: string;
816
- } | undefined;
817
- };
818
- readonly reason: "auto" | "manual";
779
+ readonly type: "skill";
780
+ readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
781
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
782
+ readonly text: string;
783
+ } | {
784
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
819
785
  readonly metadata?: {
820
786
  readonly [x: string]: unknown;
821
787
  } | undefined;
822
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
823
- readonly tokens?: {
824
- readonly input: number;
825
- readonly output: number;
826
- readonly reasoning: number;
827
- readonly cache: {
828
- readonly read: number;
829
- readonly write: number;
830
- };
831
- } | undefined;
788
+ readonly time: {
789
+ readonly created: import("effect/DateTime").Utc;
790
+ };
791
+ readonly text: string;
792
+ readonly description?: string | undefined;
793
+ readonly type: "synthetic";
832
794
  } | {
833
795
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
834
- readonly type: "idle";
796
+ readonly metadata?: {
797
+ readonly [x: string]: unknown;
798
+ } | undefined;
835
799
  readonly time: {
836
800
  readonly created: import("effect/DateTime").Utc;
837
801
  };
838
- readonly outcome: "failed" | "succeeded" | "interrupted";
802
+ readonly type: "system";
803
+ readonly text: string;
804
+ readonly description?: string | undefined;
805
+ } | {
806
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
839
807
  readonly metadata?: {
840
808
  readonly [x: string]: unknown;
841
809
  } | undefined;
842
- readonly error?: {
843
- readonly type: string;
844
- readonly message: string;
845
- readonly status?: number | undefined;
846
- readonly response?: {
847
- readonly body: string;
810
+ readonly time: {
811
+ readonly created: import("effect/DateTime").Utc;
812
+ };
813
+ readonly text: string;
814
+ readonly files?: readonly {
815
+ readonly data: string;
816
+ readonly mime: string;
817
+ readonly source: {
818
+ readonly type: "inline";
819
+ } | {
820
+ readonly type: "uri";
821
+ readonly uri: string;
822
+ };
823
+ readonly name?: string | undefined;
824
+ readonly description?: string | undefined;
825
+ readonly mention?: {
826
+ readonly start: number;
827
+ readonly end: number;
828
+ readonly text: string;
848
829
  } | undefined;
849
- } | undefined;
830
+ }[] | undefined;
831
+ readonly agents?: readonly {
832
+ readonly name: string;
833
+ readonly mention?: {
834
+ readonly start: number;
835
+ readonly end: number;
836
+ readonly text: string;
837
+ } | undefined;
838
+ }[] | undefined;
839
+ readonly skills?: readonly {
840
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
841
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
842
+ readonly text?: string | undefined;
843
+ readonly mention?: {
844
+ readonly start: number;
845
+ readonly end: number;
846
+ readonly text: string;
847
+ } | undefined;
848
+ }[] | undefined;
849
+ readonly type: "user";
850
850
  })[], MessageDecodeError, never>;
851
851
  export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
852
852
  $client: import("effect/sql/SqlClient").SqlClient;
@@ -856,173 +856,123 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
856
856
  seq: number;
857
857
  message: {
858
858
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
859
- readonly type: "agent-switched";
859
+ readonly metadata?: {
860
+ readonly [x: string]: unknown;
861
+ } | undefined;
860
862
  readonly time: {
861
863
  readonly created: import("effect/DateTime").Utc;
862
864
  };
863
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
865
+ readonly type: "compaction";
866
+ readonly status: "running";
867
+ readonly reason: "auto" | "manual";
868
+ readonly summary: string;
869
+ readonly recent: string;
870
+ } | {
871
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
864
872
  readonly metadata?: {
865
873
  readonly [x: string]: unknown;
866
874
  } | undefined;
867
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
868
- } | {
869
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
870
- readonly type: "model-switched";
871
875
  readonly time: {
872
876
  readonly created: import("effect/DateTime").Utc;
873
877
  };
874
- readonly model: {
875
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
876
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
877
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
878
- };
879
- readonly metadata?: {
880
- readonly [x: string]: unknown;
878
+ readonly type: "compaction";
879
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
880
+ readonly tokens?: {
881
+ readonly input: number;
882
+ readonly output: number;
883
+ readonly reasoning: number;
884
+ readonly cache: {
885
+ readonly read: number;
886
+ readonly write: number;
887
+ };
881
888
  } | undefined;
882
- readonly previous?: {
889
+ readonly status: "completed";
890
+ readonly reason: "auto" | "manual";
891
+ readonly model?: {
883
892
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
884
893
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
885
894
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
886
895
  } | undefined;
887
- } | {
888
- readonly location: {
889
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
890
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
891
- };
892
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
893
- readonly type: "location-switched";
894
- readonly time: {
895
- readonly created: import("effect/DateTime").Utc;
896
- };
897
- readonly metadata?: {
896
+ readonly providerState?: {
898
897
  readonly [x: string]: unknown;
899
898
  } | undefined;
900
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
901
- readonly previous?: {
902
- readonly location: {
903
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
904
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
899
+ readonly summary: string;
900
+ readonly recent: string;
901
+ readonly providerContext?: {
902
+ readonly version: 1;
903
+ readonly provenance: {
904
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
905
+ readonly provider: string;
906
+ readonly modelID: string;
907
+ readonly route: string;
908
+ readonly protocol: string;
909
+ readonly endpoint: string;
905
910
  };
906
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
907
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
911
+ readonly messages: Schema.Json;
908
912
  } | undefined;
909
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
910
913
  } | {
911
914
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
912
- readonly type: "user";
913
- readonly time: {
914
- readonly created: import("effect/DateTime").Utc;
915
- };
916
- readonly text: string;
917
915
  readonly metadata?: {
918
916
  readonly [x: string]: unknown;
919
917
  } | undefined;
920
- readonly files?: readonly {
921
- readonly data: string;
922
- readonly source: {
923
- readonly type: "inline";
924
- } | {
925
- readonly type: "uri";
926
- readonly uri: string;
927
- };
928
- readonly mime: string;
929
- readonly name?: string | undefined;
930
- readonly description?: string | undefined;
931
- readonly mention?: {
932
- readonly start: number;
933
- readonly end: number;
934
- readonly text: string;
935
- } | undefined;
936
- }[] | undefined;
937
- readonly agents?: readonly {
938
- readonly name: string;
939
- readonly mention?: {
940
- readonly start: number;
941
- readonly end: number;
942
- readonly text: string;
943
- } | undefined;
944
- }[] | undefined;
945
- readonly skills?: readonly {
946
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
947
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
948
- readonly text?: string | undefined;
949
- readonly mention?: {
950
- readonly start: number;
951
- readonly end: number;
952
- readonly text: string;
953
- } | undefined;
954
- }[] | undefined;
955
- } | {
956
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
957
- readonly type: "synthetic";
958
918
  readonly time: {
959
919
  readonly created: import("effect/DateTime").Utc;
960
920
  };
961
- readonly text: string;
962
- readonly description?: string | undefined;
963
- readonly metadata?: {
964
- readonly [x: string]: unknown;
921
+ readonly type: "compaction";
922
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
923
+ readonly tokens?: {
924
+ readonly input: number;
925
+ readonly output: number;
926
+ readonly reasoning: number;
927
+ readonly cache: {
928
+ readonly read: number;
929
+ readonly write: number;
930
+ };
965
931
  } | undefined;
932
+ readonly status: "failed";
933
+ readonly reason: "auto" | "manual";
934
+ readonly error: {
935
+ readonly type: string;
936
+ readonly message: string;
937
+ readonly status?: number | undefined;
938
+ readonly response?: {
939
+ readonly body: string;
940
+ } | undefined;
941
+ };
966
942
  } | {
967
943
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
968
- readonly type: "system";
969
- readonly time: {
970
- readonly created: import("effect/DateTime").Utc;
971
- };
972
- readonly text: string;
973
- readonly description?: string | undefined;
974
944
  readonly metadata?: {
975
945
  readonly [x: string]: unknown;
976
946
  } | undefined;
977
- } | {
978
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
979
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
980
- readonly type: "skill";
981
947
  readonly time: {
982
948
  readonly created: import("effect/DateTime").Utc;
983
949
  };
984
- readonly text: string;
985
- readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
986
- readonly metadata?: {
987
- readonly [x: string]: unknown;
988
- } | undefined;
950
+ readonly type: "agent-switched";
951
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
952
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
989
953
  } | {
990
954
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
991
- readonly type: "shell";
992
- readonly status: "timeout" | "running" | "exited" | "killed";
993
- readonly command: string;
994
- readonly time: {
995
- readonly created: import("effect/DateTime").Utc;
996
- readonly completed?: import("effect/DateTime").Utc | undefined;
997
- };
998
- readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
999
955
  readonly metadata?: {
1000
956
  readonly [x: string]: unknown;
1001
957
  } | undefined;
1002
- readonly output?: {
1003
- readonly output: string;
1004
- readonly cursor: number;
1005
- readonly size: number;
1006
- readonly truncated: boolean;
1007
- } | undefined;
1008
- readonly exit?: number | undefined;
1009
- } | {
1010
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1011
958
  readonly type: "assistant";
1012
- readonly time: {
1013
- readonly created: import("effect/DateTime").Utc;
1014
- readonly completed?: import("effect/DateTime").Utc | undefined;
1015
- readonly streamed?: import("effect/DateTime").Utc | undefined;
1016
- };
959
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1017
960
  readonly model: {
1018
961
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1019
962
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1020
963
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1021
964
  };
1022
965
  readonly content: readonly ({
1023
- readonly name: string;
1024
- readonly id: string;
1025
966
  readonly type: "tool";
967
+ readonly id: string;
968
+ readonly name: string;
969
+ readonly executed?: boolean | undefined;
970
+ readonly providerState?: {
971
+ readonly [x: string]: unknown;
972
+ } | undefined;
973
+ readonly providerResultState?: {
974
+ readonly [x: string]: unknown;
975
+ } | undefined;
1026
976
  readonly state: {
1027
977
  readonly status: "streaming";
1028
978
  readonly input: string;
@@ -1072,9 +1022,6 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1072
1022
  readonly body: string;
1073
1023
  } | undefined;
1074
1024
  };
1075
- readonly metadata?: {
1076
- readonly [x: string]: Schema.Json;
1077
- } | undefined;
1078
1025
  readonly content?: readonly [{
1079
1026
  readonly type: "text";
1080
1027
  readonly text: string;
@@ -1092,19 +1039,15 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1092
1039
  readonly mime: string;
1093
1040
  readonly name?: string | undefined;
1094
1041
  })[]] | undefined;
1042
+ readonly metadata?: {
1043
+ readonly [x: string]: Schema.Json;
1044
+ } | undefined;
1095
1045
  };
1096
1046
  readonly time: {
1097
1047
  readonly created: import("effect/DateTime").Utc;
1098
- readonly completed?: import("effect/DateTime").Utc | undefined;
1099
1048
  readonly ran?: import("effect/DateTime").Utc | undefined;
1049
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1100
1050
  };
1101
- readonly executed?: boolean | undefined;
1102
- readonly providerState?: {
1103
- readonly [x: string]: unknown;
1104
- } | undefined;
1105
- readonly providerResultState?: {
1106
- readonly [x: string]: unknown;
1107
- } | undefined;
1108
1051
  } | {
1109
1052
  readonly type: "text";
1110
1053
  readonly text: string;
@@ -1122,29 +1065,17 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1122
1065
  readonly completed?: import("effect/DateTime").Utc | undefined;
1123
1066
  } | undefined;
1124
1067
  })[];
1125
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1126
- readonly metadata?: {
1127
- readonly [x: string]: unknown;
1128
- } | undefined;
1129
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1130
- readonly error?: {
1131
- readonly type: string;
1132
- readonly message: string;
1133
- readonly status?: number | undefined;
1134
- readonly response?: {
1135
- readonly body: string;
1136
- } | undefined;
1137
- } | undefined;
1138
- readonly providerState?: {
1139
- readonly [x: string]: unknown;
1140
- } | undefined;
1141
1068
  readonly snapshot?: {
1142
1069
  readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1143
1070
  readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1144
1071
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1145
1072
  } | undefined;
1146
- readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
1073
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1147
1074
  readonly rawFinish?: string | undefined;
1075
+ readonly providerState?: {
1076
+ readonly [x: string]: unknown;
1077
+ } | undefined;
1078
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1148
1079
  readonly tokens?: {
1149
1080
  readonly input: number;
1150
1081
  readonly output: number;
@@ -1154,6 +1085,14 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1154
1085
  readonly write: number;
1155
1086
  };
1156
1087
  } | undefined;
1088
+ readonly error?: {
1089
+ readonly type: string;
1090
+ readonly message: string;
1091
+ readonly status?: number | undefined;
1092
+ readonly response?: {
1093
+ readonly body: string;
1094
+ } | undefined;
1095
+ } | undefined;
1157
1096
  readonly retry?: {
1158
1097
  readonly attempt: number;
1159
1098
  readonly at: import("effect/DateTime").Utc;
@@ -1166,109 +1105,170 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1166
1105
  } | undefined;
1167
1106
  };
1168
1107
  } | undefined;
1169
- } | {
1170
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1171
- readonly type: "compaction";
1172
- readonly status: "running";
1173
1108
  readonly time: {
1174
1109
  readonly created: import("effect/DateTime").Utc;
1110
+ readonly streamed?: import("effect/DateTime").Utc | undefined;
1111
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1175
1112
  };
1176
- readonly summary: string;
1177
- readonly reason: "auto" | "manual";
1178
- readonly recent: string;
1113
+ } | {
1114
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1179
1115
  readonly metadata?: {
1180
1116
  readonly [x: string]: unknown;
1181
1117
  } | undefined;
1182
- } | {
1183
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1184
- readonly type: "compaction";
1185
- readonly status: "completed";
1186
1118
  readonly time: {
1187
1119
  readonly created: import("effect/DateTime").Utc;
1188
1120
  };
1189
- readonly summary: string;
1190
- readonly reason: "auto" | "manual";
1191
- readonly recent: string;
1192
- readonly metadata?: {
1193
- readonly [x: string]: unknown;
1194
- } | undefined;
1195
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1196
- readonly model?: {
1197
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1198
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1199
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1121
+ readonly type: "idle";
1122
+ readonly outcome: "failed" | "interrupted" | "succeeded";
1123
+ readonly error?: {
1124
+ readonly type: string;
1125
+ readonly message: string;
1126
+ readonly status?: number | undefined;
1127
+ readonly response?: {
1128
+ readonly body: string;
1129
+ } | undefined;
1200
1130
  } | undefined;
1201
- readonly providerState?: {
1131
+ } | {
1132
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1133
+ readonly metadata?: {
1202
1134
  readonly [x: string]: unknown;
1203
1135
  } | undefined;
1204
- readonly tokens?: {
1205
- readonly input: number;
1206
- readonly output: number;
1207
- readonly reasoning: number;
1208
- readonly cache: {
1209
- readonly read: number;
1210
- readonly write: number;
1211
- };
1212
- } | undefined;
1213
- readonly providerContext?: {
1214
- readonly version: 1;
1215
- readonly provenance: {
1216
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1217
- readonly provider: string;
1218
- readonly modelID: string;
1219
- readonly route: string;
1220
- readonly protocol: string;
1221
- readonly endpoint: string;
1136
+ readonly time: {
1137
+ readonly created: import("effect/DateTime").Utc;
1138
+ };
1139
+ readonly type: "location-switched";
1140
+ readonly location: {
1141
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1142
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1143
+ };
1144
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1145
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1146
+ readonly previous?: {
1147
+ readonly location: {
1148
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1149
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1222
1150
  };
1223
- readonly messages: Schema.Json;
1151
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1152
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1224
1153
  } | undefined;
1225
1154
  } | {
1226
1155
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1227
- readonly type: "compaction";
1228
- readonly status: "failed";
1156
+ readonly metadata?: {
1157
+ readonly [x: string]: unknown;
1158
+ } | undefined;
1229
1159
  readonly time: {
1230
1160
  readonly created: import("effect/DateTime").Utc;
1231
1161
  };
1232
- readonly error: {
1233
- readonly type: string;
1234
- readonly message: string;
1235
- readonly status?: number | undefined;
1236
- readonly response?: {
1237
- readonly body: string;
1238
- } | undefined;
1162
+ readonly type: "model-switched";
1163
+ readonly model: {
1164
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1165
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1166
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1239
1167
  };
1240
- readonly reason: "auto" | "manual";
1168
+ readonly previous?: {
1169
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1170
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1171
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1172
+ } | undefined;
1173
+ } | {
1174
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1241
1175
  readonly metadata?: {
1242
1176
  readonly [x: string]: unknown;
1243
1177
  } | undefined;
1244
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1245
- readonly tokens?: {
1246
- readonly input: number;
1247
- readonly output: number;
1248
- readonly reasoning: number;
1249
- readonly cache: {
1250
- readonly read: number;
1251
- readonly write: number;
1252
- };
1178
+ readonly type: "shell";
1179
+ readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
1180
+ readonly command: string;
1181
+ readonly status: "exited" | "killed" | "running" | "timeout";
1182
+ readonly exit?: number | undefined;
1183
+ readonly output?: {
1184
+ readonly output: string;
1185
+ readonly cursor: number;
1186
+ readonly size: number;
1187
+ readonly truncated: boolean;
1253
1188
  } | undefined;
1189
+ readonly time: {
1190
+ readonly created: import("effect/DateTime").Utc;
1191
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1192
+ };
1254
1193
  } | {
1255
1194
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1256
- readonly type: "idle";
1195
+ readonly metadata?: {
1196
+ readonly [x: string]: unknown;
1197
+ } | undefined;
1257
1198
  readonly time: {
1258
1199
  readonly created: import("effect/DateTime").Utc;
1259
1200
  };
1260
- readonly outcome: "failed" | "succeeded" | "interrupted";
1201
+ readonly type: "skill";
1202
+ readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
1203
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1204
+ readonly text: string;
1205
+ } | {
1206
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1261
1207
  readonly metadata?: {
1262
1208
  readonly [x: string]: unknown;
1263
1209
  } | undefined;
1264
- readonly error?: {
1265
- readonly type: string;
1266
- readonly message: string;
1267
- readonly status?: number | undefined;
1268
- readonly response?: {
1269
- readonly body: string;
1270
- } | undefined;
1210
+ readonly time: {
1211
+ readonly created: import("effect/DateTime").Utc;
1212
+ };
1213
+ readonly text: string;
1214
+ readonly description?: string | undefined;
1215
+ readonly type: "synthetic";
1216
+ } | {
1217
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1218
+ readonly metadata?: {
1219
+ readonly [x: string]: unknown;
1271
1220
  } | undefined;
1221
+ readonly time: {
1222
+ readonly created: import("effect/DateTime").Utc;
1223
+ };
1224
+ readonly type: "system";
1225
+ readonly text: string;
1226
+ readonly description?: string | undefined;
1227
+ } | {
1228
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1229
+ readonly metadata?: {
1230
+ readonly [x: string]: unknown;
1231
+ } | undefined;
1232
+ readonly time: {
1233
+ readonly created: import("effect/DateTime").Utc;
1234
+ };
1235
+ readonly text: string;
1236
+ readonly files?: readonly {
1237
+ readonly data: string;
1238
+ readonly mime: string;
1239
+ readonly source: {
1240
+ readonly type: "inline";
1241
+ } | {
1242
+ readonly type: "uri";
1243
+ readonly uri: string;
1244
+ };
1245
+ readonly name?: string | undefined;
1246
+ readonly description?: string | undefined;
1247
+ readonly mention?: {
1248
+ readonly start: number;
1249
+ readonly end: number;
1250
+ readonly text: string;
1251
+ } | undefined;
1252
+ }[] | undefined;
1253
+ readonly agents?: readonly {
1254
+ readonly name: string;
1255
+ readonly mention?: {
1256
+ readonly start: number;
1257
+ readonly end: number;
1258
+ readonly text: string;
1259
+ } | undefined;
1260
+ }[] | undefined;
1261
+ readonly skills?: readonly {
1262
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1263
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1264
+ readonly text?: string | undefined;
1265
+ readonly mention?: {
1266
+ readonly start: number;
1267
+ readonly end: number;
1268
+ readonly text: string;
1269
+ } | undefined;
1270
+ }[] | undefined;
1271
+ readonly type: "user";
1272
1272
  };
1273
1273
  }[];
1274
1274
  }, never, never>;
@@ -1278,173 +1278,123 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1278
1278
  initial: string;
1279
1279
  messages: ({
1280
1280
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1281
- readonly type: "agent-switched";
1281
+ readonly metadata?: {
1282
+ readonly [x: string]: unknown;
1283
+ } | undefined;
1282
1284
  readonly time: {
1283
1285
  readonly created: import("effect/DateTime").Utc;
1284
1286
  };
1285
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1287
+ readonly type: "compaction";
1288
+ readonly status: "running";
1289
+ readonly reason: "auto" | "manual";
1290
+ readonly summary: string;
1291
+ readonly recent: string;
1292
+ } | {
1293
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1286
1294
  readonly metadata?: {
1287
1295
  readonly [x: string]: unknown;
1288
1296
  } | undefined;
1289
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
1290
- } | {
1291
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1292
- readonly type: "model-switched";
1293
1297
  readonly time: {
1294
1298
  readonly created: import("effect/DateTime").Utc;
1295
1299
  };
1296
- readonly model: {
1297
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1298
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1299
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1300
- };
1301
- readonly metadata?: {
1302
- readonly [x: string]: unknown;
1300
+ readonly type: "compaction";
1301
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1302
+ readonly tokens?: {
1303
+ readonly input: number;
1304
+ readonly output: number;
1305
+ readonly reasoning: number;
1306
+ readonly cache: {
1307
+ readonly read: number;
1308
+ readonly write: number;
1309
+ };
1303
1310
  } | undefined;
1304
- readonly previous?: {
1311
+ readonly status: "completed";
1312
+ readonly reason: "auto" | "manual";
1313
+ readonly model?: {
1305
1314
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1306
1315
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1307
1316
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1308
1317
  } | undefined;
1309
- } | {
1310
- readonly location: {
1311
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1312
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1313
- };
1314
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1315
- readonly type: "location-switched";
1316
- readonly time: {
1317
- readonly created: import("effect/DateTime").Utc;
1318
- };
1319
- readonly metadata?: {
1318
+ readonly providerState?: {
1320
1319
  readonly [x: string]: unknown;
1321
1320
  } | undefined;
1322
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1323
- readonly previous?: {
1324
- readonly location: {
1325
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1326
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1321
+ readonly summary: string;
1322
+ readonly recent: string;
1323
+ readonly providerContext?: {
1324
+ readonly version: 1;
1325
+ readonly provenance: {
1326
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1327
+ readonly provider: string;
1328
+ readonly modelID: string;
1329
+ readonly route: string;
1330
+ readonly protocol: string;
1331
+ readonly endpoint: string;
1327
1332
  };
1328
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1329
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1333
+ readonly messages: Schema.Json;
1330
1334
  } | undefined;
1331
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1332
1335
  } | {
1333
1336
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1334
- readonly type: "user";
1335
- readonly time: {
1336
- readonly created: import("effect/DateTime").Utc;
1337
- };
1338
- readonly text: string;
1339
1337
  readonly metadata?: {
1340
1338
  readonly [x: string]: unknown;
1341
1339
  } | undefined;
1342
- readonly files?: readonly {
1343
- readonly data: string;
1344
- readonly source: {
1345
- readonly type: "inline";
1346
- } | {
1347
- readonly type: "uri";
1348
- readonly uri: string;
1349
- };
1350
- readonly mime: string;
1351
- readonly name?: string | undefined;
1352
- readonly description?: string | undefined;
1353
- readonly mention?: {
1354
- readonly start: number;
1355
- readonly end: number;
1356
- readonly text: string;
1357
- } | undefined;
1358
- }[] | undefined;
1359
- readonly agents?: readonly {
1360
- readonly name: string;
1361
- readonly mention?: {
1362
- readonly start: number;
1363
- readonly end: number;
1364
- readonly text: string;
1365
- } | undefined;
1366
- }[] | undefined;
1367
- readonly skills?: readonly {
1368
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1369
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1370
- readonly text?: string | undefined;
1371
- readonly mention?: {
1372
- readonly start: number;
1373
- readonly end: number;
1374
- readonly text: string;
1375
- } | undefined;
1376
- }[] | undefined;
1377
- } | {
1378
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1379
- readonly type: "synthetic";
1380
1340
  readonly time: {
1381
1341
  readonly created: import("effect/DateTime").Utc;
1382
1342
  };
1383
- readonly text: string;
1384
- readonly description?: string | undefined;
1385
- readonly metadata?: {
1386
- readonly [x: string]: unknown;
1343
+ readonly type: "compaction";
1344
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1345
+ readonly tokens?: {
1346
+ readonly input: number;
1347
+ readonly output: number;
1348
+ readonly reasoning: number;
1349
+ readonly cache: {
1350
+ readonly read: number;
1351
+ readonly write: number;
1352
+ };
1387
1353
  } | undefined;
1354
+ readonly status: "failed";
1355
+ readonly reason: "auto" | "manual";
1356
+ readonly error: {
1357
+ readonly type: string;
1358
+ readonly message: string;
1359
+ readonly status?: number | undefined;
1360
+ readonly response?: {
1361
+ readonly body: string;
1362
+ } | undefined;
1363
+ };
1388
1364
  } | {
1389
1365
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1390
- readonly type: "system";
1391
- readonly time: {
1392
- readonly created: import("effect/DateTime").Utc;
1393
- };
1394
- readonly text: string;
1395
- readonly description?: string | undefined;
1396
1366
  readonly metadata?: {
1397
1367
  readonly [x: string]: unknown;
1398
1368
  } | undefined;
1399
- } | {
1400
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1401
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1402
- readonly type: "skill";
1403
1369
  readonly time: {
1404
1370
  readonly created: import("effect/DateTime").Utc;
1405
1371
  };
1406
- readonly text: string;
1407
- readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
1408
- readonly metadata?: {
1409
- readonly [x: string]: unknown;
1410
- } | undefined;
1372
+ readonly type: "agent-switched";
1373
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1374
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
1411
1375
  } | {
1412
1376
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1413
- readonly type: "shell";
1414
- readonly status: "timeout" | "running" | "exited" | "killed";
1415
- readonly command: string;
1416
- readonly time: {
1417
- readonly created: import("effect/DateTime").Utc;
1418
- readonly completed?: import("effect/DateTime").Utc | undefined;
1419
- };
1420
- readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
1421
1377
  readonly metadata?: {
1422
1378
  readonly [x: string]: unknown;
1423
1379
  } | undefined;
1424
- readonly output?: {
1425
- readonly output: string;
1426
- readonly cursor: number;
1427
- readonly size: number;
1428
- readonly truncated: boolean;
1429
- } | undefined;
1430
- readonly exit?: number | undefined;
1431
- } | {
1432
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1433
- readonly type: "assistant";
1434
- readonly time: {
1435
- readonly created: import("effect/DateTime").Utc;
1436
- readonly completed?: import("effect/DateTime").Utc | undefined;
1437
- readonly streamed?: import("effect/DateTime").Utc | undefined;
1438
- };
1380
+ readonly type: "assistant";
1381
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1439
1382
  readonly model: {
1440
1383
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1441
1384
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1442
1385
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1443
1386
  };
1444
1387
  readonly content: readonly ({
1445
- readonly name: string;
1446
- readonly id: string;
1447
1388
  readonly type: "tool";
1389
+ readonly id: string;
1390
+ readonly name: string;
1391
+ readonly executed?: boolean | undefined;
1392
+ readonly providerState?: {
1393
+ readonly [x: string]: unknown;
1394
+ } | undefined;
1395
+ readonly providerResultState?: {
1396
+ readonly [x: string]: unknown;
1397
+ } | undefined;
1448
1398
  readonly state: {
1449
1399
  readonly status: "streaming";
1450
1400
  readonly input: string;
@@ -1494,9 +1444,6 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1494
1444
  readonly body: string;
1495
1445
  } | undefined;
1496
1446
  };
1497
- readonly metadata?: {
1498
- readonly [x: string]: Schema.Json;
1499
- } | undefined;
1500
1447
  readonly content?: readonly [{
1501
1448
  readonly type: "text";
1502
1449
  readonly text: string;
@@ -1514,19 +1461,15 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1514
1461
  readonly mime: string;
1515
1462
  readonly name?: string | undefined;
1516
1463
  })[]] | undefined;
1464
+ readonly metadata?: {
1465
+ readonly [x: string]: Schema.Json;
1466
+ } | undefined;
1517
1467
  };
1518
1468
  readonly time: {
1519
1469
  readonly created: import("effect/DateTime").Utc;
1520
- readonly completed?: import("effect/DateTime").Utc | undefined;
1521
1470
  readonly ran?: import("effect/DateTime").Utc | undefined;
1471
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1522
1472
  };
1523
- readonly executed?: boolean | undefined;
1524
- readonly providerState?: {
1525
- readonly [x: string]: unknown;
1526
- } | undefined;
1527
- readonly providerResultState?: {
1528
- readonly [x: string]: unknown;
1529
- } | undefined;
1530
1473
  } | {
1531
1474
  readonly type: "text";
1532
1475
  readonly text: string;
@@ -1544,29 +1487,17 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1544
1487
  readonly completed?: import("effect/DateTime").Utc | undefined;
1545
1488
  } | undefined;
1546
1489
  })[];
1547
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1548
- readonly metadata?: {
1549
- readonly [x: string]: unknown;
1550
- } | undefined;
1551
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1552
- readonly error?: {
1553
- readonly type: string;
1554
- readonly message: string;
1555
- readonly status?: number | undefined;
1556
- readonly response?: {
1557
- readonly body: string;
1558
- } | undefined;
1559
- } | undefined;
1560
- readonly providerState?: {
1561
- readonly [x: string]: unknown;
1562
- } | undefined;
1563
1490
  readonly snapshot?: {
1564
1491
  readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1565
1492
  readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1566
1493
  readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1567
1494
  } | undefined;
1568
- readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
1495
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1569
1496
  readonly rawFinish?: string | undefined;
1497
+ readonly providerState?: {
1498
+ readonly [x: string]: unknown;
1499
+ } | undefined;
1500
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1570
1501
  readonly tokens?: {
1571
1502
  readonly input: number;
1572
1503
  readonly output: number;
@@ -1576,6 +1507,14 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1576
1507
  readonly write: number;
1577
1508
  };
1578
1509
  } | undefined;
1510
+ readonly error?: {
1511
+ readonly type: string;
1512
+ readonly message: string;
1513
+ readonly status?: number | undefined;
1514
+ readonly response?: {
1515
+ readonly body: string;
1516
+ } | undefined;
1517
+ } | undefined;
1579
1518
  readonly retry?: {
1580
1519
  readonly attempt: number;
1581
1520
  readonly at: import("effect/DateTime").Utc;
@@ -1588,109 +1527,170 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1588
1527
  } | undefined;
1589
1528
  };
1590
1529
  } | undefined;
1591
- } | {
1592
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1593
- readonly type: "compaction";
1594
- readonly status: "running";
1595
1530
  readonly time: {
1596
1531
  readonly created: import("effect/DateTime").Utc;
1532
+ readonly streamed?: import("effect/DateTime").Utc | undefined;
1533
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1597
1534
  };
1598
- readonly summary: string;
1599
- readonly reason: "auto" | "manual";
1600
- readonly recent: string;
1535
+ } | {
1536
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1601
1537
  readonly metadata?: {
1602
1538
  readonly [x: string]: unknown;
1603
1539
  } | undefined;
1540
+ readonly time: {
1541
+ readonly created: import("effect/DateTime").Utc;
1542
+ };
1543
+ readonly type: "idle";
1544
+ readonly outcome: "failed" | "interrupted" | "succeeded";
1545
+ readonly error?: {
1546
+ readonly type: string;
1547
+ readonly message: string;
1548
+ readonly status?: number | undefined;
1549
+ readonly response?: {
1550
+ readonly body: string;
1551
+ } | undefined;
1552
+ } | undefined;
1604
1553
  } | {
1605
1554
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1606
- readonly type: "compaction";
1607
- readonly status: "completed";
1555
+ readonly metadata?: {
1556
+ readonly [x: string]: unknown;
1557
+ } | undefined;
1608
1558
  readonly time: {
1609
1559
  readonly created: import("effect/DateTime").Utc;
1610
1560
  };
1611
- readonly summary: string;
1612
- readonly reason: "auto" | "manual";
1613
- readonly recent: string;
1561
+ readonly type: "location-switched";
1562
+ readonly location: {
1563
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1564
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1565
+ };
1566
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1567
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1568
+ readonly previous?: {
1569
+ readonly location: {
1570
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1571
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1572
+ };
1573
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1574
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1575
+ } | undefined;
1576
+ } | {
1577
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1614
1578
  readonly metadata?: {
1615
1579
  readonly [x: string]: unknown;
1616
1580
  } | undefined;
1617
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1618
- readonly model?: {
1581
+ readonly time: {
1582
+ readonly created: import("effect/DateTime").Utc;
1583
+ };
1584
+ readonly type: "model-switched";
1585
+ readonly model: {
1586
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1587
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1588
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1589
+ };
1590
+ readonly previous?: {
1619
1591
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1620
1592
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1621
1593
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1622
1594
  } | undefined;
1623
- readonly providerState?: {
1595
+ } | {
1596
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1597
+ readonly metadata?: {
1624
1598
  readonly [x: string]: unknown;
1625
1599
  } | undefined;
1626
- readonly tokens?: {
1627
- readonly input: number;
1628
- readonly output: number;
1629
- readonly reasoning: number;
1630
- readonly cache: {
1631
- readonly read: number;
1632
- readonly write: number;
1633
- };
1634
- } | undefined;
1635
- readonly providerContext?: {
1636
- readonly version: 1;
1637
- readonly provenance: {
1638
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1639
- readonly provider: string;
1640
- readonly modelID: string;
1641
- readonly route: string;
1642
- readonly protocol: string;
1643
- readonly endpoint: string;
1644
- };
1645
- readonly messages: Schema.Json;
1600
+ readonly type: "shell";
1601
+ readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
1602
+ readonly command: string;
1603
+ readonly status: "exited" | "killed" | "running" | "timeout";
1604
+ readonly exit?: number | undefined;
1605
+ readonly output?: {
1606
+ readonly output: string;
1607
+ readonly cursor: number;
1608
+ readonly size: number;
1609
+ readonly truncated: boolean;
1646
1610
  } | undefined;
1611
+ readonly time: {
1612
+ readonly created: import("effect/DateTime").Utc;
1613
+ readonly completed?: import("effect/DateTime").Utc | undefined;
1614
+ };
1647
1615
  } | {
1648
1616
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1649
- readonly type: "compaction";
1650
- readonly status: "failed";
1617
+ readonly metadata?: {
1618
+ readonly [x: string]: unknown;
1619
+ } | undefined;
1651
1620
  readonly time: {
1652
1621
  readonly created: import("effect/DateTime").Utc;
1653
1622
  };
1654
- readonly error: {
1655
- readonly type: string;
1656
- readonly message: string;
1657
- readonly status?: number | undefined;
1658
- readonly response?: {
1659
- readonly body: string;
1660
- } | undefined;
1661
- };
1662
- readonly reason: "auto" | "manual";
1623
+ readonly type: "skill";
1624
+ readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
1625
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1626
+ readonly text: string;
1627
+ } | {
1628
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1663
1629
  readonly metadata?: {
1664
1630
  readonly [x: string]: unknown;
1665
1631
  } | undefined;
1666
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1667
- readonly tokens?: {
1668
- readonly input: number;
1669
- readonly output: number;
1670
- readonly reasoning: number;
1671
- readonly cache: {
1672
- readonly read: number;
1673
- readonly write: number;
1674
- };
1675
- } | undefined;
1632
+ readonly time: {
1633
+ readonly created: import("effect/DateTime").Utc;
1634
+ };
1635
+ readonly text: string;
1636
+ readonly description?: string | undefined;
1637
+ readonly type: "synthetic";
1676
1638
  } | {
1677
1639
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1678
- readonly type: "idle";
1640
+ readonly metadata?: {
1641
+ readonly [x: string]: unknown;
1642
+ } | undefined;
1679
1643
  readonly time: {
1680
1644
  readonly created: import("effect/DateTime").Utc;
1681
1645
  };
1682
- readonly outcome: "failed" | "succeeded" | "interrupted";
1646
+ readonly type: "system";
1647
+ readonly text: string;
1648
+ readonly description?: string | undefined;
1649
+ } | {
1650
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1683
1651
  readonly metadata?: {
1684
1652
  readonly [x: string]: unknown;
1685
1653
  } | undefined;
1686
- readonly error?: {
1687
- readonly type: string;
1688
- readonly message: string;
1689
- readonly status?: number | undefined;
1690
- readonly response?: {
1691
- readonly body: string;
1654
+ readonly time: {
1655
+ readonly created: import("effect/DateTime").Utc;
1656
+ };
1657
+ readonly text: string;
1658
+ readonly files?: readonly {
1659
+ readonly data: string;
1660
+ readonly mime: string;
1661
+ readonly source: {
1662
+ readonly type: "inline";
1663
+ } | {
1664
+ readonly type: "uri";
1665
+ readonly uri: string;
1666
+ };
1667
+ readonly name?: string | undefined;
1668
+ readonly description?: string | undefined;
1669
+ readonly mention?: {
1670
+ readonly start: number;
1671
+ readonly end: number;
1672
+ readonly text: string;
1692
1673
  } | undefined;
1693
- } | undefined;
1674
+ }[] | undefined;
1675
+ readonly agents?: readonly {
1676
+ readonly name: string;
1677
+ readonly mention?: {
1678
+ readonly start: number;
1679
+ readonly end: number;
1680
+ readonly text: string;
1681
+ } | undefined;
1682
+ }[] | undefined;
1683
+ readonly skills?: readonly {
1684
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1685
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1686
+ readonly text?: string | undefined;
1687
+ readonly mention?: {
1688
+ readonly start: number;
1689
+ readonly end: number;
1690
+ readonly text: string;
1691
+ } | undefined;
1692
+ }[] | undefined;
1693
+ readonly type: "user";
1694
1694
  })[];
1695
1695
  instructionUpdate: string;
1696
1696
  }, Instructions.InitializationBlocked, never>;
@@ -1699,23 +1699,22 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
1699
1699
  $client: import("effect/sql/SqlClient").SqlClient;
1700
1700
  }, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<{
1701
1701
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1702
- readonly type: "user";
1702
+ readonly metadata?: {
1703
+ readonly [x: string]: unknown;
1704
+ } | undefined;
1703
1705
  readonly time: {
1704
1706
  readonly created: import("effect/DateTime").Utc;
1705
1707
  };
1706
1708
  readonly text: string;
1707
- readonly metadata?: {
1708
- readonly [x: string]: unknown;
1709
- } | undefined;
1710
1709
  readonly files?: readonly {
1711
1710
  readonly data: string;
1711
+ readonly mime: string;
1712
1712
  readonly source: {
1713
1713
  readonly type: "inline";
1714
1714
  } | {
1715
1715
  readonly type: "uri";
1716
1716
  readonly uri: string;
1717
1717
  };
1718
- readonly mime: string;
1719
1718
  readonly name?: string | undefined;
1720
1719
  readonly description?: string | undefined;
1721
1720
  readonly mention?: {
@@ -1733,8 +1732,8 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
1733
1732
  } | undefined;
1734
1733
  }[] | undefined;
1735
1734
  readonly skills?: readonly {
1736
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1737
1735
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1736
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1738
1737
  readonly text?: string | undefined;
1739
1738
  readonly mention?: {
1740
1739
  readonly start: number;
@@ -1742,5 +1741,6 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
1742
1741
  readonly text: string;
1743
1742
  } | undefined;
1744
1743
  }[] | undefined;
1744
+ readonly type: "user";
1745
1745
  } | undefined, never, never>;
1746
1746
  export * as SessionHistory from "./history.js";