@opencode/core 0.0.0-dev-21268 → 0.0.0-dev-21286

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 (807) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{formatter-2afzv2w7.js → skill-05vzypjk.js} +13 -13
  8. package/dist/chunks/{formatter-60byc3m8.js → skill-06waph1v.js} +50 -50
  9. package/dist/chunks/{formatter-w56efnhv.js → skill-09nv85a9.js} +25 -25
  10. package/dist/chunks/{formatter-gc9yyap8.js → skill-0adv686s.js} +11 -11
  11. package/dist/chunks/{formatter-q5e7cmwt.js → skill-0ebt9ktc.js} +17 -13
  12. package/dist/chunks/{formatter-0v8jbydc.js → skill-0s4awtrm.js} +30 -30
  13. package/dist/chunks/{formatter-0vbcp93d.js → skill-0vbcp93d.js} +2 -2
  14. package/dist/chunks/{formatter-xx0g94j1.js → skill-13a51vk5.js} +10 -10
  15. package/dist/chunks/{formatter-p80cb2q6.js → skill-15v1mmar.js} +13 -13
  16. package/dist/chunks/{formatter-kzaea99f.js → skill-1cp9bz2d.js} +14 -14
  17. package/dist/chunks/{formatter-bzeyqsqd.js → skill-1ep4rre3.js} +4 -4
  18. package/dist/chunks/{formatter-wjr9rjd7.js → skill-1ffvrpkg.js} +9 -9
  19. package/dist/chunks/{formatter-jbv6fv9n.js → skill-1gmddy7b.js} +4 -4
  20. package/dist/chunks/{formatter-7cx1y1jk.js → skill-1scs9kvk.js} +23 -23
  21. package/dist/chunks/{formatter-6n87qsqk.js → skill-1x40g0cb.js} +78 -155
  22. package/dist/chunks/{formatter-1845wcnm.js → skill-1x9n3mmz.js} +36 -36
  23. package/dist/chunks/{formatter-g4jej14z.js → skill-1ywjs8d5.js} +14 -14
  24. package/dist/chunks/{formatter-w8xr7nv8.js → skill-207ajt2h.js} +5 -5
  25. package/dist/chunks/{formatter-m2eens3g.js → skill-22fjnv6b.js} +16 -16
  26. package/dist/chunks/{formatter-d18yz2tr.js → skill-22zjq5d7.js} +22 -22
  27. package/dist/chunks/{formatter-bmvxsevk.js → skill-23fhnjw2.js} +12 -12
  28. package/dist/chunks/{formatter-jt04gwr3.js → skill-24qb9ktg.js} +27 -27
  29. package/dist/chunks/{formatter-sg1n6he9.js → skill-284nz0qx.js} +5 -5
  30. package/dist/chunks/{formatter-fcrkznn8.js → skill-2k8khapm.js} +5 -5
  31. package/dist/chunks/{formatter-d04wke9a.js → skill-2pqzp2n5.js} +38 -38
  32. package/dist/chunks/{formatter-k15rxyma.js → skill-2pv2ee2c.js} +8 -8
  33. package/dist/chunks/{formatter-9md8he8y.js → skill-2rhr1j2v.js} +32 -32
  34. package/dist/chunks/{formatter-ym5wg1kc.js → skill-2s32b1pm.js} +2 -2
  35. package/dist/chunks/{formatter-y539vebz.js → skill-2xre7bbz.js} +34 -34
  36. package/dist/chunks/{formatter-24920ypz.js → skill-2ydj7fj1.js} +35 -35
  37. package/dist/chunks/{formatter-7mxcbd2h.js → skill-30x38mv8.js} +46 -46
  38. package/dist/chunks/{formatter-0j6qdzw7.js → skill-33vw7qyp.js} +20 -20
  39. package/dist/chunks/{formatter-3hepkmqq.js → skill-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{formatter-3hwn7j4h.js → skill-3hwn7j4h.js} +2 -2
  41. package/dist/chunks/{formatter-kd568tns.js → skill-3s06hs9t.js} +5 -5
  42. package/dist/chunks/{formatter-3smtnn6g.js → skill-3smtnn6g.js} +1 -1
  43. package/dist/chunks/{formatter-3tvqynh2.js → skill-3tvqynh2.js} +1 -1
  44. package/dist/chunks/{formatter-30a99vc0.js → skill-3w4mwa0r.js} +24 -24
  45. package/dist/chunks/{formatter-3zsf4n22.js → skill-3zsf4n22.js} +1 -1
  46. package/dist/chunks/{formatter-xbf45m1m.js → skill-40h581yp.js} +11 -11
  47. package/dist/chunks/{formatter-9864qn22.js → skill-47zrz7pg.js} +33 -33
  48. package/dist/chunks/{formatter-kmk629k8.js → skill-49eyavm8.js} +7 -7
  49. package/dist/chunks/{formatter-880p7epb.js → skill-4ckgtqrh.js} +9 -9
  50. package/dist/chunks/{formatter-dktgvxhq.js → skill-4g7bc71f.js} +20 -20
  51. package/dist/chunks/{formatter-4p2aqbrx.js → skill-4mwphs2k.js} +6 -6
  52. package/dist/chunks/{formatter-4nj4bn9q.js → skill-4nj4bn9q.js} +2 -2
  53. package/dist/chunks/{formatter-81dsrpbq.js → skill-4ptxcp1e.js} +24 -24
  54. package/dist/chunks/{formatter-kgnmzmc2.js → skill-4r2zbptf.js} +67 -70
  55. package/dist/chunks/{formatter-c340nhfc.js → skill-4t2jy500.js} +13 -13
  56. package/dist/chunks/skill-4wsa0agf.js +257 -0
  57. package/dist/chunks/{formatter-r94pvvab.js → skill-54ma36ye.js} +4 -4
  58. package/dist/chunks/{formatter-wxv2y18y.js → skill-5dc849gq.js} +6 -6
  59. package/dist/chunks/{formatter-d9gp05e8.js → skill-5efy2ttq.js} +14 -14
  60. package/dist/chunks/{formatter-d3394kee.js → skill-5jpamcfq.js} +14 -14
  61. package/dist/chunks/{formatter-5m9w47nd.js → skill-5m9w47nd.js} +1 -1
  62. package/dist/chunks/{formatter-ny53wrt7.js → skill-5vf4742z.js} +32 -39
  63. package/dist/chunks/{formatter-n3qps2jj.js → skill-5wzag2z6.js} +7 -7
  64. package/dist/chunks/{formatter-6827pfxn.js → skill-6827pfxn.js} +1 -1
  65. package/dist/chunks/{formatter-pvzd63td.js → skill-6p3qshzc.js} +32 -32
  66. package/dist/chunks/{formatter-cqsap5z8.js → skill-6s9dfnwd.js} +9 -7
  67. package/dist/chunks/{formatter-ctbnrc59.js → skill-6x24qp8q.js} +10 -10
  68. package/dist/chunks/{formatter-6xb47vfp.js → skill-6xb47vfp.js} +1 -1
  69. package/dist/chunks/{formatter-775gj3j1.js → skill-775gj3j1.js} +2 -2
  70. package/dist/chunks/{formatter-7bmhse3q.js → skill-7bmhse3q.js} +1 -1
  71. package/dist/chunks/{formatter-sd6q20cc.js → skill-7es1h6bd.js} +7 -7
  72. package/dist/chunks/{formatter-a20pjse5.js → skill-7v6vae4w.js} +3 -3
  73. package/dist/chunks/{formatter-k0a04qyy.js → skill-7xw63ggs.js} +9 -9
  74. package/dist/chunks/{formatter-84txncab.js → skill-84txncab.js} +1 -1
  75. package/dist/chunks/{formatter-8m6m0r52.js → skill-8m6m0r52.js} +1 -1
  76. package/dist/chunks/skill-8mywswrd.js +86 -0
  77. package/dist/chunks/{formatter-3ks3pb71.js → skill-8nr83adb.js} +3 -3
  78. package/dist/chunks/{formatter-v6xvqrem.js → skill-8psfat6b.js} +3 -3
  79. package/dist/chunks/{formatter-nsj8m29q.js → skill-8w9ta1h6.js} +8 -8
  80. package/dist/chunks/{formatter-zzywg6y6.js → skill-96ewcb6m.js} +18 -18
  81. package/dist/chunks/{formatter-g73qmrf1.js → skill-994fvcqk.js} +31 -31
  82. package/dist/chunks/{formatter-3hfr6h8q.js → skill-9hn6k4tm.js} +8 -8
  83. package/dist/chunks/{formatter-b12fh71z.js → skill-9nyvt9wv.js} +12 -12
  84. package/dist/chunks/{formatter-qv11eaqs.js → skill-9sgsjpgv.js} +9 -9
  85. package/dist/chunks/{formatter-s4j1ewxt.js → skill-9w133m1s.js} +15 -15
  86. package/dist/chunks/skill-9zdhvgqs.js +18 -0
  87. package/dist/chunks/{formatter-rzx22v1q.js → skill-acrka64b.js} +6 -6
  88. package/dist/chunks/{formatter-04ap81dm.js → skill-ahnhtz0s.js} +15 -15
  89. package/dist/chunks/{formatter-a01j9zgm.js → skill-aj3rbcf1.js} +5 -5
  90. package/dist/chunks/{formatter-6133dmrp.js → skill-an6ss4rp.js} +35 -35
  91. package/dist/chunks/{formatter-7knmx1zy.js → skill-az180baf.js} +5 -5
  92. package/dist/chunks/{formatter-7mdty465.js → skill-az9pkjsk.js} +30 -29
  93. package/dist/chunks/{formatter-jwg5m4bp.js → skill-azfbpf7r.js} +47 -49
  94. package/dist/chunks/{formatter-gqtdsdt7.js → skill-azwe5p1w.js} +4 -4
  95. package/dist/chunks/{formatter-yz20g6dm.js → skill-b0m1ne2p.js} +23 -23
  96. package/dist/chunks/{formatter-9x7kjnc6.js → skill-b5e8q9y4.js} +4 -4
  97. package/dist/chunks/{formatter-f78dsz6n.js → skill-bh2h312c.js} +11 -11
  98. package/dist/chunks/{formatter-k10w2rw8.js → skill-bkatn0cp.js} +27 -27
  99. package/dist/chunks/{formatter-s1hjqbmb.js → skill-bm84hcav.js} +17 -17
  100. package/dist/chunks/{formatter-vxby77fw.js → skill-bnmr3cva.js} +8 -8
  101. package/dist/chunks/{formatter-h9ef7te3.js → skill-bteyxjds.js} +5 -5
  102. package/dist/chunks/{formatter-dzse07y5.js → skill-bw9zjykr.js} +6 -6
  103. package/dist/chunks/{formatter-rj3eygr5.js → skill-c41wscbt.js} +2 -2
  104. package/dist/chunks/{formatter-qkr7tnsm.js → skill-c5cr6fz1.js} +26 -26
  105. package/dist/chunks/{formatter-sa8ekw3f.js → skill-c8ax2afj.js} +2 -2
  106. package/dist/chunks/{formatter-s5b7v2dw.js → skill-cd870end.js} +43 -43
  107. package/dist/chunks/{formatter-1xf6wzjn.js → skill-cgjwj88c.js} +13 -13
  108. package/dist/chunks/{formatter-nc16zhnm.js → skill-cka3pwfj.js} +24 -25
  109. package/dist/chunks/{formatter-zcghh444.js → skill-cse5452s.js} +23 -23
  110. package/dist/chunks/{formatter-r78700hm.js → skill-cxfgc6by.js} +10 -10
  111. package/dist/chunks/{formatter-2tgf6cja.js → skill-dcpjbqwq.js} +4 -4
  112. package/dist/chunks/{formatter-8qgr4h1v.js → skill-dddsnv1t.js} +19 -19
  113. package/dist/chunks/{formatter-j2r6n3at.js → skill-dh1wnrr3.js} +26 -26
  114. package/dist/chunks/{formatter-dpkg50ah.js → skill-dpkg50ah.js} +1 -1
  115. package/dist/chunks/{formatter-zcgapt0q.js → skill-dsc898vs.js} +26 -26
  116. package/dist/chunks/{formatter-p8706pxr.js → skill-dsct1602.js} +15 -15
  117. package/dist/chunks/{formatter-wh6zw745.js → skill-dssbfrwz.js} +5 -5
  118. package/dist/chunks/{formatter-38qay2m7.js → skill-dtvxyhpg.js} +32 -32
  119. package/dist/chunks/{formatter-jq12p00e.js → skill-dzb6kqcp.js} +3 -3
  120. package/dist/chunks/{formatter-vrfj7wzn.js → skill-e49jeknm.js} +15 -15
  121. package/dist/chunks/{formatter-jdma4b20.js → skill-e5t061k5.js} +17 -17
  122. package/dist/chunks/{formatter-e80seqcp.js → skill-e80seqcp.js} +1 -1
  123. package/dist/chunks/{formatter-02nrjc1r.js → skill-eaj1djv9.js} +4 -4
  124. package/dist/chunks/{formatter-0t9wd588.js → skill-eeaf82dq.js} +8 -8
  125. package/dist/chunks/{formatter-eej6y6fw.js → skill-eej6y6fw.js} +2 -2
  126. package/dist/chunks/{formatter-ef5x83kb.js → skill-ef5x83kb.js} +1 -1
  127. package/dist/chunks/{formatter-c1fqxshp.js → skill-es1vcfrp.js} +3 -3
  128. package/dist/chunks/{formatter-yx0rmv9r.js → skill-esjfm2jj.js} +8 -8
  129. package/dist/chunks/{formatter-ay1662mf.js → skill-f19p4dtt.js} +9 -9
  130. package/dist/chunks/{formatter-g3tfzm17.js → skill-fba44ey8.js} +1 -1
  131. package/dist/chunks/{formatter-fcy631f0.js → skill-fcy631f0.js} +1 -1
  132. package/dist/chunks/{formatter-326x6pdt.js → skill-ffex79nh.js} +4 -4
  133. package/dist/chunks/{formatter-9b8ncctb.js → skill-fgat89d3.js} +8 -8
  134. package/dist/chunks/{formatter-fn9t717r.js → skill-fn9t717r.js} +3 -3
  135. package/dist/chunks/{formatter-pc7d6ej0.js → skill-fp460gdt.js} +16 -16
  136. package/dist/chunks/{formatter-79qaa2kf.js → skill-ft3hqk2c.js} +9 -9
  137. package/dist/chunks/{formatter-z6pg3wkb.js → skill-fx27t40w.js} +14 -14
  138. package/dist/chunks/{formatter-qf501b6x.js → skill-g7zm5684.js} +11 -11
  139. package/dist/chunks/{formatter-gd4qta3r.js → skill-gd4qta3r.js} +1 -1
  140. package/dist/chunks/{formatter-9hwaqfsw.js → skill-gj71zhbs.js} +5 -5
  141. package/dist/chunks/{formatter-fgvzqqhz.js → skill-gjpes3nd.js} +11 -11
  142. package/dist/chunks/{formatter-axvj98vx.js → skill-gjqf6prp.js} +15 -15
  143. package/dist/chunks/{formatter-xgfaq3ry.js → skill-gxqmtd9s.js} +4 -4
  144. package/dist/chunks/{formatter-0ed8e971.js → skill-h1qzx281.js} +21 -21
  145. package/dist/chunks/{formatter-fxaymqdw.js → skill-h221s06d.js} +4 -4
  146. package/dist/chunks/{formatter-h6vf3j39.js → skill-h6vf3j39.js} +1 -1
  147. package/dist/chunks/{formatter-wrmbd4ct.js → skill-hcv80w8f.js} +8 -8
  148. package/dist/chunks/{formatter-hgz4x7wa.js → skill-hgz4x7wa.js} +1 -1
  149. package/dist/chunks/{formatter-ce2nyva1.js → skill-hpwaxba9.js} +51 -36
  150. package/dist/chunks/{formatter-3dbk125e.js → skill-j3pmw4n4.js} +13 -16
  151. package/dist/chunks/{formatter-sbvsyxhr.js → skill-j5vs2s0c.js} +16 -16
  152. package/dist/chunks/{formatter-sd0pxfvh.js → skill-jg6y9exp.js} +9 -9
  153. package/dist/chunks/{formatter-hkh1jx8g.js → skill-jpxbkzcm.js} +18 -18
  154. package/dist/chunks/{formatter-cedvsd9p.js → skill-jrcrphs5.js} +15 -15
  155. package/dist/chunks/skill-k4pcy416.js +26 -0
  156. package/dist/chunks/{formatter-gyahv1by.js → skill-k4z9qb1h.js} +18 -18
  157. package/dist/chunks/{formatter-75rtafjv.js → skill-k767h5gk.js} +14 -14
  158. package/dist/chunks/{formatter-9nerqjs9.js → skill-k9rcbhkt.js} +20 -20
  159. package/dist/chunks/{formatter-jrbcd3qy.js → skill-kb53hzak.js} +25 -25
  160. package/dist/chunks/{formatter-kwb1v3vj.js → skill-kwb1v3vj.js} +1 -1
  161. package/dist/chunks/{formatter-kecqbpkt.js → skill-kzp04e93.js} +10 -10
  162. package/dist/chunks/{formatter-vzn69n1x.js → skill-m6pbs28h.js} +15 -15
  163. package/dist/chunks/{formatter-m9w0rfyh.js → skill-m9w0rfyh.js} +1 -1
  164. package/dist/chunks/{formatter-maspj1v3.js → skill-maspj1v3.js} +1 -1
  165. package/dist/chunks/{formatter-yx35gvjr.js → skill-mezgzbf4.js} +8 -8
  166. package/dist/chunks/{formatter-wek98stj.js → skill-mf2cr3hn.js} +5 -5
  167. package/dist/chunks/{formatter-sa6168g2.js → skill-mfjtdt2y.js} +3 -3
  168. package/dist/chunks/{formatter-1hcnqvj0.js → skill-mj8v08g3.js} +25 -25
  169. package/dist/chunks/{formatter-wfc8dvn2.js → skill-mk12phhj.js} +2 -2
  170. package/dist/chunks/{formatter-jnyfd4gm.js → skill-mr40cxx5.js} +11 -11
  171. package/dist/chunks/{formatter-fqxpggxp.js → skill-mrvktngd.js} +15 -15
  172. package/dist/chunks/{formatter-p9j36qey.js → skill-mwfdq8qc.js} +21 -21
  173. package/dist/chunks/{formatter-psf8dvjb.js → skill-mxzy28fn.js} +15 -15
  174. package/dist/chunks/{formatter-1pvppg81.js → skill-n2jhanjn.js} +7 -7
  175. package/dist/chunks/{formatter-2mw400dq.js → skill-n8s3x8gg.js} +18 -18
  176. package/dist/chunks/{formatter-bacj9t34.js → skill-nd4tfyg0.js} +9 -9
  177. package/dist/chunks/{formatter-g0nw424s.js → skill-nrfaghy7.js} +32 -32
  178. package/dist/chunks/{formatter-1gd0p40m.js → skill-p24k7xxs.js} +21 -21
  179. package/dist/chunks/{formatter-fka0j1an.js → skill-p7ejm75f.js} +15 -15
  180. package/dist/chunks/{formatter-t39j3nb6.js → skill-p83bgnwy.js} +182 -182
  181. package/dist/chunks/{formatter-mdqes59k.js → skill-p9yv9cpt.js} +47 -47
  182. package/dist/chunks/{formatter-h4smr58a.js → skill-pe6c7tpr.js} +52 -52
  183. package/dist/chunks/{formatter-pjvnvgmy.js → skill-pjvnvgmy.js} +1 -1
  184. package/dist/chunks/{formatter-pknna89w.js → skill-pknna89w.js} +1 -1
  185. package/dist/chunks/{formatter-apba62c4.js → skill-psw58z79.js} +26 -26
  186. package/dist/chunks/{formatter-rkprpv83.js → skill-py3kkmfq.js} +2 -2
  187. package/dist/chunks/{formatter-560ck4c5.js → skill-q5yng9nd.js} +3 -3
  188. package/dist/chunks/{formatter-m53709c2.js → skill-q7nxqx7p.js} +11 -11
  189. package/dist/chunks/{formatter-xgqamae7.js → skill-q7w9bzh9.js} +5 -5
  190. package/dist/chunks/{formatter-dftrqtzk.js → skill-qfphg4nc.js} +3 -3
  191. package/dist/chunks/{formatter-qnc92qwc.js → skill-qnc92qwc.js} +1 -1
  192. package/dist/chunks/{formatter-j3rvqy98.js → skill-qrvjed71.js} +19 -19
  193. package/dist/chunks/{formatter-qsdy395h.js → skill-qsdy395h.js} +1 -1
  194. package/dist/chunks/{formatter-5tcnstt9.js → skill-qshse4pa.js} +11 -11
  195. package/dist/chunks/{formatter-e3wg82qa.js → skill-r0snawp5.js} +14 -14
  196. package/dist/chunks/{formatter-3gmzkzp0.js → skill-r2gt430y.js} +46 -46
  197. package/dist/chunks/{formatter-7t5c4g27.js → skill-r4dce1g6.js} +9 -9
  198. package/dist/chunks/{formatter-fjzkwv4w.js → skill-rbpvdgf0.js} +5 -5
  199. package/dist/chunks/{formatter-rdw6cm16.js → skill-rdw6cm16.js} +1 -1
  200. package/dist/chunks/{formatter-r8xr0va3.js → skill-rhraev7y.js} +4 -4
  201. package/dist/chunks/{formatter-d2m5bwmv.js → skill-rtj3qdv7.js} +17 -17
  202. package/dist/chunks/{formatter-6gtdewqb.js → skill-rw53n0fn.js} +47 -47
  203. package/dist/chunks/{formatter-9qxahjdj.js → skill-rzjhynvd.js} +21 -21
  204. package/dist/chunks/{formatter-tn7n77d0.js → skill-rzptascq.js} +18 -18
  205. package/dist/chunks/{formatter-2mmtmdq9.js → skill-s062krnn.js} +28 -29
  206. package/dist/chunks/{formatter-gwpaft9z.js → skill-s0tpqwmh.js} +36 -36
  207. package/dist/chunks/{formatter-g9kdeh46.js → skill-s3dcqe2f.js} +87 -90
  208. package/dist/chunks/{formatter-vtdr16f1.js → skill-s7hgpj7n.js} +25 -25
  209. package/dist/chunks/{formatter-wfk38fft.js → skill-sjrfcf49.js} +13 -13
  210. package/dist/chunks/{formatter-sabmmyg1.js → skill-skda7hje.js} +97 -97
  211. package/dist/chunks/{formatter-0kve3vzz.js → skill-snpdvfcc.js} +13 -13
  212. package/dist/chunks/{formatter-vybdm9k2.js → skill-spvegxv4.js} +43 -43
  213. package/dist/chunks/{formatter-pt1ss6jy.js → skill-ss358qx3.js} +3 -3
  214. package/dist/chunks/{formatter-cdf78ym6.js → skill-stpt7qpp.js} +26 -26
  215. package/dist/chunks/{formatter-syv4x271.js → skill-syv4x271.js} +1 -1
  216. package/dist/chunks/{formatter-xy38s77h.js → skill-szfjq214.js} +5 -5
  217. package/dist/chunks/{formatter-5p6qw3tz.js → skill-t0s87p9z.js} +48 -48
  218. package/dist/chunks/{formatter-v4m9j1r3.js → skill-t2cxfkz0.js} +19 -19
  219. package/dist/chunks/{formatter-gx7ed082.js → skill-t3s4rf4r.js} +11 -11
  220. package/dist/chunks/{formatter-6hh8tjw2.js → skill-t6vsspdg.js} +7 -7
  221. package/dist/chunks/{formatter-tazgh4e4.js → skill-tazgh4e4.js} +1 -1
  222. package/dist/chunks/{formatter-tcezcvh9.js → skill-tcezcvh9.js} +1 -1
  223. package/dist/chunks/{formatter-tdstcens.js → skill-tdstcens.js} +1 -1
  224. package/dist/chunks/{formatter-hgpmxtmw.js → skill-tj5ahh21.js} +18 -18
  225. package/dist/chunks/{formatter-n1w5qww0.js → skill-tjmbphra.js} +24 -22
  226. package/dist/chunks/{formatter-rert0e01.js → skill-tkb22qbm.js} +2 -2
  227. package/dist/chunks/{formatter-tm0kqsz3.js → skill-tm0kqsz3.js} +1 -1
  228. package/dist/chunks/{formatter-bcndysnn.js → skill-tp8qtqfe.js} +32 -32
  229. package/dist/chunks/{formatter-5fmp7ejv.js → skill-tq14xbg8.js} +24 -24
  230. package/dist/chunks/{formatter-tgdmrz9m.js → skill-tw1svedf.js} +18 -18
  231. package/dist/chunks/{formatter-mqqhst8y.js → skill-txm3e8qz.js} +4 -4
  232. package/dist/chunks/{formatter-tyytaxap.js → skill-tyytaxap.js} +1 -1
  233. package/dist/chunks/{formatter-kpawbemv.js → skill-tzs4kwf2.js} +21 -21
  234. package/dist/chunks/{formatter-n23bjbw3.js → skill-tzx53q96.js} +23 -23
  235. package/dist/chunks/{formatter-h978070j.js → skill-v13b12ef.js} +16 -19
  236. package/dist/chunks/{formatter-x5jhdhzv.js → skill-v210v162.js} +5 -5
  237. package/dist/chunks/{formatter-s6mjk57t.js → skill-v3t362sx.js} +23 -23
  238. package/dist/chunks/{formatter-v7p4zvkq.js → skill-v7p4zvkq.js} +2 -2
  239. package/dist/chunks/{formatter-06c933ea.js → skill-v86je2z5.js} +16 -16
  240. package/dist/chunks/{formatter-r1sktf6h.js → skill-va1m2gws.js} +1 -1
  241. package/dist/chunks/{formatter-njbdz2ej.js → skill-vd4aczts.js} +18 -18
  242. package/dist/chunks/{formatter-6t4hr8r6.js → skill-ve85v3xb.js} +4 -4
  243. package/dist/chunks/{formatter-veqvce7d.js → skill-veqvce7d.js} +1 -1
  244. package/dist/chunks/{formatter-vzs5sf6e.js → skill-vzs5sf6e.js} +1 -1
  245. package/dist/chunks/{formatter-6md12hsa.js → skill-w19cxg5d.js} +5 -5
  246. package/dist/chunks/{formatter-w3wsvvr9.js → skill-w3wsvvr9.js} +1 -1
  247. package/dist/chunks/{formatter-z039y7x6.js → skill-w5e5n6qp.js} +31 -31
  248. package/dist/chunks/{formatter-qyh1b4jm.js → skill-w9pxnq1f.js} +3 -3
  249. package/dist/chunks/{formatter-kd03d9gr.js → skill-wcnw1vw1.js} +4 -4
  250. package/dist/chunks/{formatter-we093gtr.js → skill-wcv23wjp.js} +11 -11
  251. package/dist/chunks/{formatter-wd87259q.js → skill-wd87259q.js} +1 -1
  252. package/dist/chunks/{formatter-6shsmc4s.js → skill-wg21mfe7.js} +20 -20
  253. package/dist/chunks/{formatter-p6xnc3rx.js → skill-wjvejwxj.js} +19 -19
  254. package/dist/chunks/{formatter-v82nyebm.js → skill-wq5ge4qs.js} +10 -10
  255. package/dist/chunks/{formatter-j8y9j9kj.js → skill-wrpzvqff.js} +18 -18
  256. package/dist/chunks/{formatter-b3nqcn4t.js → skill-ws22wf9m.js} +13 -13
  257. package/dist/chunks/{formatter-qg7te02p.js → skill-wsc8jw0e.js} +8 -8
  258. package/dist/chunks/{formatter-whnjbvkc.js → skill-x1j2xbxr.js} +11 -11
  259. package/dist/chunks/{formatter-n3kjjdbc.js → skill-x27b78bf.js} +23 -23
  260. package/dist/chunks/skill-x7schd0t.js +517 -0
  261. package/dist/chunks/{formatter-waamc7ac.js → skill-x9xez83g.js} +23 -23
  262. package/dist/chunks/{formatter-vebvfg1b.js → skill-xbk1brvq.js} +33 -33
  263. package/dist/chunks/{formatter-drwq78ky.js → skill-xfkkasph.js} +4 -4
  264. package/dist/chunks/skill-xjwnzk3j.js +130 -0
  265. package/dist/chunks/{formatter-hj6k4shy.js → skill-xzt4qk3d.js} +4 -4
  266. package/dist/chunks/{formatter-y1fvbwt7.js → skill-y1fvbwt7.js} +1 -1
  267. package/dist/chunks/{formatter-n5s0rf7q.js → skill-y34wrf3d.js} +9 -9
  268. package/dist/chunks/{formatter-14nzty46.js → skill-y5716pwx.js} +10 -10
  269. package/dist/chunks/{formatter-xsj2mzjf.js → skill-y5csa3j3.js} +8 -8
  270. package/dist/chunks/{formatter-jftvfy36.js → skill-y5wbntgb.js} +29 -29
  271. package/dist/chunks/{formatter-n2srvep7.js → skill-y6mhz57t.js} +4 -4
  272. package/dist/chunks/{formatter-wmmpzfcy.js → skill-ycgxjbe9.js} +36 -36
  273. package/dist/chunks/{formatter-2p6ntd4m.js → skill-yjc6fc7c.js} +22 -22
  274. package/dist/chunks/{formatter-f5jgrrfv.js → skill-yjtv1dgs.js} +21 -21
  275. package/dist/chunks/{formatter-sr8jg6q5.js → skill-ykb9mt4z.js} +20 -20
  276. package/dist/chunks/{formatter-sx6dfbyf.js → skill-ys00zx1c.js} +1 -1
  277. package/dist/chunks/{formatter-d55h3tfb.js → skill-ytphcrpa.js} +20 -20
  278. package/dist/chunks/{formatter-z0bkrqjs.js → skill-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{formatter-z18fegx4.js → skill-z18fegx4.js} +1 -1
  280. package/dist/chunks/{formatter-t9gjcg3f.js → skill-zbvn420s.js} +24 -24
  281. package/dist/chunks/{formatter-8gxqpgph.js → skill-zee1rnkq.js} +4 -4
  282. package/dist/chunks/{formatter-zr2ceqn5.js → skill-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{formatter-xr2s98ph.js → skill-zvn91fcw.js} +27 -27
  284. package/dist/chunks/{formatter-49znd53m.js → skill-zvqs7mdw.js} +14 -14
  285. package/dist/chunks/{formatter-zxq2ej10.js → skill-zxq2ej10.js} +1 -1
  286. package/dist/chunks/{formatter-nt6vwrgy.js → skill-zz1b5zj3.js} +7 -7
  287. package/dist/codemode/catalog.js +1 -1
  288. package/dist/codemode/instructions.js +5 -5
  289. package/dist/codemode/tool.js +3 -3
  290. package/dist/codemode/web.js +1 -1
  291. package/dist/command.js +85 -85
  292. package/dist/config/discovery.js +84 -84
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +101 -101
  295. package/dist/config/plugin/agent.js +118 -118
  296. package/dist/config/plugin/command.js +208 -208
  297. package/dist/config/plugin/compaction.js +155 -155
  298. package/dist/config/plugin/compatibility.js +135 -135
  299. package/dist/config/plugin/entry-observer.js +1 -1
  300. package/dist/config/plugin/formatter.js +117 -117
  301. package/dist/config/plugin/image.js +116 -116
  302. package/dist/config/plugin/instruction.js +116 -116
  303. package/dist/config/plugin/location-watcher.js +118 -118
  304. package/dist/config/plugin/mcp.js +125 -125
  305. package/dist/config/plugin/policy.js +117 -117
  306. package/dist/config/plugin/provider.js +116 -116
  307. package/dist/config/plugin/reference.js +118 -118
  308. package/dist/config/plugin/shell.js +118 -118
  309. package/dist/config/plugin/skill-file.js +104 -104
  310. package/dist/config/plugin/skill-scan.js +3 -3
  311. package/dist/config/plugin/skill.js +138 -138
  312. package/dist/config/plugin/snapshot.js +116 -116
  313. package/dist/config/plugin/source.js +119 -119
  314. package/dist/config/plugin/tool-output.js +117 -117
  315. package/dist/config/plugin/websearch.js +117 -117
  316. package/dist/config/plugin/worktree.js +118 -118
  317. package/dist/config/variable.js +1 -1
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +121 -121
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +85 -85
  322. package/dist/database/database.js +68 -68
  323. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  324. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +13 -13
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +14 -14
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  386. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  387. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  388. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  389. package/dist/database/migration.gen.js +51 -51
  390. package/dist/database/migration.js +53 -53
  391. package/dist/database/path.js +2 -2
  392. package/dist/database/schema.gen.js +1 -1
  393. package/dist/database/schema.sql.js +1 -1
  394. package/dist/database/sqlite.bun.js +1 -1
  395. package/dist/database/sqlite.js +1 -1
  396. package/dist/database/sqlite.node.js +1 -1
  397. package/dist/database/sqlite.workerd.js +1 -1
  398. package/dist/database/v1-migration.bun.js +83 -82
  399. package/dist/database/v1-migration.js +1 -1
  400. package/dist/effect/app-node-builder.js +370 -370
  401. package/dist/effect/app-node-platform.js +2 -2
  402. package/dist/effect/keyed-mutex.js +1 -1
  403. package/dist/effect/websocket-constructor.js +1 -1
  404. package/dist/environment/driver.js +1 -1
  405. package/dist/environment/environment.js +95 -95
  406. package/dist/environment/exec-defaults.js +2 -2
  407. package/dist/environment/files.js +1 -1
  408. package/dist/environment/index.js +95 -95
  409. package/dist/environment/local.js +2 -2
  410. package/dist/environment/memory.js +2 -2
  411. package/dist/environment/unavailable.js +3 -3
  412. package/dist/event/sql.js +1 -1
  413. package/dist/event-logger.js +72 -72
  414. package/dist/file-access.js +106 -106
  415. package/dist/file-mutation.js +96 -96
  416. package/dist/file-retention.js +1 -1
  417. package/dist/filesystem/fff.bun.js +2 -2
  418. package/dist/filesystem/fff.js +1 -1
  419. package/dist/filesystem/fff.node.js +2 -2
  420. package/dist/filesystem/fff.workerd.js +2 -2
  421. package/dist/filesystem/location-watcher-policy.js +6 -6
  422. package/dist/filesystem/location-watcher.js +221 -221
  423. package/dist/filesystem/protected.js +1 -1
  424. package/dist/filesystem/search.js +101 -101
  425. package/dist/filesystem/watcher-binding.js +1 -1
  426. package/dist/filesystem/watcher.js +13 -13
  427. package/dist/filesystem.js +100 -100
  428. package/dist/form.js +82 -82
  429. package/dist/formatter/builtins.js +2 -2
  430. package/dist/formatter.js +89 -89
  431. package/dist/generate.js +106 -106
  432. package/dist/git.js +10 -10
  433. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  434. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  435. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  437. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  438. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  439. package/dist/github-copilot/copilot-provider.js +17 -17
  440. package/dist/github-copilot/models.js +101 -101
  441. package/dist/github-copilot/openai-compatible-error.js +1 -1
  442. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  443. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  444. package/dist/github-copilot/responses/openai-error.js +1 -1
  445. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  446. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  447. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  448. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  449. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  452. package/dist/image/photon.js +2 -2
  453. package/dist/image.js +6 -6
  454. package/dist/instance/service.js +5 -5
  455. package/dist/instance.js +361 -361
  456. package/dist/instruction-discovery.js +86 -86
  457. package/dist/instructions/builtins.js +89 -89
  458. package/dist/instructions/index.js +3 -3
  459. package/dist/integration/connection.js +3 -3
  460. package/dist/integration.js +89 -89
  461. package/dist/job.js +80 -80
  462. package/dist/kv/sql.js +2 -2
  463. package/dist/kv.js +75 -75
  464. package/dist/location-activity.js +133 -133
  465. package/dist/location-lifecycle.js +109 -109
  466. package/dist/location-service-map.js +88 -88
  467. package/dist/location-services.js +358 -358
  468. package/dist/location.js +89 -89
  469. package/dist/managed-policy.js +8 -8
  470. package/dist/mcp/client.js +93 -93
  471. package/dist/mcp/index.js +107 -107
  472. package/dist/mcp/instructions.js +131 -131
  473. package/dist/mcp/oauth.js +80 -80
  474. package/dist/mcp/stdio.js +92 -92
  475. package/dist/mime.js +1 -1
  476. package/dist/modal/models.js +101 -101
  477. package/dist/model-resolver.js +100 -100
  478. package/dist/model-retry.js +1 -1
  479. package/dist/model.js +102 -102
  480. package/dist/models-dev.js +105 -105
  481. package/dist/oauth/page.js +1 -1
  482. package/dist/permission/saved.js +82 -82
  483. package/dist/permission/sql.js +5 -5
  484. package/dist/permission.js +109 -109
  485. package/dist/persistent-pty/binary.bun.js +1 -1
  486. package/dist/persistent-pty/daemon.js +1 -1
  487. package/dist/persistent-pty/index.js +86 -86
  488. package/dist/persistent-pty/pty-binding.js +1 -1
  489. package/dist/persistent-pty.js +77 -77
  490. package/dist/plugin/agent.js +78 -78
  491. package/dist/plugin/command.js +104 -104
  492. package/dist/plugin/hooks.js +5 -5
  493. package/dist/plugin/host.js +212 -212
  494. package/dist/plugin/identity.js +3 -3
  495. package/dist/plugin/instance.js +5 -5
  496. package/dist/plugin/internal.js +332 -332
  497. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  498. package/dist/plugin/models-dev.js +98 -98
  499. package/dist/plugin/module.js +117 -117
  500. package/dist/plugin/optimize.js +2 -2
  501. package/dist/plugin/plan.js +104 -104
  502. package/dist/plugin/promise.js +1 -1
  503. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  504. package/dist/plugin/provider/azure.js +116 -116
  505. package/dist/plugin/provider/cerebras.js +1 -1
  506. package/dist/plugin/provider/chatgpt.js +116 -116
  507. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  508. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  509. package/dist/plugin/provider/cohere.js +2 -2
  510. package/dist/plugin/provider/configured.js +112 -112
  511. package/dist/plugin/provider/databricks.js +1 -1
  512. package/dist/plugin/provider/digitalocean.js +95 -95
  513. package/dist/plugin/provider/dynamic.js +2 -2
  514. package/dist/plugin/provider/factory.js +1 -1
  515. package/dist/plugin/provider/github-copilot.js +97 -97
  516. package/dist/plugin/provider/gitlab.js +95 -95
  517. package/dist/plugin/provider/google-vertex.js +113 -113
  518. package/dist/plugin/provider/kilo.js +1 -1
  519. package/dist/plugin/provider/llmgateway.js +80 -80
  520. package/dist/plugin/provider/lmstudio.js +123 -123
  521. package/dist/plugin/provider/local.js +122 -122
  522. package/dist/plugin/provider/modal.js +94 -94
  523. package/dist/plugin/provider/neon.js +1 -1
  524. package/dist/plugin/provider/nvidia.js +1 -1
  525. package/dist/plugin/provider/ollama.js +125 -125
  526. package/dist/plugin/provider/openai.js +116 -116
  527. package/dist/plugin/provider/opencode.js +100 -100
  528. package/dist/plugin/provider/openrouter.js +93 -93
  529. package/dist/plugin/provider/perplexity.js +2 -2
  530. package/dist/plugin/provider/poe.js +81 -81
  531. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  532. package/dist/plugin/provider/sap-ai-core.js +93 -93
  533. package/dist/plugin/provider/sdk-factory.js +1 -1
  534. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  535. package/dist/plugin/provider/vercel.js +92 -92
  536. package/dist/plugin/provider/vllm.js +125 -125
  537. package/dist/plugin/provider/xai.js +93 -93
  538. package/dist/plugin/provider/zenmux.js +1 -1
  539. package/dist/plugin/provider.js +168 -168
  540. package/dist/plugin/sdk.js +78 -78
  541. package/dist/plugin/service.js +3 -3
  542. package/dist/plugin/skill.js +132 -132
  543. package/dist/plugin/source-directory.js +1 -1
  544. package/dist/plugin/supervisor.js +349 -349
  545. package/dist/plugin/tool-input-repair.js +4 -4
  546. package/dist/plugin/update.js +2 -2
  547. package/dist/plugin/vcs/git.js +88 -88
  548. package/dist/plugin/vcs/hg.js +88 -88
  549. package/dist/plugin/verbosity.js +95 -95
  550. package/dist/plugin/warming.js +114 -114
  551. package/dist/plugin/websearch/exa.js +5 -5
  552. package/dist/plugin/websearch/firecrawl.js +8 -8
  553. package/dist/plugin/websearch/index.js +9 -9
  554. package/dist/plugin/websearch/mcp.js +6 -6
  555. package/dist/plugin/websearch/parallel.js +8 -8
  556. package/dist/plugin/websearch/tavily.js +6 -6
  557. package/dist/plugin/websearch/tinyfish.js +8 -8
  558. package/dist/plugin.js +223 -223
  559. package/dist/project/schema.js +4 -4
  560. package/dist/project/sql.js +4 -4
  561. package/dist/project.js +88 -88
  562. package/dist/provider.js +101 -101
  563. package/dist/pty/protocol.js +1 -1
  564. package/dist/pty/ticket.js +1 -1
  565. package/dist/pty.js +101 -101
  566. package/dist/reference/instructions.js +91 -91
  567. package/dist/reference.js +91 -91
  568. package/dist/repository-cache.js +83 -83
  569. package/dist/repository.js +1 -1
  570. package/dist/ripgrep/binary.js +2 -2
  571. package/dist/ripgrep.js +99 -99
  572. package/dist/rpc.js +88 -88
  573. package/dist/schema.js +1 -1
  574. package/dist/session/affinity.js +3 -3
  575. package/dist/session/command.js +76 -76
  576. package/dist/session/compaction.js +138 -138
  577. package/dist/session/context.js +155 -155
  578. package/dist/session/diff.js +90 -90
  579. package/dist/session/environment.js +5 -5
  580. package/dist/session/error.js +3 -3
  581. package/dist/session/event.js +1 -1
  582. package/dist/session/execution/restart.js +215 -215
  583. package/dist/session/execution.js +127 -127
  584. package/dist/session/generate.js +155 -155
  585. package/dist/session/history.js +19 -13
  586. package/dist/session/inbox.js +95 -90
  587. package/dist/session/info.js +3 -3
  588. package/dist/session/instruction-entry.js +81 -81
  589. package/dist/session/instruction-state.js +8 -8
  590. package/dist/session/instructions.js +99 -99
  591. package/dist/session/message-updater.js +2 -2
  592. package/dist/session/message.js +1 -1
  593. package/dist/session/model-request.js +120 -120
  594. package/dist/session/model-transport.js +7 -7
  595. package/dist/session/move.js +131 -131
  596. package/dist/session/projector.js +91 -88
  597. package/dist/session/prompt.js +107 -107
  598. package/dist/session/recent-text.js +14 -0
  599. package/dist/session/revert.js +96 -92
  600. package/dist/session/run-coordinator.js +3 -3
  601. package/dist/session/runner/index.js +3 -3
  602. package/dist/session/runner/llm.js +225 -225
  603. package/dist/session/runner/max-steps.js +1 -1
  604. package/dist/session/runner/model.js +100 -100
  605. package/dist/session/runner/publish-llm-event.js +115 -115
  606. package/dist/session/runner/retry.js +3 -3
  607. package/dist/session/runner/step.js +126 -126
  608. package/dist/session/runner/to-llm-message.js +14 -2
  609. package/dist/session/schema.js +5 -5
  610. package/dist/session/session.js +162 -162
  611. package/dist/session/shell.js +130 -130
  612. package/dist/session/skill.js +107 -107
  613. package/dist/session/sql.js +5 -5
  614. package/dist/session/stats.js +75 -75
  615. package/dist/session/store.js +89 -89
  616. package/dist/session/subagent-completion.js +1 -1
  617. package/dist/session/subagent-job.js +206 -206
  618. package/dist/session/system-prompt.js +3 -3
  619. package/dist/session/title.js +159 -159
  620. package/dist/session/to-session-error.js +113 -113
  621. package/dist/session/transfer.js +215 -220
  622. package/dist/session/usage.js +1 -1
  623. package/dist/session.js +208 -208
  624. package/dist/shell/parse.js +8 -8
  625. package/dist/shell/result.js +1 -1
  626. package/dist/shell/scan.js +1 -1
  627. package/dist/shell/select.js +11 -11
  628. package/dist/shell.js +132 -132
  629. package/dist/skill/discovery.js +6 -6
  630. package/dist/skill/instructions.js +109 -109
  631. package/dist/skill.js +112 -112
  632. package/dist/snapshot.js +93 -93
  633. package/dist/state.js +1 -1
  634. package/dist/tool/html-markdown.js +1 -1
  635. package/dist/tool/http-body.js +1 -1
  636. package/dist/tool/mcp.js +128 -128
  637. package/dist/tool/plugin/edit.js +122 -122
  638. package/dist/tool/plugin/file-diff.js +1 -1
  639. package/dist/tool/plugin/glob.js +126 -126
  640. package/dist/tool/plugin/grep.js +126 -126
  641. package/dist/tool/plugin/mcp-resource.js +119 -119
  642. package/dist/tool/plugin/opencode.js +111 -111
  643. package/dist/tool/plugin/patch.js +124 -124
  644. package/dist/tool/plugin/question.js +103 -103
  645. package/dist/tool/plugin/read.js +127 -127
  646. package/dist/tool/plugin/shell.js +211 -211
  647. package/dist/tool/plugin/skill.js +113 -113
  648. package/dist/tool/plugin/subagent.js +213 -213
  649. package/dist/tool/plugin/todo.js +138 -138
  650. package/dist/tool/plugin/webfetch.js +114 -114
  651. package/dist/tool/plugin/websearch.js +114 -114
  652. package/dist/tool/plugin/write.js +124 -124
  653. package/dist/tool/read-filesystem.js +102 -102
  654. package/dist/tool/runtime.js +1 -1
  655. package/dist/tool-output.js +7 -7
  656. package/dist/tool.js +14 -14
  657. package/dist/types/credential/sql.d.ts +0 -3
  658. package/dist/types/credential.d.ts +0 -3
  659. package/dist/types/instance.d.ts +1 -1
  660. package/dist/types/session/history.d.ts +35 -888
  661. package/dist/types/session/recent-text.d.ts +11 -0
  662. package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
  663. package/dist/types/session/transfer.d.ts +5 -55
  664. package/dist/util/error-summary.js +1 -1
  665. package/dist/util/error.js +1 -1
  666. package/dist/util/git-executable.js +2 -2
  667. package/dist/util/iife.js +1 -1
  668. package/dist/util/lazy.js +1 -1
  669. package/dist/util/slug.js +1 -1
  670. package/dist/util/token.js +1 -1
  671. package/dist/util/which.js +1 -1
  672. package/dist/util/wildcard.js +1 -1
  673. package/dist/v1/config/agent.js +5 -5
  674. package/dist/v1/config/command.js +5 -5
  675. package/dist/v1/config/error.js +2 -2
  676. package/dist/v1/config/mcp.js +4 -4
  677. package/dist/v1/config/migrate.js +94 -94
  678. package/dist/v1/config/permission.js +3 -3
  679. package/dist/v1/config/plugin.js +3 -3
  680. package/dist/v1/config/provider-options.js +1 -1
  681. package/dist/v1/config/provider.js +4 -4
  682. package/dist/variant.js +93 -93
  683. package/dist/vcs/patch.js +1 -1
  684. package/dist/vcs.js +91 -91
  685. package/dist/voice.js +90 -90
  686. package/dist/websearch.js +84 -84
  687. package/dist/wellknown/plugin.js +78 -78
  688. package/dist/wellknown.js +81 -81
  689. package/dist/workspace/driver.js +7 -7
  690. package/dist/workspace/sql.js +1 -1
  691. package/dist/workspace.js +82 -82
  692. package/dist/worktree/directory.js +2 -2
  693. package/dist/worktree/git.js +10 -10
  694. package/dist/worktree/sql.js +5 -5
  695. package/dist/worktree/strategies.js +91 -91
  696. package/dist/worktree.js +98 -98
  697. package/package.json +8 -8
  698. package/dist/chunks/formatter-7asbmpsf.js +0 -95
  699. package/dist/chunks/formatter-f29mbr7f.js +0 -69
  700. package/dist/chunks/formatter-fsthefce.js +0 -26
  701. package/dist/chunks/formatter-pf31ssb9.js +0 -18
  702. package/dist/chunks/formatter-tbcqt8n1.js +0 -517
  703. package/dist/chunks/formatter-yvpf485x.js +0 -257
  704. package/dist/session/provider-context.js +0 -20
  705. package/dist/types/session/provider-context.d.ts +0 -46
  706. /package/dist/chunks/{formatter-0qkdqm5v.js → skill-0qkdqm5v.js} +0 -0
  707. /package/dist/chunks/{formatter-0zkw76rk.js → skill-0zkw76rk.js} +0 -0
  708. /package/dist/chunks/{formatter-17cy0kzp.js → skill-17cy0kzp.js} +0 -0
  709. /package/dist/chunks/{formatter-1cnp2v09.js → skill-1cnp2v09.js} +0 -0
  710. /package/dist/chunks/{formatter-1kg9ymc8.js → skill-1kg9ymc8.js} +0 -0
  711. /package/dist/chunks/{formatter-24dcb14g.js → skill-24dcb14g.js} +0 -0
  712. /package/dist/chunks/{formatter-2710q6r3.js → skill-2710q6r3.js} +0 -0
  713. /package/dist/chunks/{formatter-2axfhc9x.js → skill-2axfhc9x.js} +0 -0
  714. /package/dist/chunks/{formatter-2bv980vf.js → skill-2bv980vf.js} +0 -0
  715. /package/dist/chunks/{formatter-2c3vjs8z.js → skill-2c3vjs8z.js} +0 -0
  716. /package/dist/chunks/{formatter-359p4xyc.js → skill-359p4xyc.js} +0 -0
  717. /package/dist/chunks/{formatter-3asan66x.js → skill-3asan66x.js} +0 -0
  718. /package/dist/chunks/{formatter-3t0ybcrp.js → skill-3t0ybcrp.js} +0 -0
  719. /package/dist/chunks/{formatter-3v8g72cx.js → skill-3v8g72cx.js} +0 -0
  720. /package/dist/chunks/{formatter-3wcehsnq.js → skill-3wcehsnq.js} +0 -0
  721. /package/dist/chunks/{formatter-43n2bw4t.js → skill-43n2bw4t.js} +0 -0
  722. /package/dist/chunks/{formatter-4knz6hnm.js → skill-4knz6hnm.js} +0 -0
  723. /package/dist/chunks/{formatter-4vcrnpx2.js → skill-4vcrnpx2.js} +0 -0
  724. /package/dist/chunks/{formatter-4y7fprxs.js → skill-4y7fprxs.js} +0 -0
  725. /package/dist/chunks/{formatter-53557ph1.js → skill-53557ph1.js} +0 -0
  726. /package/dist/chunks/{formatter-550bvhaj.js → skill-550bvhaj.js} +0 -0
  727. /package/dist/chunks/{formatter-5qd3pb7m.js → skill-5qd3pb7m.js} +0 -0
  728. /package/dist/chunks/{formatter-6prwharc.js → skill-6prwharc.js} +0 -0
  729. /package/dist/chunks/{formatter-6q2bdcd1.js → skill-6q2bdcd1.js} +0 -0
  730. /package/dist/chunks/{formatter-7akdwqpd.js → skill-7akdwqpd.js} +0 -0
  731. /package/dist/chunks/{formatter-7m9af43g.js → skill-7m9af43g.js} +0 -0
  732. /package/dist/chunks/{formatter-822emrt2.js → skill-822emrt2.js} +0 -0
  733. /package/dist/chunks/{formatter-84wd9syh.js → skill-84wd9syh.js} +0 -0
  734. /package/dist/chunks/{formatter-88xbtdfr.js → skill-88xbtdfr.js} +0 -0
  735. /package/dist/chunks/{formatter-8n3pysct.js → skill-8n3pysct.js} +0 -0
  736. /package/dist/chunks/{formatter-8wj87zfr.js → skill-8wj87zfr.js} +0 -0
  737. /package/dist/chunks/{formatter-9a4afbnw.js → skill-9a4afbnw.js} +0 -0
  738. /package/dist/chunks/{formatter-9rqn6x4v.js → skill-9rqn6x4v.js} +0 -0
  739. /package/dist/chunks/{formatter-a6k6eb26.js → skill-a6k6eb26.js} +0 -0
  740. /package/dist/chunks/{formatter-af5trqkr.js → skill-af5trqkr.js} +0 -0
  741. /package/dist/chunks/{formatter-afrmfg78.js → skill-afrmfg78.js} +0 -0
  742. /package/dist/chunks/{formatter-aqzs7mqg.js → skill-aqzs7mqg.js} +0 -0
  743. /package/dist/chunks/{formatter-atq7p7m5.js → skill-atq7p7m5.js} +0 -0
  744. /package/dist/chunks/{formatter-bkyjaxrp.js → skill-bkyjaxrp.js} +0 -0
  745. /package/dist/chunks/{formatter-bmr6ed5q.js → skill-bmr6ed5q.js} +0 -0
  746. /package/dist/chunks/{formatter-cf4snx6d.js → skill-cf4snx6d.js} +0 -0
  747. /package/dist/chunks/{formatter-cvy3z8tj.js → skill-cvy3z8tj.js} +0 -0
  748. /package/dist/chunks/{formatter-d9fn303g.js → skill-d9fn303g.js} +0 -0
  749. /package/dist/chunks/{formatter-d9jj8t3e.js → skill-d9jj8t3e.js} +0 -0
  750. /package/dist/chunks/{formatter-dajrwvna.js → skill-dajrwvna.js} +0 -0
  751. /package/dist/chunks/{formatter-dap0rakb.js → skill-dap0rakb.js} +0 -0
  752. /package/dist/chunks/{formatter-df08tz66.js → skill-df08tz66.js} +0 -0
  753. /package/dist/chunks/{formatter-dy18nga0.js → skill-dy18nga0.js} +0 -0
  754. /package/dist/chunks/{formatter-e5kj55wp.js → skill-e5kj55wp.js} +0 -0
  755. /package/dist/chunks/{formatter-e73j6tqm.js → skill-e73j6tqm.js} +0 -0
  756. /package/dist/chunks/{formatter-ec1grn59.js → skill-ec1grn59.js} +0 -0
  757. /package/dist/chunks/{formatter-eh3zwz77.js → skill-eh3zwz77.js} +0 -0
  758. /package/dist/chunks/{formatter-emrn6kk6.js → skill-emrn6kk6.js} +0 -0
  759. /package/dist/chunks/{formatter-f0mxakyp.js → skill-f0mxakyp.js} +0 -0
  760. /package/dist/chunks/{formatter-f6n9ztr4.js → skill-f6n9ztr4.js} +0 -0
  761. /package/dist/chunks/{formatter-faypxj3z.js → skill-faypxj3z.js} +0 -0
  762. /package/dist/chunks/{formatter-fd410y7t.js → skill-fd410y7t.js} +0 -0
  763. /package/dist/chunks/{formatter-g4wezp1m.js → skill-g4wezp1m.js} +0 -0
  764. /package/dist/chunks/{formatter-g86h250q.js → skill-g86h250q.js} +0 -0
  765. /package/dist/chunks/{formatter-gebd4c9n.js → skill-gebd4c9n.js} +0 -0
  766. /package/dist/chunks/{formatter-gftt206x.js → skill-gftt206x.js} +0 -0
  767. /package/dist/chunks/{formatter-hcxmzztb.js → skill-hcxmzztb.js} +0 -0
  768. /package/dist/chunks/{formatter-hk9envan.js → skill-hk9envan.js} +0 -0
  769. /package/dist/chunks/{formatter-j2ntwpah.js → skill-j2ntwpah.js} +0 -0
  770. /package/dist/chunks/{formatter-j5zkgpj8.js → skill-j5zkgpj8.js} +0 -0
  771. /package/dist/chunks/{formatter-jjkms2e6.js → skill-jjkms2e6.js} +0 -0
  772. /package/dist/chunks/{formatter-jr7sbwjy.js → skill-jr7sbwjy.js} +0 -0
  773. /package/dist/chunks/{formatter-jwfs4k6c.js → skill-jwfs4k6c.js} +0 -0
  774. /package/dist/chunks/{formatter-jze0r7bz.js → skill-jze0r7bz.js} +0 -0
  775. /package/dist/chunks/{formatter-jzg6c2d5.js → skill-jzg6c2d5.js} +0 -0
  776. /package/dist/chunks/{formatter-m18g726c.js → skill-m18g726c.js} +0 -0
  777. /package/dist/chunks/{formatter-mp448xyj.js → skill-mp448xyj.js} +0 -0
  778. /package/dist/chunks/{formatter-msx8hqn2.js → skill-msx8hqn2.js} +0 -0
  779. /package/dist/chunks/{formatter-n05xt0ee.js → skill-n05xt0ee.js} +0 -0
  780. /package/dist/chunks/{formatter-n3j8tn72.js → skill-n3j8tn72.js} +0 -0
  781. /package/dist/chunks/{formatter-njntx4h6.js → skill-njntx4h6.js} +0 -0
  782. /package/dist/chunks/{formatter-pkyv6v7h.js → skill-pkyv6v7h.js} +0 -0
  783. /package/dist/chunks/{formatter-pyv0edze.js → skill-pyv0edze.js} +0 -0
  784. /package/dist/chunks/{formatter-q3sfg36h.js → skill-q3sfg36h.js} +0 -0
  785. /package/dist/chunks/{formatter-q74kybfr.js → skill-q74kybfr.js} +0 -0
  786. /package/dist/chunks/{formatter-qaymkmh1.js → skill-qaymkmh1.js} +0 -0
  787. /package/dist/chunks/{formatter-qb87gjwd.js → skill-qb87gjwd.js} +0 -0
  788. /package/dist/chunks/{formatter-qfa1cgps.js → skill-qfa1cgps.js} +0 -0
  789. /package/dist/chunks/{formatter-qg3g05ea.js → skill-qg3g05ea.js} +0 -0
  790. /package/dist/chunks/{formatter-qrg20bc0.js → skill-qrg20bc0.js} +0 -0
  791. /package/dist/chunks/{formatter-rcb2kzg1.js → skill-rcb2kzg1.js} +0 -0
  792. /package/dist/chunks/{formatter-sdp7kfr6.js → skill-sdp7kfr6.js} +0 -0
  793. /package/dist/chunks/{formatter-ssg3fenm.js → skill-ssg3fenm.js} +0 -0
  794. /package/dist/chunks/{formatter-ve7vex1e.js → skill-ve7vex1e.js} +0 -0
  795. /package/dist/chunks/{formatter-w803qqfp.js → skill-w803qqfp.js} +0 -0
  796. /package/dist/chunks/{formatter-wc3fc9cn.js → skill-wc3fc9cn.js} +0 -0
  797. /package/dist/chunks/{formatter-wer8tq1h.js → skill-wer8tq1h.js} +0 -0
  798. /package/dist/chunks/{formatter-wjj7prxr.js → skill-wjj7prxr.js} +0 -0
  799. /package/dist/chunks/{formatter-wtztk69x.js → skill-wtztk69x.js} +0 -0
  800. /package/dist/chunks/{formatter-x0ckcb58.js → skill-x0ckcb58.js} +0 -0
  801. /package/dist/chunks/{formatter-x61499pn.js → skill-x61499pn.js} +0 -0
  802. /package/dist/chunks/{formatter-y44na4kk.js → skill-y44na4kk.js} +0 -0
  803. /package/dist/chunks/{formatter-y8f7s663.js → skill-y8f7s663.js} +0 -0
  804. /package/dist/chunks/{formatter-ygaqb7jw.js → skill-ygaqb7jw.js} +0 -0
  805. /package/dist/chunks/{formatter-ym463w8f.js → skill-ym463w8f.js} +0 -0
  806. /package/dist/chunks/{formatter-z5v4ffb3.js → skill-z5v4ffb3.js} +0 -0
  807. /package/dist/chunks/{formatter-z9919s4g.js → skill-z9919s4g.js} +0 -0
@@ -1,20 +1,30 @@
1
+ import { Message } from "@opencode/ai";
1
2
  import { Effect, Schema } from "effect";
3
+ import type { Model } from "@opencode/schema/model";
2
4
  import { MessageDecodeError } from "./error.js";
5
+ import { SessionMessage } from "./message.js";
3
6
  import { Instructions } from "../instructions/index.js";
4
- import { SessionProviderContext } from "./provider-context.js";
5
7
  import { SessionMessageTable } from "./sql.js";
6
8
  /**
7
9
  * Which completed compactions bound a history read. Local summaries always do. Native
8
10
  * windows do for model-neutral readers (`latest`), never for the original transcript
9
- * (`local`), and only when the target model can replay them (a provenance).
11
+ * (`local`), and only when the target model can replay them.
10
12
  */
11
- export type Boundary = "latest" | "local" | SessionProviderContext.Provenance;
13
+ export type Boundary = "latest" | "local" | Model.Ref;
14
+ /** A completed provider compaction, which replays `native.messages` instead of a summary. */
15
+ export declare const isNativeCompaction: (message: SessionMessage.Info) => message is SessionMessage.CompactionCompleted & {
16
+ readonly native: {
17
+ readonly messages: unknown;
18
+ };
19
+ };
20
+ /** A native compaction's window: canonical AI messages, stored as JSON. */
21
+ export declare const NativeWindow: Schema.toCodecJson<Schema.$Array<typeof Message>>;
12
22
  export declare const latestCompaction: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
13
23
  $client: import("effect/sql/SqlClient").SqlClient;
14
- }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<{
24
+ }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary, before?: number | undefined) => Effect.Effect<{
15
25
  seq: number;
16
26
  } | undefined, never, never>;
17
- export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
27
+ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inferSelect) => {
18
28
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
19
29
  readonly metadata?: {
20
30
  readonly [x: string]: unknown;
@@ -26,7 +36,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
26
36
  readonly status: "running";
27
37
  readonly reason: "auto" | "manual";
28
38
  readonly summary: string;
29
- readonly recent: string;
30
39
  } | {
31
40
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
32
41
  readonly metadata?: {
@@ -53,23 +62,10 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
53
62
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
54
63
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
55
64
  } | undefined;
56
- readonly providerState?: {
65
+ readonly native?: {
57
66
  readonly [x: string]: unknown;
58
67
  } | undefined;
59
68
  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;
70
- };
71
- readonly messages: Schema.Json;
72
- } | undefined;
73
69
  } | {
74
70
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
75
71
  readonly metadata?: {
@@ -127,10 +123,7 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
127
123
  readonly id: string;
128
124
  readonly name: string;
129
125
  readonly executed?: boolean | undefined;
130
- readonly providerState?: {
131
- readonly [x: string]: unknown;
132
- } | undefined;
133
- readonly providerResultState?: {
126
+ readonly native?: {
134
127
  readonly [x: string]: unknown;
135
128
  } | undefined;
136
129
  readonly state: {
@@ -211,13 +204,13 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
211
204
  } | {
212
205
  readonly type: "text";
213
206
  readonly text: string;
214
- readonly state?: {
207
+ readonly native?: {
215
208
  readonly [x: string]: unknown;
216
209
  } | undefined;
217
210
  } | {
218
211
  readonly type: "reasoning";
219
212
  readonly text: string;
220
- readonly state?: {
213
+ readonly native?: {
221
214
  readonly [x: string]: unknown;
222
215
  } | undefined;
223
216
  readonly time?: {
@@ -232,7 +225,7 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
232
225
  } | undefined;
233
226
  readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
234
227
  readonly rawFinish?: string | undefined;
235
- readonly providerState?: {
228
+ readonly native?: {
236
229
  readonly [x: string]: unknown;
237
230
  } | undefined;
238
231
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
@@ -429,10 +422,8 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
429
422
  } | undefined;
430
423
  }[] | undefined;
431
424
  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<({
425
+ };
426
+ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
436
427
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
437
428
  readonly metadata?: {
438
429
  readonly [x: string]: unknown;
@@ -444,7 +435,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
444
435
  readonly status: "running";
445
436
  readonly reason: "auto" | "manual";
446
437
  readonly summary: string;
447
- readonly recent: string;
448
438
  } | {
449
439
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
450
440
  readonly metadata?: {
@@ -471,23 +461,10 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
471
461
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
472
462
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
473
463
  } | undefined;
474
- readonly providerState?: {
464
+ readonly native?: {
475
465
  readonly [x: string]: unknown;
476
466
  } | undefined;
477
467
  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;
491
468
  } | {
492
469
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
493
470
  readonly metadata?: {
@@ -545,10 +522,7 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
545
522
  readonly id: string;
546
523
  readonly name: string;
547
524
  readonly executed?: boolean | undefined;
548
- readonly providerState?: {
549
- readonly [x: string]: unknown;
550
- } | undefined;
551
- readonly providerResultState?: {
525
+ readonly native?: {
552
526
  readonly [x: string]: unknown;
553
527
  } | undefined;
554
528
  readonly state: {
@@ -629,13 +603,13 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
629
603
  } | {
630
604
  readonly type: "text";
631
605
  readonly text: string;
632
- readonly state?: {
606
+ readonly native?: {
633
607
  readonly [x: string]: unknown;
634
608
  } | undefined;
635
609
  } | {
636
610
  readonly type: "reasoning";
637
611
  readonly text: string;
638
- readonly state?: {
612
+ readonly native?: {
639
613
  readonly [x: string]: unknown;
640
614
  } | undefined;
641
615
  readonly time?: {
@@ -650,7 +624,7 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
650
624
  } | undefined;
651
625
  readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
652
626
  readonly rawFinish?: string | undefined;
653
- readonly providerState?: {
627
+ readonly native?: {
654
628
  readonly [x: string]: unknown;
655
629
  } | undefined;
656
630
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
@@ -847,851 +821,24 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
847
821
  } | undefined;
848
822
  }[] | undefined;
849
823
  readonly type: "user";
850
- })[], MessageDecodeError, never>;
824
+ }, MessageDecodeError, never>;
825
+ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
826
+ $client: import("effect/sql/SqlClient").SqlClient;
827
+ }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<SessionMessage.Info[], MessageDecodeError, never>;
851
828
  export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
852
829
  $client: import("effect/sql/SqlClient").SqlClient;
853
830
  }, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
854
831
  initial: string;
855
- entries: {
856
- seq: number;
857
- message: {
858
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
859
- readonly metadata?: {
860
- readonly [x: string]: unknown;
861
- } | undefined;
862
- readonly time: {
863
- readonly created: import("effect/DateTime").Utc;
864
- };
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">;
872
- readonly metadata?: {
873
- readonly [x: string]: unknown;
874
- } | undefined;
875
- readonly time: {
876
- readonly created: import("effect/DateTime").Utc;
877
- };
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
- };
888
- } | undefined;
889
- readonly status: "completed";
890
- readonly reason: "auto" | "manual";
891
- readonly model?: {
892
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
893
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
894
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
895
- } | undefined;
896
- readonly providerState?: {
897
- readonly [x: string]: unknown;
898
- } | 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;
910
- };
911
- readonly messages: Schema.Json;
912
- } | undefined;
913
- } | {
914
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
915
- readonly metadata?: {
916
- readonly [x: string]: unknown;
917
- } | undefined;
918
- readonly time: {
919
- readonly created: import("effect/DateTime").Utc;
920
- };
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
- };
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
- };
942
- } | {
943
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
944
- readonly metadata?: {
945
- readonly [x: string]: unknown;
946
- } | undefined;
947
- readonly time: {
948
- readonly created: import("effect/DateTime").Utc;
949
- };
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;
953
- } | {
954
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
955
- readonly metadata?: {
956
- readonly [x: string]: unknown;
957
- } | undefined;
958
- readonly type: "assistant";
959
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
960
- readonly model: {
961
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
962
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
963
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
964
- };
965
- readonly content: readonly ({
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;
976
- readonly state: {
977
- readonly status: "streaming";
978
- readonly input: string;
979
- } | {
980
- readonly status: "running";
981
- readonly input: {
982
- readonly [x: string]: unknown;
983
- };
984
- readonly metadata: {
985
- readonly [x: string]: Schema.Json;
986
- };
987
- } | {
988
- readonly status: "completed";
989
- readonly input: {
990
- readonly [x: string]: unknown;
991
- };
992
- readonly content: readonly [{
993
- readonly type: "text";
994
- readonly text: string;
995
- } | {
996
- readonly type: "file";
997
- readonly uri: string;
998
- readonly mime: string;
999
- readonly name?: string | undefined;
1000
- }, ...({
1001
- readonly type: "text";
1002
- readonly text: string;
1003
- } | {
1004
- readonly type: "file";
1005
- readonly uri: string;
1006
- readonly mime: string;
1007
- readonly name?: string | undefined;
1008
- })[]];
1009
- readonly metadata?: {
1010
- readonly [x: string]: Schema.Json;
1011
- } | undefined;
1012
- } | {
1013
- readonly status: "error";
1014
- readonly input: {
1015
- readonly [x: string]: unknown;
1016
- };
1017
- readonly error: {
1018
- readonly type: string;
1019
- readonly message: string;
1020
- readonly status?: number | undefined;
1021
- readonly response?: {
1022
- readonly body: string;
1023
- } | undefined;
1024
- };
1025
- readonly content?: readonly [{
1026
- readonly type: "text";
1027
- readonly text: string;
1028
- } | {
1029
- readonly type: "file";
1030
- readonly uri: string;
1031
- readonly mime: string;
1032
- readonly name?: string | undefined;
1033
- }, ...({
1034
- readonly type: "text";
1035
- readonly text: string;
1036
- } | {
1037
- readonly type: "file";
1038
- readonly uri: string;
1039
- readonly mime: string;
1040
- readonly name?: string | undefined;
1041
- })[]] | undefined;
1042
- readonly metadata?: {
1043
- readonly [x: string]: Schema.Json;
1044
- } | undefined;
1045
- };
1046
- readonly time: {
1047
- readonly created: import("effect/DateTime").Utc;
1048
- readonly ran?: import("effect/DateTime").Utc | undefined;
1049
- readonly completed?: import("effect/DateTime").Utc | undefined;
1050
- };
1051
- } | {
1052
- readonly type: "text";
1053
- readonly text: string;
1054
- readonly state?: {
1055
- readonly [x: string]: unknown;
1056
- } | undefined;
1057
- } | {
1058
- readonly type: "reasoning";
1059
- readonly text: string;
1060
- readonly state?: {
1061
- readonly [x: string]: unknown;
1062
- } | undefined;
1063
- readonly time?: {
1064
- readonly created: import("effect/DateTime").Utc;
1065
- readonly completed?: import("effect/DateTime").Utc | undefined;
1066
- } | undefined;
1067
- })[];
1068
- readonly snapshot?: {
1069
- readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1070
- readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1071
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1072
- } | undefined;
1073
- readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
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;
1079
- readonly tokens?: {
1080
- readonly input: number;
1081
- readonly output: number;
1082
- readonly reasoning: number;
1083
- readonly cache: {
1084
- readonly read: number;
1085
- readonly write: number;
1086
- };
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;
1096
- readonly retry?: {
1097
- readonly attempt: number;
1098
- readonly at: import("effect/DateTime").Utc;
1099
- readonly error: {
1100
- readonly type: string;
1101
- readonly message: string;
1102
- readonly status?: number | undefined;
1103
- readonly response?: {
1104
- readonly body: string;
1105
- } | undefined;
1106
- };
1107
- } | undefined;
1108
- readonly time: {
1109
- readonly created: import("effect/DateTime").Utc;
1110
- readonly streamed?: import("effect/DateTime").Utc | undefined;
1111
- readonly completed?: import("effect/DateTime").Utc | undefined;
1112
- };
1113
- } | {
1114
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1115
- readonly metadata?: {
1116
- readonly [x: string]: unknown;
1117
- } | undefined;
1118
- readonly time: {
1119
- readonly created: import("effect/DateTime").Utc;
1120
- };
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;
1130
- } | undefined;
1131
- } | {
1132
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1133
- readonly metadata?: {
1134
- readonly [x: string]: unknown;
1135
- } | undefined;
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;
1150
- };
1151
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1152
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1153
- } | undefined;
1154
- } | {
1155
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1156
- readonly metadata?: {
1157
- readonly [x: string]: unknown;
1158
- } | undefined;
1159
- readonly time: {
1160
- readonly created: import("effect/DateTime").Utc;
1161
- };
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;
1167
- };
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">;
1175
- readonly metadata?: {
1176
- readonly [x: string]: unknown;
1177
- } | undefined;
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;
1188
- } | undefined;
1189
- readonly time: {
1190
- readonly created: import("effect/DateTime").Utc;
1191
- readonly completed?: import("effect/DateTime").Utc | undefined;
1192
- };
1193
- } | {
1194
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1195
- readonly metadata?: {
1196
- readonly [x: string]: unknown;
1197
- } | undefined;
1198
- readonly time: {
1199
- readonly created: import("effect/DateTime").Utc;
1200
- };
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">;
1207
- readonly metadata?: {
1208
- readonly [x: string]: unknown;
1209
- } | 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;
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
- };
832
+ entries: readonly {
833
+ readonly seq: number;
834
+ readonly message: SessionMessage.Info;
1273
835
  }[];
