@opencode/core 0.0.0-dev-21846 → 0.0.0-dev-21856

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 (821) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +82 -81
  3. package/dist/aisdk-native.js +95 -94
  4. package/dist/aisdk.js +101 -100
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +78 -77
  7. package/dist/chunks/{event-logger-nhaj4xxd.js → instruction-discovery-022n3vkv.js} +17 -17
  8. package/dist/chunks/{event-logger-qyq8h28g.js → instruction-discovery-033a0jkt.js} +3 -3
  9. package/dist/chunks/{event-logger-0frfmztw.js → instruction-discovery-0376xegq.js} +22 -22
  10. package/dist/chunks/{event-logger-0421tmwc.js → instruction-discovery-0421tmwc.js} +2 -2
  11. package/dist/chunks/{event-logger-cbet0x81.js → instruction-discovery-0fhwjkjb.js} +11 -11
  12. package/dist/chunks/{event-logger-6gtvrv8h.js → instruction-discovery-0kf7s4qn.js} +25 -25
  13. package/dist/chunks/{event-logger-n88dea7h.js → instruction-discovery-0pwrv1px.js} +12 -12
  14. package/dist/chunks/{event-logger-73mnqw5w.js → instruction-discovery-102edbh2.js} +36 -36
  15. package/dist/chunks/{event-logger-11hfp36g.js → instruction-discovery-11hfp36g.js} +1 -1
  16. package/dist/chunks/{event-logger-wgrc01r0.js → instruction-discovery-155gq7f2.js} +23 -23
  17. package/dist/chunks/{event-logger-xa8ket9v.js → instruction-discovery-1at1dets.js} +11 -11
  18. package/dist/chunks/{event-logger-hknhs10q.js → instruction-discovery-1hzrtcgn.js} +25 -25
  19. package/dist/chunks/instruction-discovery-1td35j7c.js +35 -0
  20. package/dist/chunks/{event-logger-1x2knyw4.js → instruction-discovery-1x2knyw4.js} +1 -1
  21. package/dist/chunks/{event-logger-zkgq49d1.js → instruction-discovery-1zj1p2f3.js} +4 -4
  22. package/dist/chunks/{event-logger-w05wnag4.js → instruction-discovery-21k2fbyg.js} +29 -29
  23. package/dist/chunks/{event-logger-4t3n8c2f.js → instruction-discovery-26fr4g6g.js} +13 -13
  24. package/dist/chunks/{event-logger-3t73xeyv.js → instruction-discovery-27bs79w9.js} +2 -2
  25. package/dist/chunks/{event-logger-1ep2p91f.js → instruction-discovery-27w5k9zf.js} +2 -2
  26. package/dist/chunks/{event-logger-5jh9tc43.js → instruction-discovery-2a026epw.js} +5 -5
  27. package/dist/chunks/{event-logger-6q890kb9.js → instruction-discovery-2a7mr38d.js} +19 -19
  28. package/dist/chunks/{event-logger-pkyv6v7h.js → instruction-discovery-2beny6pf.js} +24 -0
  29. package/dist/chunks/instruction-discovery-2hkmxex7.js +26 -0
  30. package/dist/chunks/{event-logger-vfk8nfwn.js → instruction-discovery-2n1gkq6v.js} +5 -5
  31. package/dist/chunks/{event-logger-3thv2gpw.js → instruction-discovery-2nm1jq1n.js} +9 -9
  32. package/dist/chunks/{event-logger-r9k9rvgq.js → instruction-discovery-2sdff0wq.js} +6 -6
  33. package/dist/chunks/{event-logger-x10gwh8q.js → instruction-discovery-2whzz79q.js} +12 -12
  34. package/dist/chunks/{event-logger-vnaj3jez.js → instruction-discovery-2xag3f1q.js} +5 -5
  35. package/dist/chunks/{event-logger-2z1j29yd.js → instruction-discovery-2z1j29yd.js} +1 -1
  36. package/dist/chunks/{event-logger-c3k6g37q.js → instruction-discovery-37p9cva5.js} +43 -43
  37. package/dist/chunks/{event-logger-vykevjvn.js → instruction-discovery-38adaqc0.js} +5 -5
  38. package/dist/chunks/{event-logger-rwc3n5ha.js → instruction-discovery-3b7gyab6.js} +17 -17
  39. package/dist/chunks/{event-logger-ayjs7tqn.js → instruction-discovery-3cbjf1nt.js} +2 -2
  40. package/dist/chunks/{event-logger-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{event-logger-wbjnsk7h.js → instruction-discovery-3kjng0cn.js} +16 -16
  42. package/dist/chunks/{event-logger-3nnrz6f6.js → instruction-discovery-3nnrz6f6.js} +1 -1
  43. package/dist/chunks/{event-logger-a7t3gcyz.js → instruction-discovery-3t0j5bvp.js} +11 -11
  44. package/dist/chunks/{event-logger-d6yv52bw.js → instruction-discovery-41t08jwg.js} +27 -27
  45. package/dist/chunks/{event-logger-95ym8g29.js → instruction-discovery-433qt1rv.js} +21 -21
  46. package/dist/chunks/{event-logger-km9x3h1g.js → instruction-discovery-48aqrqf8.js} +15 -15
  47. package/dist/chunks/{event-logger-fp18shrf.js → instruction-discovery-4an0jmbp.js} +84 -84
  48. package/dist/chunks/{event-logger-n0t68515.js → instruction-discovery-4d42373m.js} +32 -32
  49. package/dist/chunks/{event-logger-bebkengc.js → instruction-discovery-4e181ey7.js} +20 -20
  50. package/dist/chunks/{event-logger-4v008n1t.js → instruction-discovery-4v008n1t.js} +1 -1
  51. package/dist/chunks/{event-logger-4xvmh7wp.js → instruction-discovery-4xvmh7wp.js} +3 -3
  52. package/dist/chunks/{event-logger-p4y4xmr7.js → instruction-discovery-517ec74p.js} +13 -13
  53. package/dist/chunks/{event-logger-e0s8mshb.js → instruction-discovery-51d3zpkq.js} +3 -3
  54. package/dist/chunks/{event-logger-kdkvh6j6.js → instruction-discovery-5635a4dp.js} +23 -23
  55. package/dist/chunks/{event-logger-vc2f17jd.js → instruction-discovery-59z74nnh.js} +31 -31
  56. package/dist/chunks/{event-logger-88vxspsg.js → instruction-discovery-5hf5hqc3.js} +1 -1
  57. package/dist/chunks/{event-logger-5m9w47nd.js → instruction-discovery-5m9w47nd.js} +1 -1
  58. package/dist/chunks/{event-logger-prvq9z82.js → instruction-discovery-5nbjczge.js} +12 -12
  59. package/dist/chunks/{event-logger-rc3hda0w.js → instruction-discovery-5r5fyt21.js} +9 -9
  60. package/dist/chunks/{event-logger-ya77m8f0.js → instruction-discovery-5rwvrnjs.js} +3 -3
  61. package/dist/chunks/{event-logger-67wj9t48.js → instruction-discovery-5xpq01xn.js} +21 -21
  62. package/dist/chunks/{event-logger-v9ez2kgh.js → instruction-discovery-5zrxpy3q.js} +5 -5
  63. package/dist/chunks/{event-logger-ndhy1whp.js → instruction-discovery-60cg3xth.js} +19 -19
  64. package/dist/chunks/{event-logger-82b2vw9r.js → instruction-discovery-65d0br2h.js} +24 -24
  65. package/dist/chunks/instruction-discovery-69mbd1tk.js +517 -0
  66. package/dist/chunks/{event-logger-n0xxnytp.js → instruction-discovery-69qfa8nf.js} +8 -8
  67. package/dist/chunks/{event-logger-kb5kv1ag.js → instruction-discovery-6ek8yrc4.js} +38 -38
  68. package/dist/chunks/{event-logger-6esdw8yj.js → instruction-discovery-6esdw8yj.js} +1 -1
  69. package/dist/chunks/{event-logger-cq0qcwjh.js → instruction-discovery-6fe8n112.js} +35 -35
  70. package/dist/chunks/{event-logger-10e8q939.js → instruction-discovery-6mx77wfc.js} +30 -19
  71. package/dist/chunks/{event-logger-289gyrhz.js → instruction-discovery-6nb5amhk.js} +23 -23
  72. package/dist/chunks/{event-logger-6pjqjmy2.js → instruction-discovery-6pjqjmy2.js} +1 -1
  73. package/dist/chunks/{event-logger-zfpvddwp.js → instruction-discovery-6qcpqwk1.js} +14 -14
  74. package/dist/chunks/{event-logger-6s12ch92.js → instruction-discovery-6qx0tzjw.js} +50 -50
  75. package/dist/chunks/{event-logger-q5hva4fp.js → instruction-discovery-6tpjd6jw.js} +29 -29
  76. package/dist/chunks/{event-logger-h1k6s6xh.js → instruction-discovery-737zpaxg.js} +9 -9
  77. package/dist/chunks/{event-logger-9jbarwrs.js → instruction-discovery-76xn3a0a.js} +11 -11
  78. package/dist/chunks/{event-logger-vpn2vt2x.js → instruction-discovery-77va0czz.js} +21 -21
  79. package/dist/chunks/{event-logger-8qhh5jzz.js → instruction-discovery-787swm9c.js} +6 -6
  80. package/dist/chunks/{event-logger-8m9m34se.js → instruction-discovery-78apxg9s.js} +5 -5
  81. package/dist/chunks/{event-logger-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
  82. package/dist/chunks/{event-logger-5e45vhpf.js → instruction-discovery-7ezxcv5k.js} +12 -12
  83. package/dist/chunks/{event-logger-nkrzvdbv.js → instruction-discovery-7f47qj7q.js} +21 -21
  84. package/dist/chunks/{event-logger-saczpe3m.js → instruction-discovery-7kcfq5w1.js} +5 -5
  85. package/dist/chunks/{event-logger-cywaakpa.js → instruction-discovery-7qgp347e.js} +33 -33
  86. package/dist/chunks/{event-logger-drvbhkez.js → instruction-discovery-7sdtxe0n.js} +4 -4
  87. package/dist/chunks/{event-logger-7w2ypzdf.js → instruction-discovery-7w2ypzdf.js} +1 -1
  88. package/dist/chunks/{event-logger-heqx55qr.js → instruction-discovery-7wmap86a.js} +15 -15
  89. package/dist/chunks/{event-logger-4vj89p67.js → instruction-discovery-86h3z9z4.js} +21 -21
  90. package/dist/chunks/{event-logger-d4a3887h.js → instruction-discovery-8e3kbr0h.js} +8 -8
  91. package/dist/chunks/{event-logger-7vf34ser.js → instruction-discovery-8kgrggzd.js} +32 -32
  92. package/dist/chunks/{event-logger-py9h89e3.js → instruction-discovery-8maf53x6.js} +7 -7
  93. package/dist/chunks/{event-logger-8wtp7s3z.js → instruction-discovery-8wtp7s3z.js} +1 -1
  94. package/dist/chunks/{event-logger-91rj84md.js → instruction-discovery-91rj84md.js} +1 -1
  95. package/dist/chunks/{event-logger-9fdvgs2g.js → instruction-discovery-953mc539.js} +56 -56
  96. package/dist/chunks/{event-logger-ey6fb1hv.js → instruction-discovery-9cw5bcc9.js} +9 -9
  97. package/dist/chunks/{event-logger-9cx9sm2q.js → instruction-discovery-9cx9sm2q.js} +1 -1
  98. package/dist/chunks/{event-logger-9qmfk5wg.js → instruction-discovery-9e5xv20g.js} +77 -75
  99. package/dist/chunks/{event-logger-pes7pnh1.js → instruction-discovery-9fdyqjqc.js} +6 -6
  100. package/dist/chunks/{event-logger-ne5tn7h3.js → instruction-discovery-9kf0vz67.js} +9 -9
  101. package/dist/chunks/{event-logger-qq6q1b7k.js → instruction-discovery-9mhsf8fp.js} +51 -51
  102. package/dist/chunks/{event-logger-jn88007r.js → instruction-discovery-9qcg53ez.js} +9 -9
  103. package/dist/chunks/{event-logger-w7rnn6qz.js → instruction-discovery-9r4wwjnf.js} +40 -40
  104. package/dist/chunks/{event-logger-tqzn1cmm.js → instruction-discovery-9rfntryv.js} +4 -4
  105. package/dist/chunks/{event-logger-j0q0g6fk.js → instruction-discovery-9taragy3.js} +36 -36
  106. package/dist/chunks/{event-logger-t4tt5jry.js → instruction-discovery-a8n0dctw.js} +9 -9
  107. package/dist/chunks/{event-logger-b52jg5e6.js → instruction-discovery-a9hesjbw.js} +10 -10
  108. package/dist/chunks/{event-logger-5mmsp7tb.js → instruction-discovery-abqtacmz.js} +34 -34
  109. package/dist/chunks/{event-logger-yz0vd65a.js → instruction-discovery-ah33f0p8.js} +36 -36
  110. package/dist/chunks/{event-logger-034tev2y.js → instruction-discovery-aj7mw0zk.js} +2 -2
  111. package/dist/chunks/{event-logger-mvx17366.js → instruction-discovery-am41y27b.js} +11 -11
  112. package/dist/chunks/{event-logger-wmjzvx4b.js → instruction-discovery-an558sqv.js} +4 -4
  113. package/dist/chunks/{event-logger-b0mv4wxm.js → instruction-discovery-b0mv4wxm.js} +2 -2
  114. package/dist/chunks/{event-logger-5nnwax6m.js → instruction-discovery-b6vsg801.js} +5 -5
  115. package/dist/chunks/{event-logger-yfbt421w.js → instruction-discovery-b9mm38pq.js} +9 -9
  116. package/dist/chunks/{event-logger-61ennm6n.js → instruction-discovery-bjhzkqyk.js} +4 -4
  117. package/dist/chunks/{event-logger-4a7w6wv5.js → instruction-discovery-bsaevn98.js} +2 -2
  118. package/dist/chunks/{event-logger-aea1pvgg.js → instruction-discovery-bser62ex.js} +17 -17
  119. package/dist/chunks/{event-logger-4ancby33.js → instruction-discovery-c21pq9gz.js} +12 -12
  120. package/dist/chunks/{event-logger-25dytkwn.js → instruction-discovery-c4sx0a9c.js} +10 -10
  121. package/dist/chunks/{event-logger-0vqmvmc6.js → instruction-discovery-c67yf1m4.js} +6 -6
  122. package/dist/chunks/{event-logger-rhds2j4j.js → instruction-discovery-c8f2t8jt.js} +8 -8
  123. package/dist/chunks/{event-logger-t99841tz.js → instruction-discovery-c9faan9k.js} +23 -23
  124. package/dist/chunks/{event-logger-4px6nfc1.js → instruction-discovery-cs91e4mb.js} +20 -20
  125. package/dist/chunks/{event-logger-8xp4cmve.js → instruction-discovery-cwbk6kgm.js} +16 -16
  126. package/dist/chunks/{event-logger-ssfehs1z.js → instruction-discovery-d2887f8n.js} +4 -4
  127. package/dist/chunks/{event-logger-057356vk.js → instruction-discovery-d4eavzpr.js} +188 -188
  128. package/dist/chunks/{event-logger-d4v9tmah.js → instruction-discovery-d4v9tmah.js} +2 -2
  129. package/dist/chunks/{event-logger-jzsjkn6k.js → instruction-discovery-d5kckzmt.js} +30 -30
  130. package/dist/chunks/{event-logger-g4h361q5.js → instruction-discovery-d5x916ad.js} +10 -10
  131. package/dist/chunks/{event-logger-76x0exek.js → instruction-discovery-dcg2s03j.js} +7 -7
  132. package/dist/chunks/{event-logger-5k3987pr.js → instruction-discovery-dd1b5043.js} +4 -4
  133. package/dist/chunks/{event-logger-9qpt75py.js → instruction-discovery-dhh45h7t.js} +37 -37
  134. package/dist/chunks/{event-logger-e07q2w5p.js → instruction-discovery-e07q2w5p.js} +1 -1
  135. package/dist/chunks/{event-logger-ydtzcgmr.js → instruction-discovery-e4mwgxf5.js} +13 -13
  136. package/dist/chunks/{event-logger-e834z07m.js → instruction-discovery-e834z07m.js} +1 -1
  137. package/dist/chunks/{event-logger-nsz1fy74.js → instruction-discovery-ecr3e0ye.js} +25 -25
  138. package/dist/chunks/{event-logger-hrsgjvw9.js → instruction-discovery-ef03wrw5.js} +2 -2
  139. package/dist/chunks/{event-logger-4eds4t9s.js → instruction-discovery-ekaass4j.js} +12 -12
  140. package/dist/chunks/{event-logger-cceq80b1.js → instruction-discovery-ekvz5h58.js} +3 -3
  141. package/dist/chunks/{event-logger-tchdp43j.js → instruction-discovery-epdzwpp6.js} +15 -15
  142. package/dist/chunks/{event-logger-9s3pgezk.js → instruction-discovery-etbajbke.js} +8 -8
  143. package/dist/chunks/{event-logger-twza2t12.js → instruction-discovery-eynt3b8t.js} +23 -23
  144. package/dist/chunks/{event-logger-xbxs7aqn.js → instruction-discovery-ez0126qx.js} +18 -18
  145. package/dist/chunks/{event-logger-mcc3wv1g.js → instruction-discovery-f0we80a8.js} +23 -23
  146. package/dist/chunks/{event-logger-k7dc8jec.js → instruction-discovery-famkmqnc.js} +11 -11
  147. package/dist/chunks/{event-logger-6b1xptt4.js → instruction-discovery-fcxerzst.js} +46 -46
  148. package/dist/chunks/{event-logger-qw1z0fhm.js → instruction-discovery-fdx01m1w.js} +18 -18
  149. package/dist/chunks/{event-logger-fffv3p7h.js → instruction-discovery-fffv3p7h.js} +1 -1
  150. package/dist/chunks/{event-logger-tzzz904k.js → instruction-discovery-fhs2myvw.js} +4 -4
  151. package/dist/chunks/instruction-discovery-fkpq3x5p.js +36 -0
  152. package/dist/chunks/{event-logger-zg2q4vaq.js → instruction-discovery-fx0r4jew.js} +23 -23
  153. package/dist/chunks/{event-logger-g5h9c0rr.js → instruction-discovery-g5h9c0rr.js} +2 -2
  154. package/dist/chunks/{event-logger-b0r8qt9r.js → instruction-discovery-ge6wgs05.js} +3 -3
  155. package/dist/chunks/{event-logger-6bsqe872.js → instruction-discovery-gkj1ekva.js} +47 -47
  156. package/dist/chunks/{event-logger-634jkexk.js → instruction-discovery-gsf91c57.js} +31 -31
  157. package/dist/chunks/{event-logger-9n3wvgnx.js → instruction-discovery-gwedrbay.js} +9 -9
  158. package/dist/chunks/{event-logger-jy80eej6.js → instruction-discovery-gwn12nzh.js} +13 -13
  159. package/dist/chunks/{event-logger-5kgs3fk1.js → instruction-discovery-gx0r2313.js} +3 -3
  160. package/dist/chunks/{event-logger-r25en75t.js → instruction-discovery-h5wtt78n.js} +4 -4
  161. package/dist/chunks/{event-logger-pa2c4s26.js → instruction-discovery-hckw3xdg.js} +9 -9
  162. package/dist/chunks/{event-logger-a0qbyar6.js → instruction-discovery-hdfrs5mg.js} +5 -5
  163. package/dist/chunks/{event-logger-aeescm8g.js → instruction-discovery-hgv00ze4.js} +3 -3
  164. package/dist/chunks/{event-logger-fkawc9ah.js → instruction-discovery-hq4adp60.js} +39 -39
  165. package/dist/chunks/{event-logger-s8v15std.js → instruction-discovery-hs3h4apg.js} +21 -21
  166. package/dist/chunks/{event-logger-r637f8aj.js → instruction-discovery-htsj1ang.js} +51 -51
  167. package/dist/chunks/{event-logger-r3kssq7m.js → instruction-discovery-hvqa3p38.js} +32 -32
  168. package/dist/chunks/{event-logger-7br7hwej.js → instruction-discovery-hvtc9nr8.js} +33 -33
  169. package/dist/chunks/{event-logger-j113cymg.js → instruction-discovery-j113cymg.js} +1 -1
  170. package/dist/chunks/{event-logger-5frnvm0n.js → instruction-discovery-j18x68xg.js} +3 -3
  171. package/dist/chunks/{event-logger-2t440mqh.js → instruction-discovery-j3k0pknh.js} +22 -22
  172. package/dist/chunks/{event-logger-998yhzzq.js → instruction-discovery-j3t6aztb.js} +24 -5
  173. package/dist/chunks/{event-logger-tahej59z.js → instruction-discovery-j5djsqge.js} +18 -18
  174. package/dist/chunks/{event-logger-18g90bpv.js → instruction-discovery-jcqm84fr.js} +9 -9
  175. package/dist/chunks/{event-logger-kej7228r.js → instruction-discovery-jd0c8nhx.js} +24 -24
  176. package/dist/chunks/{event-logger-jneg3k74.js → instruction-discovery-jefw9j3y.js} +4 -4
  177. package/dist/chunks/{event-logger-h5qan5zz.js → instruction-discovery-jj9caqwr.js} +8 -8
  178. package/dist/chunks/{event-logger-njwdench.js → instruction-discovery-jt4crtef.js} +40 -40
  179. package/dist/chunks/{event-logger-f2ac5tmy.js → instruction-discovery-jy1vh16h.js} +31 -31
  180. package/dist/chunks/{event-logger-wa8k00xj.js → instruction-discovery-k3cw2t6y.js} +6 -6
  181. package/dist/chunks/{event-logger-64dywr2y.js → instruction-discovery-k6tkbc6y.js} +48 -43
  182. package/dist/chunks/{event-logger-k814nvkf.js → instruction-discovery-k814nvkf.js} +1 -1
  183. package/dist/chunks/{event-logger-a8rctht8.js → instruction-discovery-kddwcmfq.js} +3 -3
  184. package/dist/chunks/{event-logger-tdrww98m.js → instruction-discovery-kf4j52hm.js} +15 -15
  185. package/dist/chunks/{event-logger-kt3bjfbg.js → instruction-discovery-kt3bjfbg.js} +1 -1
  186. package/dist/chunks/{event-logger-69cyzmkx.js → instruction-discovery-kv8jnsbb.js} +32 -32
  187. package/dist/chunks/{event-logger-nv03640d.js → instruction-discovery-kwwzj9vh.js} +16 -16
  188. package/dist/chunks/{event-logger-wb47rx5c.js → instruction-discovery-kx4zfn7s.js} +8 -8
  189. package/dist/chunks/{event-logger-4c7f87vz.js → instruction-discovery-kxtse1qm.js} +27 -27
  190. package/dist/chunks/{event-logger-1s4n11fn.js → instruction-discovery-kyx40m29.js} +17 -17
  191. package/dist/chunks/{event-logger-y1adw4ng.js → instruction-discovery-kz5za7wj.js} +4 -4
  192. package/dist/chunks/{event-logger-m1714858.js → instruction-discovery-m1714858.js} +1 -1
  193. package/dist/chunks/{event-logger-45fbavme.js → instruction-discovery-m2m1xhfw.js} +16 -16
  194. package/dist/chunks/{event-logger-fzewdj3f.js → instruction-discovery-m442sk3e.js} +23 -23
  195. package/dist/chunks/{event-logger-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
  196. package/dist/chunks/{event-logger-maspj1v3.js → instruction-discovery-maspj1v3.js} +1 -1
  197. package/dist/chunks/instruction-discovery-me0dhgxs.js +18 -0
  198. package/dist/chunks/{event-logger-0gy3w5fa.js → instruction-discovery-mgn5vsv9.js} +18 -18
  199. package/dist/chunks/{event-logger-hfzr0j9k.js → instruction-discovery-mnp40s8y.js} +5 -5
  200. package/dist/chunks/{event-logger-5mf9fz97.js → instruction-discovery-mqpx0pnx.js} +20 -20
  201. package/dist/chunks/{event-logger-wnap8sgy.js → instruction-discovery-n01dw1sy.js} +19 -19
  202. package/dist/chunks/{event-logger-djjzzs3c.js → instruction-discovery-n66c6y3m.js} +6 -6
  203. package/dist/chunks/{event-logger-nah043kf.js → instruction-discovery-nah043kf.js} +1 -1
  204. package/dist/chunks/{event-logger-bm89pjym.js → instruction-discovery-nfkqfv71.js} +1 -1
  205. package/dist/chunks/{event-logger-5hjaztc9.js → instruction-discovery-ngxzfb1c.js} +16 -16
  206. package/dist/chunks/{event-logger-k4qk1kj8.js → instruction-discovery-nptsc9d0.js} +33 -33
  207. package/dist/chunks/{event-logger-y75300vz.js → instruction-discovery-nsm20kj3.js} +28 -28
  208. package/dist/chunks/{event-logger-p015t6z3.js → instruction-discovery-p015t6z3.js} +2 -2
  209. package/dist/chunks/{event-logger-wk2ypcvz.js → instruction-discovery-p2waepnj.js} +18 -18
  210. package/dist/chunks/{event-logger-8hvz6q16.js → instruction-discovery-pab4qvhq.js} +1 -1
  211. package/dist/chunks/{event-logger-d3172bjp.js → instruction-discovery-pdn4k0k5.js} +21 -21
  212. package/dist/chunks/{event-logger-sp5msjrd.js → instruction-discovery-pjgfana8.js} +52 -32
  213. package/dist/chunks/{event-logger-6413q3zk.js → instruction-discovery-pjwfm23k.js} +10 -10
  214. package/dist/chunks/{event-logger-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
  215. package/dist/chunks/{event-logger-w76xjer3.js → instruction-discovery-prd8gnhb.js} +4 -4
  216. package/dist/chunks/{event-logger-hcr59w2p.js → instruction-discovery-pvk4fgqk.js} +22 -22
  217. package/dist/chunks/instruction-discovery-q0vbkbrh.js +257 -0
  218. package/dist/chunks/{event-logger-0e4vqphb.js → instruction-discovery-q0xpyrzg.js} +27 -27
  219. package/dist/chunks/{event-logger-b61xbwj4.js → instruction-discovery-q2kr01gp.js} +28 -28
  220. package/dist/chunks/instruction-discovery-q665vn8y.js +107 -0
  221. package/dist/chunks/{event-logger-fa7r6dwy.js → instruction-discovery-qbhpcaah.js} +5 -5
  222. package/dist/chunks/{event-logger-v7whx8xf.js → instruction-discovery-qmy3sz40.js} +86 -86
  223. package/dist/chunks/{event-logger-gen5ckbt.js → instruction-discovery-qn73fphh.js} +16 -16
  224. package/dist/chunks/{event-logger-r0yr0wbs.js → instruction-discovery-r0yr0wbs.js} +1 -1
  225. package/dist/chunks/{event-logger-8k393grp.js → instruction-discovery-r14veqnk.js} +11 -11
  226. package/dist/chunks/{event-logger-40za9wsf.js → instruction-discovery-r41sfy63.js} +6 -6
  227. package/dist/chunks/{event-logger-r542h3bh.js → instruction-discovery-r542h3bh.js} +1 -1
  228. package/dist/chunks/{event-logger-jvwxvzq5.js → instruction-discovery-r9afhevh.js} +11 -11
  229. package/dist/chunks/{event-logger-rb9dy4dg.js → instruction-discovery-rb9dy4dg.js} +1 -1
  230. package/dist/chunks/{event-logger-t9trs46v.js → instruction-discovery-rfn832fb.js} +25 -25
  231. package/dist/chunks/{event-logger-gmws95sr.js → instruction-discovery-rgzr2fj7.js} +19 -19
  232. package/dist/chunks/{event-logger-rt5dr6hb.js → instruction-discovery-rt5dr6hb.js} +1 -1
  233. package/dist/chunks/{event-logger-q5fk7xbh.js → instruction-discovery-rvh17fyg.js} +11 -11
  234. package/dist/chunks/{event-logger-0pq4mv21.js → instruction-discovery-s0yhjk23.js} +13 -13
  235. package/dist/chunks/{event-logger-qae01say.js → instruction-discovery-s26v1fhy.js} +14 -14
  236. package/dist/chunks/{event-logger-tx91wa5k.js → instruction-discovery-s4f8ct6t.js} +4 -4
  237. package/dist/chunks/{event-logger-sa3fpqfw.js → instruction-discovery-sa3fpqfw.js} +2 -2
  238. package/dist/chunks/{event-logger-f94cdys9.js → instruction-discovery-sa5jcsah.js} +14 -14
  239. package/dist/chunks/{event-logger-a2e8nfn9.js → instruction-discovery-sc1ejmap.js} +24 -24
  240. package/dist/chunks/{event-logger-h0k93pkc.js → instruction-discovery-sdaxcxz4.js} +5 -5
  241. package/dist/chunks/{event-logger-ztc543bw.js → instruction-discovery-sgqd298e.js} +27 -27
  242. package/dist/chunks/{event-logger-sqjzf8x2.js → instruction-discovery-sqjzf8x2.js} +1 -1
  243. package/dist/chunks/{event-logger-7xg2jm5b.js → instruction-discovery-szcgc7h4.js} +5 -5
  244. package/dist/chunks/{event-logger-rne48mmd.js → instruction-discovery-t1113r93.js} +15 -15
  245. package/dist/chunks/{event-logger-qs988mat.js → instruction-discovery-t4dm2043.js} +4 -4
  246. package/dist/chunks/{event-logger-93j7xxk9.js → instruction-discovery-taxmasjd.js} +14 -14
  247. package/dist/chunks/{event-logger-tczq8hjw.js → instruction-discovery-tczq8hjw.js} +1 -1
  248. package/dist/chunks/{event-logger-hy8c1z76.js → instruction-discovery-tg1vr1qt.js} +8 -8
  249. package/dist/chunks/{event-logger-27jhhrve.js → instruction-discovery-tnrberjk.js} +11 -11
  250. package/dist/chunks/{event-logger-6z3vsaar.js → instruction-discovery-trr9ktnj.js} +43 -43
  251. package/dist/chunks/{event-logger-ncm0ncsp.js → instruction-discovery-twdwv45k.js} +5 -5
  252. package/dist/chunks/{event-logger-twv2r8f4.js → instruction-discovery-twv2r8f4.js} +2 -2
  253. package/dist/chunks/{event-logger-wr8mwnrf.js → instruction-discovery-txnzry6p.js} +14 -14
  254. package/dist/chunks/{event-logger-6zea4kyt.js → instruction-discovery-tyn3bpzc.js} +57 -53
  255. package/dist/chunks/{event-logger-v2r1d0zg.js → instruction-discovery-v2r1d0zg.js} +1 -1
  256. package/dist/chunks/{event-logger-vjd7290y.js → instruction-discovery-v4vn6xq1.js} +12 -12
  257. package/dist/chunks/{event-logger-8n09hdvs.js → instruction-discovery-v8vd993n.js} +8 -8
  258. package/dist/chunks/{event-logger-vd3b3yk9.js → instruction-discovery-vd3b3yk9.js} +1 -1
  259. package/dist/chunks/{event-logger-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
  260. package/dist/chunks/{event-logger-19n355zt.js → instruction-discovery-vqkw0r40.js} +17 -17
  261. package/dist/chunks/{event-logger-h893gfmr.js → instruction-discovery-vsbgdfbh.js} +16 -16
  262. package/dist/chunks/{event-logger-z8bwyq4z.js → instruction-discovery-vsnw9jjv.js} +41 -41
  263. package/dist/chunks/{event-logger-ts7mkfs9.js → instruction-discovery-vx3jgdek.js} +2 -2
  264. package/dist/chunks/{event-logger-fj25vymk.js → instruction-discovery-vxscg46q.js} +10 -10
  265. package/dist/chunks/{event-logger-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
  266. package/dist/chunks/{event-logger-76cb1hcw.js → instruction-discovery-w8qtt4th.js} +4 -4
  267. package/dist/chunks/{event-logger-wakvkjy4.js → instruction-discovery-wakvkjy4.js} +1 -1
  268. package/dist/chunks/{event-logger-5rcy7env.js → instruction-discovery-wcqnm0th.js} +11 -11
  269. package/dist/chunks/{event-logger-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
  270. package/dist/chunks/{event-logger-cmxajbhr.js → instruction-discovery-wp4rg1a9.js} +5 -5
  271. package/dist/chunks/{event-logger-qv7y9773.js → instruction-discovery-wqscedq8.js} +4 -4
  272. package/dist/chunks/{event-logger-wr3re1en.js → instruction-discovery-wr3re1en.js} +1 -1
  273. package/dist/chunks/{event-logger-bhfafqr2.js → instruction-discovery-wwr9hj1b.js} +15 -15
  274. package/dist/chunks/{event-logger-k75r746g.js → instruction-discovery-x849kq2w.js} +21 -21
  275. package/dist/chunks/{event-logger-ve27gyda.js → instruction-discovery-x9jz5q9y.js} +16 -16
  276. package/dist/chunks/{event-logger-sv6eng29.js → instruction-discovery-x9wwpfw9.js} +11 -11
  277. package/dist/chunks/{event-logger-bstexjd6.js → instruction-discovery-xd9cc171.js} +5 -5
  278. package/dist/chunks/{event-logger-7vqbbbdp.js → instruction-discovery-xkwgy4cp.js} +38 -38
  279. package/dist/chunks/{event-logger-hfgk9wzg.js → instruction-discovery-xnh55p1t.js} +7 -7
  280. package/dist/chunks/{event-logger-3medhgs0.js → instruction-discovery-xsyke37x.js} +4 -4
  281. package/dist/chunks/{event-logger-yebbjcr2.js → instruction-discovery-y3yaq8m0.js} +16 -16
  282. package/dist/chunks/{event-logger-g35dgk87.js → instruction-discovery-yb049qzj.js} +9 -9
  283. package/dist/chunks/{event-logger-yb20nhc3.js → instruction-discovery-yb20nhc3.js} +1 -1
  284. package/dist/chunks/{event-logger-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
  285. package/dist/chunks/{event-logger-0bvt8end.js → instruction-discovery-z2gcn5m8.js} +8 -8
  286. package/dist/chunks/{event-logger-z38nccrw.js → instruction-discovery-z38nccrw.js} +1 -1
  287. package/dist/chunks/{event-logger-bhy0keew.js → instruction-discovery-z4ee4kj5.js} +23 -23
  288. package/dist/chunks/{event-logger-pgdy3hk4.js → instruction-discovery-z9fvm9x8.js} +11 -11
  289. package/dist/chunks/{event-logger-egc7ez8f.js → instruction-discovery-zb7rk5jp.js} +12 -12
  290. package/dist/chunks/{event-logger-5haskeqf.js → instruction-discovery-zbje3vb8.js} +21 -21
  291. package/dist/chunks/{event-logger-h0ppebc3.js → instruction-discovery-zdn46m04.js} +8 -8
  292. package/dist/chunks/{event-logger-8164e27y.js → instruction-discovery-zgtcbref.js} +18 -18
  293. package/dist/chunks/{event-logger-zkg84ctx.js → instruction-discovery-zkg84ctx.js} +1 -1
  294. package/dist/chunks/{event-logger-p9f90sj6.js → instruction-discovery-zkwh13gz.js} +28 -28
  295. package/dist/chunks/{event-logger-fhqt5gkd.js → instruction-discovery-zxds5g97.js} +4 -4
  296. package/dist/codemode/catalog.js +1 -1
  297. package/dist/codemode/instructions.js +11 -11
  298. package/dist/codemode/tool.js +3 -3
  299. package/dist/codemode/web.js +1 -1
  300. package/dist/command.js +86 -85
  301. package/dist/config/discovery.js +90 -89
  302. package/dist/config/integration.js +1 -1
  303. package/dist/config/markdown.js +1 -1
  304. package/dist/config/normalize.js +105 -104
  305. package/dist/config/plugin/agent.js +119 -118
  306. package/dist/config/plugin/command.js +217 -214
  307. package/dist/config/plugin/compaction.js +160 -157
  308. package/dist/config/plugin/compatibility.js +140 -137
  309. package/dist/config/plugin/entry-observer.js +1 -1
  310. package/dist/config/plugin/formatter.js +120 -119
  311. package/dist/config/plugin/image.js +119 -118
  312. package/dist/config/plugin/instruction.js +119 -118
  313. package/dist/config/plugin/location-watcher.js +119 -118
  314. package/dist/config/plugin/mcp.js +126 -125
  315. package/dist/config/plugin/policy.js +121 -120
  316. package/dist/config/plugin/provider.js +120 -119
  317. package/dist/config/plugin/reference.js +121 -120
  318. package/dist/config/plugin/shell.js +121 -120
  319. package/dist/config/plugin/skill-file.js +110 -107
  320. package/dist/config/plugin/skill-scan.js +1 -1
  321. package/dist/config/plugin/skill.js +143 -140
  322. package/dist/config/plugin/snapshot.js +119 -118
  323. package/dist/config/plugin/source.js +116 -115
  324. package/dist/config/plugin/tool-output.js +120 -119
  325. package/dist/config/plugin/websearch.js +120 -119
  326. package/dist/config/plugin/worktree.js +121 -120
  327. package/dist/config/variable.js +1 -1
  328. package/dist/config/watch.js +1 -1
  329. package/dist/config.js +122 -121
  330. package/dist/console-access.js +1 -1
  331. package/dist/credential/sql.js +2 -2
  332. package/dist/credential.js +88 -87
  333. package/dist/database/database.js +71 -70
  334. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  335. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  336. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  337. package/dist/database/drizzle/index.js +13 -13
  338. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  341. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  344. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  345. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  346. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  347. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  348. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  349. package/dist/database/drizzle.js +14 -14
  350. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  351. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  352. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  353. package/dist/database/migration/20260225215848_workspace.js +1 -1
  354. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  355. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  356. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  357. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  358. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  359. package/dist/database/migration/20260323234822_events.js +1 -1
  360. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  361. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  362. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  363. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  364. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  365. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  366. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  367. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  368. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  369. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  370. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  371. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  372. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  373. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  374. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  375. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  376. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  377. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  378. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  379. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  380. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  381. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  382. package/dist/database/migration/20260611035744_credential.js +1 -1
  383. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  384. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  385. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  386. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  387. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  388. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  389. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  390. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  391. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  392. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  393. package/dist/database/migration/20260812213948_worktree.js +1 -1
  394. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  395. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  396. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  397. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  398. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  399. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  400. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  401. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  402. package/dist/database/migration/20261025123711_blob.js +6 -0
  403. package/dist/database/migration.gen.js +54 -53
  404. package/dist/database/migration.js +56 -55
  405. package/dist/database/path.js +2 -2
  406. package/dist/database/schema.gen.js +1 -1
  407. package/dist/database/schema.sql.js +1 -1
  408. package/dist/database/sqlite.bun.js +1 -1
  409. package/dist/database/sqlite.js +1 -1
  410. package/dist/database/sqlite.node.js +1 -1
  411. package/dist/database/sqlite.workerd.js +1 -1
  412. package/dist/database/v1-migration.bun.js +93 -92
  413. package/dist/database/v1-migration.js +1 -1
  414. package/dist/effect/app-node-builder.js +379 -376
  415. package/dist/effect/app-node-platform.js +2 -2
  416. package/dist/effect/keyed-mutex.js +1 -1
  417. package/dist/effect/websocket-constructor.js +1 -1
  418. package/dist/environment/driver.js +1 -1
  419. package/dist/environment/environment.js +99 -98
  420. package/dist/environment/exec-defaults.js +2 -2
  421. package/dist/environment/files.js +1 -1
  422. package/dist/environment/index.js +99 -98
  423. package/dist/environment/local.js +2 -2
  424. package/dist/environment/memory.js +2 -2
  425. package/dist/environment/unavailable.js +1 -1
  426. package/dist/event/sql.js +1 -1
  427. package/dist/event-logger.js +79 -78
  428. package/dist/file-access.js +112 -109
  429. package/dist/file-mutation.js +100 -99
  430. package/dist/file-retention.js +1 -1
  431. package/dist/filesystem/fff.bun.js +2 -2
  432. package/dist/filesystem/fff.js +1 -1
  433. package/dist/filesystem/fff.node.js +2 -2
  434. package/dist/filesystem/fff.workerd.js +2 -2
  435. package/dist/filesystem/location-watcher-policy.js +2 -2
  436. package/dist/filesystem/location-watcher.js +226 -223
  437. package/dist/filesystem/protected.js +3 -3
  438. package/dist/filesystem/search.js +105 -104
  439. package/dist/filesystem/watcher-binding.js +1 -1
  440. package/dist/filesystem/watcher.js +9 -9
  441. package/dist/filesystem.js +108 -107
  442. package/dist/form.js +83 -82
  443. package/dist/formatter/builtins.js +4 -4
  444. package/dist/formatter.js +93 -92
  445. package/dist/generate.js +111 -110
  446. package/dist/git.js +11 -11
  447. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  448. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  449. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  450. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  451. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  452. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  453. package/dist/github-copilot/copilot-provider.js +17 -17
  454. package/dist/github-copilot/models.js +97 -96
  455. package/dist/github-copilot/openai-compatible-error.js +1 -1
  456. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  457. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  458. package/dist/github-copilot/responses/openai-error.js +1 -1
  459. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  460. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  461. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  462. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  463. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  464. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  465. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  466. package/dist/image/photon.js +2 -2
  467. package/dist/image.js +6 -6
  468. package/dist/instance/service.js +5 -5
  469. package/dist/instance.js +370 -367
  470. package/dist/instruction-discovery.js +89 -88
  471. package/dist/instructions/builtins.js +93 -92
  472. package/dist/instructions/index.js +3 -3
  473. package/dist/integration/connection.js +3 -3
  474. package/dist/integration.js +90 -89
  475. package/dist/job.js +83 -82
  476. package/dist/kv/sql.js +2 -2
  477. package/dist/kv.js +78 -77
  478. package/dist/location-activity.js +163 -160
  479. package/dist/location-lifecycle.js +115 -112
  480. package/dist/location-service-map.js +92 -91
  481. package/dist/location-services.js +367 -364
  482. package/dist/location.js +93 -92
  483. package/dist/managed-policy.js +7 -7
  484. package/dist/mcp/client.js +97 -96
  485. package/dist/mcp/index.js +115 -114
  486. package/dist/mcp/instructions.js +146 -143
  487. package/dist/mcp/oauth.js +83 -82
  488. package/dist/mcp/socket-client.js +1 -1
  489. package/dist/mcp/stdio.js +96 -95
  490. package/dist/mime.js +1 -1
  491. package/dist/modal/models.js +97 -96
  492. package/dist/model-resolver.js +105 -104
  493. package/dist/model-retry.js +1 -1
  494. package/dist/model.js +108 -107
  495. package/dist/models-dev.js +113 -112
  496. package/dist/oauth/page.js +1 -1
  497. package/dist/permission/saved.js +85 -84
  498. package/dist/permission/sql.js +5 -5
  499. package/dist/permission.js +115 -112
  500. package/dist/persistent-pty/binary.bun.js +1 -1
  501. package/dist/persistent-pty/daemon.js +1 -1
  502. package/dist/persistent-pty/index.js +93 -92
  503. package/dist/persistent-pty/pty-binding.js +1 -1
  504. package/dist/persistent-pty.js +80 -79
  505. package/dist/plugin/agent.js +79 -78
  506. package/dist/plugin/command.js +106 -105
  507. package/dist/plugin/hooks.js +5 -5
  508. package/dist/plugin/host.js +223 -220
  509. package/dist/plugin/identity.js +5 -5
  510. package/dist/plugin/instance.js +5 -5
  511. package/dist/plugin/internal.js +340 -337
  512. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  513. package/dist/plugin/models-dev.js +102 -101
  514. package/dist/plugin/module.js +121 -120
  515. package/dist/plugin/optimize.js +2 -2
  516. package/dist/plugin/plan.js +110 -107
  517. package/dist/plugin/promise.js +1 -1
  518. package/dist/plugin/provider/amazon-bedrock.js +96 -95
  519. package/dist/plugin/provider/azure.js +119 -118
  520. package/dist/plugin/provider/cerebras.js +1 -1
  521. package/dist/plugin/provider/chatgpt.js +119 -118
  522. package/dist/plugin/provider/cloudflare-ai-gateway.js +116 -115
  523. package/dist/plugin/provider/cloudflare-workers-ai.js +116 -115
  524. package/dist/plugin/provider/cohere.js +2 -2
  525. package/dist/plugin/provider/configured.js +115 -114
  526. package/dist/plugin/provider/databricks.js +1 -1
  527. package/dist/plugin/provider/digitalocean.js +99 -98
  528. package/dist/plugin/provider/dynamic.js +2 -2
  529. package/dist/plugin/provider/factory.js +1 -1
  530. package/dist/plugin/provider/github-copilot.js +101 -100
  531. package/dist/plugin/provider/gitlab.js +99 -98
  532. package/dist/plugin/provider/google-vertex.js +116 -115
  533. package/dist/plugin/provider/kilo.js +1 -1
  534. package/dist/plugin/provider/llmgateway.js +83 -82
  535. package/dist/plugin/provider/lmstudio.js +126 -125
  536. package/dist/plugin/provider/local.js +125 -124
  537. package/dist/plugin/provider/modal.js +98 -97
  538. package/dist/plugin/provider/neon.js +1 -1
  539. package/dist/plugin/provider/nvidia.js +1 -1
  540. package/dist/plugin/provider/ollama.js +128 -127
  541. package/dist/plugin/provider/openai-context-caps.js +96 -95
  542. package/dist/plugin/provider/openai.js +119 -118
  543. package/dist/plugin/provider/opencode-legacy.js +104 -103
  544. package/dist/plugin/provider/opencode.js +125 -124
  545. package/dist/plugin/provider/openrouter.js +97 -96
  546. package/dist/plugin/provider/perplexity.js +2 -2
  547. package/dist/plugin/provider/poe.js +84 -83
  548. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  549. package/dist/plugin/provider/sap-ai-core.js +97 -96
  550. package/dist/plugin/provider/sdk-factory.js +1 -1
  551. package/dist/plugin/provider/snowflake-cortex.js +118 -117
  552. package/dist/plugin/provider/vercel.js +96 -95
  553. package/dist/plugin/provider/vllm.js +128 -127
  554. package/dist/plugin/provider/xai.js +97 -96
  555. package/dist/plugin/provider/zenmux.js +1 -1
  556. package/dist/plugin/provider.js +176 -175
  557. package/dist/plugin/sdk.js +75 -74
  558. package/dist/plugin/service.js +3 -3
  559. package/dist/plugin/skill.js +139 -136
  560. package/dist/plugin/source-directory.js +1 -1
  561. package/dist/plugin/supervisor.js +355 -352
  562. package/dist/plugin/tool-input-repair.js +4 -4
  563. package/dist/plugin/update.js +6 -6
  564. package/dist/plugin/vcs/git.js +92 -91
  565. package/dist/plugin/vcs/hg.js +92 -91
  566. package/dist/plugin/verbosity.js +99 -98
  567. package/dist/plugin/warming.js +117 -116
  568. package/dist/plugin/websearch/exa.js +7 -7
  569. package/dist/plugin/websearch/firecrawl.js +8 -8
  570. package/dist/plugin/websearch/index.js +9 -9
  571. package/dist/plugin/websearch/mcp.js +4 -4
  572. package/dist/plugin/websearch/parallel.js +8 -8
  573. package/dist/plugin/websearch/tavily.js +6 -6
  574. package/dist/plugin/websearch/tinyfish.js +6 -6
  575. package/dist/plugin.js +232 -229
  576. package/dist/project/schema.js +4 -4
  577. package/dist/project/sql.js +4 -4
  578. package/dist/project.js +90 -89
  579. package/dist/provider.js +101 -100
  580. package/dist/pty/protocol.js +1 -1
  581. package/dist/pty/ticket.js +1 -1
  582. package/dist/pty.js +104 -103
  583. package/dist/reference/instructions.js +95 -94
  584. package/dist/reference.js +97 -96
  585. package/dist/repository-cache.js +87 -86
  586. package/dist/repository.js +3 -3
  587. package/dist/ripgrep/binary.js +2 -2
  588. package/dist/ripgrep.js +103 -102
  589. package/dist/rpc.js +92 -91
  590. package/dist/schema.js +1 -1
  591. package/dist/session/affinity.js +1 -1
  592. package/dist/session/blob.js +17 -0
  593. package/dist/session/command.js +79 -78
  594. package/dist/session/compaction.js +144 -141
  595. package/dist/session/context.js +170 -167
  596. package/dist/session/diff.js +94 -93
  597. package/dist/session/environment.js +5 -5
  598. package/dist/session/error.js +3 -3
  599. package/dist/session/event.js +1 -1
  600. package/dist/session/execution/restart.js +228 -225
  601. package/dist/session/execution.js +136 -133
  602. package/dist/session/generate.js +172 -169
  603. package/dist/session/history.js +17 -13
  604. package/dist/session/inbox.js +100 -97
  605. package/dist/session/info.js +3 -3
  606. package/dist/session/instruction-entry.js +84 -83
  607. package/dist/session/instruction-state.js +8 -8
  608. package/dist/session/instructions.js +105 -102
  609. package/dist/session/message-updater.js +4 -4
  610. package/dist/session/message.js +1 -1
  611. package/dist/session/model-request.js +128 -125
  612. package/dist/session/model-transport.js +9 -9
  613. package/dist/session/move.js +138 -135
  614. package/dist/session/projector.js +96 -93
  615. package/dist/session/prompt.js +113 -110
  616. package/dist/session/recent-text.js +1 -1
  617. package/dist/session/revert.js +102 -99
  618. package/dist/session/run-coordinator.js +3 -3
  619. package/dist/session/runner/index.js +3 -3
  620. package/dist/session/runner/llm.js +236 -233
  621. package/dist/session/runner/max-steps.js +1 -1
  622. package/dist/session/runner/model.js +106 -105
  623. package/dist/session/runner/publish-llm-event.js +121 -118
  624. package/dist/session/runner/retry.js +5 -5
  625. package/dist/session/runner/step.js +134 -131
  626. package/dist/session/runner/to-llm-message.js +16 -14
  627. package/dist/session/schema.js +3 -3
  628. package/dist/session/session.js +170 -167
  629. package/dist/session/shell.js +133 -132
  630. package/dist/session/skill.js +111 -108
  631. package/dist/session/sql.js +10 -6
  632. package/dist/session/stats.js +78 -77
  633. package/dist/session/store.js +90 -87
  634. package/dist/session/stored.js +21 -0
  635. package/dist/session/subagent-completion.js +1 -1
  636. package/dist/session/subagent-job.js +217 -214
  637. package/dist/session/system-prompt.js +5 -5
  638. package/dist/session/title.js +174 -171
  639. package/dist/session/to-session-error.js +120 -117
  640. package/dist/session/transfer.js +223 -220
  641. package/dist/session/usage.js +1 -1
  642. package/dist/session.js +219 -216
  643. package/dist/shell/parse.js +6 -6
  644. package/dist/shell/result.js +1 -1
  645. package/dist/shell/scan.js +1 -1
  646. package/dist/shell/select.js +13 -13
  647. package/dist/shell.js +135 -134
  648. package/dist/skill/discovery.js +6 -6
  649. package/dist/skill/instructions.js +115 -112
  650. package/dist/skill.js +118 -115
  651. package/dist/snapshot.js +99 -98
  652. package/dist/state.js +1 -1
  653. package/dist/tool/html-markdown.js +1 -1
  654. package/dist/tool/http-body.js +1 -1
  655. package/dist/tool/mcp.js +145 -142
  656. package/dist/tool/plugin/edit.js +128 -125
  657. package/dist/tool/plugin/file-diff.js +1 -1
  658. package/dist/tool/plugin/glob.js +132 -129
  659. package/dist/tool/plugin/grep.js +128 -125
  660. package/dist/tool/plugin/mcp-resource.js +132 -129
  661. package/dist/tool/plugin/opencode.js +117 -114
  662. package/dist/tool/plugin/patch.js +126 -123
  663. package/dist/tool/plugin/question.js +111 -108
  664. package/dist/tool/plugin/read.js +133 -130
  665. package/dist/tool/plugin/shell.js +222 -219
  666. package/dist/tool/plugin/skill.js +119 -116
  667. package/dist/tool/plugin/subagent.js +222 -219
  668. package/dist/tool/plugin/todo.js +143 -140
  669. package/dist/tool/plugin/webfetch.js +119 -116
  670. package/dist/tool/plugin/websearch.js +120 -117
  671. package/dist/tool/plugin/write.js +130 -127
  672. package/dist/tool/read-filesystem.js +108 -107
  673. package/dist/tool/runtime.js +1 -1
  674. package/dist/tool-output.js +7 -7
  675. package/dist/tool.js +16 -16
  676. package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
  677. package/dist/types/instance.d.ts +1 -2
  678. package/dist/types/session/blob.d.ts +881 -0
  679. package/dist/types/session/history.d.ts +814 -22
  680. package/dist/types/session/inbox.d.ts +21 -174
  681. package/dist/types/session/instruction-entry.d.ts +1 -1
  682. package/dist/types/session/recent-text.d.ts +2 -1
  683. package/dist/types/session/sql.d.ts +195 -2
  684. package/dist/types/session/stored.d.ts +460 -0
  685. package/dist/usage-limits.js +94 -93
  686. package/dist/util/error-summary.js +1 -1
  687. package/dist/util/git-executable.js +3 -3
  688. package/dist/util/lazy.js +1 -1
  689. package/dist/util/slug.js +1 -1
  690. package/dist/util/token.js +1 -1
  691. package/dist/util/which.js +1 -1
  692. package/dist/util/wildcard.js +1 -1
  693. package/dist/v1/config/agent.js +5 -5
  694. package/dist/v1/config/command.js +3 -3
  695. package/dist/v1/config/mcp.js +4 -4
  696. package/dist/v1/config/migrate.js +98 -97
  697. package/dist/v1/config/permission.js +3 -3
  698. package/dist/v1/config/plugin.js +3 -3
  699. package/dist/v1/config/provider-options.js +1 -1
  700. package/dist/v1/config/provider.js +4 -4
  701. package/dist/variant.js +97 -96
  702. package/dist/vcs/patch.js +1 -1
  703. package/dist/vcs.js +95 -94
  704. package/dist/voice.js +91 -90
  705. package/dist/websearch.js +85 -84
  706. package/dist/wellknown/plugin.js +81 -80
  707. package/dist/wellknown.js +86 -85
  708. package/dist/workspace/driver.js +7 -7
  709. package/dist/workspace/sql.js +1 -1
  710. package/dist/workspace.js +87 -86
  711. package/dist/worktree/directory.js +2 -2
  712. package/dist/worktree/git.js +11 -11
  713. package/dist/worktree/sql.js +5 -5
  714. package/dist/worktree/strategies.js +95 -94
  715. package/dist/worktree.js +106 -105
  716. package/package.json +8 -8
  717. package/dist/chunks/event-logger-6n5heb68.js +0 -26
  718. package/dist/chunks/event-logger-9kps6f10.js +0 -261
  719. package/dist/chunks/event-logger-a610t88q.js +0 -18
  720. package/dist/chunks/event-logger-gq78s2vv.js +0 -517
  721. /package/dist/chunks/{event-logger-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
  722. /package/dist/chunks/{event-logger-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
  723. /package/dist/chunks/{event-logger-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
  724. /package/dist/chunks/{event-logger-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
  725. /package/dist/chunks/{event-logger-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
  726. /package/dist/chunks/{event-logger-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
  727. /package/dist/chunks/{event-logger-2bv980vf.js → instruction-discovery-2bv980vf.js} +0 -0
  728. /package/dist/chunks/{event-logger-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
  729. /package/dist/chunks/{event-logger-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
  730. /package/dist/chunks/{event-logger-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
  731. /package/dist/chunks/{event-logger-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
  732. /package/dist/chunks/{event-logger-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
  733. /package/dist/chunks/{event-logger-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
  734. /package/dist/chunks/{event-logger-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
  735. /package/dist/chunks/{event-logger-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
  736. /package/dist/chunks/{event-logger-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
  737. /package/dist/chunks/{event-logger-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
  738. /package/dist/chunks/{event-logger-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
  739. /package/dist/chunks/{event-logger-5fjb7ams.js → instruction-discovery-5fjb7ams.js} +0 -0
  740. /package/dist/chunks/{event-logger-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
  741. /package/dist/chunks/{event-logger-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
  742. /package/dist/chunks/{event-logger-6q2bdcd1.js → instruction-discovery-6q2bdcd1.js} +0 -0
  743. /package/dist/chunks/{event-logger-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
  744. /package/dist/chunks/{event-logger-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
  745. /package/dist/chunks/{event-logger-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
  746. /package/dist/chunks/{event-logger-84wd9syh.js → instruction-discovery-84wd9syh.js} +0 -0
  747. /package/dist/chunks/{event-logger-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
  748. /package/dist/chunks/{event-logger-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
  749. /package/dist/chunks/{event-logger-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
  750. /package/dist/chunks/{event-logger-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
  751. /package/dist/chunks/{event-logger-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
  752. /package/dist/chunks/{event-logger-a058387c.js → instruction-discovery-a058387c.js} +0 -0
  753. /package/dist/chunks/{event-logger-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
  754. /package/dist/chunks/{event-logger-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
  755. /package/dist/chunks/{event-logger-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
  756. /package/dist/chunks/{event-logger-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
  757. /package/dist/chunks/{event-logger-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
  758. /package/dist/chunks/{event-logger-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
  759. /package/dist/chunks/{event-logger-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
  760. /package/dist/chunks/{event-logger-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
  761. /package/dist/chunks/{event-logger-cqv5kn06.js → instruction-discovery-cqv5kn06.js} +0 -0
  762. /package/dist/chunks/{event-logger-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
  763. /package/dist/chunks/{event-logger-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
  764. /package/dist/chunks/{event-logger-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
  765. /package/dist/chunks/{event-logger-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
  766. /package/dist/chunks/{event-logger-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
  767. /package/dist/chunks/{event-logger-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
  768. /package/dist/chunks/{event-logger-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
  769. /package/dist/chunks/{event-logger-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
  770. /package/dist/chunks/{event-logger-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
  771. /package/dist/chunks/{event-logger-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
  772. /package/dist/chunks/{event-logger-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
  773. /package/dist/chunks/{event-logger-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
  774. /package/dist/chunks/{event-logger-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
  775. /package/dist/chunks/{event-logger-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
  776. /package/dist/chunks/{event-logger-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
  777. /package/dist/chunks/{event-logger-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
  778. /package/dist/chunks/{event-logger-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
  779. /package/dist/chunks/{event-logger-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
  780. /package/dist/chunks/{event-logger-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
  781. /package/dist/chunks/{event-logger-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
  782. /package/dist/chunks/{event-logger-hcxmzztb.js → instruction-discovery-hcxmzztb.js} +0 -0
  783. /package/dist/chunks/{event-logger-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
  784. /package/dist/chunks/{event-logger-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
  785. /package/dist/chunks/{event-logger-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
  786. /package/dist/chunks/{event-logger-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
  787. /package/dist/chunks/{event-logger-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
  788. /package/dist/chunks/{event-logger-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
  789. /package/dist/chunks/{event-logger-jwr30sdr.js → instruction-discovery-jwr30sdr.js} +0 -0
  790. /package/dist/chunks/{event-logger-jze0r7bz.js → instruction-discovery-jze0r7bz.js} +0 -0
  791. /package/dist/chunks/{event-logger-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
  792. /package/dist/chunks/{event-logger-m18g726c.js → instruction-discovery-m18g726c.js} +0 -0
  793. /package/dist/chunks/{event-logger-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
  794. /package/dist/chunks/{event-logger-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
  795. /package/dist/chunks/{event-logger-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
  796. /package/dist/chunks/{event-logger-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
  797. /package/dist/chunks/{event-logger-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
  798. /package/dist/chunks/{event-logger-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
  799. /package/dist/chunks/{event-logger-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
  800. /package/dist/chunks/{event-logger-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
  801. /package/dist/chunks/{event-logger-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
  802. /package/dist/chunks/{event-logger-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
  803. /package/dist/chunks/{event-logger-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
  804. /package/dist/chunks/{event-logger-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
  805. /package/dist/chunks/{event-logger-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
  806. /package/dist/chunks/{event-logger-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
  807. /package/dist/chunks/{event-logger-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
  808. /package/dist/chunks/{event-logger-ve7vex1e.js → instruction-discovery-ve7vex1e.js} +0 -0
  809. /package/dist/chunks/{event-logger-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
  810. /package/dist/chunks/{event-logger-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
  811. /package/dist/chunks/{event-logger-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
  812. /package/dist/chunks/{event-logger-wjj7prxr.js → instruction-discovery-wjj7prxr.js} +0 -0
  813. /package/dist/chunks/{event-logger-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
  814. /package/dist/chunks/{event-logger-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
  815. /package/dist/chunks/{event-logger-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
  816. /package/dist/chunks/{event-logger-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
  817. /package/dist/chunks/{event-logger-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
  818. /package/dist/chunks/{event-logger-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
  819. /package/dist/chunks/{event-logger-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
  820. /package/dist/chunks/{event-logger-z5v4ffb3.js → instruction-discovery-z5v4ffb3.js} +0 -0
  821. /package/dist/chunks/{event-logger-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
@@ -0,0 +1,881 @@
1
+ export * as SessionBlob from "./blob.js";
2
+ import { Effect, Schema } from "effect";
3
+ import { SessionStored } from "./stored.js";
4
+ /** Restores inline media for the refs in `session_message` rows. Rows without refs are returned untouched. */
5
+ export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
6
+ $client: import("effect/sql/SqlClient").SqlClient;
7
+ }, rows: readonly {
8
+ data: Omit<{
9
+ readonly id: string;
10
+ readonly metadata?: {
11
+ readonly [x: string]: unknown;
12
+ } | undefined;
13
+ readonly time: {
14
+ readonly created: number;
15
+ };
16
+ readonly type: "agent-switched";
17
+ readonly agent: string;
18
+ readonly previous?: string | undefined;
19
+ }, "id" | "type"> | Omit<{
20
+ readonly id: string;
21
+ readonly metadata?: {
22
+ readonly [x: string]: unknown;
23
+ } | undefined;
24
+ readonly time: {
25
+ readonly created: number;
26
+ };
27
+ readonly type: "model-switched";
28
+ readonly model: {
29
+ readonly id: string;
30
+ readonly providerID: string;
31
+ readonly variant?: string | undefined;
32
+ };
33
+ readonly previous?: {
34
+ readonly id: string;
35
+ readonly providerID: string;
36
+ readonly variant?: string | undefined;
37
+ } | undefined;
38
+ }, "id" | "type"> | Omit<{
39
+ readonly id: string;
40
+ readonly metadata?: {
41
+ readonly [x: string]: unknown;
42
+ } | undefined;
43
+ readonly time: {
44
+ readonly created: number;
45
+ };
46
+ readonly type: "location-switched";
47
+ readonly location: {
48
+ readonly directory: string;
49
+ readonly workspaceID?: string | undefined;
50
+ };
51
+ readonly projectID?: string | undefined;
52
+ readonly subpath?: string | undefined;
53
+ readonly previous?: {
54
+ readonly location: {
55
+ readonly directory: string;
56
+ readonly workspaceID?: string | undefined;
57
+ };
58
+ readonly projectID?: string | undefined;
59
+ readonly subpath?: string | undefined;
60
+ } | undefined;
61
+ }, "id" | "type"> | Omit<{
62
+ readonly id: string;
63
+ readonly metadata?: {
64
+ readonly [x: string]: unknown;
65
+ } | undefined;
66
+ readonly time: {
67
+ readonly created: number;
68
+ };
69
+ readonly text: string;
70
+ readonly description?: string | undefined;
71
+ readonly type: "synthetic";
72
+ }, "id" | "type"> | Omit<{
73
+ readonly id: string;
74
+ readonly metadata?: {
75
+ readonly [x: string]: unknown;
76
+ } | undefined;
77
+ readonly time: {
78
+ readonly created: number;
79
+ };
80
+ readonly type: "system";
81
+ readonly text: string;
82
+ readonly description?: string | undefined;
83
+ }, "id" | "type"> | Omit<{
84
+ readonly id: string;
85
+ readonly metadata?: {
86
+ readonly [x: string]: unknown;
87
+ } | undefined;
88
+ readonly time: {
89
+ readonly created: number;
90
+ };
91
+ readonly type: "skill";
92
+ readonly skill: string;
93
+ readonly name: string;
94
+ readonly text: string;
95
+ }, "id" | "type"> | Omit<{
96
+ readonly id: string;
97
+ readonly metadata?: {
98
+ readonly [x: string]: unknown;
99
+ } | undefined;
100
+ readonly type: "shell";
101
+ readonly shellID: string;
102
+ readonly command: string;
103
+ readonly status: "exited" | "killed" | "running" | "timeout";
104
+ readonly exit?: number | undefined;
105
+ readonly output?: {
106
+ readonly output: string;
107
+ readonly cursor: number;
108
+ readonly size: number;
109
+ readonly truncated: boolean;
110
+ } | undefined;
111
+ readonly time: {
112
+ readonly created: number;
113
+ readonly completed?: number | undefined;
114
+ };
115
+ }, "id" | "type"> | Omit<{
116
+ readonly id: string;
117
+ readonly metadata?: {
118
+ readonly [x: string]: unknown;
119
+ } | undefined;
120
+ readonly type: "assistant";
121
+ readonly agent: string;
122
+ readonly model: {
123
+ readonly id: string;
124
+ readonly providerID: string;
125
+ readonly variant?: string | undefined;
126
+ };
127
+ readonly content: readonly ({
128
+ readonly type: "tool";
129
+ readonly id: string;
130
+ readonly name: string;
131
+ readonly executed?: boolean | undefined;
132
+ readonly native?: {
133
+ readonly [x: string]: unknown;
134
+ } | undefined;
135
+ readonly state: {
136
+ readonly status: "streaming";
137
+ readonly input: string;
138
+ } | {
139
+ readonly status: "running";
140
+ readonly input: {
141
+ readonly [x: string]: unknown;
142
+ };
143
+ readonly metadata: {
144
+ readonly [x: string]: Schema.Json;
145
+ };
146
+ } | {
147
+ readonly status: "completed";
148
+ readonly input: {
149
+ readonly [x: string]: unknown;
150
+ };
151
+ readonly content: readonly [{
152
+ readonly type: "text";
153
+ readonly text: string;
154
+ } | {
155
+ readonly type: "file";
156
+ readonly uri: string;
157
+ readonly mime: string;
158
+ readonly name?: string | undefined;
159
+ }, ...({
160
+ readonly type: "text";
161
+ readonly text: string;
162
+ } | {
163
+ readonly type: "file";
164
+ readonly uri: string;
165
+ readonly mime: string;
166
+ readonly name?: string | undefined;
167
+ })[]];
168
+ readonly metadata?: {
169
+ readonly [x: string]: Schema.Json;
170
+ } | undefined;
171
+ } | {
172
+ readonly status: "error";
173
+ readonly input: {
174
+ readonly [x: string]: unknown;
175
+ };
176
+ readonly error: {
177
+ readonly type: string;
178
+ readonly message: string;
179
+ readonly status?: number | undefined;
180
+ readonly response?: {
181
+ readonly body: string;
182
+ } | undefined;
183
+ readonly retryAfterMs?: number | undefined;
184
+ };
185
+ readonly content?: readonly [{
186
+ readonly type: "text";
187
+ readonly text: string;
188
+ } | {
189
+ readonly type: "file";
190
+ readonly uri: string;
191
+ readonly mime: string;
192
+ readonly name?: string | undefined;
193
+ }, ...({
194
+ readonly type: "text";
195
+ readonly text: string;
196
+ } | {
197
+ readonly type: "file";
198
+ readonly uri: string;
199
+ readonly mime: string;
200
+ readonly name?: string | undefined;
201
+ })[]] | undefined;
202
+ readonly metadata?: {
203
+ readonly [x: string]: Schema.Json;
204
+ } | undefined;
205
+ };
206
+ readonly time: {
207
+ readonly created: number;
208
+ readonly ran?: number | undefined;
209
+ readonly completed?: number | undefined;
210
+ };
211
+ } | {
212
+ readonly type: "text";
213
+ readonly text: string;
214
+ readonly native?: {
215
+ readonly [x: string]: unknown;
216
+ } | undefined;
217
+ } | {
218
+ readonly type: "reasoning";
219
+ readonly text: string;
220
+ readonly native?: {
221
+ readonly [x: string]: unknown;
222
+ } | undefined;
223
+ readonly time?: {
224
+ readonly created: number;
225
+ readonly completed?: number | undefined;
226
+ } | undefined;
227
+ })[];
228
+ readonly snapshot?: {
229
+ readonly start?: string | undefined;
230
+ readonly end?: string | undefined;
231
+ readonly files?: readonly string[] | undefined;
232
+ } | undefined;
233
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
234
+ readonly rawFinish?: string | undefined;
235
+ readonly native?: {
236
+ readonly [x: string]: unknown;
237
+ } | undefined;
238
+ readonly cost?: number | undefined;
239
+ readonly tokens?: {
240
+ readonly input: number;
241
+ readonly output: number;
242
+ readonly reasoning: number;
243
+ readonly cache: {
244
+ readonly read: number;
245
+ readonly write: number;
246
+ };
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
+ readonly retryAfterMs?: number | undefined;
256
+ } | undefined;
257
+ readonly retry?: {
258
+ readonly attempt: number;
259
+ readonly at: number;
260
+ readonly error: {
261
+ readonly type: string;
262
+ readonly message: string;
263
+ readonly status?: number | undefined;
264
+ readonly response?: {
265
+ readonly body: string;
266
+ } | undefined;
267
+ readonly retryAfterMs?: number | undefined;
268
+ };
269
+ } | undefined;
270
+ readonly time: {
271
+ readonly created: number;
272
+ readonly streamed?: number | undefined;
273
+ readonly completed?: number | undefined;
274
+ };
275
+ }, "id" | "type"> | Omit<{
276
+ readonly id: string;
277
+ readonly metadata?: {
278
+ readonly [x: string]: unknown;
279
+ } | undefined;
280
+ readonly time: {
281
+ readonly created: number;
282
+ };
283
+ readonly type: "compaction";
284
+ readonly status: "running";
285
+ readonly reason: "auto" | "manual";
286
+ readonly summary: string;
287
+ }, "id" | "type"> | Omit<{
288
+ readonly id: string;
289
+ readonly metadata?: {
290
+ readonly [x: string]: unknown;
291
+ } | undefined;
292
+ readonly time: {
293
+ readonly created: number;
294
+ };
295
+ readonly type: "compaction";
296
+ readonly cost?: number | undefined;
297
+ readonly tokens?: {
298
+ readonly input: number;
299
+ readonly output: number;
300
+ readonly reasoning: number;
301
+ readonly cache: {
302
+ readonly read: number;
303
+ readonly write: number;
304
+ };
305
+ } | undefined;
306
+ readonly status: "completed";
307
+ readonly reason: "auto" | "manual";
308
+ readonly model?: {
309
+ readonly id: string;
310
+ readonly providerID: string;
311
+ readonly variant?: string | undefined;
312
+ } | undefined;
313
+ readonly native?: {
314
+ readonly [x: string]: unknown;
315
+ } | undefined;
316
+ readonly summary: string;
317
+ }, "id" | "type"> | Omit<{
318
+ readonly id: string;
319
+ readonly metadata?: {
320
+ readonly [x: string]: unknown;
321
+ } | undefined;
322
+ readonly time: {
323
+ readonly created: number;
324
+ };
325
+ readonly type: "compaction";
326
+ readonly cost?: number | undefined;
327
+ readonly tokens?: {
328
+ readonly input: number;
329
+ readonly output: number;
330
+ readonly reasoning: number;
331
+ readonly cache: {
332
+ readonly read: number;
333
+ readonly write: number;
334
+ };
335
+ } | undefined;
336
+ readonly status: "failed";
337
+ readonly reason: "auto" | "manual";
338
+ readonly error: {
339
+ readonly type: string;
340
+ readonly message: string;
341
+ readonly status?: number | undefined;
342
+ readonly response?: {
343
+ readonly body: string;
344
+ } | undefined;
345
+ readonly retryAfterMs?: number | undefined;
346
+ };
347
+ }, "id" | "type"> | Omit<{
348
+ readonly id: string;
349
+ readonly metadata?: {
350
+ readonly [x: string]: unknown;
351
+ } | undefined;
352
+ readonly time: {
353
+ readonly created: number;
354
+ };
355
+ readonly type: "idle";
356
+ readonly outcome: "failed" | "interrupted" | "succeeded";
357
+ readonly error?: {
358
+ readonly type: string;
359
+ readonly message: string;
360
+ readonly status?: number | undefined;
361
+ readonly response?: {
362
+ readonly body: string;
363
+ } | undefined;
364
+ readonly retryAfterMs?: number | undefined;
365
+ } | undefined;
366
+ }, "id" | "type"> | Omit<{
367
+ readonly id: string;
368
+ readonly metadata?: {
369
+ readonly [x: string]: unknown;
370
+ } | undefined;
371
+ readonly time: {
372
+ readonly created: number;
373
+ };
374
+ readonly text: string;
375
+ readonly agents?: readonly {
376
+ readonly name: string;
377
+ readonly mention?: {
378
+ readonly start: number;
379
+ readonly end: number;
380
+ readonly text: string;
381
+ } | undefined;
382
+ }[] | undefined;
383
+ readonly skills?: readonly {
384
+ readonly id: string;
385
+ readonly name: string;
386
+ readonly text?: string | undefined;
387
+ readonly mention?: {
388
+ readonly start: number;
389
+ readonly end: number;
390
+ readonly text: string;
391
+ } | undefined;
392
+ }[] | undefined;
393
+ readonly type: "user";
394
+ readonly files?: readonly ({
395
+ readonly data: string;
396
+ readonly mime: string;
397
+ readonly source: {
398
+ readonly type: "inline";
399
+ } | {
400
+ readonly type: "uri";
401
+ readonly uri: string;
402
+ };
403
+ readonly name?: string | undefined;
404
+ readonly description?: string | undefined;
405
+ readonly mention?: {
406
+ readonly start: number;
407
+ readonly end: number;
408
+ readonly text: string;
409
+ } | undefined;
410
+ } | {
411
+ readonly mime: string;
412
+ readonly source: {
413
+ readonly type: "inline";
414
+ } | {
415
+ readonly type: "uri";
416
+ readonly uri: string;
417
+ };
418
+ readonly name?: string | undefined;
419
+ readonly description?: string | undefined;
420
+ readonly mention?: {
421
+ readonly start: number;
422
+ readonly end: number;
423
+ readonly text: string;
424
+ } | undefined;
425
+ readonly uri: string;
426
+ })[] | undefined;
427
+ }, "id" | "type">;
428
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
429
+ seq: number;
430
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
431
+ time_created: number;
432
+ time_updated: number;
433
+ type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
434
+ }[]) => Effect.Effect<readonly {
435
+ data: Omit<{
436
+ readonly id: string;
437
+ readonly metadata?: {
438
+ readonly [x: string]: unknown;
439
+ } | undefined;
440
+ readonly time: {
441
+ readonly created: number;
442
+ };
443
+ readonly type: "agent-switched";
444
+ readonly agent: string;
445
+ readonly previous?: string | undefined;
446
+ }, "id" | "type"> | Omit<{
447
+ readonly id: string;
448
+ readonly metadata?: {
449
+ readonly [x: string]: unknown;
450
+ } | undefined;
451
+ readonly time: {
452
+ readonly created: number;
453
+ };
454
+ readonly type: "model-switched";
455
+ readonly model: {
456
+ readonly id: string;
457
+ readonly providerID: string;
458
+ readonly variant?: string | undefined;
459
+ };
460
+ readonly previous?: {
461
+ readonly id: string;
462
+ readonly providerID: string;
463
+ readonly variant?: string | undefined;
464
+ } | undefined;
465
+ }, "id" | "type"> | Omit<{
466
+ readonly id: string;
467
+ readonly metadata?: {
468
+ readonly [x: string]: unknown;
469
+ } | undefined;
470
+ readonly time: {
471
+ readonly created: number;
472
+ };
473
+ readonly type: "location-switched";
474
+ readonly location: {
475
+ readonly directory: string;
476
+ readonly workspaceID?: string | undefined;
477
+ };
478
+ readonly projectID?: string | undefined;
479
+ readonly subpath?: string | undefined;
480
+ readonly previous?: {
481
+ readonly location: {
482
+ readonly directory: string;
483
+ readonly workspaceID?: string | undefined;
484
+ };
485
+ readonly projectID?: string | undefined;
486
+ readonly subpath?: string | undefined;
487
+ } | undefined;
488
+ }, "id" | "type"> | Omit<{
489
+ readonly id: string;
490
+ readonly metadata?: {
491
+ readonly [x: string]: unknown;
492
+ } | undefined;
493
+ readonly time: {
494
+ readonly created: number;
495
+ };
496
+ readonly text: string;
497
+ readonly description?: string | undefined;
498
+ readonly type: "synthetic";
499
+ }, "id" | "type"> | Omit<{
500
+ readonly id: string;
501
+ readonly metadata?: {
502
+ readonly [x: string]: unknown;
503
+ } | undefined;
504
+ readonly time: {
505
+ readonly created: number;
506
+ };
507
+ readonly type: "system";
508
+ readonly text: string;
509
+ readonly description?: string | undefined;
510
+ }, "id" | "type"> | Omit<{
511
+ readonly id: string;
512
+ readonly metadata?: {
513
+ readonly [x: string]: unknown;
514
+ } | undefined;
515
+ readonly time: {
516
+ readonly created: number;
517
+ };
518
+ readonly type: "skill";
519
+ readonly skill: string;
520
+ readonly name: string;
521
+ readonly text: string;
522
+ }, "id" | "type"> | Omit<{
523
+ readonly id: string;
524
+ readonly metadata?: {
525
+ readonly [x: string]: unknown;
526
+ } | undefined;
527
+ readonly type: "shell";
528
+ readonly shellID: string;
529
+ readonly command: string;
530
+ readonly status: "exited" | "killed" | "running" | "timeout";
531
+ readonly exit?: number | undefined;
532
+ readonly output?: {
533
+ readonly output: string;
534
+ readonly cursor: number;
535
+ readonly size: number;
536
+ readonly truncated: boolean;
537
+ } | undefined;
538
+ readonly time: {
539
+ readonly created: number;
540
+ readonly completed?: number | undefined;
541
+ };
542
+ }, "id" | "type"> | Omit<{
543
+ readonly id: string;
544
+ readonly metadata?: {
545
+ readonly [x: string]: unknown;
546
+ } | undefined;
547
+ readonly type: "assistant";
548
+ readonly agent: string;
549
+ readonly model: {
550
+ readonly id: string;
551
+ readonly providerID: string;
552
+ readonly variant?: string | undefined;
553
+ };
554
+ readonly content: readonly ({
555
+ readonly type: "tool";
556
+ readonly id: string;
557
+ readonly name: string;
558
+ readonly executed?: boolean | undefined;
559
+ readonly native?: {
560
+ readonly [x: string]: unknown;
561
+ } | undefined;
562
+ readonly state: {
563
+ readonly status: "streaming";
564
+ readonly input: string;
565
+ } | {
566
+ readonly status: "running";
567
+ readonly input: {
568
+ readonly [x: string]: unknown;
569
+ };
570
+ readonly metadata: {
571
+ readonly [x: string]: Schema.Json;
572
+ };
573
+ } | {
574
+ readonly status: "completed";
575
+ readonly input: {
576
+ readonly [x: string]: unknown;
577
+ };
578
+ readonly content: readonly [{
579
+ readonly type: "text";
580
+ readonly text: string;
581
+ } | {
582
+ readonly type: "file";
583
+ readonly uri: string;
584
+ readonly mime: string;
585
+ readonly name?: string | undefined;
586
+ }, ...({
587
+ readonly type: "text";
588
+ readonly text: string;
589
+ } | {
590
+ readonly type: "file";
591
+ readonly uri: string;
592
+ readonly mime: string;
593
+ readonly name?: string | undefined;
594
+ })[]];
595
+ readonly metadata?: {
596
+ readonly [x: string]: Schema.Json;
597
+ } | undefined;
598
+ } | {
599
+ readonly status: "error";
600
+ readonly input: {
601
+ readonly [x: string]: unknown;
602
+ };
603
+ readonly error: {
604
+ readonly type: string;
605
+ readonly message: string;
606
+ readonly status?: number | undefined;
607
+ readonly response?: {
608
+ readonly body: string;
609
+ } | undefined;
610
+ readonly retryAfterMs?: number | undefined;
611
+ };
612
+ readonly content?: readonly [{
613
+ readonly type: "text";
614
+ readonly text: string;
615
+ } | {
616
+ readonly type: "file";
617
+ readonly uri: string;
618
+ readonly mime: string;
619
+ readonly name?: string | undefined;
620
+ }, ...({
621
+ readonly type: "text";
622
+ readonly text: string;
623
+ } | {
624
+ readonly type: "file";
625
+ readonly uri: string;
626
+ readonly mime: string;
627
+ readonly name?: string | undefined;
628
+ })[]] | undefined;
629
+ readonly metadata?: {
630
+ readonly [x: string]: Schema.Json;
631
+ } | undefined;
632
+ };
633
+ readonly time: {
634
+ readonly created: number;
635
+ readonly ran?: number | undefined;
636
+ readonly completed?: number | undefined;
637
+ };
638
+ } | {
639
+ readonly type: "text";
640
+ readonly text: string;
641
+ readonly native?: {
642
+ readonly [x: string]: unknown;
643
+ } | undefined;
644
+ } | {
645
+ readonly type: "reasoning";
646
+ readonly text: string;
647
+ readonly native?: {
648
+ readonly [x: string]: unknown;
649
+ } | undefined;
650
+ readonly time?: {
651
+ readonly created: number;
652
+ readonly completed?: number | undefined;
653
+ } | undefined;
654
+ })[];
655
+ readonly snapshot?: {
656
+ readonly start?: string | undefined;
657
+ readonly end?: string | undefined;
658
+ readonly files?: readonly string[] | undefined;
659
+ } | undefined;
660
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
661
+ readonly rawFinish?: string | undefined;
662
+ readonly native?: {
663
+ readonly [x: string]: unknown;
664
+ } | undefined;
665
+ readonly cost?: number | undefined;
666
+ readonly tokens?: {
667
+ readonly input: number;
668
+ readonly output: number;
669
+ readonly reasoning: number;
670
+ readonly cache: {
671
+ readonly read: number;
672
+ readonly write: number;
673
+ };
674
+ } | undefined;
675
+ readonly error?: {
676
+ readonly type: string;
677
+ readonly message: string;
678
+ readonly status?: number | undefined;
679
+ readonly response?: {
680
+ readonly body: string;
681
+ } | undefined;
682
+ readonly retryAfterMs?: number | undefined;
683
+ } | undefined;
684
+ readonly retry?: {
685
+ readonly attempt: number;
686
+ readonly at: number;
687
+ readonly error: {
688
+ readonly type: string;
689
+ readonly message: string;
690
+ readonly status?: number | undefined;
691
+ readonly response?: {
692
+ readonly body: string;
693
+ } | undefined;
694
+ readonly retryAfterMs?: number | undefined;
695
+ };
696
+ } | undefined;
697
+ readonly time: {
698
+ readonly created: number;
699
+ readonly streamed?: number | undefined;
700
+ readonly completed?: number | undefined;
701
+ };
702
+ }, "id" | "type"> | Omit<{
703
+ readonly id: string;
704
+ readonly metadata?: {
705
+ readonly [x: string]: unknown;
706
+ } | undefined;
707
+ readonly time: {
708
+ readonly created: number;
709
+ };
710
+ readonly type: "compaction";
711
+ readonly status: "running";
712
+ readonly reason: "auto" | "manual";
713
+ readonly summary: string;
714
+ }, "id" | "type"> | Omit<{
715
+ readonly id: string;
716
+ readonly metadata?: {
717
+ readonly [x: string]: unknown;
718
+ } | undefined;
719
+ readonly time: {
720
+ readonly created: number;
721
+ };
722
+ readonly type: "compaction";
723
+ readonly cost?: number | undefined;
724
+ readonly tokens?: {
725
+ readonly input: number;
726
+ readonly output: number;
727
+ readonly reasoning: number;
728
+ readonly cache: {
729
+ readonly read: number;
730
+ readonly write: number;
731
+ };
732
+ } | undefined;
733
+ readonly status: "completed";
734
+ readonly reason: "auto" | "manual";
735
+ readonly model?: {
736
+ readonly id: string;
737
+ readonly providerID: string;
738
+ readonly variant?: string | undefined;
739
+ } | undefined;
740
+ readonly native?: {
741
+ readonly [x: string]: unknown;
742
+ } | undefined;
743
+ readonly summary: string;
744
+ }, "id" | "type"> | Omit<{
745
+ readonly id: string;
746
+ readonly metadata?: {
747
+ readonly [x: string]: unknown;
748
+ } | undefined;
749
+ readonly time: {
750
+ readonly created: number;
751
+ };
752
+ readonly type: "compaction";
753
+ readonly cost?: number | undefined;
754
+ readonly tokens?: {
755
+ readonly input: number;
756
+ readonly output: number;
757
+ readonly reasoning: number;
758
+ readonly cache: {
759
+ readonly read: number;
760
+ readonly write: number;
761
+ };
762
+ } | undefined;
763
+ readonly status: "failed";
764
+ readonly reason: "auto" | "manual";
765
+ readonly error: {
766
+ readonly type: string;
767
+ readonly message: string;
768
+ readonly status?: number | undefined;
769
+ readonly response?: {
770
+ readonly body: string;
771
+ } | undefined;
772
+ readonly retryAfterMs?: number | undefined;
773
+ };
774
+ }, "id" | "type"> | Omit<{
775
+ readonly id: string;
776
+ readonly metadata?: {
777
+ readonly [x: string]: unknown;
778
+ } | undefined;
779
+ readonly time: {
780
+ readonly created: number;
781
+ };
782
+ readonly type: "idle";
783
+ readonly outcome: "failed" | "interrupted" | "succeeded";
784
+ readonly error?: {
785
+ readonly type: string;
786
+ readonly message: string;
787
+ readonly status?: number | undefined;
788
+ readonly response?: {
789
+ readonly body: string;
790
+ } | undefined;
791
+ readonly retryAfterMs?: number | undefined;
792
+ } | undefined;
793
+ }, "id" | "type"> | Omit<{
794
+ readonly id: string;
795
+ readonly metadata?: {
796
+ readonly [x: string]: unknown;
797
+ } | undefined;
798
+ readonly time: {
799
+ readonly created: number;
800
+ };
801
+ readonly text: string;
802
+ readonly agents?: readonly {
803
+ readonly name: string;
804
+ readonly mention?: {
805
+ readonly start: number;
806
+ readonly end: number;
807
+ readonly text: string;
808
+ } | undefined;
809
+ }[] | undefined;
810
+ readonly skills?: readonly {
811
+ readonly id: string;
812
+ readonly name: string;
813
+ readonly text?: string | undefined;
814
+ readonly mention?: {
815
+ readonly start: number;
816
+ readonly end: number;
817
+ readonly text: string;
818
+ } | undefined;
819
+ }[] | undefined;
820
+ readonly type: "user";
821
+ readonly files?: readonly ({
822
+ readonly data: string;
823
+ readonly mime: string;
824
+ readonly source: {
825
+ readonly type: "inline";
826
+ } | {
827
+ readonly type: "uri";
828
+ readonly uri: string;
829
+ };
830
+ readonly name?: string | undefined;
831
+ readonly description?: string | undefined;
832
+ readonly mention?: {
833
+ readonly start: number;
834
+ readonly end: number;
835
+ readonly text: string;
836
+ } | undefined;
837
+ } | {
838
+ readonly mime: string;
839
+ readonly source: {
840
+ readonly type: "inline";
841
+ } | {
842
+ readonly type: "uri";
843
+ readonly uri: string;
844
+ };
845
+ readonly name?: string | undefined;
846
+ readonly description?: string | undefined;
847
+ readonly mention?: {
848
+ readonly start: number;
849
+ readonly end: number;
850
+ readonly text: string;
851
+ } | undefined;
852
+ readonly uri: string;
853
+ })[] | undefined;
854
+ }, "id" | "type">;
855
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
856
+ seq: number;
857
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
858
+ time_created: number;
859
+ time_updated: number;
860
+ type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
861
+ }[], never, never>;
862
+ /** Restores inline media for the refs in `session_inbox` rows. Rows without refs are returned untouched. */
863
+ export declare const hydrateInbox: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
864
+ $client: import("effect/sql/SqlClient").SqlClient;
865
+ }, rows: readonly {
866
+ delivery: "queue" | "steer";
867
+ enqueued_seq: number;
868
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
869
+ payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
870
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
871
+ time_created: number;
872
+ type: "compaction" | "move" | "synthetic" | "user";
873
+ }[]) => Effect.Effect<readonly {
874
+ delivery: "queue" | "steer";
875
+ enqueued_seq: number;
876
+ id: string & import("effect/Brand").Brand<"Session.Message.ID">;
877
+ payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
878
+ session_id: string & import("effect/Brand").Brand<"SessionID">;
879
+ time_created: number;
880
+ type: "compaction" | "move" | "synthetic" | "user";
881
+ }[], never, never>;