@opencode/core 0.0.0-dev-536 → 0.0.0-dev-544

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 (932) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +88 -88
  3. package/dist/aisdk-native.js +102 -102
  4. package/dist/aisdk.js +108 -108
  5. package/dist/app.js +9 -9
  6. package/dist/artifact.js +244 -242
  7. package/dist/bus.js +80 -80
  8. package/dist/chunks/{credential-pyjzgfyd.js → wellknown-01hb15j6.js} +12 -12
  9. package/dist/chunks/{credential-034tev2y.js → wellknown-034tev2y.js} +2 -2
  10. package/dist/chunks/{credential-5atjh3st.js → wellknown-07jk5ngn.js} +24 -24
  11. package/dist/chunks/{credential-dd6vtars.js → wellknown-0cygc3c3.js} +141 -141
  12. package/dist/chunks/{credential-0j7gp832.js → wellknown-0j7gp832.js} +1 -1
  13. package/dist/chunks/{credential-hbx33pck.js → wellknown-0jqpdm07.js} +29 -29
  14. package/dist/chunks/{credential-r0k28ppd.js → wellknown-0jv2qtk2.js} +32 -32
  15. package/dist/chunks/{credential-0ma9gw4f.js → wellknown-0ma9gw4f.js} +2 -2
  16. package/dist/chunks/{credential-hfv6emas.js → wellknown-0ntsqf23.js} +3 -3
  17. package/dist/chunks/{credential-091wg1qk.js → wellknown-0sx8rwxa.js} +4 -4
  18. package/dist/chunks/{credential-1wz168mh.js → wellknown-1792r88e.js} +4 -4
  19. package/dist/chunks/{credential-5ar0v554.js → wellknown-18b1hh0p.js} +11 -11
  20. package/dist/chunks/{credential-2zgtj5af.js → wellknown-1a9ma15s.js} +52 -52
  21. package/dist/chunks/{credential-1aqsckx4.js → wellknown-1aqsckx4.js} +1 -1
  22. package/dist/chunks/{credential-1ep2p91f.js → wellknown-1ep2p91f.js} +2 -2
  23. package/dist/chunks/{credential-qd9bx8tg.js → wellknown-1jgyg348.js} +50 -50
  24. package/dist/chunks/{credential-0h86f0az.js → wellknown-1v2g13eq.js} +4 -4
  25. package/dist/chunks/{credential-1x2knyw4.js → wellknown-1x2knyw4.js} +1 -1
  26. package/dist/chunks/{credential-5zrxpy3q.js → wellknown-1yq9hg58.js} +5 -5
  27. package/dist/chunks/{credential-vs8c1pvb.js → wellknown-216f334t.js} +33 -33
  28. package/dist/chunks/{credential-w60jywjn.js → wellknown-21qhnj61.js} +19 -19
  29. package/dist/chunks/{credential-z1gv4d4d.js → wellknown-22mnexr7.js} +12 -12
  30. package/dist/chunks/{credential-mzabyprp.js → wellknown-23js9793.js} +10 -10
  31. package/dist/chunks/{credential-c38w4sag.js → wellknown-24pmgrfx.js} +4 -4
  32. package/dist/chunks/{credential-tb2mrvc9.js → wellknown-26wfx3k0.js} +4 -4
  33. package/dist/chunks/{credential-cnka4xay.js → wellknown-2aqh1ed0.js} +4 -4
  34. package/dist/chunks/{credential-2kg89srt.js → wellknown-2kg89srt.js} +1 -1
  35. package/dist/chunks/{credential-s1ba0vj0.js → wellknown-2p60zmnr.js} +2 -2
  36. package/dist/chunks/{credential-k6wcrn8p.js → wellknown-2r49z2a5.js} +7 -7
  37. package/dist/chunks/{credential-jnhgr88h.js → wellknown-2y8q1569.js} +6 -6
  38. package/dist/chunks/{credential-hh6kff9k.js → wellknown-304hg1at.js} +11 -11
  39. package/dist/chunks/{credential-epncr5nq.js → wellknown-31c60gbf.js} +10 -10
  40. package/dist/chunks/{credential-z080rjh6.js → wellknown-38aws4xb.js} +4 -4
  41. package/dist/chunks/{credential-3hepkmqq.js → wellknown-3hepkmqq.js} +1 -1
  42. package/dist/chunks/{credential-qmk292k1.js → wellknown-3kesfggk.js} +15 -15
  43. package/dist/chunks/{credential-efwvx77s.js → wellknown-3w477f44.js} +43 -43
  44. package/dist/chunks/{credential-40y6dtc2.js → wellknown-40y6dtc2.js} +1 -1
  45. package/dist/chunks/{credential-r41sfy63.js → wellknown-40za9wsf.js} +6 -6
  46. package/dist/chunks/{credential-jxd6f16v.js → wellknown-44pmzq9c.js} +2 -2
  47. package/dist/chunks/{credential-4dx1dgte.js → wellknown-4dx1dgte.js} +1 -1
  48. package/dist/chunks/{credential-zd5hw4m0.js → wellknown-4e6ftdsb.js} +18 -18
  49. package/dist/chunks/{credential-4f25tdd0.js → wellknown-4f25tdd0.js} +1 -1
  50. package/dist/chunks/{credential-6sdv6yng.js → wellknown-4gncpz5n.js} +3 -3
  51. package/dist/chunks/{credential-9znb64nr.js → wellknown-4hf4n0zm.js} +11 -11
  52. package/dist/chunks/{credential-m6hctm6x.js → wellknown-4hxssase.js} +11 -11
  53. package/dist/chunks/wellknown-4k5g9167.js +29 -0
  54. package/dist/chunks/{credential-dycqk1kb.js → wellknown-4nd2e4dn.js} +20 -20
  55. package/dist/chunks/{credential-32q55mmc.js → wellknown-4ptj8tnr.js} +16 -16
  56. package/dist/chunks/{credential-4pyp9zr9.js → wellknown-4pyp9zr9.js} +1 -1
  57. package/dist/chunks/{credential-g7bgj7j8.js → wellknown-4rmzjphn.js} +14 -14
  58. package/dist/chunks/{credential-fmy1jdbk.js → wellknown-4rrps9tb.js} +8 -8
  59. package/dist/chunks/{credential-4v008n1t.js → wellknown-4v008n1t.js} +1 -1
  60. package/dist/chunks/{credential-mt87jyzj.js → wellknown-4vfrhe1s.js} +21 -21
  61. package/dist/chunks/{credential-s9kvr45s.js → wellknown-527g67fv.js} +3 -3
  62. package/dist/chunks/{credential-fna4aj9m.js → wellknown-5ak7srjx.js} +26 -26
  63. package/dist/chunks/{credential-rm805hm8.js → wellknown-5cpx6xpr.js} +24 -24
  64. package/dist/chunks/{credential-3v48b45n.js → wellknown-5e49hhq7.js} +5 -5
  65. package/dist/chunks/{credential-rqfj3t9g.js → wellknown-5h0dgqn6.js} +25 -25
  66. package/dist/chunks/{credential-5m9w47nd.js → wellknown-5m9w47nd.js} +1 -1
  67. package/dist/chunks/{credential-n3a992sv.js → wellknown-5p3pmmf0.js} +11 -11
  68. package/dist/chunks/{credential-ya5rnfh5.js → wellknown-5r658053.js} +38 -38
  69. package/dist/chunks/{credential-09p682nh.js → wellknown-622za4kq.js} +13 -13
  70. package/dist/chunks/{credential-2tqzzkxk.js → wellknown-64g4y4qt.js} +5 -5
  71. package/dist/chunks/{credential-zhcyvr56.js → wellknown-64n80mk6.js} +6 -6
  72. package/dist/chunks/{credential-8xz27cp9.js → wellknown-67wwskyb.js} +4 -4
  73. package/dist/chunks/{credential-nnvqsyz2.js → wellknown-69y54dfb.js} +3 -3
  74. package/dist/chunks/{credential-ms43mmcd.js → wellknown-6d4vpd03.js} +25 -25
  75. package/dist/chunks/{credential-jhwp234h.js → wellknown-6dqyy18z.js} +4 -4
  76. package/dist/chunks/{credential-xtajt0f8.js → wellknown-6g4bbv4s.js} +8 -8
  77. package/dist/chunks/{credential-v8xpjzx2.js → wellknown-6gewtzh4.js} +18 -12
  78. package/dist/chunks/{credential-s6f0a6j1.js → wellknown-6phyf051.js} +21 -21
  79. package/dist/chunks/{credential-0y4h8sk3.js → wellknown-6pn4h7dy.js} +9 -9
  80. package/dist/chunks/{credential-whxygsj9.js → wellknown-6qyw7ax7.js} +2 -2
  81. package/dist/chunks/{credential-6bn51m2k.js → wellknown-6x0ejca2.js} +82 -82
  82. package/dist/chunks/{credential-yf3psvbp.js → wellknown-6yg9jtc9.js} +7 -7
  83. package/dist/chunks/{credential-rzr87g3j.js → wellknown-6yx1ny7j.js} +16 -16
  84. package/dist/chunks/{credential-rddrqx2r.js → wellknown-70a8n8w4.js} +32 -32
  85. package/dist/chunks/{credential-rv0z0vr6.js → wellknown-71ybbdtm.js} +26 -26
  86. package/dist/chunks/{credential-ztjmypa7.js → wellknown-7539c3cr.js} +3 -3
  87. package/dist/chunks/{credential-775hqbnd.js → wellknown-775hqbnd.js} +3 -3
  88. package/dist/chunks/{credential-y3p3hzkr.js → wellknown-78p2h4ex.js} +5 -5
  89. package/dist/chunks/{credential-3vxab1ay.js → wellknown-78q9edgf.js} +29 -29
  90. package/dist/chunks/{credential-eahj4sm0.js → wellknown-78sf79w1.js} +32 -32
  91. package/dist/chunks/{credential-7bmhse3q.js → wellknown-7bmhse3q.js} +1 -1
  92. package/dist/chunks/{credential-dcxxa538.js → wellknown-7ctbfyn1.js} +7 -7
  93. package/dist/chunks/{credential-s28sx4x7.js → wellknown-7hm646nv.js} +9 -9
  94. package/dist/chunks/{credential-52e52t3f.js → wellknown-7k8w9ggc.js} +9 -9
  95. package/dist/chunks/{credential-532ywzc1.js → wellknown-7k968r19.js} +9 -9
  96. package/dist/chunks/{credential-ct44wyg7.js → wellknown-7mx8sa5e.js} +35 -35
  97. package/dist/chunks/{credential-7w2ypzdf.js → wellknown-7w2ypzdf.js} +1 -1
  98. package/dist/chunks/{credential-7weczvnd.js → wellknown-7weczvnd.js} +1 -1
  99. package/dist/chunks/{credential-zs4nn1sa.js → wellknown-7x0yekh4.js} +32 -32
  100. package/dist/chunks/wellknown-7yv5xa0k.js +18 -0
  101. package/dist/chunks/{credential-eef6q9te.js → wellknown-844cv8mb.js} +11 -11
  102. package/dist/chunks/{credential-ftwdkyc9.js → wellknown-84pmvy04.js} +3 -3
  103. package/dist/chunks/{credential-cpv0n993.js → wellknown-84t8qgt6.js} +7 -7
  104. package/dist/chunks/{credential-fcmknjb0.js → wellknown-876s7cjx.js} +4 -4
  105. package/dist/chunks/{credential-89287pr7.js → wellknown-89287pr7.js} +1 -1
  106. package/dist/chunks/{credential-8b3vzgkx.js → wellknown-8b3vzgkx.js} +1 -1
  107. package/dist/chunks/{credential-8cg7mtm3.js → wellknown-8cg7mtm3.js} +1 -1
  108. package/dist/chunks/{credential-2ydq76v2.js → wellknown-8n0wac5j.js} +18 -18
  109. package/dist/chunks/{credential-fggszrjp.js → wellknown-8neyg7hc.js} +5 -5
  110. package/dist/chunks/{credential-hgens9sz.js → wellknown-8nxj1m7z.js} +15 -15
  111. package/dist/chunks/{credential-pkkerzhz.js → wellknown-8sb7jtsn.js} +9 -9
  112. package/dist/chunks/{credential-8sxe6kv8.js → wellknown-8sxe6kv8.js} +2 -2
  113. package/dist/chunks/{credential-mtth1sbv.js → wellknown-8t16efcn.js} +6 -6
  114. package/dist/chunks/{credential-r17fbvme.js → wellknown-8t99kr38.js} +4 -4
  115. package/dist/chunks/{credential-pwbzm91x.js → wellknown-8t9dc57a.js} +12 -12
  116. package/dist/chunks/{credential-xtfq8pqj.js → wellknown-8w4z3jx9.js} +26 -26
  117. package/dist/chunks/{credential-8wtp7s3z.js → wellknown-8wtp7s3z.js} +1 -1
  118. package/dist/chunks/{credential-90zstvax.js → wellknown-90zstvax.js} +1 -1
  119. package/dist/chunks/{credential-6fkr16p6.js → wellknown-916c9ph1.js} +28 -28
  120. package/dist/chunks/{credential-pv1cfp15.js → wellknown-93j56vk9.js} +7 -7
  121. package/dist/chunks/{credential-qk5sk9d1.js → wellknown-93xmyh8q.js} +4 -4
  122. package/dist/chunks/{credential-kh1mqnxp.js → wellknown-963hk181.js} +9 -9
  123. package/dist/chunks/{credential-td4c90v1.js → wellknown-9cmwmmj9.js} +26 -26
  124. package/dist/chunks/{credential-sg92pwtq.js → wellknown-9ha2gsvy.js} +18 -21
  125. package/dist/chunks/{credential-f6xevjeh.js → wellknown-9r46ns0q.js} +13 -13
  126. package/dist/chunks/{credential-xad1gvt8.js → wellknown-9rqhy0gk.js} +5 -5
  127. package/dist/chunks/{credential-3znacx40.js → wellknown-9thpjtv8.js} +15 -15
  128. package/dist/chunks/{credential-mk0xrb1c.js → wellknown-a2whshkj.js} +3 -3
  129. package/dist/chunks/{credential-bsrm4kv0.js → wellknown-a4ww6fpm.js} +6 -6
  130. package/dist/chunks/{credential-pm7j5tnb.js → wellknown-adxps1x3.js} +20 -20
  131. package/dist/chunks/{credential-4apryppr.js → wellknown-afcqbr6y.js} +12 -12
  132. package/dist/chunks/{credential-nped9znn.js → wellknown-agfm32mg.js} +11 -11
  133. package/dist/chunks/{credential-eyd2epv6.js → wellknown-ah7ajmgp.js} +6 -6
  134. package/dist/chunks/{credential-185b4qke.js → wellknown-ajmztxs2.js} +10 -10
  135. package/dist/chunks/{credential-21t0qx4q.js → wellknown-ajy9n10r.js} +81 -62
  136. package/dist/chunks/{credential-wswwrkxc.js → wellknown-as0v1mdn.js} +25 -25
  137. package/dist/chunks/{credential-fbesfbqy.js → wellknown-avr0hj0j.js} +5 -5
  138. package/dist/chunks/{credential-ck5skwyt.js → wellknown-aw8r1d4y.js} +21 -21
  139. package/dist/chunks/{credential-ayjs7tqn.js → wellknown-ayjs7tqn.js} +2 -2
  140. package/dist/chunks/{credential-b6vsg801.js → wellknown-b6vsg801.js} +2 -2
  141. package/dist/chunks/{credential-bjnddfdk.js → wellknown-b9x3dhh2.js} +19 -19
  142. package/dist/chunks/{credential-784kfkdm.js → wellknown-bavdhvpv.js} +13 -13
  143. package/dist/chunks/{credential-ndpg87xc.js → wellknown-bbve6zaf.js} +10 -10
  144. package/dist/chunks/{credential-cr4rfj9z.js → wellknown-bhfd478d.js} +4 -4
  145. package/dist/chunks/{credential-6t6sr0eh.js → wellknown-bqwmb801.js} +12 -12
  146. package/dist/chunks/{credential-bstexjd6.js → wellknown-bstexjd6.js} +1 -1
  147. package/dist/chunks/{credential-bmppaxha.js → wellknown-c2nxgvxq.js} +13 -13
  148. package/dist/chunks/{credential-9qreeknd.js → wellknown-c3p6atjz.js} +16 -16
  149. package/dist/chunks/{credential-q9cj65aa.js → wellknown-c3rbpg4q.js} +25 -25
  150. package/dist/chunks/{credential-c6x7d2ts.js → wellknown-c6x7d2ts.js} +1 -1
  151. package/dist/chunks/{credential-evm8jpap.js → wellknown-c8g4pdbe.js} +15 -15
  152. package/dist/chunks/{credential-d8jh378x.js → wellknown-cazpgcbm.js} +3 -3
  153. package/dist/chunks/{credential-rc0x8mhr.js → wellknown-ckdnq1n6.js} +6 -6
  154. package/dist/chunks/{credential-tkcphgva.js → wellknown-ckpr449p.js} +21 -21
  155. package/dist/chunks/wellknown-cmpzgpye.js +265 -0
  156. package/dist/chunks/{credential-cwrgdav8.js → wellknown-cwrgdav8.js} +2 -2
  157. package/dist/chunks/{credential-1zfdsztp.js → wellknown-d2bc4h5f.js} +34 -34
  158. package/dist/chunks/{credential-d390zwf3.js → wellknown-d390zwf3.js} +3 -3
  159. package/dist/chunks/{credential-d4v9tmah.js → wellknown-d4v9tmah.js} +2 -2
  160. package/dist/chunks/{credential-5kc3t2f9.js → wellknown-d8mebr7j.js} +11 -11
  161. package/dist/chunks/{credential-12xph39a.js → wellknown-d9hrzwv3.js} +26 -26
  162. package/dist/chunks/{credential-ddr3xpvp.js → wellknown-ded5cj8f.js} +3 -3
  163. package/dist/chunks/{credential-5thev09r.js → wellknown-djadtdmr.js} +8 -8
  164. package/dist/chunks/{credential-wmmq5j3n.js → wellknown-dk5f2cb6.js} +15 -15
  165. package/dist/chunks/{credential-dqqa4h8r.js → wellknown-dqjhtdfb.js} +9 -9
  166. package/dist/chunks/{credential-dt77769w.js → wellknown-dt77769w.js} +1 -1
  167. package/dist/chunks/{credential-fc4tbcnm.js → wellknown-dv2ha7en.js} +21 -37
  168. package/dist/chunks/{credential-38atze3s.js → wellknown-dvnqv6yn.js} +4 -4
  169. package/dist/chunks/{credential-3r82djzy.js → wellknown-e27sg1de.js} +8 -8
  170. package/dist/chunks/{credential-1wkw5j0x.js → wellknown-e6s7s9r0.js} +22 -22
  171. package/dist/chunks/{credential-ppdsqj4g.js → wellknown-e71bb87j.js} +8 -8
  172. package/dist/chunks/{credential-e834z07m.js → wellknown-e834z07m.js} +1 -1
  173. package/dist/chunks/{credential-pmze51tp.js → wellknown-ecj07vsr.js} +5 -5
  174. package/dist/chunks/{credential-bkstk0bq.js → wellknown-ejt9ccwd.js} +21 -21
  175. package/dist/chunks/{credential-08js3xzz.js → wellknown-env3g1se.js} +28 -28
  176. package/dist/chunks/{credential-eqw4pqj1.js → wellknown-eqw4pqj1.js} +2 -2
  177. package/dist/chunks/{credential-5d0yn1x9.js → wellknown-eygpte75.js} +4 -4
  178. package/dist/chunks/{credential-rzww68dn.js → wellknown-f5hdrxfr.js} +20 -20
  179. package/dist/chunks/{credential-jyw13az8.js → wellknown-favj3v7h.js} +20 -20
  180. package/dist/chunks/wellknown-fcmefckm.js +107 -0
  181. package/dist/chunks/{credential-mmv1vxqz.js → wellknown-fdmmze7m.js} +20 -20
  182. package/dist/chunks/{credential-fffv3p7h.js → wellknown-fffv3p7h.js} +1 -1
  183. package/dist/chunks/{credential-fg9p65nk.js → wellknown-fg9p65nk.js} +2 -2
  184. package/dist/chunks/{credential-b5gmm5g9.js → wellknown-fs1hk4j5.js} +78 -77
  185. package/dist/chunks/{credential-1bkb8enr.js → wellknown-ftm8abz8.js} +11 -11
  186. package/dist/chunks/{credential-p1gg392n.js → wellknown-fw9p8c97.js} +3 -3
  187. package/dist/chunks/{credential-hd3k4wz8.js → wellknown-fwp9mfc9.js} +4 -4
  188. package/dist/chunks/{credential-rpe4z2gp.js → wellknown-fy1fxdtx.js} +10 -10
  189. package/dist/chunks/{credential-crhr9pmy.js → wellknown-g0dnjnmp.js} +48 -48
  190. package/dist/chunks/{credential-m0020jk9.js → wellknown-g42ytbnb.js} +12 -12
  191. package/dist/chunks/{credential-jz047n49.js → wellknown-g5dv9qdk.js} +2 -2
  192. package/dist/chunks/{credential-gbjdnr5j.js → wellknown-gbjdnr5j.js} +2 -2
  193. package/dist/chunks/{credential-3adw4bt5.js → wellknown-gerka9tj.js} +9 -9
  194. package/dist/chunks/{credential-3302bjkk.js → wellknown-ghh04f1y.js} +8 -8
  195. package/dist/chunks/{credential-ghrv1g9c.js → wellknown-ghrv1g9c.js} +1 -1
  196. package/dist/chunks/{credential-x150ncgg.js → wellknown-gnkw4dwe.js} +2 -2
  197. package/dist/chunks/{credential-9nnfg015.js → wellknown-gqm5by7n.js} +35 -35
  198. package/dist/chunks/{credential-fkrsmynm.js → wellknown-gt63c6q4.js} +15 -15
  199. package/dist/chunks/{credential-tg7s7b5t.js → wellknown-gxs71cxp.js} +4 -4
  200. package/dist/chunks/{credential-ae1488hz.js → wellknown-h9dxetwp.js} +40 -40
  201. package/dist/chunks/{credential-ftcp6a85.js → wellknown-hnwp15mr.js} +10 -10
  202. package/dist/chunks/{credential-af42qy55.js → wellknown-hveesah3.js} +16 -16
  203. package/dist/chunks/{credential-kx0m2zmr.js → wellknown-hw55rhrf.js} +2 -2
  204. package/dist/chunks/{credential-r7r55277.js → wellknown-j0p3wt22.js} +7 -7
  205. package/dist/chunks/{credential-mxp7wq90.js → wellknown-j35zbqc8.js} +30 -30
  206. package/dist/chunks/{credential-hsfa5wye.js → wellknown-j5mmq8fx.js} +31 -31
  207. package/dist/chunks/{credential-cwkjgwzb.js → wellknown-j642t318.js} +15 -15
  208. package/dist/chunks/{credential-j9nxzz3g.js → wellknown-j9nxzz3g.js} +3 -3
  209. package/dist/chunks/{credential-tb825zqg.js → wellknown-jh1m9pe1.js} +17 -17
  210. package/dist/chunks/{credential-w08848s1.js → wellknown-jptcr37n.js} +4 -4
  211. package/dist/chunks/{credential-k3cx6fhe.js → wellknown-k3cx6fhe.js} +1 -1
  212. package/dist/chunks/{credential-mcq4sg40.js → wellknown-k3jch7se.js} +3 -3
  213. package/dist/chunks/{credential-m22p9x8d.js → wellknown-k3vhv03a.js} +9 -9
  214. package/dist/chunks/{credential-pph217vb.js → wellknown-k46qes9w.js} +17 -17
  215. package/dist/chunks/{credential-yh1pb7nq.js → wellknown-kcagvcjg.js} +18 -18
  216. package/dist/chunks/{credential-kh8gdsej.js → wellknown-kh8gdsej.js} +1 -1
  217. package/dist/chunks/{credential-k46dd5bg.js → wellknown-kj9n5bvh.js} +4 -4
  218. package/dist/chunks/{credential-5jnhh3mr.js → wellknown-kmgnetvv.js} +7 -7
  219. package/dist/chunks/{credential-5mktry4g.js → wellknown-kn2kkqtg.js} +32 -32
  220. package/dist/chunks/{credential-hh541heb.js → wellknown-kntwzcs4.js} +12 -12
  221. package/dist/chunks/{credential-w0ps2z8r.js → wellknown-kp7wb122.js} +4 -4
  222. package/dist/chunks/{credential-jrky1c5q.js → wellknown-kqaznnhz.js} +16 -16
  223. package/dist/chunks/{credential-z1nd2r11.js → wellknown-kryndetv.js} +9 -9
  224. package/dist/chunks/{credential-kt3bjfbg.js → wellknown-kt3bjfbg.js} +1 -1
  225. package/dist/chunks/{credential-fdjv9wxc.js → wellknown-ky7mywz6.js} +40 -40
  226. package/dist/chunks/{credential-t14fdean.js → wellknown-kykg0krq.js} +10 -10
  227. package/dist/chunks/{credential-kzczzf4v.js → wellknown-kzczzf4v.js} +1 -1
  228. package/dist/chunks/{credential-m1714858.js → wellknown-m1714858.js} +1 -1
  229. package/dist/chunks/{credential-hp4gmyzn.js → wellknown-m38c5mna.js} +12 -12
  230. package/dist/chunks/{credential-rmvhfck5.js → wellknown-m4mqann0.js} +16 -16
  231. package/dist/chunks/{credential-m9w0rfyh.js → wellknown-m9w0rfyh.js} +1 -1
  232. package/dist/chunks/{credential-mb7mbhnz.js → wellknown-mb7mbhnz.js} +3 -3
  233. package/dist/chunks/{credential-14cdsx65.js → wellknown-mcg6wrx9.js} +21 -21
  234. package/dist/chunks/{credential-v1m0y28q.js → wellknown-mkqdp8ha.js} +8 -8
  235. package/dist/chunks/{credential-9gpfbvxr.js → wellknown-mtz9zvnv.js} +32 -32
  236. package/dist/chunks/{credential-yqvc6gt9.js → wellknown-n1jqmr6e.js} +14 -14
  237. package/dist/chunks/{credential-cr44ae3x.js → wellknown-nchw3v9s.js} +5 -5
  238. package/dist/chunks/{credential-6vdhgs7x.js → wellknown-nng4wcd5.js} +37 -37
  239. package/dist/chunks/{credential-jn06257v.js → wellknown-nreph64x.js} +5 -5
  240. package/dist/chunks/{credential-94e33dpz.js → wellknown-nt907s04.js} +3 -3
  241. package/dist/chunks/{credential-7nw410fc.js → wellknown-nts2g98q.js} +7 -7
  242. package/dist/chunks/{credential-hzcz2kge.js → wellknown-nw5t6sqm.js} +11 -11
  243. package/dist/chunks/{credential-czwy3yzx.js → wellknown-nyxvvj5y.js} +7 -7
  244. package/dist/chunks/{credential-z1h60mxt.js → wellknown-paz19zvm.js} +11 -11
  245. package/dist/chunks/{credential-qh2tmrag.js → wellknown-pde1630y.js} +14 -14
  246. package/dist/chunks/{credential-pknna89w.js → wellknown-pknna89w.js} +1 -1
  247. package/dist/chunks/{credential-mv9g04tk.js → wellknown-ppyb48em.js} +4 -4
  248. package/dist/chunks/{credential-gd5jy3bq.js → wellknown-pq1w81da.js} +18 -18
  249. package/dist/chunks/{credential-qtf35215.js → wellknown-psb1wzhv.js} +2 -2
  250. package/dist/chunks/{credential-wt34v593.js → wellknown-ptta5dzs.js} +20 -20
  251. package/dist/chunks/{credential-nr82x0b0.js → wellknown-pyvcf3qs.js} +15 -15
  252. package/dist/chunks/{credential-y5ywn0s5.js → wellknown-q1ycgg2g.js} +6 -6
  253. package/dist/chunks/{credential-czdyqccf.js → wellknown-q2kh7wdt.js} +10 -10
  254. package/dist/chunks/{credential-02mgnhhy.js → wellknown-qh8p7evd.js} +17 -17
  255. package/dist/chunks/{credential-tvtf3ds7.js → wellknown-qh97hwxa.js} +8 -8
  256. package/dist/chunks/{credential-znjfpv5m.js → wellknown-qj27ec1j.js} +8 -8
  257. package/dist/chunks/{credential-hh0breba.js → wellknown-qjjba2hg.js} +23 -23
  258. package/dist/chunks/{credential-qp7r0hxv.js → wellknown-qp7r0hxv.js} +1 -1
  259. package/dist/chunks/{credential-hq3r0yyq.js → wellknown-qvdhyt1r.js} +6 -6
  260. package/dist/chunks/{credential-b7tbqzv7.js → wellknown-r21j31g5.js} +21 -21
  261. package/dist/chunks/{credential-vxh671ka.js → wellknown-r6gx5scm.js} +11 -11
  262. package/dist/chunks/{credential-rb9dy4dg.js → wellknown-rb9dy4dg.js} +1 -1
  263. package/dist/chunks/{credential-p9c2bv8w.js → wellknown-rcgdn5qy.js} +6 -6
  264. package/dist/chunks/{credential-25p5arjm.js → wellknown-ren5afew.js} +13 -13
  265. package/dist/chunks/{credential-rgc9cx3e.js → wellknown-rgc9cx3e.js} +2 -2
  266. package/dist/chunks/{credential-9g6f0gww.js → wellknown-rgjq3vy7.js} +84 -84
  267. package/dist/chunks/{credential-vt2d6wap.js → wellknown-rj7j5fvs.js} +4 -4
  268. package/dist/chunks/{credential-rmv7fhs4.js → wellknown-rmv7fhs4.js} +3 -3
  269. package/dist/chunks/{credential-4jwkszma.js → wellknown-rqcf1ars.js} +43 -43
  270. package/dist/chunks/{credential-rt5dr6hb.js → wellknown-rt5dr6hb.js} +1 -1
  271. package/dist/chunks/{credential-rc1vzpxk.js → wellknown-rtgdpz6a.js} +24 -24
  272. package/dist/chunks/{credential-5af5a271.js → wellknown-s8bc5ahg.js} +15 -15
  273. package/dist/chunks/{credential-sa3fpqfw.js → wellknown-sa3fpqfw.js} +2 -2
  274. package/dist/chunks/{credential-sbya78hr.js → wellknown-sbya78hr.js} +1 -1
  275. package/dist/chunks/{credential-sbz71ybr.js → wellknown-sbz71ybr.js} +1 -1
  276. package/dist/chunks/{credential-tg2fwbnk.js → wellknown-skycejk5.js} +11 -11
  277. package/dist/chunks/{credential-svcy3p9a.js → wellknown-svcy3p9a.js} +1 -1
  278. package/dist/chunks/{credential-f3c4sc3x.js → wellknown-svvatc1a.js} +20 -20
  279. package/dist/chunks/{credential-qfv1vs9k.js → wellknown-swx1ayq2.js} +24 -24
  280. package/dist/chunks/{credential-96djdqw5.js → wellknown-szwm4crx.js} +4 -4
  281. package/dist/chunks/{credential-ystmbt0x.js → wellknown-t4chsw57.js} +6 -6
  282. package/dist/chunks/{credential-3spf441s.js → wellknown-t62dywgn.js} +6 -6
  283. package/dist/chunks/{credential-hr016kcx.js → wellknown-t713nxyc.js} +22 -22
  284. package/dist/chunks/{credential-bqrxvrqn.js → wellknown-tb9p24fy.js} +3 -3
  285. package/dist/chunks/{credential-tczq8hjw.js → wellknown-tczq8hjw.js} +1 -1
  286. package/dist/chunks/{credential-6pgpb2d1.js → wellknown-tej16zf8.js} +13 -13
  287. package/dist/chunks/{credential-160yv0cs.js → wellknown-tg1vr1qt.js} +8 -8
  288. package/dist/chunks/{credential-3nnrz6f6.js → wellknown-tmc7xdjs.js} +4 -4
  289. package/dist/chunks/{credential-br5aq86c.js → wellknown-tqq48ymh.js} +16 -16
  290. package/dist/chunks/{credential-j376ae4e.js → wellknown-tr8x705m.js} +5 -5
  291. package/dist/chunks/{credential-wzh34rh0.js → wellknown-trz53kb7.js} +19 -19
  292. package/dist/chunks/{credential-b3bd7dkq.js → wellknown-ttxvctz4.js} +19 -19
  293. package/dist/chunks/{credential-tvtps2q9.js → wellknown-tvtps2q9.js} +1 -1
  294. package/dist/chunks/{credential-twssxy5n.js → wellknown-twssxy5n.js} +2 -2
  295. package/dist/chunks/{credential-x26wqd07.js → wellknown-tx91wa5k.js} +4 -4
  296. package/dist/chunks/{credential-9h0hqskf.js → wellknown-typch8q5.js} +8 -8
  297. package/dist/chunks/{credential-1gv6ecqt.js → wellknown-tzx7w4xq.js} +40 -40
  298. package/dist/chunks/{credential-v2r1d0zg.js → wellknown-v2r1d0zg.js} +1 -1
  299. package/dist/chunks/{credential-vzrfrcb3.js → wellknown-v7ym45ve.js} +352 -352
  300. package/dist/chunks/{credential-4d4e0pdw.js → wellknown-v7z6b0h4.js} +1 -1
  301. package/dist/chunks/{credential-0vjc4v0h.js → wellknown-vd8s5g25.js} +50 -50
  302. package/dist/chunks/{credential-y7vq6vw8.js → wellknown-vdjwcvss.js} +22 -22
  303. package/dist/chunks/{credential-431k8z7j.js → wellknown-veae84rz.js} +4 -4
  304. package/dist/chunks/{credential-fh51nahz.js → wellknown-vf0bysg6.js} +4 -4
  305. package/dist/chunks/{credential-vjf35v1f.js → wellknown-vjf35v1f.js} +1 -1
  306. package/dist/chunks/{credential-etash0e1.js → wellknown-vk8nsjgj.js} +58 -49
  307. package/dist/chunks/{credential-mp4yqhh3.js → wellknown-vkf217q7.js} +13 -13
  308. package/dist/chunks/{credential-31vqtk0q.js → wellknown-vrztdcv6.js} +59 -59
  309. package/dist/chunks/{credential-teav1bzy.js → wellknown-vt4r9rmy.js} +9 -9
  310. package/dist/chunks/{credential-1t2v30m1.js → wellknown-vwjpa1de.js} +9 -9
  311. package/dist/chunks/{credential-jbn9j86e.js → wellknown-w1nf0m3m.js} +1 -1
  312. package/dist/chunks/{credential-w3wsvvr9.js → wellknown-w3wsvvr9.js} +1 -1
  313. package/dist/chunks/{credential-fznmdakp.js → wellknown-w687dnns.js} +4 -4
  314. package/dist/chunks/{credential-mryyrt1j.js → wellknown-w6qv2x4m.js} +13 -13
  315. package/dist/chunks/{credential-wakvkjy4.js → wellknown-wakvkjy4.js} +1 -1
  316. package/dist/chunks/{credential-htafdd5g.js → wellknown-wcd776px.js} +8 -8
  317. package/dist/chunks/{credential-wd87259q.js → wellknown-wd87259q.js} +1 -1
  318. package/dist/chunks/{credential-vgvr47wg.js → wellknown-wdj2pyds.js} +23 -17
  319. package/dist/chunks/{credential-wegkxhrn.js → wellknown-wegkxhrn.js} +2 -2
  320. package/dist/chunks/{credential-4p7g7s5d.js → wellknown-wjwsbxqp.js} +19 -19
  321. package/dist/chunks/{credential-wnhgecwx.js → wellknown-wnhgecwx.js} +1 -1
  322. package/dist/chunks/{credential-mr56hep3.js → wellknown-wqtfc57y.js} +36 -36
  323. package/dist/chunks/{credential-ser3ppc0.js → wellknown-wrc5q975.js} +30 -30
  324. package/dist/chunks/{credential-8s5ntvrv.js → wellknown-wscn0j0k.js} +7 -7
  325. package/dist/chunks/{credential-07mns6fs.js → wellknown-x5dwefqm.js} +36 -36
  326. package/dist/chunks/{credential-ahks9m6m.js → wellknown-x6esyb8f.js} +48 -48
  327. package/dist/chunks/{credential-v6vqyfdw.js → wellknown-xewr2abs.js} +10 -10
  328. package/dist/chunks/{credential-88whcz9p.js → wellknown-xg7bvfxq.js} +17 -17
  329. package/dist/chunks/{credential-4cvtv9jh.js → wellknown-xgzg1q0g.js} +16 -16
  330. package/dist/chunks/{credential-xjr6c8m4.js → wellknown-xjr6c8m4.js} +1 -1
  331. package/dist/chunks/{credential-gfyf26w2.js → wellknown-xnjjt1mk.js} +15 -15
  332. package/dist/chunks/{credential-2wswmzty.js → wellknown-y35j1hcy.js} +5 -5
  333. package/dist/chunks/{credential-rznxhqc7.js → wellknown-y3wzejrp.js} +23 -23
  334. package/dist/chunks/{credential-yb20nhc3.js → wellknown-yb20nhc3.js} +1 -1
  335. package/dist/chunks/{credential-7cjajm4v.js → wellknown-yf45bcda.js} +25 -25
  336. package/dist/chunks/{credential-hcte6jw7.js → wellknown-yfzr85ts.js} +2 -2
  337. package/dist/chunks/{credential-6vq4h2z8.js → wellknown-ygj09pgb.js} +21 -21
  338. package/dist/chunks/{credential-7xvzdz7m.js → wellknown-yq80m67a.js} +33 -30
  339. package/dist/chunks/{credential-yr705xyq.js → wellknown-yr705xyq.js} +1 -1
  340. package/dist/chunks/{credential-w268c38w.js → wellknown-yvk4sre1.js} +24 -24
  341. package/dist/chunks/{credential-yvtc2x31.js → wellknown-yvtc2x31.js} +1 -1
  342. package/dist/chunks/{credential-m20mn53s.js → wellknown-yvzmz16e.js} +49 -49
  343. package/dist/chunks/{credential-4xbew87g.js → wellknown-z6dhe6j6.js} +34 -34
  344. package/dist/chunks/{credential-f0xqpz1x.js → wellknown-zc2r7y9c.js} +6 -6
  345. package/dist/chunks/wellknown-zpdbqgja.js +64 -0
  346. package/dist/chunks/wellknown-zrgt28nc.js +26 -0
  347. package/dist/codemode/catalog.js +1 -1
  348. package/dist/codemode/execution.js +3 -3
  349. package/dist/codemode/fetch.js +145 -145
  350. package/dist/codemode/instructions.js +9 -9
  351. package/dist/codemode/tool.js +151 -151
  352. package/dist/command.js +94 -94
  353. package/dist/config/discovery.js +95 -95
  354. package/dist/config/integration.js +3 -3
  355. package/dist/config/managed.js +1 -1
  356. package/dist/config/markdown.js +1 -1
  357. package/dist/config/normalize.js +112 -112
  358. package/dist/config/plugin/agent.js +131 -131
  359. package/dist/config/plugin/command.js +234 -232
  360. package/dist/config/plugin/compaction.js +171 -171
  361. package/dist/config/plugin/compatibility.js +150 -150
  362. package/dist/config/plugin/entry-observer.js +1 -1
  363. package/dist/config/plugin/formatter.js +131 -131
  364. package/dist/config/plugin/image.js +128 -128
  365. package/dist/config/plugin/instruction.js +130 -130
  366. package/dist/config/plugin/location-watcher.js +132 -132
  367. package/dist/config/plugin/mcp.js +139 -139
  368. package/dist/config/plugin/policy.js +130 -130
  369. package/dist/config/plugin/provider.js +130 -130
  370. package/dist/config/plugin/reference.js +132 -132
  371. package/dist/config/plugin/shell.js +130 -130
  372. package/dist/config/plugin/skill-file.js +146 -146
  373. package/dist/config/plugin/skill-scan.js +1 -1
  374. package/dist/config/plugin/skill.js +151 -151
  375. package/dist/config/plugin/snapshot.js +130 -130
  376. package/dist/config/plugin/source.js +134 -134
  377. package/dist/config/plugin/tool-output.js +131 -131
  378. package/dist/config/plugin/websearch.js +129 -129
  379. package/dist/config/plugin/worktree.js +132 -132
  380. package/dist/config/variable.js +1 -1
  381. package/dist/config/watch.js +1 -1
  382. package/dist/config.js +133 -133
  383. package/dist/console-access.js +1 -1
  384. package/dist/credential/sql.js +2 -2
  385. package/dist/credential.js +94 -94
  386. package/dist/database/database.js +77 -77
  387. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  388. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  389. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  390. package/dist/database/drizzle/index.js +13 -13
  391. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  392. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  393. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  394. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  395. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  396. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  397. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  398. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  399. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  400. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  401. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  402. package/dist/database/drizzle.js +14 -14
  403. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  404. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  405. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  406. package/dist/database/migration/20260225215848_workspace.js +1 -1
  407. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  408. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  409. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  410. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  411. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  412. package/dist/database/migration/20260323234822_events.js +1 -1
  413. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  414. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  415. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  416. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  417. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  418. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  419. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  420. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  421. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  422. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  423. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  424. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  425. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  426. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  427. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  428. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  429. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  430. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  431. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  432. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  433. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  434. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  435. package/dist/database/migration/20260611035744_credential.js +1 -1
  436. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  437. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  438. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  439. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  440. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  441. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  442. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  443. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  444. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  445. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  446. package/dist/database/migration/20260812213948_worktree.js +1 -1
  447. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  448. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  449. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  450. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  451. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  452. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  453. package/dist/database/migration/20261024002554_session_allowance.js +1 -1
  454. package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
  455. package/dist/database/migration/20261025123711_blob.js +1 -1
  456. package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
  457. package/dist/database/migration/20261026223005_schedule.js +1 -1
  458. package/dist/database/migration/20261029002625_session_part.js +1 -1
  459. package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
  460. package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
  461. package/dist/database/migration/20261030054400_job.js +1 -1
  462. package/dist/database/migration.gen.js +60 -60
  463. package/dist/database/migration.js +62 -62
  464. package/dist/database/path.js +2 -2
  465. package/dist/database/schema.gen.js +1 -1
  466. package/dist/database/schema.sql.js +1 -1
  467. package/dist/database/v1-migration.bun.js +105 -105
  468. package/dist/database/v1-migration.js +1 -1
  469. package/dist/effect/app-node-builder.js +437 -435
  470. package/dist/effect/app-node-platform.js +2 -2
  471. package/dist/effect/keyed-mutex.js +1 -1
  472. package/dist/effect/websocket-constructor.js +1 -1
  473. package/dist/environment/driver.js +1 -1
  474. package/dist/environment/environment.js +105 -105
  475. package/dist/environment/exec-defaults.js +2 -2
  476. package/dist/environment/files.js +1 -1
  477. package/dist/environment/index.js +107 -107
  478. package/dist/environment/local.js +2 -2
  479. package/dist/environment/memory.js +2 -2
  480. package/dist/environment/unavailable.js +3 -3
  481. package/dist/event/sql.js +1 -1
  482. package/dist/event-logger.js +81 -81
  483. package/dist/file-access.js +157 -157
  484. package/dist/file-mutation.js +108 -108
  485. package/dist/file-retention.js +1 -1
  486. package/dist/file-write.js +161 -161
  487. package/dist/filesystem/fff.bun.js +2 -2
  488. package/dist/filesystem/fff.js +1 -1
  489. package/dist/filesystem/fff.node.js +2 -2
  490. package/dist/filesystem/fff.workerd.js +2 -2
  491. package/dist/filesystem/file-watch.js +86 -86
  492. package/dist/filesystem/location-watcher-policy.js +6 -6
  493. package/dist/filesystem/location-watcher.js +249 -247
  494. package/dist/filesystem/protected.js +1 -1
  495. package/dist/filesystem/search.js +113 -113
  496. package/dist/filesystem/watcher-binding.js +1 -1
  497. package/dist/filesystem/watcher.js +9 -9
  498. package/dist/filesystem.js +116 -116
  499. package/dist/form.js +93 -93
  500. package/dist/formatter/builtins.js +2 -2
  501. package/dist/formatter.js +100 -100
  502. package/dist/generate.js +118 -118
  503. package/dist/git.js +11 -11
  504. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  505. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  506. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  507. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  508. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  509. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  510. package/dist/github-copilot/copilot-provider.js +17 -17
  511. package/dist/github-copilot/models.js +104 -104
  512. package/dist/github-copilot/openai-compatible-error.js +1 -1
  513. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  514. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  515. package/dist/github-copilot/responses/openai-error.js +1 -1
  516. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  517. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  518. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  519. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  520. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  521. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  522. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  523. package/dist/image/notice.js +1 -1
  524. package/dist/image/photon-normalize.js +1 -1
  525. package/dist/image/photon-worker.js +1 -1
  526. package/dist/image/photon.js +4 -4
  527. package/dist/image.js +6 -6
  528. package/dist/instance/service.js +5 -5
  529. package/dist/instance.js +428 -426
  530. package/dist/instruction-discovery.js +95 -95
  531. package/dist/instructions/builtins.js +100 -100
  532. package/dist/instructions/index.js +5 -5
  533. package/dist/integration/connection.js +3 -3
  534. package/dist/integration.js +94 -94
  535. package/dist/job/list.js +12 -0
  536. package/dist/job/recovery.js +7 -0
  537. package/dist/job/sql.js +2 -2
  538. package/dist/job.js +90 -88
  539. package/dist/kv/sql.js +2 -2
  540. package/dist/kv.js +84 -84
  541. package/dist/location-activity.js +176 -174
  542. package/dist/location-lifecycle.js +150 -150
  543. package/dist/location-service-map.js +99 -99
  544. package/dist/location-services.js +425 -423
  545. package/dist/location.js +100 -100
  546. package/dist/managed-policy.js +3 -3
  547. package/dist/mcp/client.js +105 -105
  548. package/dist/mcp/connection.js +106 -106
  549. package/dist/mcp/index.js +124 -124
  550. package/dist/mcp/instructions.js +183 -183
  551. package/dist/mcp/oauth.js +89 -89
  552. package/dist/mcp/socket-client.js +1 -1
  553. package/dist/mcp/stdio.js +104 -104
  554. package/dist/mime.js +1 -1
  555. package/dist/modal/models.js +104 -104
  556. package/dist/model-resolver.js +112 -112
  557. package/dist/model-retry.js +1 -1
  558. package/dist/model.js +111 -111
  559. package/dist/models-dev/v1.js +1 -1
  560. package/dist/models-dev.js +121 -121
  561. package/dist/oauth/page.js +1 -1
  562. package/dist/permission/saved.js +89 -89
  563. package/dist/permission/sql.js +5 -5
  564. package/dist/permission.js +149 -149
  565. package/dist/persistent-pty/binary.bun.js +1 -1
  566. package/dist/persistent-pty/daemon.js +1 -1
  567. package/dist/persistent-pty/index.js +101 -101
  568. package/dist/persistent-pty/pty-binding.js +1 -1
  569. package/dist/persistent-pty.js +86 -86
  570. package/dist/plugin/agent.js +85 -85
  571. package/dist/plugin/command.js +115 -115
  572. package/dist/plugin/goal.js +3 -3
  573. package/dist/plugin/hooks.js +3 -3
  574. package/dist/plugin/host.js +240 -238
  575. package/dist/plugin/identity.js +5 -5
  576. package/dist/plugin/instance.js +5 -5
  577. package/dist/plugin/internal.js +404 -402
  578. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  579. package/dist/plugin/models-dev.js +110 -110
  580. package/dist/plugin/module.js +129 -129
  581. package/dist/plugin/optimize.js +4 -4
  582. package/dist/plugin/plan.js +146 -146
  583. package/dist/plugin/promise.js +1 -1
  584. package/dist/plugin/provider/amazon-bedrock.js +106 -106
  585. package/dist/plugin/provider/azure.js +131 -131
  586. package/dist/plugin/provider/cerebras.js +1 -1
  587. package/dist/plugin/provider/chatgpt.js +133 -133
  588. package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
  589. package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
  590. package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
  591. package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
  592. package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
  593. package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
  594. package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
  595. package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
  596. package/dist/plugin/provider/claude-agent/claude/status.js +7 -7
  597. package/dist/plugin/provider/claude-agent/index.js +148 -148
  598. package/dist/plugin/provider/claude-agent/instructions.js +112 -112
  599. package/dist/plugin/provider/claude-agent/integration.js +115 -115
  600. package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
  601. package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
  602. package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
  603. package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
  604. package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
  605. package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
  606. package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
  607. package/dist/plugin/provider/claude-agent/provider.js +108 -108
  608. package/dist/plugin/provider/claude-agent/session.js +112 -112
  609. package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
  610. package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
  611. package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
  612. package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
  613. package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
  614. package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
  615. package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
  616. package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
  617. package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
  618. package/dist/plugin/provider/claude-agent/tools/server.js +2 -2
  619. package/dist/plugin/provider/cloudflare-ai-gateway.js +130 -130
  620. package/dist/plugin/provider/cloudflare-workers-ai.js +130 -130
  621. package/dist/plugin/provider/configured.js +126 -126
  622. package/dist/plugin/provider/credential-settings.js +88 -88
  623. package/dist/plugin/provider/databricks.js +1 -1
  624. package/dist/plugin/provider/digitalocean.js +109 -109
  625. package/dist/plugin/provider/dynamic.js +2 -2
  626. package/dist/plugin/provider/github-copilot.js +111 -111
  627. package/dist/plugin/provider/gitlab.js +109 -109
  628. package/dist/plugin/provider/google-vertex.js +127 -127
  629. package/dist/plugin/provider/kilo.js +1 -1
  630. package/dist/plugin/provider/llmgateway.js +89 -89
  631. package/dist/plugin/provider/lmstudio.js +140 -140
  632. package/dist/plugin/provider/local.js +137 -137
  633. package/dist/plugin/provider/modal.js +108 -108
  634. package/dist/plugin/provider/neon.js +1 -1
  635. package/dist/plugin/provider/nvidia.js +1 -1
  636. package/dist/plugin/provider/ollama.js +140 -140
  637. package/dist/plugin/provider/openai-context-caps.js +106 -106
  638. package/dist/plugin/provider/openai.js +135 -135
  639. package/dist/plugin/provider/opencode.js +157 -157
  640. package/dist/plugin/provider/openrouter.js +104 -104
  641. package/dist/plugin/provider/poe.js +90 -90
  642. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  643. package/dist/plugin/provider/refresh.js +87 -87
  644. package/dist/plugin/provider/sap-ai-core.js +104 -104
  645. package/dist/plugin/provider/sdk-factory.js +1 -1
  646. package/dist/plugin/provider/snowflake-cortex.js +131 -131
  647. package/dist/plugin/provider/vllm.js +140 -140
  648. package/dist/plugin/provider/xai.js +104 -104
  649. package/dist/plugin/provider/zenmux.js +1 -1
  650. package/dist/plugin/provider.js +235 -235
  651. package/dist/plugin/sdk.js +89 -89
  652. package/dist/plugin/service.js +3 -3
  653. package/dist/plugin/skill.js +149 -149
  654. package/dist/plugin/source-directory.js +1 -1
  655. package/dist/plugin/supervisor.js +416 -414
  656. package/dist/plugin/tool-input-repair.js +4 -4
  657. package/dist/plugin/update.js +6 -6
  658. package/dist/plugin/vcs/git.js +99 -99
  659. package/dist/plugin/vcs/hg.js +99 -99
  660. package/dist/plugin/verbosity.js +106 -106
  661. package/dist/plugin/warming.js +130 -130
  662. package/dist/plugin/websearch/exa.js +8 -8
  663. package/dist/plugin/websearch/firecrawl.js +9 -9
  664. package/dist/plugin/websearch/index.js +10 -10
  665. package/dist/plugin/websearch/mcp.js +4 -4
  666. package/dist/plugin/websearch/parallel.js +9 -9
  667. package/dist/plugin/websearch/provider.js +1 -1
  668. package/dist/plugin/websearch/tavily.js +7 -7
  669. package/dist/plugin/websearch/tinyfish.js +9 -9
  670. package/dist/plugin.js +251 -249
  671. package/dist/project/icon.js +5 -5
  672. package/dist/project/schema.js +8 -8
  673. package/dist/project/sql.js +4 -4
  674. package/dist/project.js +105 -105
  675. package/dist/provider.js +110 -110
  676. package/dist/pty/protocol.js +1 -1
  677. package/dist/pty/ticket.js +1 -1
  678. package/dist/pty.js +113 -113
  679. package/dist/reference/instructions.js +101 -101
  680. package/dist/reference.js +99 -99
  681. package/dist/repository-cache.js +93 -93
  682. package/dist/repository.js +1 -1
  683. package/dist/ripgrep/binary.js +2 -2
  684. package/dist/ripgrep.js +111 -111
  685. package/dist/rpc.js +99 -99
  686. package/dist/schedule/check.js +245 -243
  687. package/dist/schedule/sql.js +6 -6
  688. package/dist/schedule.js +253 -251
  689. package/dist/schema.js +1 -1
  690. package/dist/session/affinity.js +3 -3
  691. package/dist/session/background.js +3 -1
  692. package/dist/session/blob.js +131 -131
  693. package/dist/session/command.js +85 -85
  694. package/dist/session/compaction.js +173 -173
  695. package/dist/session/context.js +200 -200
  696. package/dist/session/diff.js +101 -101
  697. package/dist/session/environment.js +5 -5
  698. package/dist/session/error.js +5 -5
  699. package/dist/session/event.js +1 -1
  700. package/dist/session/execution/restart.js +241 -239
  701. package/dist/session/execution.js +163 -161
  702. package/dist/session/generate.js +202 -202
  703. package/dist/session/history.js +138 -136
  704. package/dist/session/inbox.js +147 -147
  705. package/dist/session/info.js +3 -3
  706. package/dist/session/instruction-entry.js +90 -90
  707. package/dist/session/instruction-state.js +8 -8
  708. package/dist/session/instructions.js +143 -143
  709. package/dist/session/message-updater.js +2 -2
  710. package/dist/session/message.js +1 -1
  711. package/dist/session/model-request.js +168 -168
  712. package/dist/session/model-transport.js +9 -9
  713. package/dist/session/move.js +167 -165
  714. package/dist/session/projector.js +143 -143
  715. package/dist/session/prompt.js +148 -148
  716. package/dist/session/recent-text.js +1 -1
  717. package/dist/session/revert.js +139 -139
  718. package/dist/session/run-coordinator.js +1 -1
  719. package/dist/session/runner/index.js +3 -3
  720. package/dist/session/runner/llm.js +254 -252
  721. package/dist/session/runner/max-steps.js +1 -1
  722. package/dist/session/runner/model.js +113 -113
  723. package/dist/session/runner/publish-llm-event.js +149 -149
  724. package/dist/session/runner/retry.js +3 -3
  725. package/dist/session/runner/step.js +163 -163
  726. package/dist/session/runner/to-llm-message.js +137 -137
  727. package/dist/session/schema.js +3 -3
  728. package/dist/session/session.js +182 -180
  729. package/dist/session/shell.js +145 -145
  730. package/dist/session/skill.js +149 -149
  731. package/dist/session/sql.js +5 -5
  732. package/dist/session/stats.js +84 -84
  733. package/dist/session/store.js +140 -140
  734. package/dist/session/stored.js +2 -2
  735. package/dist/session/subagent-completion.js +1 -1
  736. package/dist/session/subagent-job.js +233 -231
  737. package/dist/session/system-prompt.js +5 -5
  738. package/dist/session/title.js +204 -204
  739. package/dist/session/to-session-error.js +148 -148
  740. package/dist/session/transfer.js +239 -237
  741. package/dist/session/usage.js +1 -1
  742. package/dist/session.js +235 -233
  743. package/dist/shared-cache.js +5 -5
  744. package/dist/shell/parse.js +6 -6
  745. package/dist/shell/result.js +1 -1
  746. package/dist/shell/scan.js +1 -1
  747. package/dist/shell/select.js +15 -15
  748. package/dist/shell.js +147 -147
  749. package/dist/skill/discovery.js +6 -6
  750. package/dist/skill/instructions.js +151 -151
  751. package/dist/skill.js +152 -152
  752. package/dist/snapshot.js +104 -104
  753. package/dist/state.js +1 -1
  754. package/dist/tool/html-markdown.js +1 -1
  755. package/dist/tool/http-body.js +1 -1
  756. package/dist/tool/mcp.js +182 -182
  757. package/dist/tool/plugin/artifact.js +232 -230
  758. package/dist/tool/plugin/edit.js +167 -167
  759. package/dist/tool/plugin/file-diff.js +1 -1
  760. package/dist/tool/plugin/glob.js +169 -169
  761. package/dist/tool/plugin/grep.js +170 -170
  762. package/dist/tool/plugin/image-generate.js +243 -241
  763. package/dist/tool/plugin/mcp-resource.js +164 -164
  764. package/dist/tool/plugin/opencode.js +163 -163
  765. package/dist/tool/plugin/patch.js +168 -168
  766. package/dist/tool/plugin/question.js +148 -148
  767. package/dist/tool/plugin/read.js +172 -172
  768. package/dist/tool/plugin/schedule.js +251 -249
  769. package/dist/tool/plugin/shell.js +237 -235
  770. package/dist/tool/plugin/skill.js +157 -157
  771. package/dist/tool/plugin/subagent.js +240 -238
  772. package/dist/tool/plugin/todo.js +153 -153
  773. package/dist/tool/plugin/webfetch.js +157 -157
  774. package/dist/tool/plugin/websearch.js +153 -153
  775. package/dist/tool/plugin/write.js +168 -168
  776. package/dist/tool/read-filesystem.js +114 -114
  777. package/dist/tool/runtime.js +1 -1
  778. package/dist/tool/search.js +109 -109
  779. package/dist/tool-output.js +7 -7
  780. package/dist/tool.js +159 -159
  781. package/dist/types/job/list.d.ts +13 -0
  782. package/dist/types/job/recovery.d.ts +27 -0
  783. package/dist/types/job.d.ts +4 -1
  784. package/dist/types/plugin/provider/opencode.d.ts +2 -1
  785. package/dist/types/session/background.d.ts +53 -2
  786. package/dist/types/session/history.d.ts +503 -1
  787. package/dist/types/session/model-request.d.ts +2 -2
  788. package/dist/usage-limits.js +98 -98
  789. package/dist/util/error-summary.js +1 -1
  790. package/dist/util/git-executable.js +3 -3
  791. package/dist/util/lazy.js +1 -1
  792. package/dist/util/slug.js +1 -1
  793. package/dist/util/token.js +1 -1
  794. package/dist/util/which.js +1 -1
  795. package/dist/util/wildcard.js +1 -1
  796. package/dist/v1/config/agent.js +3 -3
  797. package/dist/v1/config/command.js +1 -1
  798. package/dist/v1/config/mcp.js +4 -4
  799. package/dist/v1/config/migrate.js +105 -105
  800. package/dist/v1/config/permission.js +1 -1
  801. package/dist/v1/config/plugin.js +3 -3
  802. package/dist/v1/config/provider-options.js +1 -1
  803. package/dist/v1/config/provider.js +4 -4
  804. package/dist/variant.js +104 -104
  805. package/dist/vcs/patch.js +1 -1
  806. package/dist/vcs.js +102 -102
  807. package/dist/voice.js +99 -99
  808. package/dist/websearch.js +95 -95
  809. package/dist/wellknown/plugin.js +87 -87
  810. package/dist/wellknown.js +92 -92
  811. package/dist/workspace/driver.js +5 -5
  812. package/dist/workspace/sql.js +1 -1
  813. package/dist/workspace.js +91 -91
  814. package/dist/worktree/directory.js +2 -2
  815. package/dist/worktree/git.js +11 -11
  816. package/dist/worktree/sql.js +5 -5
  817. package/dist/worktree/strategies.js +102 -102
  818. package/dist/worktree.js +111 -111
  819. package/package.json +8 -8
  820. package/dist/chunks/credential-87sqwm80.js +0 -18
  821. package/dist/chunks/credential-jkhb5hnr.js +0 -265
  822. package/dist/chunks/credential-qqvy8y24.js +0 -45
  823. package/dist/chunks/credential-tb0sw3vz.js +0 -26
  824. /package/dist/chunks/{credential-0qkdqm5v.js → wellknown-0qkdqm5v.js} +0 -0
  825. /package/dist/chunks/{credential-0zkw76rk.js → wellknown-0zkw76rk.js} +0 -0
  826. /package/dist/chunks/{credential-108x4f4w.js → wellknown-108x4f4w.js} +0 -0
  827. /package/dist/chunks/{credential-17cy0kzp.js → wellknown-17cy0kzp.js} +0 -0
  828. /package/dist/chunks/{credential-1cnp2v09.js → wellknown-1cnp2v09.js} +0 -0
  829. /package/dist/chunks/{credential-1kah00gy.js → wellknown-1kah00gy.js} +0 -0
  830. /package/dist/chunks/{credential-24dcb14g.js → wellknown-24dcb14g.js} +0 -0
  831. /package/dist/chunks/{credential-2710q6r3.js → wellknown-2710q6r3.js} +0 -0
  832. /package/dist/chunks/{credential-2bv980vf.js → wellknown-2bv980vf.js} +0 -0
  833. /package/dist/chunks/{credential-2c3vjs8z.js → wellknown-2c3vjs8z.js} +0 -0
  834. /package/dist/chunks/{credential-359p4xyc.js → wellknown-359p4xyc.js} +0 -0
  835. /package/dist/chunks/{credential-3af0jn4w.js → wellknown-3af0jn4w.js} +0 -0
  836. /package/dist/chunks/{credential-3asan66x.js → wellknown-3asan66x.js} +0 -0
  837. /package/dist/chunks/{credential-3v8g72cx.js → wellknown-3v8g72cx.js} +0 -0
  838. /package/dist/chunks/{credential-3wcehsnq.js → wellknown-3wcehsnq.js} +0 -0
  839. /package/dist/chunks/{credential-43n2bw4t.js → wellknown-43n2bw4t.js} +0 -0
  840. /package/dist/chunks/{credential-4knz6hnm.js → wellknown-4knz6hnm.js} +0 -0
  841. /package/dist/chunks/{credential-4qk9sjk2.js → wellknown-4qk9sjk2.js} +0 -0
  842. /package/dist/chunks/{credential-4y7fprxs.js → wellknown-4y7fprxs.js} +0 -0
  843. /package/dist/chunks/{credential-53557ph1.js → wellknown-53557ph1.js} +0 -0
  844. /package/dist/chunks/{credential-550bvhaj.js → wellknown-550bvhaj.js} +0 -0
  845. /package/dist/chunks/{credential-5w3e23ze.js → wellknown-5w3e23ze.js} +0 -0
  846. /package/dist/chunks/{credential-6agm2x70.js → wellknown-6agm2x70.js} +0 -0
  847. /package/dist/chunks/{credential-6prwharc.js → wellknown-6prwharc.js} +0 -0
  848. /package/dist/chunks/{credential-6q2bdcd1.js → wellknown-6q2bdcd1.js} +0 -0
  849. /package/dist/chunks/{credential-7akdwqpd.js → wellknown-7akdwqpd.js} +0 -0
  850. /package/dist/chunks/{credential-7m9af43g.js → wellknown-7m9af43g.js} +0 -0
  851. /package/dist/chunks/{credential-822emrt2.js → wellknown-822emrt2.js} +0 -0
  852. /package/dist/chunks/{credential-84wd9syh.js → wellknown-84wd9syh.js} +0 -0
  853. /package/dist/chunks/{credential-88xbtdfr.js → wellknown-88xbtdfr.js} +0 -0
  854. /package/dist/chunks/{credential-8n3pysct.js → wellknown-8n3pysct.js} +0 -0
  855. /package/dist/chunks/{credential-8wj87zfr.js → wellknown-8wj87zfr.js} +0 -0
  856. /package/dist/chunks/{credential-9a4afbnw.js → wellknown-9a4afbnw.js} +0 -0
  857. /package/dist/chunks/{credential-9rqn6x4v.js → wellknown-9rqn6x4v.js} +0 -0
  858. /package/dist/chunks/{credential-a6k6eb26.js → wellknown-a6k6eb26.js} +0 -0
  859. /package/dist/chunks/{credential-af5trqkr.js → wellknown-af5trqkr.js} +0 -0
  860. /package/dist/chunks/{credential-afrmfg78.js → wellknown-afrmfg78.js} +0 -0
  861. /package/dist/chunks/{credential-aqzs7mqg.js → wellknown-aqzs7mqg.js} +0 -0
  862. /package/dist/chunks/{credential-atq7p7m5.js → wellknown-atq7p7m5.js} +0 -0
  863. /package/dist/chunks/{credential-beh6qq61.js → wellknown-beh6qq61.js} +0 -0
  864. /package/dist/chunks/{credential-bhmrqjy3.js → wellknown-bhmrqjy3.js} +0 -0
  865. /package/dist/chunks/{credential-bkyjaxrp.js → wellknown-bkyjaxrp.js} +0 -0
  866. /package/dist/chunks/{credential-bmr6ed5q.js → wellknown-bmr6ed5q.js} +0 -0
  867. /package/dist/chunks/{credential-cf4snx6d.js → wellknown-cf4snx6d.js} +0 -0
  868. /package/dist/chunks/{credential-cqv5kn06.js → wellknown-cqv5kn06.js} +0 -0
  869. /package/dist/chunks/{credential-cvy3z8tj.js → wellknown-cvy3z8tj.js} +0 -0
  870. /package/dist/chunks/{credential-d9fn303g.js → wellknown-d9fn303g.js} +0 -0
  871. /package/dist/chunks/{credential-d9jj8t3e.js → wellknown-d9jj8t3e.js} +0 -0
  872. /package/dist/chunks/{credential-dap0rakb.js → wellknown-dap0rakb.js} +0 -0
  873. /package/dist/chunks/{credential-df08tz66.js → wellknown-df08tz66.js} +0 -0
  874. /package/dist/chunks/{credential-dy18nga0.js → wellknown-dy18nga0.js} +0 -0
  875. /package/dist/chunks/{credential-e5kj55wp.js → wellknown-e5kj55wp.js} +0 -0
  876. /package/dist/chunks/{credential-ean2d8b5.js → wellknown-ean2d8b5.js} +0 -0
  877. /package/dist/chunks/{credential-ec1grn59.js → wellknown-ec1grn59.js} +0 -0
  878. /package/dist/chunks/{credential-emrn6kk6.js → wellknown-emrn6kk6.js} +0 -0
  879. /package/dist/chunks/{credential-f0mxakyp.js → wellknown-f0mxakyp.js} +0 -0
  880. /package/dist/chunks/{credential-f6n9ztr4.js → wellknown-f6n9ztr4.js} +0 -0
  881. /package/dist/chunks/{credential-faypxj3z.js → wellknown-faypxj3z.js} +0 -0
  882. /package/dist/chunks/{credential-fd410y7t.js → wellknown-fd410y7t.js} +0 -0
  883. /package/dist/chunks/{credential-fkpq3x5p.js → wellknown-fkpq3x5p.js} +0 -0
  884. /package/dist/chunks/{credential-g4wezp1m.js → wellknown-g4wezp1m.js} +0 -0
  885. /package/dist/chunks/{credential-g86h250q.js → wellknown-g86h250q.js} +0 -0
  886. /package/dist/chunks/{credential-gebd4c9n.js → wellknown-gebd4c9n.js} +0 -0
  887. /package/dist/chunks/{credential-gftt206x.js → wellknown-gftt206x.js} +0 -0
  888. /package/dist/chunks/{credential-hcxmzztb.js → wellknown-hcxmzztb.js} +0 -0
  889. /package/dist/chunks/{credential-hk9envan.js → wellknown-hk9envan.js} +0 -0
  890. /package/dist/chunks/{credential-j2ntwpah.js → wellknown-j2ntwpah.js} +0 -0
  891. /package/dist/chunks/{credential-j5zkgpj8.js → wellknown-j5zkgpj8.js} +0 -0
  892. /package/dist/chunks/{credential-jjkms2e6.js → wellknown-jjkms2e6.js} +0 -0
  893. /package/dist/chunks/{credential-jr7sbwjy.js → wellknown-jr7sbwjy.js} +0 -0
  894. /package/dist/chunks/{credential-jwfs4k6c.js → wellknown-jwfs4k6c.js} +0 -0
  895. /package/dist/chunks/{credential-jwr30sdr.js → wellknown-jwr30sdr.js} +0 -0
  896. /package/dist/chunks/{credential-jzg6c2d5.js → wellknown-jzg6c2d5.js} +0 -0
  897. /package/dist/chunks/{credential-m18g726c.js → wellknown-m18g726c.js} +0 -0
  898. /package/dist/chunks/{credential-mp448xyj.js → wellknown-mp448xyj.js} +0 -0
  899. /package/dist/chunks/{credential-msx8hqn2.js → wellknown-msx8hqn2.js} +0 -0
  900. /package/dist/chunks/{credential-n05xt0ee.js → wellknown-n05xt0ee.js} +0 -0
  901. /package/dist/chunks/{credential-n3j8tn72.js → wellknown-n3j8tn72.js} +0 -0
  902. /package/dist/chunks/{credential-nh4v3znn.js → wellknown-nh4v3znn.js} +0 -0
  903. /package/dist/chunks/{credential-njntx4h6.js → wellknown-njntx4h6.js} +0 -0
  904. /package/dist/chunks/{credential-p71gwv9c.js → wellknown-p71gwv9c.js} +0 -0
  905. /package/dist/chunks/{credential-q3sfg36h.js → wellknown-q3sfg36h.js} +0 -0
  906. /package/dist/chunks/{credential-q74kybfr.js → wellknown-q74kybfr.js} +0 -0
  907. /package/dist/chunks/{credential-qaymkmh1.js → wellknown-qaymkmh1.js} +0 -0
  908. /package/dist/chunks/{credential-qb87gjwd.js → wellknown-qb87gjwd.js} +0 -0
  909. /package/dist/chunks/{credential-qfa1cgps.js → wellknown-qfa1cgps.js} +0 -0
  910. /package/dist/chunks/{credential-qg3g05ea.js → wellknown-qg3g05ea.js} +0 -0
  911. /package/dist/chunks/{credential-qrg20bc0.js → wellknown-qrg20bc0.js} +0 -0
  912. /package/dist/chunks/{credential-rcb2kzg1.js → wellknown-rcb2kzg1.js} +0 -0
  913. /package/dist/chunks/{credential-sdp7kfr6.js → wellknown-sdp7kfr6.js} +0 -0
  914. /package/dist/chunks/{credential-ssg3fenm.js → wellknown-ssg3fenm.js} +0 -0
  915. /package/dist/chunks/{credential-syrav9an.js → wellknown-syrav9an.js} +0 -0
  916. /package/dist/chunks/{credential-t03h4f5z.js → wellknown-t03h4f5z.js} +0 -0
  917. /package/dist/chunks/{credential-ty7weeps.js → wellknown-ty7weeps.js} +0 -0
  918. /package/dist/chunks/{credential-ve7vex1e.js → wellknown-ve7vex1e.js} +0 -0
  919. /package/dist/chunks/{credential-vtarvj67.js → wellknown-vtarvj67.js} +0 -0
  920. /package/dist/chunks/{credential-w803qqfp.js → wellknown-w803qqfp.js} +0 -0
  921. /package/dist/chunks/{credential-wc3fc9cn.js → wellknown-wc3fc9cn.js} +0 -0
  922. /package/dist/chunks/{credential-wer8tq1h.js → wellknown-wer8tq1h.js} +0 -0
  923. /package/dist/chunks/{credential-wtztk69x.js → wellknown-wtztk69x.js} +0 -0
  924. /package/dist/chunks/{credential-x0ckcb58.js → wellknown-x0ckcb58.js} +0 -0
  925. /package/dist/chunks/{credential-x61499pn.js → wellknown-x61499pn.js} +0 -0
  926. /package/dist/chunks/{credential-y44na4kk.js → wellknown-y44na4kk.js} +0 -0
  927. /package/dist/chunks/{credential-y8f7s663.js → wellknown-y8f7s663.js} +0 -0
  928. /package/dist/chunks/{credential-ygaqb7jw.js → wellknown-ygaqb7jw.js} +0 -0
  929. /package/dist/chunks/{credential-z0h12gs8.js → wellknown-z0h12gs8.js} +0 -0
  930. /package/dist/chunks/{credential-z5v4ffb3.js → wellknown-z5v4ffb3.js} +0 -0
  931. /package/dist/chunks/{credential-z9919s4g.js → wellknown-z9919s4g.js} +0 -0
  932. /package/dist/chunks/{credential-zxpyjp51.js → wellknown-zxpyjp51.js} +0 -0
