reeval 0.22.0 → 0.23.0

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 (346) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +15 -15
  3. package/dist/{adapter-Di9H2etg.js → adapter-Dlq3-4OS.js} +5 -5
  4. package/dist/{adapter-Di9H2etg.js.map → adapter-Dlq3-4OS.js.map} +1 -1
  5. package/dist/{agent-B-6GFDqA.js → agent-OsAfayRf.js} +4 -4
  6. package/dist/{agent-B-6GFDqA.js.map → agent-OsAfayRf.js.map} +1 -1
  7. package/dist/{agents-KBTYhSSh.js → agents-BztvTkfM.js} +15 -15
  8. package/dist/{agents-KBTYhSSh.js.map → agents-BztvTkfM.js.map} +1 -1
  9. package/dist/{app-files-Cmh9FGr5.js → app-files-6NHzghym.js} +3 -3
  10. package/dist/app-files-6NHzghym.js.map +1 -0
  11. package/dist/{assemble-DNVBTBp_.js → assemble-Doa1m-HW.js} +14 -13
  12. package/dist/{assemble-DNVBTBp_.js.map → assemble-Doa1m-HW.js.map} +1 -1
  13. package/dist/{assemble-CBMRIhso.js → assemble-XrZskSNj.js} +1 -1
  14. package/dist/{attach-EbDGKGTO.js → attach-BH2HdwH_.js} +71 -4
  15. package/dist/attach-BH2HdwH_.js.map +1 -0
  16. package/dist/{attempt-host-DQvynDHk.js → attempt-host-8mQV8Uee.js} +6 -6
  17. package/dist/{attempt-host-DQvynDHk.js.map → attempt-host-8mQV8Uee.js.map} +1 -1
  18. package/dist/boat-DKRH0Gv7.js +1 -0
  19. package/dist/boat-DKjqo_ie.js +704 -0
  20. package/dist/boat-DKjqo_ie.js.map +1 -0
  21. package/dist/boat-images-CRN_U_eG.js +366 -0
  22. package/dist/boat-images-CRN_U_eG.js.map +1 -0
  23. package/dist/{bundle-DZstHDeW.js → bundle-DU2aQVeq.js} +95 -33
  24. package/dist/bundle-DU2aQVeq.js.map +1 -0
  25. package/dist/{capture-BkbPsfej.js → capture-By1byHaX.js} +43 -21
  26. package/dist/capture-By1byHaX.js.map +1 -0
  27. package/dist/capture-BzjNv0qP.js +1 -0
  28. package/dist/{cli-BgBBuxxJ.js → cli-DMHOwdVr.js} +374 -121
  29. package/dist/cli-DMHOwdVr.js.map +1 -0
  30. package/dist/{cli-spec-B5L9n-DV.js → cli-spec-D0wuUaj9.js} +98 -42
  31. package/dist/cli-spec-D0wuUaj9.js.map +1 -0
  32. package/dist/cli.js +2 -2
  33. package/dist/{client-DMEYR3MA.js → client-B41UK150.js} +2 -2
  34. package/dist/{client-DMEYR3MA.js.map → client-B41UK150.js.map} +1 -1
  35. package/dist/{command-BKb8eN_X.js → command-8GIHYGZf.js} +9 -9
  36. package/dist/{command-BKb8eN_X.js.map → command-8GIHYGZf.js.map} +1 -1
  37. package/dist/{command-D_w_kDpI.js → command-CAmnWLFL.js} +14 -14
  38. package/dist/{command-D_w_kDpI.js.map → command-CAmnWLFL.js.map} +1 -1
  39. package/dist/{command-loXH2jHr.js → command-CXxckfsq.js} +12 -12
  40. package/dist/{command-loXH2jHr.js.map → command-CXxckfsq.js.map} +1 -1
  41. package/dist/{command-Dwlh0Vhu.js → command-ao0NZ8h0.js} +14 -14
  42. package/dist/{command-Dwlh0Vhu.js.map → command-ao0NZ8h0.js.map} +1 -1
  43. package/dist/{commands-Dqli45sR.js → commands-B3lnIPj5.js} +1 -1
  44. package/dist/{commands-Cuf57OYb.js → commands-ttChCsAy.js} +15 -15
  45. package/dist/{commands-Cuf57OYb.js.map → commands-ttChCsAy.js.map} +1 -1
  46. package/dist/{config-C0RKt00M.js → config-myJT1Qjc.js} +25 -16
  47. package/dist/config-myJT1Qjc.js.map +1 -0
  48. package/dist/{context-DrEAtUyg.js → context-DnzR9TNK.js} +2 -2
  49. package/dist/{context-DrEAtUyg.js.map → context-DnzR9TNK.js.map} +1 -1
  50. package/dist/cost-CdRX1s2p.js +1 -0
  51. package/dist/{cursor-catalog-CRsFxorF.js → cursor-catalog-CUQrabJ_.js} +2 -2
  52. package/dist/{cursor-catalog-CRsFxorF.js.map → cursor-catalog-CUQrabJ_.js.map} +1 -1
  53. package/dist/daytona-Dfhwtr9P.js +677 -0
  54. package/dist/daytona-Dfhwtr9P.js.map +1 -0
  55. package/dist/daytona-image-CnG6G00x.js +183 -0
  56. package/dist/daytona-image-CnG6G00x.js.map +1 -0
  57. package/dist/daytona-image-yJK3c4EV.js +1 -0
  58. package/dist/{db-ErnJ-gMD.js → db-5H95sFii.js} +7 -7
  59. package/dist/{db-ErnJ-gMD.js.map → db-5H95sFii.js.map} +1 -1
  60. package/dist/db-Bbg1n_2M.js +2 -0
  61. package/dist/{default-effort-DHzj84dD.js → default-effort-CtNY9CGW.js} +1 -1
  62. package/dist/{default-effort-D70cTG00.js → default-effort-DYpCkJRk.js} +2 -2
  63. package/dist/{default-effort-D70cTG00.js.map → default-effort-DYpCkJRk.js.map} +1 -1
  64. package/dist/{docker-CFWzZOEk.js → docker-CR0JZ1FE.js} +2 -2
  65. package/dist/{docker-CFWzZOEk.js.map → docker-CR0JZ1FE.js.map} +1 -1
  66. package/dist/docker-kpudeSxV.js +1 -0
  67. package/dist/{doctor-B7utCSdh.js → doctor-aE-RMbB_.js} +25 -20
  68. package/dist/doctor-aE-RMbB_.js.map +1 -0
  69. package/dist/{environment-C0Gg8kyN.js → environment-C8pUCD_A.js} +137 -52
  70. package/dist/environment-C8pUCD_A.js.map +1 -0
  71. package/dist/{errors-C1GBcWE2.js → errors-DPUoUTdK.js} +2 -2
  72. package/dist/{errors-C1GBcWE2.js.map → errors-DPUoUTdK.js.map} +1 -1
  73. package/dist/{eval-source-CsW5VIXS.js → eval-source-CaLIGH3U.js} +5 -5
  74. package/dist/{eval-source-CsW5VIXS.js.map → eval-source-CaLIGH3U.js.map} +1 -1
  75. package/dist/{evaluate-BHQyAszQ.js → evaluate-4kBVtwZZ.js} +37 -28
  76. package/dist/evaluate-4kBVtwZZ.js.map +1 -0
  77. package/dist/{evaluate-DzHq4EsU.d.ts → evaluate-DHaNtgVf.d.ts} +2 -2
  78. package/dist/events-CXxFvVMK.js +475 -0
  79. package/dist/events-CXxFvVMK.js.map +1 -0
  80. package/dist/{fake-bootstrap-VpisF1WE.js → fake-bootstrap-CzxrCqO3.js} +2 -2
  81. package/dist/{fake-bootstrap-VpisF1WE.js.map → fake-bootstrap-CzxrCqO3.js.map} +1 -1
  82. package/dist/files-BFnkOAhn.js +1 -0
  83. package/dist/files-BgQxoDlN.js +1 -0
  84. package/dist/{files-Cv856jLN.js → files-BkvxIqfI.js} +4 -4
  85. package/dist/{files-Cv856jLN.js.map → files-BkvxIqfI.js.map} +1 -1
  86. package/dist/{files-g1watgRC.js → files-CDfG8swM.js} +2 -2
  87. package/dist/{files-g1watgRC.js.map → files-CDfG8swM.js.map} +1 -1
  88. package/dist/files-CSe4VaMj.js +1 -0
  89. package/dist/{files-qjeqXnfE.js → files-CX_mmvCc.js} +6 -6
  90. package/dist/{files-qjeqXnfE.js.map → files-CX_mmvCc.js.map} +1 -1
  91. package/dist/{files-BrGVs4gY.js → files-Cs2dtb7-.js} +2 -2
  92. package/dist/{files-BrGVs4gY.js.map → files-Cs2dtb7-.js.map} +1 -1
  93. package/dist/{files-CAzVG3Rr.js → files-D6M7J3iX.js} +1 -1
  94. package/dist/{files-BuKWZCzY.js → files-DgHeTdCZ.js} +5 -5
  95. package/dist/{files-BuKWZCzY.js.map → files-DgHeTdCZ.js.map} +1 -1
  96. package/dist/{files-BCraBodb.js → files-DpwJW3w6.js} +3 -3
  97. package/dist/{files-BCraBodb.js.map → files-DpwJW3w6.js.map} +1 -1
  98. package/dist/gateway.d.ts +1 -1
  99. package/dist/{git-DOrOtAiD.js → git-BnnNEXqh.js} +2 -2
  100. package/dist/{git-DOrOtAiD.js.map → git-BnnNEXqh.js.map} +1 -1
  101. package/dist/{harness-install-Dxho1yaU.js → harness-install-BfMBYDfP.js} +3 -3
  102. package/dist/{harness-install-Dxho1yaU.js.map → harness-install-BfMBYDfP.js.map} +1 -1
  103. package/dist/harness.d.ts +1 -1
  104. package/dist/hosted-5Zz2peTR.js +260 -0
  105. package/dist/hosted-5Zz2peTR.js.map +1 -0
  106. package/dist/hosted-Co-waHe0.js +131 -0
  107. package/dist/hosted-Co-waHe0.js.map +1 -0
  108. package/dist/hosted-run-202QicZ-.js +1 -0
  109. package/dist/hosted-run-BfAPIMyT.js +230 -0
  110. package/dist/hosted-run-BfAPIMyT.js.map +1 -0
  111. package/dist/{ids-B-JKTCP8.js → ids-a6cr243_.js} +17 -12
  112. package/dist/ids-a6cr243_.js.map +1 -0
  113. package/dist/{images-Ch1y1t6_.js → images-DtXwj2wL.js} +13 -12
  114. package/dist/images-DtXwj2wL.js.map +1 -0
  115. package/dist/index.d.ts +2 -2
  116. package/dist/index.js +5 -5
  117. package/dist/init-BiL6B3S4.js +1 -0
  118. package/dist/{init-C2HqCwnt.js → init-Ci_IAp8p.js} +4 -4
  119. package/dist/{init-C2HqCwnt.js.map → init-Ci_IAp8p.js.map} +1 -1
  120. package/dist/{ink-list-BbKXElcQ.js → ink-list-Dnh6XD3C.js} +2 -2
  121. package/dist/{ink-list-BbKXElcQ.js.map → ink-list-Dnh6XD3C.js.map} +1 -1
  122. package/dist/{inputs-load-CGPyigMC.js → inputs-load-DPUP_IFL.js} +2 -2
  123. package/dist/{inputs-load-CGPyigMC.js.map → inputs-load-DPUP_IFL.js.map} +1 -1
  124. package/dist/inputs-load-M-BGe7gd.js +1 -0
  125. package/dist/{inputs-5UIDpjz-.js → inputs-z4JqnQ5g.js} +6 -6
  126. package/dist/{inputs-5UIDpjz-.js.map → inputs-z4JqnQ5g.js.map} +1 -1
  127. package/dist/internal/vm.d.ts +16 -0
  128. package/dist/internal/vm.js +22 -0
  129. package/dist/internal/vm.js.map +1 -0
  130. package/dist/{invocations-BrZAMuTb.js → invocations-C1gY3E0J.js} +3 -3
  131. package/dist/{invocations-BrZAMuTb.js.map → invocations-C1gY3E0J.js.map} +1 -1
  132. package/dist/{jiti-radm1Soi.js → jiti-ILwyxt93.js} +3 -1
  133. package/dist/{jiti-radm1Soi.js.map → jiti-ILwyxt93.js.map} +1 -1
  134. package/dist/judge.d.ts +1 -1
  135. package/dist/kinds-DEKXOWVJ.js +592 -0
  136. package/dist/kinds-DEKXOWVJ.js.map +1 -0
  137. package/dist/{layout-Czh5wOpz.js → layout-nCnU9Vu2.js} +2 -2
  138. package/dist/{layout-Czh5wOpz.js.map → layout-nCnU9Vu2.js.map} +1 -1
  139. package/dist/{list-B_C0k5ex.js → list-MK4L8tfW.js} +4 -4
  140. package/dist/{list-B_C0k5ex.js.map → list-MK4L8tfW.js.map} +1 -1
  141. package/dist/{live-DgFm0H90.js → live-BkPNXVmN.js} +7 -7
  142. package/dist/{live-DgFm0H90.js.map → live-BkPNXVmN.js.map} +1 -1
  143. package/dist/{live-DGgIrVw0.js → live-Dlq-S2yy.js} +2 -2
  144. package/dist/{live-DGgIrVw0.js.map → live-Dlq-S2yy.js.map} +1 -1
  145. package/dist/live-gZtkBwuo.js +1 -0
  146. package/dist/{machine-service-2lIv5UWF.js → machine-service-Byl0BlcT.js} +1 -1
  147. package/dist/{machine-service-Ct_1XMMi.js → machine-service-CZiXiVsS.js} +286 -97
  148. package/dist/machine-service-CZiXiVsS.js.map +1 -0
  149. package/dist/machines-Ch5bhgvk.js +279 -0
  150. package/dist/machines-Ch5bhgvk.js.map +1 -0
  151. package/dist/model-C6aoJLg_.js +1 -0
  152. package/dist/{model-E5X8YBJM.js → model-CRh8aiYS.js} +2 -2
  153. package/dist/{model-E5X8YBJM.js.map → model-CRh8aiYS.js.map} +1 -1
  154. package/dist/{model-DF77SgZv.js → model-LoLnq9y1.js} +2 -2
  155. package/dist/{model-DF77SgZv.js.map → model-LoLnq9y1.js.map} +1 -1
  156. package/dist/{model-B1tdv9-d.js → model-lLaUxxno.js} +1 -1
  157. package/dist/{node-BjuhqQwa.js → node-BQjSQw0d.js} +4 -4
  158. package/dist/{node-BjuhqQwa.js.map → node-BQjSQw0d.js.map} +1 -1
  159. package/dist/options-I9I3FwMl.js +1 -0
  160. package/dist/{patch-BR8rdl7r.js → patch-D8X6VB-e.js} +2 -2
  161. package/dist/{patch-BR8rdl7r.js.map → patch-D8X6VB-e.js.map} +1 -1
  162. package/dist/{plan-BcT4G5jj.js → plan-DgIVIrXJ.js} +7 -7
  163. package/dist/{plan-BcT4G5jj.js.map → plan-DgIVIrXJ.js.map} +1 -1
  164. package/dist/{plugins-cC0sqoDA.js → plugins-DvEbow6a.js} +6 -595
  165. package/dist/plugins-DvEbow6a.js.map +1 -0
  166. package/dist/{preflight-DySHXeFJ.js → preflight-BKGbxN67.js} +8 -7
  167. package/dist/preflight-BKGbxN67.js.map +1 -0
  168. package/dist/{preflight-C9OtTb7k.js → preflight-Qm4wE094.js} +9 -4
  169. package/dist/preflight-Qm4wE094.js.map +1 -0
  170. package/dist/preflight-dJqs5x3r.js +1 -0
  171. package/dist/preflight-fyV5nnea.js +1 -0
  172. package/dist/{prepare-nbX1CXXg.js → prepare-BAjRSoku.js} +19 -39
  173. package/dist/prepare-BAjRSoku.js.map +1 -0
  174. package/dist/prepare-CRPPfRJf.js +2 -0
  175. package/dist/prices-C0gKS_8G.js +1 -0
  176. package/dist/{prices-BrY_ihLs.js → prices-DCokI_Ka.js} +3 -3
  177. package/dist/{prices-BrY_ihLs.js.map → prices-DCokI_Ka.js.map} +1 -1
  178. package/dist/{provenance-CkykifD9.js → provenance-CSyRCc9B.js} +3 -3
  179. package/dist/{provenance-CkykifD9.js.map → provenance-CSyRCc9B.js.map} +1 -1
  180. package/dist/{providers-bNgfKa6m.js → providers-DkaEJvF5.js} +173 -31
  181. package/dist/providers-DkaEJvF5.js.map +1 -0
  182. package/dist/providers-DxZ26YoG.js +1 -0
  183. package/dist/{query-DhV3a8lM.js → query-BL66BOqL.js} +2 -2
  184. package/dist/{query-DhV3a8lM.js.map → query-BL66BOqL.js.map} +1 -1
  185. package/dist/query-C9OKU1Vz.js +1 -0
  186. package/dist/{questions-Csv64WCb.js → questions-boVPzGoC.js} +5 -5
  187. package/dist/{questions-Csv64WCb.js.map → questions-boVPzGoC.js.map} +1 -1
  188. package/dist/recipe-qyIpP96r.js +128 -0
  189. package/dist/recipe-qyIpP96r.js.map +1 -0
  190. package/dist/{record--vHreTLk.js → record-D1_D1KFY.js} +5 -3
  191. package/dist/record-D1_D1KFY.js.map +1 -0
  192. package/dist/{remarks-CYFOsnz5.js → remarks-DEvk5f8v.js} +7 -7
  193. package/dist/{remarks-CYFOsnz5.js.map → remarks-DEvk5f8v.js.map} +1 -1
  194. package/dist/{remote-0CHog7Oq.js → remote-CQoBRpOv.js} +5 -5
  195. package/dist/{remote-0CHog7Oq.js.map → remote-CQoBRpOv.js.map} +1 -1
  196. package/dist/resolve-BdpO8BN1.js +1 -0
  197. package/dist/{resolve-Bul8lHaa.js → resolve-Bfo8sjd-.js} +2 -2
  198. package/dist/{resolve-Bul8lHaa.js.map → resolve-Bfo8sjd-.js.map} +1 -1
  199. package/dist/{resolve-DorSHDBs.js → resolve-D2RqmybX.js} +8 -8
  200. package/dist/{resolve-DorSHDBs.js.map → resolve-D2RqmybX.js.map} +1 -1
  201. package/dist/{results-DhMgRkR0.js → results-BpxzyoMd.js} +5 -5
  202. package/dist/{results-DhMgRkR0.js.map → results-BpxzyoMd.js.map} +1 -1
  203. package/dist/{resume-C8Ihfy-C.js → resume-2ekm_9OB.js} +5 -5
  204. package/dist/{resume-C8Ihfy-C.js.map → resume-2ekm_9OB.js.map} +1 -1
  205. package/dist/{retry-Bfk7pDti.js → retry-CAhpW1hH.js} +4 -4
  206. package/dist/{retry-Bfk7pDti.js.map → retry-CAhpW1hH.js.map} +1 -1
  207. package/dist/{runtime-CPUH0Vk5.js → runtime-C5fKSFCz.js} +4 -4
  208. package/dist/{runtime-CPUH0Vk5.js.map → runtime-C5fKSFCz.js.map} +1 -1
  209. package/dist/sandbox/boat.d.ts +11 -3
  210. package/dist/sandbox/boat.js +18 -4
  211. package/dist/sandbox/boat.js.map +1 -1
  212. package/dist/sandbox/daytona.d.ts +30 -0
  213. package/dist/sandbox/daytona.js +49 -0
  214. package/dist/sandbox/daytona.js.map +1 -0
  215. package/dist/{sandbox-z8q_4Ywn.js → sandbox-t-Q-8lA_.js} +2 -2
  216. package/dist/{sandbox-z8q_4Ywn.js.map → sandbox-t-Q-8lA_.js.map} +1 -1
  217. package/dist/sandbox.d.ts +1 -1
  218. package/dist/sandbox.js +1 -1
  219. package/dist/{server-BsQZtuF9.js → server-BcLg9WzE.js} +10 -10
  220. package/dist/{server-BsQZtuF9.js.map → server-BcLg9WzE.js.map} +1 -1
  221. package/dist/server-Buav2-CG.js +1 -0
  222. package/dist/{source-9HWaTEgV.js → source-CrXM19HD.js} +2 -2
  223. package/dist/{source-9HWaTEgV.js.map → source-CrXM19HD.js.map} +1 -1
  224. package/dist/source-dvxkqYvk.js +1 -0
  225. package/dist/{src-CotUxxQV.js → src-5dCrqbFd.js} +1 -1
  226. package/dist/{src-boB6D-5T.js → src-Bf5RZlPi.js} +2 -2
  227. package/dist/{src-boB6D-5T.js.map → src-Bf5RZlPi.js.map} +1 -1
  228. package/dist/{src-CWfy8ct8.js → src-C5rrQlt8.js} +1107 -382
  229. package/dist/src-C5rrQlt8.js.map +1 -0
  230. package/dist/{src-BuGc40IF.js → src-C6MsGyD6.js} +1 -1
  231. package/dist/{src-C2K5_afU.js → src-Cf4vRyea.js} +1 -1
  232. package/dist/src-DEbNp-rx.js +1 -0
  233. package/dist/{src-D-PwBaBB.js → src-DrLbG1HM.js} +1 -1
  234. package/dist/{src-CcrQQB0_.js → src-Ds1pmXTg.js} +1 -1
  235. package/dist/{src-CSVJjghq.js → src-DwcCKsV0.js} +2 -2
  236. package/dist/{src-B2eHTCnp.js → src-VG2IRoT4.js} +1 -1
  237. package/dist/{src-BfOlH_Bu.js → src-io_SKoZ5.js} +1 -1
  238. package/dist/ssh-pool-BorCizYw.js +1 -0
  239. package/dist/ssh-pool-Dvfx5GuV.js +174 -0
  240. package/dist/ssh-pool-Dvfx5GuV.js.map +1 -0
  241. package/dist/{start-Db5VRcRZ.js → start-COB07NpH.js} +126 -68
  242. package/dist/start-COB07NpH.js.map +1 -0
  243. package/dist/{state-DUYdzNA7.js → state-B319V1p8.js} +5 -5
  244. package/dist/{state-DUYdzNA7.js.map → state-B319V1p8.js.map} +1 -1
  245. package/dist/state-C5oBvmoZ.js +1 -0
  246. package/dist/store/local.d.ts +1 -1
  247. package/dist/store/s3.d.ts +1 -1
  248. package/dist/suite-BwJGOhCZ.js +2 -0
  249. package/dist/{suite-DjGxmDSY.js → suite-D1tgXZxM.js} +2 -2
  250. package/dist/{suite-DjGxmDSY.js.map → suite-D1tgXZxM.js.map} +1 -1
  251. package/dist/{summary-BK5Sa_N0.js → summary-ClLns_wv.js} +5 -5
  252. package/dist/{summary-BK5Sa_N0.js.map → summary-ClLns_wv.js.map} +1 -1
  253. package/dist/{sync-DUi_P2UJ.js → sync-mOG74RXH.js} +5 -5
  254. package/dist/{sync-DUi_P2UJ.js.map → sync-mOG74RXH.js.map} +1 -1
  255. package/dist/{tart-BQ_Ap0l4.js → tart-DMppfbEm.js} +7 -6
  256. package/dist/{tart-BQ_Ap0l4.js.map → tart-DMppfbEm.js.map} +1 -1
  257. package/dist/{tart-bake-D1RttYfM.js → tart-bake-Cva_qdir.js} +7 -7
  258. package/dist/{tart-bake-D1RttYfM.js.map → tart-bake-Cva_qdir.js.map} +1 -1
  259. package/dist/{tart-bake-DjFcsG3N.js → tart-bake-DVIoXWr_.js} +1 -1
  260. package/dist/{tart-cli-BOcluha1.js → tart-cli-D88c5YYJ.js} +1 -1
  261. package/dist/{tart-cli-gA9xEaQL.js → tart-cli-LzDud2Z6.js} +2 -2
  262. package/dist/{tart-cli-gA9xEaQL.js.map → tart-cli-LzDud2Z6.js.map} +1 -1
  263. package/dist/{tart-hosts-CWse-ASo.js → tart-hosts-8N6Tt7Yb.js} +1 -1
  264. package/dist/{tart-hosts-CHNrfV6u.js → tart-hosts-CTRY5kQ2.js} +3 -3
  265. package/dist/{tart-hosts-CHNrfV6u.js.map → tart-hosts-CTRY5kQ2.js.map} +1 -1
  266. package/dist/{tart-images-CLBjfF9u.js → tart-images-JfHirU8W.js} +2 -2
  267. package/dist/{tart-images-CLBjfF9u.js.map → tart-images-JfHirU8W.js.map} +1 -1
  268. package/dist/testing.d.ts +2 -2
  269. package/dist/testing.js +4 -4
  270. package/dist/{tool-class-krsmEo44.js → tool-class-CncfCw03.js} +2 -2
  271. package/dist/{tool-class-krsmEo44.js.map → tool-class-CncfCw03.js.map} +1 -1
  272. package/dist/{types-DKK8jj--.d.ts → types-BDo8ttQo.d.ts} +157 -17
  273. package/dist/{ui-DKYjTVpn.js → ui-DUiVPbQ2.js} +53 -484
  274. package/dist/ui-DUiVPbQ2.js.map +1 -0
  275. package/dist/view/index.d.ts +1 -1
  276. package/dist/view/index.js +4 -4
  277. package/dist/views-B0qZR5Ef.js +2 -0
  278. package/dist/{views-B1zVLJsF.js → views-CiZGh3ws.js} +6 -6
  279. package/dist/{views-B1zVLJsF.js.map → views-CiZGh3ws.js.map} +1 -1
  280. package/dist/vm-container-BVn7pXfD.js +148 -0
  281. package/dist/vm-container-BVn7pXfD.js.map +1 -0
  282. package/dist/vm-images-CNk-Zl2a.js +375 -0
  283. package/dist/vm-images-CNk-Zl2a.js.map +1 -0
  284. package/dist/{worker-entry-DrAYYt0M.js → worker-entry-DmXQ2Znu.js} +5 -5
  285. package/dist/{worker-entry-DrAYYt0M.js.map → worker-entry-DmXQ2Znu.js.map} +1 -1
  286. package/dist/workspace-CRgFdmgW.js +1 -0
  287. package/dist/{workspace-DwTe1zo6.js → workspace-wwvwEHzP.js} +5 -5
  288. package/dist/{workspace-DwTe1zo6.js.map → workspace-wwvwEHzP.js.map} +1 -1
  289. package/package.json +14 -2
  290. package/skills/reeval/references/environments.md +4 -3
  291. package/dist/app-files-Cmh9FGr5.js.map +0 -1
  292. package/dist/attach-EbDGKGTO.js.map +0 -1
  293. package/dist/boat-Bzz8L-KQ.js +0 -701
  294. package/dist/boat-Bzz8L-KQ.js.map +0 -1
  295. package/dist/boat-Dek8ftIt.js +0 -120
  296. package/dist/boat-Dek8ftIt.js.map +0 -1
  297. package/dist/bundle-DZstHDeW.js.map +0 -1
  298. package/dist/capture-BkbPsfej.js.map +0 -1
  299. package/dist/capture-CUAvk9KM.js +0 -1
  300. package/dist/cli-BgBBuxxJ.js.map +0 -1
  301. package/dist/cli-spec-B5L9n-DV.js.map +0 -1
  302. package/dist/config-C0RKt00M.js.map +0 -1
  303. package/dist/cost-IM80LyGD.js +0 -1
  304. package/dist/db-3o8s2EyD.js +0 -2
  305. package/dist/docker-DrMnpL84.js +0 -1
  306. package/dist/doctor-B7utCSdh.js.map +0 -1
  307. package/dist/environment-C0Gg8kyN.js.map +0 -1
  308. package/dist/evaluate-BHQyAszQ.js.map +0 -1
  309. package/dist/files-BjOJw4sn.js +0 -1
  310. package/dist/files-D-Lir4aE.js +0 -1
  311. package/dist/files-DRlJ0Xr2.js +0 -1
  312. package/dist/ids-B-JKTCP8.js.map +0 -1
  313. package/dist/images-Ch1y1t6_.js.map +0 -1
  314. package/dist/init-CM9xwyre.js +0 -1
  315. package/dist/inputs-load-C82HOKnb.js +0 -1
  316. package/dist/live-C9Et_BVT.js +0 -1
  317. package/dist/machine-service-Ct_1XMMi.js.map +0 -1
  318. package/dist/machines-BnquHcBZ.js +0 -120
  319. package/dist/machines-BnquHcBZ.js.map +0 -1
  320. package/dist/model-Bcy4Qjmm.js +0 -1
  321. package/dist/options-C989kuVE.js +0 -1
  322. package/dist/plugins-cC0sqoDA.js.map +0 -1
  323. package/dist/preflight-BMVDBcux.js +0 -1
  324. package/dist/preflight-C9OtTb7k.js.map +0 -1
  325. package/dist/preflight-DySHXeFJ.js.map +0 -1
  326. package/dist/preflight-zsAn3heN.js +0 -1
  327. package/dist/prepare-MaRWRhNT.js +0 -2
  328. package/dist/prepare-nbX1CXXg.js.map +0 -1
  329. package/dist/prices-B1vm_lPk.js +0 -1
  330. package/dist/providers-BkLGzaSY.js +0 -1
  331. package/dist/providers-bNgfKa6m.js.map +0 -1
  332. package/dist/query-B2SQddoV.js +0 -1
  333. package/dist/record--vHreTLk.js.map +0 -1
  334. package/dist/resolve-Bm9ZyFR-.js +0 -1
  335. package/dist/server-ZaMzUNmV.js +0 -1
  336. package/dist/source-BcBDj-R0.js +0 -1
  337. package/dist/src-CWfy8ct8.js.map +0 -1
  338. package/dist/src-jYqNkT-F.js +0 -1
  339. package/dist/start-Db5VRcRZ.js.map +0 -1
  340. package/dist/state-CKIjZZRK.js +0 -1
  341. package/dist/suite-CH1aaAbs.js +0 -2
  342. package/dist/tarball-C8BSTAMk.js +0 -257
  343. package/dist/tarball-C8BSTAMk.js.map +0 -1
  344. package/dist/ui-DKYjTVpn.js.map +0 -1
  345. package/dist/views-DCjtw1jF.js +0 -2
  346. package/dist/workspace-CnRbV8cM.js +0 -1