1274
836
  }, never, never>;
1275
837
  export declare const preview: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1276
838
  $client: import("effect/sql/SqlClient").SqlClient;
1277
839
  }, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
1278
840
  initial: string;
1279
- messages: ({
1280
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1281
- readonly metadata?: {
1282
- readonly [x: string]: unknown;
1283
- } | undefined;
1284
- readonly time: {
1285
- readonly created: import("effect/DateTime").Utc;
1286
- };
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">;
1294
- readonly metadata?: {
1295
- readonly [x: string]: unknown;
1296
- } | undefined;
1297
- readonly time: {
1298
- readonly created: import("effect/DateTime").Utc;
1299
- };
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
- };
1310
- } | undefined;
1311
- readonly status: "completed";
1312
- readonly reason: "auto" | "manual";
1313
- readonly model?: {
1314
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1315
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1316
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1317
- } | undefined;
1318
- readonly providerState?: {
1319
- readonly [x: string]: unknown;
1320
- } | 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;
1332
- };
1333
- readonly messages: Schema.Json;
1334
- } | undefined;
1335
- } | {
1336
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1337
- readonly metadata?: {
1338
- readonly [x: string]: unknown;
1339
- } | undefined;
1340
- readonly time: {
1341
- readonly created: import("effect/DateTime").Utc;
1342
- };
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
- };
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
- };
1364
- } | {
1365
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1366
- readonly metadata?: {
1367
- readonly [x: string]: unknown;
1368
- } | undefined;
1369
- readonly time: {
1370
- readonly created: import("effect/DateTime").Utc;
1371
- };
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;
1375
- } | {
1376
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1377
- readonly metadata?: {
1378
- readonly [x: string]: unknown;
1379
- } | undefined;
1380
- readonly type: "assistant";
1381
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1382
- readonly model: {
1383
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1384
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1385
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1386
- };
1387
- readonly content: readonly ({
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;
1398
- readonly state: {
1399
- readonly status: "streaming";
1400
- readonly input: string;
1401
- } | {
1402
- readonly status: "running";
1403
- readonly input: {
1404
- readonly [x: string]: unknown;
1405
- };
1406
- readonly metadata: {
1407
- readonly [x: string]: Schema.Json;
1408
- };
1409
- } | {
1410
- readonly status: "completed";
1411
- readonly input: {
1412
- readonly [x: string]: unknown;
1413
- };
1414
- readonly content: readonly [{
1415
- readonly type: "text";
1416
- readonly text: string;
1417
- } | {
1418
- readonly type: "file";
1419
- readonly uri: string;
1420
- readonly mime: string;
1421
- readonly name?: string | undefined;
1422
- }, ...({
1423
- readonly type: "text";
1424
- readonly text: string;
1425
- } | {
1426
- readonly type: "file";
1427
- readonly uri: string;
1428
- readonly mime: string;
1429
- readonly name?: string | undefined;
1430
- })[]];
1431
- readonly metadata?: {
1432
- readonly [x: string]: Schema.Json;
1433
- } | undefined;
1434
- } | {
1435
- readonly status: "error";
1436
- readonly input: {
1437
- readonly [x: string]: unknown;
1438
- };
1439
- readonly error: {
1440
- readonly type: string;
1441
- readonly message: string;
1442
- readonly status?: number | undefined;
1443
- readonly response?: {
1444
- readonly body: string;
1445
- } | undefined;
1446
- };
1447
- readonly content?: readonly [{
1448
- readonly type: "text";
1449
- readonly text: string;
1450
- } | {
1451
- readonly type: "file";
1452
- readonly uri: string;
1453
- readonly mime: string;
1454
- readonly name?: string | undefined;
1455
- }, ...({
1456
- readonly type: "text";
1457
- readonly text: string;
1458
- } | {
1459
- readonly type: "file";
1460
- readonly uri: string;
1461
- readonly mime: string;
1462
- readonly name?: string | undefined;
1463
- })[]] | undefined;
1464
- readonly metadata?: {
1465
- readonly [x: string]: Schema.Json;
1466
- } | undefined;
1467
- };
1468
- readonly time: {
1469
- readonly created: import("effect/DateTime").Utc;
1470
- readonly ran?: import("effect/DateTime").Utc | undefined;
1471
- readonly completed?: import("effect/DateTime").Utc | undefined;
1472
- };
1473
- } | {
1474
- readonly type: "text";
1475
- readonly text: string;
1476
- readonly state?: {
1477
- readonly [x: string]: unknown;
1478
- } | undefined;
1479
- } | {
1480
- readonly type: "reasoning";
1481
- readonly text: string;
1482
- readonly state?: {
1483
- readonly [x: string]: unknown;
1484
- } | undefined;
1485
- readonly time?: {
1486
- readonly created: import("effect/DateTime").Utc;
1487
- readonly completed?: import("effect/DateTime").Utc | undefined;
1488
- } | undefined;
1489
- })[];
1490
- readonly snapshot?: {
1491
- readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1492
- readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1493
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1494
- } | undefined;
1495
- readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
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;
1501
- readonly tokens?: {
1502
- readonly input: number;
1503
- readonly output: number;
1504
- readonly reasoning: number;
1505
- readonly cache: {
1506
- readonly read: number;
1507
- readonly write: number;
1508
- };
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;
1518
- readonly retry?: {
1519
- readonly attempt: number;
1520
- readonly at: import("effect/DateTime").Utc;
1521
- readonly error: {
1522
- readonly type: string;
1523
- readonly message: string;
1524
- readonly status?: number | undefined;
1525
- readonly response?: {
1526
- readonly body: string;
1527
- } | undefined;
1528
- };
1529
- } | undefined;
1530
- readonly time: {
1531
- readonly created: import("effect/DateTime").Utc;
1532
- readonly streamed?: import("effect/DateTime").Utc | undefined;
1533
- readonly completed?: import("effect/DateTime").Utc | undefined;
1534
- };
1535
- } | {
1536
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1537
- readonly metadata?: {
1538
- readonly [x: string]: unknown;
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;
1553
- } | {
1554
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1555
- readonly metadata?: {
1556
- readonly [x: string]: unknown;
1557
- } | undefined;
1558
- readonly time: {
1559
- readonly created: import("effect/DateTime").Utc;
1560
- };
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">;
1578
- readonly metadata?: {
1579
- readonly [x: string]: unknown;
1580
- } | undefined;
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?: {
1591
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1592
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1593
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1594
- } | undefined;
1595
- } | {
1596
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1597
- readonly metadata?: {
1598
- readonly [x: string]: unknown;
1599
- } | undefined;
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;
1610
- } | undefined;
1611
- readonly time: {
1612
- readonly created: import("effect/DateTime").Utc;
1613
- readonly completed?: import("effect/DateTime").Utc | undefined;
1614
- };
1615
- } | {
1616
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1617
- readonly metadata?: {
1618
- readonly [x: string]: unknown;
1619
- } | undefined;
1620
- readonly time: {
1621
- readonly created: import("effect/DateTime").Utc;
1622
- };
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">;
1629
- readonly metadata?: {
1630
- readonly [x: string]: unknown;
1631
- } | 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";
1638
- } | {
1639
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1640
- readonly metadata?: {
1641
- readonly [x: string]: unknown;
1642
- } | undefined;
1643
- readonly time: {
1644
- readonly created: import("effect/DateTime").Utc;
1645
- };
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">;
1651
- readonly metadata?: {
1652
- readonly [x: string]: unknown;
1653
- } | undefined;
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;
1673
- } | 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
- })[];
841
+ messages: SessionMessage.Info[];
1695
842
  instructionUpdate: string;
1696
843
  }, Instructions.InitializationBlocked, never>;
1697
844
  /** Returns the session's first user message. */