@@ -0,0 +1,27 @@
1
+ import { Schema } from "effect";
2
+ export declare const RecoverySchema: Schema.Union<readonly [Schema.Struct<{
3
+ readonly kind: Schema.Literal<"shell">;
4
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
5
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
6
+ };
7
+ readonly shellID: Schema.String;
8
+ readonly command: Schema.String;
9
+ }>, Schema.Struct<{
10
+ readonly kind: Schema.Literal<"subagent">;
11
+ readonly parentSessionID: Schema.brand<Schema.String, "SessionID"> & {
12
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
13
+ };
14
+ readonly childSessionID: Schema.brand<Schema.String, "SessionID"> & {
15
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
16
+ };
17
+ readonly agent: Schema.String;
18
+ readonly description: Schema.String;
19
+ }>, Schema.Struct<{
20
+ readonly kind: Schema.Literal<"image">;
21
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
22
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
23
+ };
24
+ readonly path: Schema.String;
25
+ readonly model: Schema.String;
26
+ }>]>;
27
+ export type Recovery = typeof RecoverySchema.Type;
@@ -1,8 +1,11 @@
1
1
  export * as Job from "./job.js";
2
2
  import { Context, Effect, Schema, Scope } from "effect";
3
3
  import { Database } from "./database/database.js";