@@ -1,28 +1,30 @@
1
1
  import { n as UsageError } from "./errors-ttMTnIYX.js";
2
2
  import { g as parseDuration } from "./shared-DtZwIAfy.js";
3
3
  import { o as PACKAGE_VERSION } from "./root-BzeoyfGd.js";
4
- import { a as newRunId, c as relativeFile, i as fromCwd } from "./ids-B-JKTCP8.js";
4
+ import { a as fromCwd, l as relativeFile, o as newRunId, r as cwdIn } from "./ids-a6cr243_.js";
5
5
  import { S as stripCredentials, g as redactSecrets, x as registerSecret } from "./redact-t-L3VGy8.js";
6
- import { H as sandboxCapacity, I as capabilitiesOf, L as cleanupRun, W as sandboxKind } from "./plugins-cC0sqoDA.js";
7
- import { n as clip } from "./text-B8-W3Cvn.js";
6
+ import { c as sandboxCapacity, n as capabilitiesOf, r as cleanupRun, u as sandboxKind } from "./kinds-DEKXOWVJ.js";
7
+ import { i as formatDuration, n as clip } from "./text-B8-W3Cvn.js";
8
8
  import { y as vertexSettingsIn } from "./vertex-BEWxHoxH.js";
9
- import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-C0Gg8kyN.js";
10
- import { At as resolveOutput, Dt as rootlessPodmanSwitch, Ot as setupEgress, R as checkLimitHarness, S as resolveModelGateway, U as harnessId, _ as selectProfile, _t as ciRunner, a as configPathFor, b as gatewayScope, c as findConfig, d as loadConfig, et as plannedSandboxIds, f as malformedCredentials, g as runJudgeModel, h as requireConfig, i as configLabel, l as givenConcurrency, m as neededCredentials, o as defaultConcurrency, p as missingCredentials, tt as plannedSandboxes, u as hostCapacity, v as withProfileHistory, vt as directOnCloud, xt as isDirect } from "./config-C0RKt00M.js";
9
+ import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-C8pUCD_A.js";
10
+ import { At as resolveOutput, Dt as rootlessPodmanSwitch, Ot as setupEgress, R as checkLimitHarness, S as resolveModelGateway, U as harnessId, _ as selectProfile, _t as ciRunner, a as configPathFor, b as gatewayScope, c as findConfig, d as loadConfig, et as plannedSandboxIds, f as malformedCredentials, g as runJudgeModel, h as requireConfig, i as configLabel, l as givenConcurrency, m as neededCredentials, o as defaultConcurrency, p as missingCredentials, tt as plannedSandboxes, u as hostCapacity, v as withProfileHistory, vt as directOnCloud, xt as isDirect } from "./config-myJT1Qjc.js";
11
11
  import { l as judgeModelName, m as unusedGatewayKey } from "./judge-DwzqucLS.js";
12
12
  import { n as loadEnvFiles, t as inCI } from "./env-8x1O8I1M.js";
13
- import { r as localStudio } from "./resolve-Bul8lHaa.js";
13
+ import { r as localStudio } from "./resolve-Bfo8sjd-.js";
14
14
  import { r as openRouterFallbacks } from "./openrouter-models-B1sIOTD2.js";
15
15
  import { a as traitFilters, o as traitFlags, t as checkTraitKeys } from "./traits-CCD8XsmI.js";
16
- import { k as runOutcome } from "./model-DF77SgZv.js";
17
- import { c as helpText, i as INSTEAD, n as FLAGS, o as commandHelpText, r as GLOBAL, t as COMMANDS } from "./cli-spec-B5L9n-DV.js";
16
+ import { k as runOutcome } from "./model-LoLnq9y1.js";
17
+ import { i as INSTEAD, l as helpText, n as FLAGS, r as GLOBAL, s as commandHelpText, t as COMMANDS } from "./cli-spec-D0wuUaj9.js";
18
18
  import { t as colors } from "./colors-DcXBvAlU.js";
19
- import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-DUi_P2UJ.js";
20
- import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-CkykifD9.js";
21
- import { A as writeLiveProgress, C as restoreRetry, D as stoppedRetry, E as savedInvocation, O as sweepStaging, S as resolveRetry, T as savedFilters, _ as pruneEvents, a as eventsFile, b as resolveAttach, d as liveAttempts, f as loadPrevious, h as previousAttempt, i as erroredAttempts, k as writeCurrent, l as keptAttempts, m as prepareResume, o as holdRetry, p as noteRetries, r as completedKeysFor, t as CANCEL_SIGNAL, u as leftOutAttempts, w as resumeSettings, x as resolveResume, y as removeStoppedStaging } from "./resume-C8Ihfy-C.js";
22
- import { c as isEventsUrl, d as teeRenderer, l as notEventStream, s as isAttachUrl, t as createRenderer, u as openEventStream } from "./ui-DKYjTVpn.js";
23
- import { n as preflight } from "./preflight-DySHXeFJ.js";
19
+ import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-mOG74RXH.js";
20
+ import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-CSyRCc9B.js";
21
+ import { A as writeLiveProgress, C as restoreRetry, D as stoppedRetry, E as savedInvocation, O as sweepStaging, S as resolveRetry, T as savedFilters, _ as pruneEvents, a as eventsFile, b as resolveAttach, d as liveAttempts, f as loadPrevious, h as previousAttempt, i as erroredAttempts, k as writeCurrent, l as keptAttempts, m as prepareResume, o as holdRetry, p as noteRetries, r as completedKeysFor, t as CANCEL_SIGNAL, u as leftOutAttempts, w as resumeSettings, x as resolveResume, y as removeStoppedStaging } from "./resume-2ekm_9OB.js";
22
+ import { c as notEventStream, l as openEventStream, o as isAttachUrl, s as isEventsUrl, u as teeRenderer } from "./events-CXxFvVMK.js";
23
+ import { t as createRenderer } from "./ui-DUiVPbQ2.js";
24
+ import { n as preflight } from "./preflight-BKGbxN67.js";
24
25
  import { t as budgetMarker } from "./budget-BcxLYY5L.js";