4
+ import { JobList } from "./job/list.js";
5
+ import { type Recovery } from "./job/recovery.js";
4
6
  import { SessionMessage } from "./session/message.js";
5
7
  import { SessionSchema } from "./session/schema.js";
8
+ export type { Recovery };
6
9
  declare const Background: Schema.Struct<{
7
10
  readonly id: Schema.String;
8
11
  readonly notificationID: Schema.brand<Schema.String, "Session.Message.ID"> & {
@@ -39,7 +42,6 @@ declare const Background: Schema.Struct<{
39
42
  readonly error: Schema.optionalKey<Schema.String>;
40
43
  }>;
41
44
  export type Background = typeof Background.Type;
42
- export type Recovery = Background["recovery"];
43
45
  export type Status = Background["status"];
44
46
  export type Info = {
45
47
  id: string;
@@ -96,6 +98,7 @@ export interface Interface {
96
98
  readonly cancelSession: (sessionID: SessionSchema.ID) => Effect.Effect<Info[]>;
97
99
  readonly pendingBackground: Effect.Effect<readonly Background[]>;
98
100
  readonly runningBackground: Effect.Effect<readonly Recovery[]>;
101
+ readonly backgroundJobs: Effect.Effect<readonly JobList.Item[]>;
99
102
  readonly completeBackground: (notificationID: SessionMessage.ID) => Effect.Effect<void>;
100
103
  }
101
104
  declare const Service_base: Context.ServiceClass<Service, "@opencode/Job", Interface>;
@@ -3,5 +3,6 @@ import { HttpClient } from "effect/http";
3
3
  import { Bus } from "../../bus.js";
4
4
  import { Config } from "../../config.js";
5
5
  import { InstructionDiscovery } from "../../instruction-discovery.js";
6
+ import { SharedCache } from "../../shared-cache.js";
6
7
  import { Skill } from "../../skill.js";
7
- export declare const OpencodePlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | Scope.Scope | Config.Service | InstructionDiscovery.Service | Skill.Service | Bus.Service>;
8
+ export declare const OpencodePlugin: import("@opencode/plugin/effect/plugin").Plugin<HttpClient.HttpClient | Scope.Scope | Config.Service | InstructionDiscovery.Service | Skill.Service | SharedCache.Service | Bus.Service>;
@@ -1,13 +1,25 @@
1
1
  export * as SessionBackground from "./background.js";
2
+ import type { Kind, Status } from "@opencode/schema/job";
2
3
  import { Effect } from "effect";
3
4
  import type { Job } from "../job.js";
4
- import type { SessionStore } from "./store.js";
5
+ import type { SessionSchema } from "./schema.js";
6
+ export type Lookup = {
7
+ readonly get: (sessionID: SessionSchema.ID) => Effect.Effect<{
8
+ readonly parentID?: SessionSchema.ID;
9
+ } | undefined>;
10
+ };
11
+ export type ListFilter = {
12
+ readonly sessionID?: SessionSchema.ID;
13
+ readonly kind?: Kind;
14
+ readonly status?: Status;
15
+ readonly descendants?: boolean;
16
+ };
5
17
  /**
6
18
  * Background jobs still running for a Session or any of its descendants. A child's own
7
19
  * background shell counts even after the child reported to its parent: its notice wakes
8
20
  * the child again, so the child's work is not finished.
9
21
  */
10
- export declare const outstanding: (jobs: Pick<Job.Interface, "runningBackground">, store: Pick<SessionStore.Interface, "get">, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<({
22
+ export declare const outstanding: (jobs: Pick<Job.Interface, "runningBackground">, store: Lookup, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<({
11
23
  kind: "shell";
12
24
  sessionID: string & import("effect/Brand").Brand<"SessionID">;
13
25
  shellID: string;
@@ -38,3 +50,42 @@ export declare const outstanding: (jobs: Pick<Job.Interface, "runningBackground"
38
50
  agent: string;
39
51
  description: string;
40
52
  })[], never, never>;
53
+ /** Active and unconsumed background jobs matching the requested Session, kind, status, and descendant scope. */
54
+ export declare const list: (jobs: Pick<Job.Interface, "backgroundJobs">, store: Lookup, filter?: ListFilter | undefined) => Effect.Effect<({
55
+ readonly id: string;
56
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
57
+ readonly status: "cancelled" | "completed" | "error" | "running";
58
+ readonly title?: string | undefined;
59
+ readonly time: {
60
+ readonly started: number;
61
+ readonly completed?: number | undefined;
62
+ };
63
+ readonly kind: "shell";
64
+ readonly shellID: string;
65
+ readonly command: string;
66
+ } | {
67
+ readonly id: string;
68
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
69
+ readonly status: "cancelled" | "completed" | "error" | "running";
70
+ readonly title?: string | undefined;
71
+ readonly time: {
72
+ readonly started: number;
73
+ readonly completed?: number | undefined;
74
+ };
75
+ readonly kind: "subagent";
76
+ readonly childSessionID: string & import("effect/Brand").Brand<"SessionID">;
77
+ readonly agent: string;
78
+ readonly description: string;
79
+ } | {
80
+ readonly id: string;
81
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
82
+ readonly status: "cancelled" | "completed" | "error" | "running";
83
+ readonly title?: string | undefined;
84
+ readonly time: {
85
+ readonly started: number;
86
+ readonly completed?: number | undefined;
87
+ };
88
+ readonly kind: "image";
89
+ readonly path: string;
90
+ readonly model: string;
91
+ })[], never, never>;
@@ -18,7 +18,99 @@ export declare const isNativeCompaction: (message: SessionMessage.Info) => messa
18
18
  };
19
19
  };
20
20
  /** A native compaction's window: canonical AI messages, stored as JSON. */
21
- export declare const NativeWindow: Schema.toCodecJson<Schema.$Array<typeof Message>>;
21
+ export declare const NativeWindow: Schema.toCodecJson<Schema.$Array<Schema.Union<readonly [typeof import("@opencode/ai/effect").SystemMessage, typeof import("@opencode/ai/effect").UserMessage, typeof import("@opencode/ai/effect").AssistantMessage, typeof import("@opencode/ai/effect").ToolMessage]> & {
22
+ text: (value: string) => import("@opencode/ai/effect").TextPart;
23
+ media: (media: import("@opencode/ai/effect").MediaPartInput["media"], options?: Omit<import("@opencode/ai/effect").MediaPartInput, "type" | "media">) => import("@opencode/ai/effect").MediaPart;
24
+ content: {
25
+ (input: Message.UserContentInput): import("@opencode/ai/effect").UserMessage["content"];
26
+ (input: Message.AssistantContentInput): import("@opencode/ai/effect").AssistantMessage["content"];
27
+ (input: Message.ContentInput): ReadonlyArray<import("@opencode/ai/effect").ContentPart>;
28
+ };
29
+ make: {
30
+ (input: import("@opencode/ai/effect").SystemMessage | Message.SystemInput): import("@opencode/ai/effect").SystemMessage;
31
+ (input: import("@opencode/ai/effect").UserMessage | Message.UserInput): import("@opencode/ai/effect").UserMessage;
32
+ (input: import("@opencode/ai/effect").AssistantMessage | Message.AssistantInput): import("@opencode/ai/effect").AssistantMessage;
33
+ (input: import("@opencode/ai/effect").ToolMessage | Message.ToolInput): import("@opencode/ai/effect").ToolMessage;
34
+ (input: Message | Message.Input): Message;
35
+ };
36
+ user: (input: Message.UserContentInput) => import("@opencode/ai/effect").UserMessage;
37
+ assistant: (input: Message.AssistantContentInput) => import("@opencode/ai/effect").AssistantMessage;
38
+ system: (input: Message.SystemContentInput) => import("@opencode/ai/effect").SystemMessage;
39
+ effort: (input: {
40
+ readonly effort?: import("@opencode/ai/effect").ReasoningEffort;
41
+ readonly previous?: import("@opencode/ai/effect").ReasoningEffort;
42
+ }) => import("@opencode/ai/effect").SystemMessage;
43
+ tool: (result: import("@opencode/ai/effect").ToolResultPart | Parameters<((input: {
44
+ readonly type: "tool-result";
45
+ readonly id: string;
46
+ readonly name: string;
47
+ readonly namespace?: string | undefined;
48
+ readonly result: {
49
+ readonly type: "json";
50
+ readonly value: unknown;
51
+ } | {
52
+ readonly type: "text";
53
+ readonly value: unknown;
54
+ } | {
55
+ readonly type: "error";
56
+ readonly value: unknown;
57
+ } | {
58
+ readonly type: "content";
59
+ readonly value: readonly ({
60
+ readonly type: "text";
61
+ readonly text: string;
62
+ } | {
63
+ readonly type: "file";
64
+ readonly uri: string;
65
+ readonly mime: string;
66
+ readonly name?: string | undefined;
67
+ })[];
68
+ };
69
+ readonly providerExecuted?: boolean | undefined;
70
+ readonly cache?: import("@opencode/ai/effect").CacheHint | undefined;
71
+ readonly providerMetadata?: {
72
+ readonly [x: string]: {
73
+ readonly [x: string]: unknown;
74
+ };
75
+ } | undefined;
76
+ }, options?: Schema.MakeOptions) => {
77
+ readonly type: "tool-result";
78
+ readonly id: string;
79
+ readonly name: string;
80
+ readonly namespace?: string | undefined;
81
+ readonly result: {
82
+ readonly type: "json";
83
+ readonly value: unknown;
84
+ } | {
85
+ readonly type: "text";
86
+ readonly value: unknown;
87
+ } | {
88
+ readonly type: "error";
89
+ readonly value: unknown;
90
+ } | {
91
+ readonly type: "content";
92
+ readonly value: readonly ({
93
+ readonly type: "text";
94
+ readonly text: string;
95
+ } | {
96
+ readonly type: "file";
97
+ readonly uri: string;
98
+ readonly mime: string;
99
+ readonly name?: string | undefined;
100
+ })[];
101
+ };
102
+ readonly providerExecuted?: boolean | undefined;
103
+ readonly cache?: import("@opencode/ai/effect").CacheHint | undefined;
104
+ readonly providerMetadata?: {
105
+ readonly [x: string]: {
106
+ readonly [x: string]: unknown;
107
+ };
108
+ } | undefined;
109
+ }) & ((input: Omit<import("@opencode/ai/effect").ToolResultPart, "type" | "result"> & {
110
+ readonly result: unknown;
111
+ readonly resultType?: import("@opencode/ai/effect").ToolResultValue["type"];
112
+ }) => import("@opencode/ai/effect").ToolResultPart)>[0]) => import("@opencode/ai/effect").ToolMessage;
113
+ }>>;
22
114
  /**
23
115
  * Puts each assistant row's `session_part` rows into its `data.content`, in ordinal order. Rows without parts keep
24
116
  * their inline content, so legacy rows read unchanged. Runs before blob hydration so media in parts restores too.
@@ -3804,6 +3896,416 @@ export declare const synthetics: (db: import("../database/drizzle.js").EffectSQL
3804
3896
  readonly retryAfterMs?: number | undefined;
3805
3897
  } | undefined;
3806
3898
  })[], MessageDecodeError, never>;
3899
+ /**
3900
+ * The unfinished assistant messages `load(db, sessionID, "latest")` would return, read without the rest of the
3901
+ * transcript. Only these can hold a tool call that is still streaming or running.
3902
+ */
3903
+ export declare const incompleteAssistants: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
3904
+ $client: import("effect/sql/SqlClient").SqlClient;
3905
+ }, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<({
3906
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
3907
+ readonly metadata?: {
3908
+ readonly [x: string]: unknown;
3909
+ } | undefined;
3910
+ readonly time: {
3911
+ readonly created: import("effect/DateTime").Utc;
3912
+ };
3913
+ readonly type: "agent-switched";
3914
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
3915
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
3916
+ } | {
3917
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
3918
+ readonly metadata?: {
3919
+ readonly [x: string]: unknown;
3920
+ } | undefined;
3921
+ readonly time: {
3922
+ readonly created: import("effect/DateTime").Utc;
3923
+ };
3924
+ readonly type: "model-switched";
3925
+ readonly model: {
3926
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
3927
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
3928
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
3929
+ };
3930
+ readonly previous?: {
3931
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
3932
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
3933
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
3934
+ } | undefined;
3935
+ } | {
3936
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
3937
+ readonly metadata?: {
3938
+ readonly [x: string]: unknown;
3939
+ } | undefined;
3940
+ readonly time: {
3941
+ readonly created: import("effect/DateTime").Utc;
3942
+ };
3943
+ readonly type: "location-switched";
3944
+ readonly location: {
3945
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
3946
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
3947
+ };
3948
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
3949
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
3950
+ readonly previous?: {
3951
+ readonly location: {
3952
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
3953
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
3954
+ };
3955
+ readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
3956
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
3957
+ } | undefined;
3958
+ } | {
3959
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
3960
+ readonly metadata?: {
3961
+ readonly [x: string]: unknown;
3962
+ } | undefined;
3963
+ readonly time: {
3964
+ readonly created: import("effect/DateTime").Utc;
3965
+ };
3966
+ readonly text: string;
3967
+ readonly files?: readonly {
3968
+ readonly data: string;
3969
+ readonly mime: string;
3970
+ readonly source: {
3971
+ readonly type: "inline";
3972
+ } | {
3973
+ readonly type: "uri";
3974
+ readonly uri: string;
3975
+ };
3976
+ readonly name?: string | undefined;
3977
+ readonly description?: string | undefined;
3978
+ readonly mention?: {
3979
+ readonly start: number;
3980
+ readonly end: number;
3981
+ readonly text: string;
3982
+ } | undefined;
3983
+ }[] | undefined;
3984
+ readonly agents?: readonly {
3985
+ readonly name: string;
3986
+ readonly mention?: {
3987
+ readonly start: number;
3988
+ readonly end: number;
3989
+ readonly text: string;
3990
+ } | undefined;
3991
+ }[] | undefined;
3992
+ readonly skills?: readonly {
3993
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
3994
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
3995
+ readonly text?: string | undefined;
3996
+ readonly mention?: {
3997
+ readonly start: number;
3998
+ readonly end: number;
3999
+ readonly text: string;
4000
+ } | undefined;
4001
+ }[] | undefined;
4002
+ readonly type: "user";
4003
+ } | {
4004
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4005
+ readonly metadata?: {
4006
+ readonly [x: string]: unknown;
4007
+ } | undefined;
4008
+ readonly time: {
4009
+ readonly created: import("effect/DateTime").Utc;
4010
+ };
4011
+ readonly text: string;
4012
+ readonly description?: string | undefined;
4013
+ readonly type: "synthetic";
4014
+ } | {
4015
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4016
+ readonly metadata?: {
4017
+ readonly [x: string]: unknown;
4018
+ } | undefined;
4019
+ readonly time: {
4020
+ readonly created: import("effect/DateTime").Utc;
4021
+ };
4022
+ readonly type: "system";
4023
+ readonly text: string;
4024
+ readonly description?: string | undefined;
4025
+ } | {
4026
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4027
+ readonly metadata?: {
4028
+ readonly [x: string]: unknown;
4029
+ } | undefined;
4030
+ readonly time: {
4031
+ readonly created: import("effect/DateTime").Utc;
4032
+ };
4033
+ readonly type: "skill";
4034
+ readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
4035
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
4036
+ readonly text: string;
4037
+ } | {
4038
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4039
+ readonly metadata?: {
4040
+ readonly [x: string]: unknown;
4041
+ } | undefined;
4042
+ readonly type: "shell";
4043
+ readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
4044
+ readonly command: string;
4045
+ readonly status: "exited" | "killed" | "running" | "timeout";
4046
+ readonly exit?: number | undefined;
4047
+ readonly output?: {
4048
+ readonly output: string;
4049
+ readonly cursor: number;
4050
+ readonly size: number;
4051
+ readonly truncated: boolean;
4052
+ } | undefined;
4053
+ readonly time: {
4054
+ readonly created: import("effect/DateTime").Utc;
4055
+ readonly completed?: import("effect/DateTime").Utc | undefined;
4056
+ };
4057
+ } | {
4058
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4059
+ readonly metadata?: {
4060
+ readonly [x: string]: unknown;
4061
+ } | undefined;
4062
+ readonly type: "assistant";
4063
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
4064
+ readonly model: {
4065
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
4066
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
4067
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
4068
+ };
4069
+ readonly content: readonly ({
4070
+ readonly type: "tool";
4071
+ readonly id: string;
4072
+ readonly name: string;
4073
+ readonly executed?: boolean | undefined;
4074
+ readonly native?: {
4075
+ readonly [x: string]: unknown;
4076
+ } | undefined;
4077
+ readonly state: {
4078
+ readonly status: "streaming";
4079
+ readonly input: string;
4080
+ } | {
4081
+ readonly status: "running";
4082
+ readonly input: {
4083
+ readonly [x: string]: unknown;
4084
+ };
4085
+ readonly metadata: {
4086
+ readonly [x: string]: Schema.Json;
4087
+ };
4088
+ } | {
4089
+ readonly status: "completed";
4090
+ readonly input: {
4091
+ readonly [x: string]: unknown;
4092
+ };
4093
+ readonly content: readonly [{
4094
+ readonly type: "text";
4095
+ readonly text: string;
4096
+ } | {
4097
+ readonly type: "file";
4098
+ readonly uri: string;
4099
+ readonly mime: string;
4100
+ readonly name?: string | undefined;
4101
+ }, ...({
4102
+ readonly type: "text";
4103
+ readonly text: string;
4104
+ } | {
4105
+ readonly type: "file";
4106
+ readonly uri: string;
4107
+ readonly mime: string;
4108
+ readonly name?: string | undefined;
4109
+ })[]];
4110
+ readonly metadata?: {
4111
+ readonly [x: string]: Schema.Json;
4112
+ } | undefined;
4113
+ } | {
4114
+ readonly status: "error";
4115
+ readonly input: {
4116
+ readonly [x: string]: unknown;
4117
+ };
4118
+ readonly error: {
4119
+ readonly type: string;
4120
+ readonly message: string;
4121
+ readonly status?: number | undefined;
4122
+ readonly response?: {
4123
+ readonly body: string;
4124
+ } | undefined;
4125
+ readonly retryAfterMs?: number | undefined;
4126
+ };
4127
+ readonly content?: readonly [{
4128
+ readonly type: "text";
4129
+ readonly text: string;
4130
+ } | {
4131
+ readonly type: "file";
4132
+ readonly uri: string;
4133
+ readonly mime: string;
4134
+ readonly name?: string | undefined;
4135
+ }, ...({
4136
+ readonly type: "text";
4137
+ readonly text: string;
4138
+ } | {
4139
+ readonly type: "file";
4140
+ readonly uri: string;
4141
+ readonly mime: string;
4142
+ readonly name?: string | undefined;
4143
+ })[]] | undefined;
4144
+ readonly metadata?: {
4145
+ readonly [x: string]: Schema.Json;
4146
+ } | undefined;
4147
+ };
4148
+ readonly time: {
4149
+ readonly created: import("effect/DateTime").Utc;
4150
+ readonly ran?: import("effect/DateTime").Utc | undefined;
4151
+ readonly completed?: import("effect/DateTime").Utc | undefined;
4152
+ };
4153
+ } | {
4154
+ readonly type: "text";
4155
+ readonly text: string;
4156
+ readonly native?: {
4157
+ readonly [x: string]: unknown;
4158
+ } | undefined;
4159
+ } | {
4160
+ readonly type: "reasoning";
4161
+ readonly text: string;
4162
+ readonly native?: {
4163
+ readonly [x: string]: unknown;
4164
+ } | undefined;
4165
+ readonly time?: {
4166
+ readonly created: import("effect/DateTime").Utc;
4167
+ readonly completed?: import("effect/DateTime").Utc | undefined;
4168
+ } | undefined;
4169
+ })[];
4170
+ readonly snapshot?: {
4171
+ readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
4172
+ readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
4173
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
4174
+ } | undefined;
4175
+ readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
4176
+ readonly rawFinish?: string | undefined;
4177
+ readonly native?: {
4178
+ readonly [x: string]: unknown;
4179
+ } | undefined;
4180
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
4181
+ readonly tokens?: {
4182
+ readonly input: number;
4183
+ readonly output: number;
4184
+ readonly reasoning: number;
4185
+ readonly cache: {
4186
+ readonly read: number;
4187
+ readonly write: number;
4188
+ };
4189
+ } | undefined;
4190
+ readonly error?: {
4191
+ readonly type: string;
4192
+ readonly message: string;
4193
+ readonly status?: number | undefined;
4194
+ readonly response?: {
4195
+ readonly body: string;
4196
+ } | undefined;
4197
+ readonly retryAfterMs?: number | undefined;
4198
+ } | undefined;
4199
+ readonly retry?: {
4200
+ readonly attempt: number;
4201
+ readonly at: import("effect/DateTime").Utc;
4202
+ readonly error: {
4203
+ readonly type: string;
4204
+ readonly message: string;
4205
+ readonly status?: number | undefined;
4206
+ readonly response?: {
4207
+ readonly body: string;
4208
+ } | undefined;
4209
+ readonly retryAfterMs?: number | undefined;
4210
+ };
4211
+ } | undefined;
4212
+ readonly time: {
4213
+ readonly created: import("effect/DateTime").Utc;
4214
+ readonly streamed?: import("effect/DateTime").Utc | undefined;
4215
+ readonly completed?: import("effect/DateTime").Utc | undefined;
4216
+ };
4217
+ } | {
4218
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4219
+ readonly metadata?: {
4220
+ readonly [x: string]: unknown;
4221
+ } | undefined;
4222
+ readonly time: {
4223
+ readonly created: import("effect/DateTime").Utc;
4224
+ };
4225
+ readonly type: "compaction";
4226
+ readonly status: "running";
4227
+ readonly reason: "auto" | "manual";
4228
+ readonly summary: string;
4229
+ } | {
4230
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4231
+ readonly metadata?: {
4232
+ readonly [x: string]: unknown;
4233
+ } | undefined;
4234
+ readonly time: {
4235
+ readonly created: import("effect/DateTime").Utc;
4236
+ };
4237
+ readonly type: "compaction";
4238
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
4239
+ readonly tokens?: {
4240
+ readonly input: number;
4241
+ readonly output: number;
4242
+ readonly reasoning: number;
4243
+ readonly cache: {
4244
+ readonly read: number;
4245
+ readonly write: number;
4246
+ };
4247
+ } | undefined;
4248
+ readonly status: "completed";
4249
+ readonly reason: "auto" | "manual";
4250
+ readonly model?: {
4251
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
4252
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
4253
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
4254
+ } | undefined;
4255
+ readonly native?: {
4256
+ readonly [x: string]: unknown;
4257
+ } | undefined;
4258
+ readonly summary: string;
4259
+ } | {
4260
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4261
+ readonly metadata?: {
4262
+ readonly [x: string]: unknown;
4263
+ } | undefined;
4264
+ readonly time: {
4265
+ readonly created: import("effect/DateTime").Utc;
4266
+ };
4267
+ readonly type: "compaction";
4268
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
4269
+ readonly tokens?: {
4270
+ readonly input: number;
4271
+ readonly output: number;
4272
+ readonly reasoning: number;
4273
+ readonly cache: {
4274
+ readonly read: number;
4275
+ readonly write: number;
4276
+ };
4277
+ } | undefined;
4278
+ readonly status: "failed";
4279
+ readonly reason: "auto" | "manual";
4280
+ readonly error: {
4281
+ readonly type: string;
4282
+ readonly message: string;
4283
+ readonly status?: number | undefined;
4284
+ readonly response?: {
4285
+ readonly body: string;
4286
+ } | undefined;
4287
+ readonly retryAfterMs?: number | undefined;
4288
+ };
4289
+ } | {
4290
+ readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
4291
+ readonly metadata?: {
4292
+ readonly [x: string]: unknown;
4293
+ } | undefined;
4294
+ readonly time: {
4295
+ readonly created: import("effect/DateTime").Utc;
4296
+ };
4297
+ readonly type: "idle";
4298
+ readonly outcome: "failed" | "interrupted" | "succeeded";
4299
+ readonly error?: {
4300
+ readonly type: string;
4301
+ readonly message: string;
4302
+ readonly status?: number | undefined;
4303
+ readonly response?: {
4304
+ readonly body: string;
4305
+ } | undefined;
4306
+ readonly retryAfterMs?: number | undefined;
4307
+ } | undefined;
4308
+ })[], MessageDecodeError, never>;
3807
4309
  /** The id and text of the session's first user message. */
3808
4310
  export declare const firstUserMessage: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
3809
4311
  $client: import("effect/sql/SqlClient").SqlClient;
@@ -1,5 +1,5 @@
1
1
  export * as SessionModelRequest from "./model-request.js";
2
- import { type LLM, type LLMRequest, Message, SystemPart } from "@opencode/ai/effect";
2
+ import { AssistantMessage, type LLM, type LLMRequest, Message, SystemPart, ToolMessage, UserMessage } from "@opencode/ai/effect";
3
3
  import type { StreamOptions } from "@opencode/ai/route";
4
4
  import type { SessionCompaction, SessionContext, SessionGenerate, SessionRequest, SessionTitle } from "@opencode/plugin/effect/session";
5
5
  import type { Agent } from "@opencode/schema/agent";
@@ -60,7 +60,7 @@ export declare const baseTranscript: (input: {
60
60
  }[];
61
61
  messages: Message[];
62
62
  };
63
- export declare const unsupportedParts: (messages: LLMRequest["messages"], capabilities: Model.Capabilities, provider?: string) => Message[];
63
+ export declare const unsupportedParts: (messages: LLMRequest["messages"], capabilities: Model.Capabilities, provider?: string) => (AssistantMessage | import("@opencode/ai/effect").SystemMessage | ToolMessage | UserMessage)[];
64
64
  export declare const boundImages: (messages: LLMRequest["messages"]) => readonly Message[];
65
65
  /** Builds the model request for each session flow. Each entry runs its own plugin hook. */
66
66
  export interface Interface {