25
- import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-BrZAMuTb.js";
26
+ import { d as wantsHosted } from "./hosted-run-BfAPIMyT.js";
27
+ import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-C1gY3E0J.js";
26
28
  import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
27
29
  import { dirname, join, resolve } from "node:path";
28
30
  import { appendFile, readFile, rm } from "node:fs/promises";
@@ -202,7 +204,8 @@ const EXPECTED_ERRORS = [
202
204
  const INFRA_ERRORS = [
203
205
  "PreflightInfraError",
204
206
  "StoreError",
205
- "EventStreamError"
207
+ "EventStreamError",
208
+ "HostedError"
206
209
  ];
207
210
  const EXIT = {
208
211
  ok: 0,
@@ -264,7 +267,7 @@ async function run(argv) {
264
267
  return values.help ? EXIT.ok : EXIT.usage;
265
268
  }
266
269
  if (command === "init") {
267
- const { initCommand } = await import("./init-CM9xwyre.js");
270
+ const { initCommand } = await import("./init-BiL6B3S4.js");
268
271
  return initCommand(values, filters, {
269
272
  out: (s) => console.log(s),
270
273
  input: process.stdin,
@@ -273,7 +276,7 @@ async function run(argv) {
273
276
  });
274
277
  }
275
278
  if (command === "doctor") {
276
- const { doctorCommand } = await import("./doctor-B7utCSdh.js");
279
+ const { doctorCommand } = await import("./doctor-aE-RMbB_.js");
277
280
  return doctorCommand(values, {
278
281
  out: (s) => console.log(s),
279
282
  color: !!process.stdout.isTTY && !process.env.NO_COLOR,
@@ -281,7 +284,7 @@ async function run(argv) {
281
284
  });
282
285
  }
283
286
  if (command === "report") {
284
- const { reportCommand } = await import("./command-loXH2jHr.js");
287
+ const { reportCommand } = await import("./command-CXxckfsq.js");
285
288
  return reportCommand(values, filters, {
286
289
  out: (s) => console.log(s),
287
290
  err: (s) => console.error(dim(s)),
@@ -291,13 +294,15 @@ async function run(argv) {
291
294
  }
292
295
  const configPath = configPathFor(values.config);
293
296
  if (command === "image") {
294
- if (filters[0] !== "build") throw new UsageError(`Unknown command "image ${filters[0] ?? ""}". Did you mean reeval image build?`);
297
+ if (filters[0] === "list") return imageListCommand(values, configPath, filters.slice(1));
298
+ if (filters[0] === "clean") return imageCleanCommand(values, configPath);
299
+ if (filters[0] !== "build") throw new UsageError(`Unknown command "image ${filters[0] ?? ""}". Did you mean reeval image build, list or clean?`);
295
300
  return imageBuildCommand(values, configPath, filters.slice(1));
296
301
  }
297
302
  if (command === "studio") {
298
303
  const config = await historyConfig(configPath, "studio", values.profile);
299
304
  localStudio(config);
300
- const { studioCommand } = await import("./command-BKb8eN_X.js");
305
+ const { studioCommand } = await import("./command-8GIHYGZf.js");
301
306
  return studioCommand({
302
307
  config,
303
308
  flags: values,
@@ -308,7 +313,7 @@ async function run(argv) {
308
313
  if (command === "mcp") {
309
314
  if (!values.http) console.log = console.info = console.debug = console.error;
310
315
  const config = await historyConfig(configPath, "mcp", values.profile, values);
311
- const { mcpCommand } = await import("./command-Dwlh0Vhu.js");
316
+ const { mcpCommand } = await import("./command-ao0NZ8h0.js");
312
317
  return mcpCommand({
313
318
  config,
314
319
  flags: values,
@@ -317,7 +322,7 @@ async function run(argv) {
317
322
  }
318
323
  if (command in HISTORY_COMMANDS) {
319
324
  const config = await historyConfig(configPath, command, values.profile, values);
320
- const commands = await import("./commands-Dqli45sR.js");
325
+ const commands = await import("./commands-B3lnIPj5.js");
321
326
  const ctx = {
322
327
  config,
323
328
  flags: values,
@@ -331,14 +336,14 @@ async function run(argv) {
331
336
  case "checkout": return commands.checkoutCommand(ctx, filters);
332
337
  case "sync": return commands.syncCommand(ctx, filters);
333
338
  case "query": {
334
- const { queryCommand } = await import("./query-B2SQddoV.js");
339
+ const { queryCommand } = await import("./query-C9OKU1Vz.js");
335
340
  return queryCommand({
336
341
  ...ctx,
337
342
  err: (s) => console.error(dim(s))
338
343
  }, filters);
339
344
  }
340
345
  case "analyze": {
341
- const { analyzeCommand } = await import("./command-D_w_kDpI.js");
346
+ const { analyzeCommand } = await import("./command-CAmnWLFL.js");
342
347
  return analyzeCommand({
343
348
  ...ctx,
344
349
  err: (s) => console.error(dim(s))
@@ -349,7 +354,7 @@ async function run(argv) {
349
354
  if (command === "clean") return cleanCommand(values, configPath);
350
355
  if (command === "attach") return attachCommand(values, filters[0], configPath);
351
356
  if (command === "bundle") {
352
- const { bundleCommand } = await import("./bundle-DZstHDeW.js");
357
+ const { bundleCommand } = await import("./bundle-DU2aQVeq.js");
353
358
  return bundleCommand(values, filters, configPath, argv.slice(1), (s) => console.log(s));
354
359
  }
355
360
  if (command !== "run") throw new UsageError(`Unknown command "${command}". Run reeval --help.`);
@@ -368,25 +373,30 @@ async function bundleRun(flags, filters) {
368
373
  "runs",
369
374
  "config",
370
375
  "resume",
371
- "retry-errors"
376
+ "retry-errors",
377
+ "hosted"
372
378
  ].filter((f) => flags[f] !== void 0).map((f) => `--${f}`);
373
379
  if (filters.length || planning.length) throw new UsageError(`--bundle runs the bundle with the filters, profile, tags, traits and runs it was made with: leave out ${[...filters.length ? ["filters"] : [], ...planning].join(", ")}.`);
374
380
  const file = flags.bundle;
375
381
  const log = (s) => flags.json ? console.error(s) : console.log(s);
376
- const { openBundle } = await import("./bundle-DZstHDeW.js");
382
+ const { bundledGit, openBundle } = await import("./bundle-DU2aQVeq.js");
377
383
  const opened = await openBundle(file, log);
378
384
  if (opened.exit !== void 0) return opened.exit;
379
- const { args } = opened.manifest;
385
+ const { args, author } = opened.manifest;
380
386
  log(`reeval: running ${file} in ${opened.project}, where its .reeval/ stays`);
381
387
  process.chdir(opened.project);
382
388
  return runCommand({
383
389
  ...flags,
384
390
  bundle: void 0,
391
+ local: true,
385
392
  ...args.profile ? { profile: args.profile } : {},
386
393
  tag: args.tags,
387
394
  trait: args.traits,
388
395
  ...args.runs ? { runs: args.runs } : {}
389
- }, opened.config, args.filters);
396
+ }, opened.config, args.filters, {
397
+ git: bundledGit(opened.manifest),
398
+ ...author ? { author } : {}
399
+ });
390
400
  }
391
401
  /**
392
402
  * The config a command that reads the history runs on: the profile `--profile`, `REEVAL_PROFILE`
@@ -414,12 +424,12 @@ async function historyConfig(configPath, command, flag, values = {}) {
414
424
  }
415
425
  /** The dry run's prices, fetched only when a planned attempt or the judge has anything to price. */
416
426
  async function dryRunPrices(planned, judgeModel) {
417
- const { needsPrices } = await import("./cost-IM80LyGD.js");
427
+ const { needsPrices } = await import("./cost-CdRX1s2p.js");
418
428
  if (!needsPrices(planned.filter((p) => !p.attempt.plan.skip).map((p) => p.attempt.harness), judgeModel)) return {
419
429
  table: null,
420
430
  why: "nothing to price"
421
431
  };
422
- const { loadPrices } = await import("./prices-B1vm_lPk.js");
432
+ const { loadPrices } = await import("./prices-C0gKS_8G.js");
423
433
  return loadPrices();
424
434
  }
425
435
  /** Asks a yes/no question on the terminal; anything but y or yes is no. */
@@ -447,7 +457,7 @@ async function cleanCommand(flags, configPath) {
447
457
  keep = Number(flags.keep);
448
458
  if (!(Number.isInteger(keep) && keep >= 0)) throw new UsageError(`--keep must be a whole number (got ${flags.keep})`);
449
459
  }
450
- const { debugRoot, pruneDebug } = await import("./files-BjOJw4sn.js");
460
+ const { debugRoot, pruneDebug } = await import("./files-BFnkOAhn.js");
451
461
  const { formatBytes } = await import("./debug-CF4p4Lp_.js");
452
462
  const { runs, bytes } = await pruneDebug(config.root, keep);
453
463
  const where = fromCwd(debugRoot(config.root)) || ".";
@@ -459,23 +469,23 @@ async function cleanCommand(flags, configPath) {
459
469
  const streams = await pruneEvents(config.root, keep);
460
470
  if (streams.length) console.log(`Removed the event streams of ${streams.length} finished run${streams.length === 1 ? "" : "s"} from .reeval/events`);
461
471
  if (flags.bundles) {
462
- const { removeExtractedBundles } = await import("./bundle-DZstHDeW.js");
472
+ const { removeExtractedBundles } = await import("./bundle-DU2aQVeq.js");
463
473
  const removed = await removeExtractedBundles();
464
474
  console.log(removed.length ? `Removed ${removed.length} extracted bundle${removed.length === 1 ? "" : "s"}: ${removed.join(", ")}` : "No extracted bundles to remove");
465
475
  }
466
476
  if (flags.images) {
467
- const { dockerAvailable, pruneImages } = await import("./src-jYqNkT-F.js");
468
- const { requireDocker } = await import("./providers-BkLGzaSY.js");
477
+ const { dockerAvailable, pruneImages } = await import("./src-DEbNp-rx.js");
478
+ const { requireDocker } = await import("./providers-DxZ26YoG.js");
469
479
  const engines = [];
470
480
  for (const engine of ["docker", "podman"]) if (await dockerAvailable(engine)) engines.push(engine);
471
- const { tartCli } = await import("./tart-cli-BOcluha1.js");
481
+ const { tartCli } = await import("./tart-cli-D88c5YYJ.js");
472
482
  const tart = await tartCli(["--version"]).then((r) => r.exitCode === 0, () => false);
473
483
  if (!engines.length && !tart) await requireDocker();
474
484
  let removed = 0;
475
485
  for (const engine of engines) removed += await pruneImages(engine);
476
486
  if (engines.length) console.log(removed ? `Removed ${removed} image${removed === 1 ? "" : "s"} reeval built that nothing uses` : "No leftover images to remove");
477
487
  if (tart) {
478
- const { deleteBakedImages } = await import("./tart-bake-DjFcsG3N.js");
488
+ const { deleteBakedImages } = await import("./tart-bake-DVIoXWr_.js");
479
489
  const baked = await deleteBakedImages();
480
490
  console.log(baked.length ? `Deleted ${baked.length} Tart image${baked.length === 1 ? "" : "s"} with a harness baked in (reeval image build bakes them again): ${baked.join(", ")}` : "No Tart images with a harness baked in to delete");
481
491
  }
@@ -494,26 +504,14 @@ function verbosityOf(flags) {
494
504
  * image.
495
505
  */
496
506
  async function imageBuildCommand(flags, configPath, filters) {
497
- const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-Ch1y1t6_.js");
498
- const setup = await prepareRun({
499
- ...flags,
500
- "dry-run": true
501
- }, configPath);
502
- const { runId, stagingDir, config, runs, tags, concurrency, profile } = await startRun(setup);
503
- const root = config.root;
504
- const uses = await plannedImageUses({
505
- runId,
506
- stagingDir,
507
- config,
508
- runs,
509
- tags,
510
- concurrency,
511
- profile
512
- }, filters, (parts) => unmatchedFilter(config, parts));
507
+ const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-DtXwj2wL.js");
508
+ const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-CNk-Zl2a.js");
509
+ const { setup, root, uses } = await imageUses(flags, configPath, filters, plannedImageUses);
513
510
  const targets = imageTargets(uses);
514
511
  const vms = tartTargets(uses);
515
- if (targets.length === 0 && vms.length === 0) {
516
- console.log("No eval runs in a Docker or Tart sandbox, so there are no images to build or pull.");
512
+ const snapshots = vmImageTargets(uses);
513
+ if (targets.length === 0 && vms.length === 0 && snapshots.length === 0) {
514
+ console.log("No eval runs in a Docker or Tart sandbox, or a boat() or daytona() sandbox with an image recipe, so there are no images to build or pull.");
517
515
  return EXIT.ok;
518
516
  }
519
517
  const { tartTagWarning } = await import("./tart-ref-7Qv3cm3B.js");
@@ -524,6 +522,7 @@ async function imageBuildCommand(flags, configPath, filters) {
524
522
  if (flags["dry-run"]) {
525
523
  if (vms.length) for (const line of await tartPlanLines(vms)) console.log(line);
526
524
  if (targets.length) for (const line of await imagePlanLines(targets, root)) console.log(line);
525
+ if (snapshots.length) for (const line of await vmPlanLines(snapshots, root)) console.log(line);
527
526
  return EXIT.ok;
528
527
  }
529
528
  const { PrepareError } = await import("./provider-DHT20Gl8.js");
@@ -545,7 +544,7 @@ async function imageBuildCommand(flags, configPath, filters) {
545
544
  const pulled = vms.length ? await pullTartImages(vms, root, {
546
545
  log: (line) => console.log(line.startsWith("warning: ") ? yellow(line) : dim(line)),
547
546
  force: !!flags.force
548
- }).catch(refusal("tart", vms, targets.length)) : [];
547
+ }).catch(refusal("tart", vms, targets.length + snapshots.length)) : [];
549
548
  for (const p of pulled) outcomes.push(p.ok ? {
550
549
  id: p.id,
551
550
  evals: p.evals,
@@ -564,7 +563,7 @@ async function imageBuildCommand(flags, configPath, filters) {
564
563
  force: !!flags.force,
565
564
  registry: setup.registry,
566
565
  push: !!flags.push
567
- }).catch(refusal("docker", targets, vms.length));
566
+ }).catch(refusal("docker", targets, vms.length + snapshots.length));
568
567
  for (const b of built) outcomes.push(b.ok ? {
569
568
  id: b.id,
570
569
  evals: b.evals,
@@ -578,11 +577,29 @@ async function imageBuildCommand(flags, configPath, filters) {
578
577
  failure: b.failure
579
578
  });
580
579
  }
580
+ if (snapshots.length) {
581
+ const built = await buildVmImages(snapshots, root, { log: (line) => console.log(dim(line)) }).catch(refusal("vm", snapshots.map((t) => ({ evals: t.ids.length })), targets.length + vms.length));
582
+ for (const b of built) {
583
+ const evals = b.ids.length;
584
+ outcomes.push(b.ok ? {
585
+ id: b.id,
586
+ evals,
587
+ ok: true,
588
+ ref: `snapshot ${b.name}`,
589
+ id12: b.cached ? "saved" : `built in ${formatDuration(b.ms)}`
590
+ } : {
591
+ id: b.id,
592
+ evals,
593
+ ok: false,
594
+ failure: b.failure
595
+ });
596
+ }
597
+ }
581
598
  } catch (error) {
582
599
  if (!(error instanceof PrepareError)) throw error;
583
600
  if (error.failure.usage) throw new UsageError(error.message);
584
601
  if (error.failure.cause === "enospc") invocation.machineState = true;
585
- const { PreflightInfraError } = await import("./preflight-BMVDBcux.js");
602
+ const { PreflightInfraError } = await import("./preflight-fyV5nnea.js");
586
603
  throw new PreflightInfraError(error.message);
587
604
  }
588
605
  for (const o of outcomes) {
@@ -597,12 +614,150 @@ async function imageBuildCommand(flags, configPath, filters) {
597
614
  }
598
615
  const failed = outcomes.filter((o) => !o.ok);
599
616
  const n = outcomes.length;
600
- console.log(failed.length ? red(`${failed.length} of ${n} image${n === 1 ? "" : "s"} failed to ${vms.length ? targets.length ? "build or pull" : "pull" : "build"}`) : dim(`${n} image${n === 1 ? "" : "s"} ready`));
617
+ console.log(failed.length ? red(`${failed.length} of ${n} image${n === 1 ? "" : "s"} failed to ${vms.length ? targets.length || snapshots.length ? "build or pull" : "pull" : "build"}`) : dim(`${n} image${n === 1 ? "" : "s"} ready`));
601
618
  if (!failed.length) return EXIT.ok;
602
619
  if (refused || failed.every((o) => !o.ok && o.failure.usage)) return EXIT.usage;
603
620
  invocation.machineState = failed.every((o) => !o.ok && o.failure.cause === "enospc");
604
621
  return EXIT.infra;
605
622
  }
623
+ /** What `reeval image` plans for: the harness and sandbox of each attempt, collected as `--dry-run` does. */
624
+ async function imageUses(flags, configPath, filters, planned) {
625
+ const plannedImageUses = planned ?? (await import("./images-DtXwj2wL.js")).plannedImageUses;
626
+ const setup = await prepareRun({
627
+ ...flags,
628
+ "dry-run": true
629
+ }, configPath);
630
+ const { runId, stagingDir, config, runs, tags, concurrency, profile } = await startRun(setup);
631
+ const uses = await plannedImageUses({
632
+ runId,
633
+ stagingDir,
634
+ config,
635
+ runs,
636
+ tags,
637
+ concurrency,
638
+ profile
639
+ }, filters, (parts) => unmatchedFilter(config, parts));
640
+ return {
641
+ setup,
642
+ root: config.root,
643
+ uses
644
+ };
645
+ }
646
+ /**
647
+ * `reeval image list`: the image snapshots under each `boat()` and `daytona()` account and prefix
648
+ * the evals use, with the environments that start from each.
649
+ */
650
+ async function imageListCommand(flags, configPath, filters) {
651
+ const vm = await import("./vm-images-CNk-Zl2a.js");
652
+ const { formatSize } = await import("./tart-images-JfHirU8W.js");
653
+ const { root, uses } = await imageUses(flags, configPath, filters);
654
+ const accounts = vm.vmAccounts(uses);
655
+ if (!accounts.length) {
656
+ console.log("No eval runs in a boat() or daytona() sandbox, so there are no image snapshots to list.");
657
+ return EXIT.ok;
658
+ }
659
+ const [{ snapshots, failed }, { usedBy }] = await Promise.all([vm.listAccounts(accounts, root), vm.usedSnapshots(vm.vmImageTargets(uses), root)]);
660
+ const cache = vm.readVmImageCache();
661
+ const rows = snapshots.map((s) => ({
662
+ ...s,
663
+ lastUsedAt: vm.lastUsed(s, cache),
664
+ usedBy: usedBy.get(s.name) ?? []
665
+ }));
666
+ if (flags.json) {
667
+ const iso = (t) => t === null ? null : new Date(t).toISOString();
668
+ console.log(JSON.stringify({
669
+ snapshots: rows.map((r) => ({
670
+ ...r,
671
+ createdAt: iso(r.createdAt),
672
+ lastUsedAt: iso(r.lastUsedAt)
673
+ })),
674
+ failed: failed.map((f) => ({
675
+ provider: f.account.provider,
676
+ account: f.account.sandbox.apiKey.from,
677
+ prefix: f.account.sandbox.prefix,
678
+ error: f.error.message
679
+ }))
680
+ }, null, 2));
681
+ return failed.length ? EXIT.infra : EXIT.ok;
682
+ }
683
+ const table = rows.map((r) => [
684
+ r.provider,
685
+ r.name,
686
+ r.status,
687
+ r.sizeBytes === null ? "-" : formatSize(r.sizeBytes),
688
+ `saved ${vm.ago(r.createdAt)}`,
689
+ `used ${vm.ago(r.lastUsedAt)}`,
690
+ r.usedBy.length ? r.usedBy.join(", ") : dim("no environment")
691
+ ]);
692
+ const widths = table[0]?.map((_, i) => Math.max(...table.map((row) => (row[i] ?? "").length))) ?? [];
693
+ for (const row of table) console.log(row.map((cell, i) => i === row.length - 1 ? cell : cell.padEnd(widths[i] ?? 0)).join(" "));
694
+ for (const f of failed) console.log(red(`✗ ${vm.accountLabel(f.account)}: ${f.error.message}`));
695
+ const n = rows.length;
696
+ console.log(dim(`${n} snapshot${n === 1 ? "" : "s"} under ${accounts.map(vm.accountLabel).join(", ")}`));
697
+ return failed.length ? EXIT.infra : EXIT.ok;
698
+ }
699
+ /**
700
+ * `reeval image clean`: deletes the image snapshots no environment of the evals starts from, under
701
+ * each `boat()` and `daytona()` account and prefix they use, never one used in the
702
+ * last hour or one still being saved.
703
+ */
704
+ async function imageCleanCommand(flags, configPath) {
705
+ const vm = await import("./vm-images-CNk-Zl2a.js");
706
+ const { formatSize } = await import("./tart-images-JfHirU8W.js");
707
+ const provider = flags.provider;
708
+ if (provider !== void 0 && provider !== "boat" && provider !== "daytona") throw new UsageError(`--provider is boat or daytona (got "${provider}")`);
709
+ const olderThanMs = flags["older-than"] !== void 0 ? vm.parseAge(flags["older-than"]) : flags.all ? void 0 : vm.DEFAULT_OLDER_THAN_MS;
710
+ const { root, uses } = await imageUses(flags, configPath, []);
711
+ const accounts = vm.vmAccounts(uses).filter((a) => !provider || a.provider === provider);
712
+ if (!accounts.length) {
713
+ console.log(`No eval runs in a ${provider ? `${provider}()` : "boat() or daytona()"} sandbox, so there are no image snapshots to clean.`);
714
+ return EXIT.ok;
715
+ }
716
+ const [{ snapshots, failed }, { usedBy, unknown }] = await Promise.all([vm.listAccounts(accounts, root), vm.usedSnapshots(vm.vmImageTargets(uses).filter((t) => !provider || t.provider === provider), root)]);
717
+ const refused = unknown.find((u) => u.error.failure?.usage);
718
+ if (refused) throw new UsageError(refused.error.message);
719
+ if (unknown.length && !flags.all) {
720
+ for (const u of unknown) console.log(red(`✗ couldn't tell which snapshot ${u.target.id} starts from: ${u.error.message.split("\n")[0]}`));
721
+ console.log(red("Nothing was deleted, so a snapshot in use isn't. Fix that, or pass --all."));
722
+ return EXIT.infra;
723
+ }
724
+ const choices = vm.cleanChoices(snapshots, {
725
+ cache: vm.readVmImageCache(),
726
+ usedBy,
727
+ now: Date.now(),
728
+ ...olderThanMs !== void 0 && { olderThanMs },
729
+ all: !!flags.all
730
+ });
731
+ const doomed = choices.filter((c) => c.keep === null);
732
+ const byAccount = (s) => accounts.find((a) => a.provider === s.provider && a.sandbox.apiKey.from === s.account && a.sandbox.prefix === s.prefix);
733
+ let freed = 0;
734
+ let deleted = 0;
735
+ let failures = failed.length;
736
+ for (const c of choices) {
737
+ const size = c.snapshot.sizeBytes === null ? "" : ` (${formatSize(c.snapshot.sizeBytes)})`;
738
+ if (c.keep !== null) {
739
+ console.log(dim(` kept ${c.snapshot.provider} ${c.snapshot.name}: ${c.keep}`));
740
+ continue;
741
+ }
742
+ if (flags["dry-run"]) {
743
+ console.log(` would delete ${c.snapshot.provider} ${c.snapshot.name}${size}`);
744
+ continue;
745
+ }
746
+ try {
747
+ await vm.deleteVmSnapshot(byAccount(c.snapshot), c.snapshot, root);
748
+ deleted++;
749
+ freed += c.snapshot.sizeBytes ?? 0;
750
+ console.log(`${green("✓")} deleted ${c.snapshot.provider} ${c.snapshot.name}${size}`);
751
+ } catch (error) {
752
+ failures++;
753
+ console.log(red(`✗ ${c.snapshot.provider} ${c.snapshot.name}: ${error.message}`));
754
+ }
755
+ }
756
+ for (const f of failed) console.log(red(`✗ ${vm.accountLabel(f.account)}: ${f.error.message}`));
757
+ const n = doomed.length;
758
+ console.log(dim(flags["dry-run"] ? `${n} snapshot${n === 1 ? "" : "s"} to delete (nothing deleted: --dry-run)` : `Deleted ${deleted} snapshot${deleted === 1 ? "" : "s"}${freed ? ` (${formatSize(freed)})` : ""}`));
759
+ return failures ? EXIT.infra : EXIT.ok;
760
+ }
606
761
  /** The first 12 hex digits of an image id or digest. */
607
762
  const short12 = (id) => id.replace(/^sha256:/, "").slice(0, 12);
608
763
  /**
@@ -620,10 +775,19 @@ async function attachCommand(flags, target, configPath) {
620
775
  root = dirname(requireConfig(configPath));
621
776
  source = (await resolveAttach(root, target)).file;
622
777
  }
623
- const { attach } = await import("./attach-EbDGKGTO.js");
624
- return attach({
778
+ const { hostedFollow } = await import("./hosted-run-202QicZ-.js");
779
+ const follow = isAttachUrl(source) ? hostedFollow(source) : void 0;
780
+ return attachHere(flags, {
625
781
  source,
626
782
  ...root === void 0 ? {} : { root },
783
+ ...follow ? { follow } : {}
784
+ });
785
+ }
786
+ /** `reeval attach`'s viewer on this terminal, drawn with the attach flags. */
787
+ async function attachHere(flags, options) {
788
+ const { attach } = await import("./attach-BH2HdwH_.js");
789
+ return attach({
790
+ ...options,
627
791
  out: process.stdout,
628
792
  columns: process.stdout.columns,
629
793
  colorDepth: process.stdout.isTTY ? process.stdout.getColorDepth() : void 0,
@@ -646,8 +810,77 @@ async function attachCommand(flags, target, configPath) {
646
810
  })
647
811
  });
648
812
  }
813
+ /**
814
+ * Where a run that asked for the hosted platform goes, from the bundle made for it: there, or
815
+ * here with why. A real run there is created, uploaded, started and followed, and its exit code is
816
+ * `exit`. Undefined when the run didn't ask for hosted.
817
+ */
818
+ async function hostedTarget(flags, setup, filters, configPath) {
819
+ const hosted = await import("./hosted-run-202QicZ-.js");
820
+ if (!hosted.wantsHosted(flags, setup.config, setup.profile)) return void 0;
821
+ const { makeBundle } = await import("./bundle-DU2aQVeq.js");
822
+ const picked = setup.profile ? { profile: setup.profile.name } : {};
823
+ const bundle = async (env) => {
824
+ try {
825
+ const made = await makeBundle({
826
+ ...flags,
827
+ ...picked
828
+ }, filters, configPath, process.argv.slice(2), {
829
+ env,
830
+ prices: true
831
+ });
832
+ if ("code" in made) return made;
833
+ const blocked = made.plan.notHosted ?? [];
834
+ return blocked.length ? { why: blocked.join("; ") } : { made };
835
+ } catch (error) {
836
+ if (!(error instanceof UsageError)) throw error;
837
+ return { why: error.message };
838
+ }
839
+ };
840
+ let result = await bundle({});
841
+ let base = null;
842
+ if ("made" in result) {
843
+ hosted.refuseLocalFlags(flags);
844
+ if (!setup.dryRun) {
845
+ base = hosted.hostedUrl();
846
+ const env = await hosted.hostedPlanEnv(base);
847
+ if (Object.entries(env).some(([k, v]) => process.env[k] !== v)) result = await bundle(env);
848
+ }
849
+ }
850
+ if ("code" in result) return { exit: result.code };
851
+ if ("why" in result) {
852
+ const why = result.why.replace(/^[A-Z](?=[a-z])/, (c) => c.toLowerCase());
853
+ if (!setup.dryRun) {
854
+ console.log(dim(`Running here, not on hosted: ${why}`));
855
+ if (setup.recording) storeCredentials(setup.config.history);
856
+ }
857
+ return {
858
+ target: {
859
+ kind: "local",
860
+ why
861
+ },
862
+ detail: `target here, not hosted: ${why.split("\n")[0]}`
863
+ };
864
+ }
865
+ const { made } = result;
866
+ if (!base) {
867
+ const unset = process.env[hosted.HOSTED_URL_VAR]?.trim() ? "" : ` · ${hosted.HOSTED_URL_VAR} isn't set, so a run would exit 2`;
868
+ return {
869
+ target: { kind: "hosted" },
870
+ detail: `${await hosted.hostedLine(made.plan, "target hosted")}${unset}`
871
+ };
872
+ }
873
+ console.log(await hosted.hostedLine(made.plan));
874
+ if (setup.recording) console.log(dim("record: a hosted run isn't recorded into this machine's history"));
875
+ return { exit: await hosted.runHosted({
876
+ base,
877
+ bundle: made,
878
+ log: (line) => console.log(dim(line)),
879
+ follow: (options) => attachHere(flags, options)
880
+ }) };
881
+ }
649
882
  /** `reeval run`: check, plan, run the engine, then write the run and pick the exit code. */
650
- async function runCommand(flags, configPath, given) {
883
+ async function runCommand(flags, configPath, given, bundled) {
651
884
  const retry = flags["retry-errors"];
652
885
  const url = flags["events-url"];
653
886
  const parsed = url === void 0 ? null : URL.parse(url);
@@ -667,7 +900,7 @@ async function runCommand(flags, configPath, given) {
667
900
  const outcome = runOutcome(record);
668
901
  if (flags.json) {
669
902
  console.error(nothing);
670
- const { suiteResult } = await import("./suite-CH1aaAbs.js");
903
+ const { suiteResult } = await import("./suite-BwJGOhCZ.js");
671
904
  process.stdout.write(`${JSON.stringify({
672
905
  ...suiteResult(record),
673
906
  outcome
@@ -684,8 +917,10 @@ async function runCommand(flags, configPath, given) {
684
917
  noProfile: !!resumed?.saved && resumed.saved.profile === void 0,
685
918
  ...resumed?.profileOf ? { profileOf: resumed.profileOf } : {}
686
919
  });
920
+ const hosted = bundled ? void 0 : await hostedTarget(runFlags, setup, filters, configPath);
921
+ if (hosted && "exit" in hosted) return hosted.exit;
687
922
  const explicit = runFlags.concurrency ?? (process.env.REEVAL_CONCURRENCY || void 0);
688
- const ctx = await startRun(setup);
923
+ const ctx = await startRun(setup, bundled);
689
924
  const startedWith = resumed ? resumed.saved ?? void 0 : {
690
925
  ...setup.runs === void 0 ? {} : { runs: setup.runs },
691
926
  ...setup.profile ? { profile: setup.profile.name } : {},
@@ -699,7 +934,7 @@ async function runCommand(flags, configPath, given) {
699
934
  if (githubOut) await appendFile(githubOut, `run-id=${ctx.runId}\n`).catch(() => {});
700
935
  const stepStart = process.env.GITHUB_STEP_SUMMARY;
701
936
  if (stepStart) await appendFile(stepStart, `run ${ctx.runId}\n`).catch(() => {});
702
- const { engineVersions } = await import("./node-BjuhqQwa.js");
937
+ const { engineVersions } = await import("./node-BQjSQw0d.js");
703
938
  const terminal = setup.json && !setup.dryRun ? process.stderr : process.stdout;
704
939
  const harness = setup.config.harness[0]?.kind ?? "agent";
705
940
  const drawn = createRenderer({
@@ -719,21 +954,25 @@ async function runCommand(flags, configPath, given) {
719
954
  const savedEvents = eventsTo ? relativeFile(root, eventsTo) : void 0;
720
955
  if (startedWith && savedEvents) startedWith.events = savedEvents;
721
956
  const eventsUrl = flags["events-url"];
722
- if (eventsTo || eventsUrl) eventStream = openEventStream({
723
- ...eventsTo ? {
724
- file: eventsTo,
725
- append: continued
726
- } : {},
727
- ...eventsUrl ? { url: eventsUrl } : {},
728
- header: {
729
- reeval: version,
730
- runId: ctx.runId,
731
- startedAt: (/* @__PURE__ */ new Date()).toISOString(),
732
- harness,
733
- verbosity: ctx.verbosity ?? 0
734
- },
735
- warn: (message) => process.stderr.write(yellow(`reeval: ${message}\n`))
736
- });
957
+ if (eventsTo || eventsUrl) {
958
+ const cwd = cwdIn(root);
959
+ eventStream = openEventStream({
960
+ ...eventsTo ? {
961
+ file: eventsTo,
962
+ append: continued
963
+ } : {},
964
+ ...eventsUrl ? { url: eventsUrl } : {},
965
+ header: {
966
+ reeval: version,
967
+ runId: ctx.runId,
968
+ startedAt: (/* @__PURE__ */ new Date()).toISOString(),
969
+ harness,
970
+ verbosity: ctx.verbosity ?? 0,
971
+ ...cwd === void 0 ? {} : { cwd }
972
+ },
973
+ warn: (message) => process.stderr.write(yellow(`reeval: ${message}\n`))
974
+ });
975
+ }
737
976
  const renderer = eventStream ? teeRenderer(drawn, eventStream) : drawn;
738
977
  let executed;
739
978
  try {
@@ -741,7 +980,11 @@ async function runCommand(flags, configPath, given) {
741
980
  startedWith,
742
981
  notes: resumed?.notes ?? [],
743
982
  narrowed: !!resumed && (given.length > 0 || !!flags.tag?.length || !!flags.trait?.length),
744
- ...savedEvents ? { events: savedEvents } : {}
983
+ ...savedEvents ? { events: savedEvents } : {},
984
+ ...hosted ? {
985
+ target: hosted.target,
986
+ targetDetail: hosted.detail
987
+ } : {}
745
988
  });
746
989
  } catch (error) {
747
990
  renderer.close();
@@ -762,7 +1005,7 @@ async function runCommand(flags, configPath, given) {
762
1005
  return EXIT.ok;
763
1006
  }
764
1007
  if (ctx.retry && ctx.previous && retried.size) {
765
- const { retryEnvironmentChanges } = await import("./retry-Bfk7pDti.js");
1008
+ const { retryEnvironmentChanges } = await import("./retry-CAhpW1hH.js");
766
1009
  const changes = retryEnvironmentChanges(ctx.previous, ctx.stagingDir, retried);
767
1010
  if (changes.length) {
768
1011
  questions?.cancel();
@@ -781,8 +1024,8 @@ async function runCommand(flags, configPath, given) {
781
1024
  }
782
1025
  finishing = true;
783
1026
  live?.phase("finishing");
784
- const { lockfiles } = await import("./state-CKIjZZRK.js");
785
- const { writeScratchRun } = await import("./results-DhMgRkR0.js");
1027
+ const { lockfiles } = await import("./state-C5oBvmoZ.js");
1028
+ const { writeScratchRun } = await import("./results-BpxzyoMd.js");
786
1029
  const run = await writeScratchRun({
787
1030
  ctx,
788
1031
  author: ctx.author,
@@ -816,7 +1059,7 @@ async function runCommand(flags, configPath, given) {
816
1059
  status: "complete"
817
1060
  }) : outcome;
818
1061
  let code = stopped ? stopCode : ran === "fail" ? EXIT.failed : ran === "infra_error" ? EXIT.infra : EXIT.ok;
819
- const { pruneDebug } = await import("./files-BjOJw4sn.js");
1062
+ const { pruneDebug } = await import("./files-BFnkOAhn.js");
820
1063
  await pruneDebug(ctx.config.root, ctx.config.debug.keep).catch(() => {});
821
1064
  const summary = run.artifactDir ? join(run.artifactDir, "summary.md") : run.recordPath;
822
1065
  renderer.onEvent({
@@ -830,7 +1073,7 @@ async function runCommand(flags, configPath, given) {
830
1073
  });
831
1074
  renderer.close();
832
1075
  if (retried.size) {
833
- const { retryCounts, retryLine } = await import("./retry-Bfk7pDti.js");
1076
+ const { retryCounts, retryLine } = await import("./retry-CAhpW1hH.js");
834
1077
  const line = retryLine(retryCounts(record, retried, ctx.previous));
835
1078
  if (setup.json) console.error(line);
836
1079
  else console.log(line);
@@ -839,11 +1082,11 @@ async function runCommand(flags, configPath, given) {
839
1082
  if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
840
1083
  const { config } = ctx;
841
1084
  const mode = setup.record;
842
- const { readRecord, recordFile } = await import("./files-CAzVG3Rr.js");
1085
+ const { readRecord, recordFile } = await import("./files-D6M7J3iX.js");
843
1086
  const rerecord = (setup.retry !== void 0 || setup.resume !== void 0) && record.status === "complete" && existsSync(recordFile(config.history.dir, record.runId));
844
1087
  const autoRecord = flags.record || mode === "always" || mode === "ci" && inCI() || rerecord;
845
1088
  if (autoRecord && record.status !== "interrupted") {
846
- const { record: recordCmd } = await import("./commands-Dqli45sR.js");
1089
+ const { record: recordCmd } = await import("./commands-B3lnIPj5.js");
847
1090
  const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
848
1091
  const level = rerecord ? { artifacts: (await readRecord(recordFile(config.history.dir, record.runId))).artifacts } : {};
849
1092
  const line = await recordCmd(config, record.runId, {
@@ -864,7 +1107,7 @@ async function runCommand(flags, configPath, given) {
864
1107
  else console.log(line);
865
1108
  }
866
1109
  if (setup.json) {
867
- const { suiteResult } = await import("./suite-CH1aaAbs.js");
1110
+ const { suiteResult } = await import("./suite-BwJGOhCZ.js");
868
1111
  process.stdout.write(`${JSON.stringify({
869
1112
  ...suiteResult(record),
870
1113
  outcome: ran
@@ -944,7 +1187,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
944
1187
  stdinTTY: !!process.stdin.isTTY && !flags.json && !flags["dry-run"]
945
1188
  });
946
1189
  const path = requireConfig(configPath);
947
- const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-C82HOKnb.js")).trackLoad(dirname(path)) : void 0;
1190
+ const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-M-BGe7gd.js")).trackLoad(dirname(path)) : void 0;
948
1191
  let configInputs = [];
949
1192
  let loaded;
950
1193
  const named = noProfile ? void 0 : flags.profile ?? (process.env.REEVAL_PROFILE || void 0);
@@ -957,7 +1200,8 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
957
1200
  if (profileOf && flags.profile && !loaded.profiles[flags.profile]) throw new UsageError(`run ${profileOf} was started with profile ${flags.profile}, which ${loaded.file} no longer defines. Put it back to resume the run, or start a new run without --resume.`);
958
1201
  const profile = noProfile ? null : selectProfile(loaded, flags.profile);
959
1202
  const config = withProfileHistory(loaded, profile);
960
- if ((flags.record || (profile?.record ?? config.record) === "always" || (profile?.record ?? config.record) === "ci" && inCI()) && !flags["dry-run"]) storeCredentials(config.history);
1203
+ const recording = flags.record || (profile?.record ?? config.record) === "always" || (profile?.record ?? config.record) === "ci" && inCI();
1204
+ if (recording && !flags["dry-run"] && !wantsHosted(flags, config, profile)) storeCredentials(config.history);
961
1205
  let runs;
962
1206
  if (flags.runs !== void 0) {
963
1207
  runs = Number(flags.runs);
@@ -983,6 +1227,8 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
983
1227
  sizeRun: async () => concurrency ?? defaultConcurrency(await sandboxCapacity(sandboxes) ?? hostCapacity()),
984
1228
  budget: profile?.budget ?? config.budget,
985
1229
  record: profile?.record ?? config.record,
1230
+ /** Whether the run is recorded into the history once it ends. */
1231
+ recording: !!recording,
986
1232
  dryRun: !!flags["dry-run"],
987
1233
  json: !!flags.json,
988
1234
  /** What loading the config read, for `--dry-run --json`'s `inputs`. */
@@ -1004,7 +1250,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
1004
1250
  async function registryFlag(flags) {
1005
1251
  if (flags.push && flags.registry === void 0) throw new UsageError("--push needs --registry, the registry to push to, e.g. --registry ghcr.io/acme/reeval");
1006
1252
  if (flags.registry === void 0) return null;
1007
- const { registryProblem } = await import("./src-jYqNkT-F.js");
1253
+ const { registryProblem } = await import("./src-DEbNp-rx.js");
1008
1254
  const problem = registryProblem(flags.registry);
1009
1255
  if (problem) throw new UsageError(problem);
1010
1256
  return flags.registry.replace(/\/+$/, "");
@@ -1012,14 +1258,14 @@ async function registryFlag(flags) {
1012
1258
  /** What a retry, or a resume that finishes one, does to the run's errors, for its refusals. */
1013
1259
  const retryVerb = (retry, runId) => retry.resume ? `--resume finishes run ${runId}'s --retry-errors, which runs its errors again` : "--retry-errors runs its errors again";
1014
1260
  /** The run's id and the state it starts from: commit, uncommitted changes, author. */
1015
- async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRun, verbosity, configFile, resume, retry, dryRun }) {
1261
+ async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRun, verbosity, configFile, resume, retry, dryRun }, bundled) {
1016
1262
  const startedAt = /* @__PURE__ */ new Date();
1017
- const git = await gitInfo(config.root, [config.history.dir]);
1018
- const { worktreePatch } = await import("./state-CKIjZZRK.js");
1019
- const patch = git?.dirty ? await worktreePatch(config.root, [config.history.dir]) : null;
1020
- const who = await author(config.root);
1021
- const { stagingDir } = await import("./results-DhMgRkR0.js");
1022
- const { scratchDir } = await import("./files-CAzVG3Rr.js");
1263
+ const git = bundled ? bundled.git : await gitInfo(config.root, [config.history.dir]);
1264
+ const { worktreePatch } = await import("./state-C5oBvmoZ.js");
1265
+ const patch = git?.dirty && !bundled ? await worktreePatch(config.root, [config.history.dir]) : null;
1266
+ const who = bundled?.author ?? await author(config.root);
1267
+ const { stagingDir } = await import("./results-BpxzyoMd.js");
1268
+ const { scratchDir } = await import("./files-D6M7J3iX.js");
1023
1269
  const scratch = scratchDir(config.root);
1024
1270
  if (resume !== void 0 || retry !== void 0) {
1025
1271
  const target = await continuedRun(config.root, {
@@ -1134,12 +1380,12 @@ function namesDeclaredSecret(evals) {
1134
1380
  */
1135
1381
  async function planEfforts(planned) {
1136
1382
  const live = planned.filter((p) => !p.attempt.plan.skip);
1137
- const { effortNotes, withDefaultEffort } = await import("./default-effort-DHzj84dD.js");
1383
+ const { effortNotes, withDefaultEffort } = await import("./default-effort-CtNY9CGW.js");
1138
1384
  let cursor;
1139
1385
  let unchecked = "CURSOR_API_KEY isn't set";
1140
1386
  const key = process.env.CURSOR_API_KEY;
1141
1387
  if (key && live.some((p) => p.attempt.harness.kind === "cursor")) {
1142
- const { checkCursorPlan } = await import("./cursor-catalog-CRsFxorF.js");
1388
+ const { checkCursorPlan } = await import("./cursor-catalog-CUQrabJ_.js");
1143
1389
  const checked = await checkCursorPlan(key, live);
1144
1390
  if (checked instanceof Error) unchecked = `its request failed: ${checked.message}`;
1145
1391
  else {
@@ -1177,8 +1423,8 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1177
1423
  completed: [],
1178
1424
  ...setup.dryRun && setup.json ? { inputs: true } : {}
1179
1425
  }));
1180
- const { runEngine } = await import("./node-BjuhqQwa.js");
1181
- const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-BcT4G5jj.js");
1426
+ const { runEngine } = await import("./node-BQjSQw0d.js");
1427
+ const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-DgIVIrXJ.js");
1182
1428
  let plan;
1183
1429
  let sandboxVersions = { images: [] };
1184
1430
  let preflightStop;
@@ -1223,9 +1469,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1223
1469
  if (ctx.retry && ctx.previous) {
1224
1470
  const ranOn = ctx.previous.stack?.reeval;
1225
1471
  if (ranOn && ranOn !== version) throw new UsageError(`run ${runId} ran on reeval ${ranOn}, and this is ${version}. ${retryVerb(ctx.retry, runId)} only on the reeval they ran on: install reeval ${ranOn}, or start a new run with reeval run.`);
1226
- const { retryChanges } = await import("./retry-Bfk7pDti.js");
1227
- const { judgePart } = await import("./assemble-CBMRIhso.js");
1228
- const { engineVersions } = await import("./node-BjuhqQwa.js");
1472
+ const { retryChanges } = await import("./retry-CAhpW1hH.js");
1473
+ const { judgePart } = await import("./assemble-XrZskSNj.js");
1474
+ const { engineVersions } = await import("./node-BQjSQw0d.js");
1229
1475
  const judged = judgePart(config, profile, version, engineVersions);
1230
1476
  const runs = new Set(planned.map((p) => p.key).filter((key) => !completed.has(key)));
1231
1477
  const changes = await retryChanges(ctx.previous, planned, runs, config.root, judged);
@@ -1238,7 +1484,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1238
1484
  }
1239
1485
  }
1240
1486
  retried = continuing && !setup.dryRun ? noteRetries(planned, stagingDir, ctx.previous, true).errored : errored;
1241
- const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-B1tdv9-d.js") : void 0;
1487
+ const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-lLaUxxno.js") : void 0;
1242
1488
  const judge = runJudgeModel(config, profile);
1243
1489
  const judgeModel = judge === void 0 ? null : judgeModelName(judge);
1244
1490
  plan = await buildPlan({
@@ -1258,7 +1504,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1258
1504
  const direct = cloud ? [...new Set(skipped.filter((p) => !p.attempt.plan.skip && capabilitiesOf(p.attempt.sandbox).isolated).filter((p) => isDirect(p.attempt.egress.policy) || isDirect(setupEgress(p.attempt.egress).policy)).map((p) => p.id))] : [];
1259
1505
  if (cloud && direct.length) plan.warnings.push(`${directOnCloud(cloud)}. Under it: ${direct.join(", ")}. Keep 'allow-all' to the evals that need raw TCP or UDP; the default, 'proxy', sends everything through the gateway`);
1260
1506
  const switching = concurrency > 1 ? [...new Set(skipped.filter(({ attempt }) => !attempt.plan.skip && !!attempt.egress.setup && attempt.sandbox.kind === "docker" && attempt.sandbox.engine === "podman").map((p) => p.id))] : [];
1261
- const { podmanRootless } = await import("./providers-BkLGzaSY.js");
1507
+ const { podmanRootless } = await import("./providers-DxZ26YoG.js");
1262
1508
  if (switching.length && await podmanRootless()) plan.warnings.push(rootlessPodmanSwitch(switching));
1263
1509
  plan.warnings.push(...started.notes);
1264
1510
  if (started.narrowed) {
@@ -1274,7 +1520,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1274
1520
  run.completed = [...completed];
1275
1521
  const done = leftOut.filter((l) => l.done).map((l) => l.key);
1276
1522
  kept = keptAttempts([...completed, ...done], stagingDir, ctx.previous);
1277
- const { imageStages, imageTargets } = await import("./images-Ch1y1t6_.js");
1523
+ const { imageStages, imageTargets } = await import("./images-DtXwj2wL.js");
1278
1524
  const targets = imageTargets(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
1279
1525
  id: p.attempt.family?.id ?? p.id,
1280
1526
  harness: p.attempt.harness,
@@ -1288,7 +1534,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1288
1534
  evals: t.evals,
1289
1535
  stages: await imageStages(t, config.root)
1290
1536
  })));
1291
- const { lockfiles } = await import("./state-CKIjZZRK.js");
1537
+ const { lockfiles } = await import("./state-C5oBvmoZ.js");
1292
1538
  const locks = (await lockfiles(config.root)).map(({ path }) => ({
1293
1539
  path: join(config.root, path),
1294
1540
  kind: "lockfile"
@@ -1303,18 +1549,24 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1303
1549
  judges: running.flatMap((p) => p.attempt.judge ? [p.attempt.judge] : [])
1304
1550
  });
1305
1551
  for (const { names } of needed) for (const name of names) secrets.add(name);
1306
- const doc = planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort());
1552
+ const { notHosted } = await import("./hosted-run-202QicZ-.js");
1553
+ const blocked = notHosted(skipped);
1554
+ const doc = {
1555
+ ...planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort()),
1556
+ ...blocked.length ? { notHosted: blocked } : {},
1557
+ ...started.target ? { target: started.target } : {}
1558
+ };
1307
1559
  process.stdout.write(`${JSON.stringify(doc, null, 2)}\n`);
1308
1560
  return false;
1309
1561
  }
1310
1562
  const elsewhere = setup.configElsewhere ? configFile : void 0;
1311
- const { scratchDir } = await import("./files-CAzVG3Rr.js");
1563
+ const { scratchDir } = await import("./files-D6M7J3iX.js");
1312
1564
  const lines = [];
1313
1565
  if (setup.dryRun) {
1314
1566
  const todos = excluded.filter((e) => e.mode === "todo").map((e) => e.id);
1315
1567
  lines.push(...planTable(plan, todos));
1316
- const { imageStatusLines } = await import("./images-Ch1y1t6_.js");
1317
- const { dockerAvailable, engineSpec } = await import("./src-jYqNkT-F.js");
1568
+ const { imageStatusLines } = await import("./images-DtXwj2wL.js");
1569
+ const { dockerAvailable, engineSpec } = await import("./src-DEbNp-rx.js");
1318
1570
  const engines = [...new Set(targets.map((t) => t.sandbox.engine ?? "docker"))];
1319
1571
  const down = [];
1320
1572
  for (const engine of engines) if (!await dockerAvailable(engine)) down.push(engine);
@@ -1323,9 +1575,10 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1323
1575
  const names = down.map((e) => engineSpec(e).name).join(" and ");
1324
1576
  lines.push(`images not checked: ${names} ${down.length === 1 ? "is" : "are"} not running`);
1325
1577
  }
1326
- const { costLine } = await import("./cost-IM80LyGD.js");
1578
+ const { costLine } = await import("./cost-CdRX1s2p.js");
1327
1579
  const cost = plan.cost && costLine(plan.cost);
1328
1580
  if (cost) lines.push(cost);
1581
+ if (started.targetDetail) lines.push(started.targetDetail);
1329
1582
  }
1330
1583
  renderer.onEvent({
1331
1584
  type: "plan",
@@ -1407,7 +1660,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1407
1660
  });
1408
1661
  if (malformed.length) throw new UsageError(`Credentials with whitespace or a line break in them: ${malformed.join(", ")}. A key copied from a wrapped terminal line picks these up; set it again as one line.`);
1409
1662
  if (asked.length) {
1410
- const { questionRunner } = await import("./questions-Csv64WCb.js");
1663
+ const { questionRunner } = await import("./questions-boVPzGoC.js");
1411
1664
  const warned = /* @__PURE__ */ new Set();
1412
1665
  questions = questionRunner({
1413
1666
  evals: asked,
@@ -1449,7 +1702,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1449
1702
  }
1450
1703
  });
1451
1704
  }
1452
- const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-CnRbV8cM.js");
1705
+ const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-CRgFdmgW.js");
1453
1706
  const live = skipped.filter((p) => !p.attempt.plan.skip);
1454
1707
  const outcomes = await prepareWorkspaces(live.flatMap(({ attempt: a }) => a.workspace ? [{
1455
1708
  workspace: a.workspace,
@@ -1542,7 +1795,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1542
1795
  };
1543
1796
  let engineRun;
1544
1797
  let cutShort = false;
1545
- const { MACHINES, MachineService } = await import("./machine-service-2lIv5UWF.js");
1798
+ const { MACHINES, MachineService } = await import("./machine-service-Byl0BlcT.js");
1546
1799
  const machines = new MachineService();
1547
1800
  try {
1548
1801
  engineRun = await runEngine({
@@ -1648,9 +1901,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1648
1901
  } finally {
1649
1902
  clearTimeout(budgetTimer);
1650
1903
  await machines.close();
1651
- const { removePrepared } = await import("./preflight-zsAn3heN.js");
1904
+ const { removePrepared } = await import("./preflight-dJqs5x3r.js");
1652
1905
  removePrepared(config.root, runId);
1653
- const { removePreparedWorkspaces } = await import("./workspace-CnRbV8cM.js");
1906
+ const { removePreparedWorkspaces } = await import("./workspace-CRgFdmgW.js");
1654
1907
  removePreparedWorkspaces(config.root, runId);
1655
1908
  }
1656
1909
  if (preflightStop) throw preflightStop;
@@ -1738,4 +1991,4 @@ run(process.argv.slice(2)).finally(() => {
1738
1991
  });
1739
1992
  export {};
1740
1993
 
1741
- //# sourceMappingURL=cli-BgBBuxxJ.js.map
1994
+ //# sourceMappingURL=cli-DMHOwdVr.js.map