reeval 0.22.0 → 0.24.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 (428) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +16 -16
  3. package/THIRD_PARTY_NOTICES.md +14 -14
  4. package/dist/{adapter-Di9H2etg.js → adapter-dHdepWKb.js} +7 -7
  5. package/dist/{adapter-Di9H2etg.js.map → adapter-dHdepWKb.js.map} +1 -1
  6. package/dist/{agent-B-6GFDqA.js → agent-CZpiwA_r.js} +8 -8
  7. package/dist/{agent-B-6GFDqA.js.map → agent-CZpiwA_r.js.map} +1 -1
  8. package/dist/{agents-KBTYhSSh.js → agents-CEapsHV-.js} +26 -19
  9. package/dist/agents-CEapsHV-.js.map +1 -0
  10. package/dist/app-files-Dsr3U1Q7.js +10 -0
  11. package/dist/app-files-Dsr3U1Q7.js.map +1 -0
  12. package/dist/{assemble-CBMRIhso.js → assemble-DUtbByvj.js} +1 -1
  13. package/dist/{assemble-DNVBTBp_.js → assemble-Dw1bF13I.js} +34 -20
  14. package/dist/{assemble-DNVBTBp_.js.map → assemble-Dw1bF13I.js.map} +1 -1
  15. package/dist/{attach-EbDGKGTO.js → attach-DvYiMu6w.js} +79 -4
  16. package/dist/attach-DvYiMu6w.js.map +1 -0
  17. package/dist/{attempt-_dUsblVx.js → attempt-DxR1agFo.js} +2 -2
  18. package/dist/{attempt-_dUsblVx.js.map → attempt-DxR1agFo.js.map} +1 -1
  19. package/dist/{attempt-host-DQvynDHk.js → attempt-host-DgeJFSZw.js} +7 -7
  20. package/dist/{attempt-host-DQvynDHk.js.map → attempt-host-DgeJFSZw.js.map} +1 -1
  21. package/dist/boat-BBPOc_bs.js +1 -0
  22. package/dist/boat-CUNgSc75.js +705 -0
  23. package/dist/boat-CUNgSc75.js.map +1 -0
  24. package/dist/boat-images-BuFigiEb.js +366 -0
  25. package/dist/boat-images-BuFigiEb.js.map +1 -0
  26. package/dist/{bundle-DZstHDeW.js → bundle-yEgI3RsI.js} +105 -37
  27. package/dist/bundle-yEgI3RsI.js.map +1 -0
  28. package/dist/{capture-BkbPsfej.js → capture-DdEKVrwk.js} +49 -27
  29. package/dist/capture-DdEKVrwk.js.map +1 -0
  30. package/dist/capture-DxxB3d7p.js +1 -0
  31. package/dist/{cases-CM-MQRQp.js → cases-B7QkvMGE.js} +2 -2
  32. package/dist/{cases-CM-MQRQp.js.map → cases-B7QkvMGE.js.map} +1 -1
  33. package/dist/cases-CA7gxxdr.js +1 -0
  34. package/dist/{cli-BgBBuxxJ.js → cli-Z7aw8k25.js} +531 -169
  35. package/dist/cli-Z7aw8k25.js.map +1 -0
  36. package/dist/{cli-spec-B5L9n-DV.js → cli-spec-3zvLC9YW.js} +204 -46
  37. package/dist/cli-spec-3zvLC9YW.js.map +1 -0
  38. package/dist/cli.js +6 -2
  39. package/dist/cli.js.map +1 -1
  40. package/dist/{client-DMEYR3MA.js → client-kUwtq-vt.js} +3 -3
  41. package/dist/{client-DMEYR3MA.js.map → client-kUwtq-vt.js.map} +1 -1
  42. package/dist/cloud-DuHcNQVV.js +131 -0
  43. package/dist/cloud-DuHcNQVV.js.map +1 -0
  44. package/dist/cloud-files-BjinrTTe.js +301 -0
  45. package/dist/cloud-files-BjinrTTe.js.map +1 -0
  46. package/dist/cloud-owVBaSRt.js +260 -0
  47. package/dist/cloud-owVBaSRt.js.map +1 -0
  48. package/dist/cloud-run-C08P_Uap.js +1 -0
  49. package/dist/cloud-run-DqMkSGYB.js +500 -0
  50. package/dist/cloud-run-DqMkSGYB.js.map +1 -0
  51. package/dist/cloud-secrets-Bak83tik.js +337 -0
  52. package/dist/cloud-secrets-Bak83tik.js.map +1 -0
  53. package/dist/{command-BKb8eN_X.js → command-Bs6Knfm4.js} +13 -13
  54. package/dist/{command-BKb8eN_X.js.map → command-Bs6Knfm4.js.map} +1 -1
  55. package/dist/{command-D_w_kDpI.js → command-CeygdoVe.js} +19 -19
  56. package/dist/{command-D_w_kDpI.js.map → command-CeygdoVe.js.map} +1 -1
  57. package/dist/command-CoHN1ibe.js +183 -0
  58. package/dist/command-CoHN1ibe.js.map +1 -0
  59. package/dist/{command-Dwlh0Vhu.js → command-CtmSJzPC.js} +18 -18
  60. package/dist/{command-Dwlh0Vhu.js.map → command-CtmSJzPC.js.map} +1 -1
  61. package/dist/{command-loXH2jHr.js → command-efTGfUYb.js} +18 -130
  62. package/dist/command-efTGfUYb.js.map +1 -0
  63. package/dist/{commands-Dqli45sR.js → commands-B_cAs8nG.js} +1 -1
  64. package/dist/{commands-Cuf57OYb.js → commands-DR-NolV2.js} +25 -20
  65. package/dist/{commands-Cuf57OYb.js.map → commands-DR-NolV2.js.map} +1 -1
  66. package/dist/{config-C0RKt00M.js → config-Bn2OhCN_.js} +45 -30
  67. package/dist/config-Bn2OhCN_.js.map +1 -0
  68. package/dist/{context-DrEAtUyg.js → context-Ba7PNMMe.js} +2 -2
  69. package/dist/{context-DrEAtUyg.js.map → context-Ba7PNMMe.js.map} +1 -1
  70. package/dist/{cost-C21gGrju.js → cost-Dp-xFGJ1.js} +2 -2
  71. package/dist/{cost-C21gGrju.js.map → cost-Dp-xFGJ1.js.map} +1 -1
  72. package/dist/cost-a_rUSdsf.js +1 -0
  73. package/dist/{cursor-catalog-CRsFxorF.js → cursor-catalog-BYIDSsLn.js} +5 -5
  74. package/dist/{cursor-catalog-CRsFxorF.js.map → cursor-catalog-BYIDSsLn.js.map} +1 -1
  75. package/dist/daytona-CWs9j9mt.js +680 -0
  76. package/dist/daytona-CWs9j9mt.js.map +1 -0
  77. package/dist/daytona-image-BjVpi3KS.js +1 -0
  78. package/dist/daytona-image-DmGlFAyq.js +184 -0
  79. package/dist/daytona-image-DmGlFAyq.js.map +1 -0
  80. package/dist/db-Bjq6qr6c.js +2 -0
  81. package/dist/{db-ErnJ-gMD.js → db-D6yQib7M.js} +12 -12
  82. package/dist/{db-ErnJ-gMD.js.map → db-D6yQib7M.js.map} +1 -1
  83. package/dist/{default-effort-D70cTG00.js → default-effort-Bpz5ULfC.js} +2 -2
  84. package/dist/{default-effort-D70cTG00.js.map → default-effort-Bpz5ULfC.js.map} +1 -1
  85. package/dist/{default-effort-DHzj84dD.js → default-effort-Ck6ViSaI.js} +1 -1
  86. package/dist/{dist-DeqeCUZe.js → dist-CZtW7eI5.js} +4 -4
  87. package/dist/{dist-DeqeCUZe.js.map → dist-CZtW7eI5.js.map} +1 -1
  88. package/dist/docker-Bbi4kmFj.js +1 -0
  89. package/dist/{docker-CFWzZOEk.js → docker-Dgw4aaRk.js} +4 -4
  90. package/dist/{docker-CFWzZOEk.js.map → docker-Dgw4aaRk.js.map} +1 -1
  91. package/dist/{doctor-B7utCSdh.js → doctor-BfS6jswW.js} +34 -29
  92. package/dist/doctor-BfS6jswW.js.map +1 -0
  93. package/dist/{environment-C0Gg8kyN.js → environment-BY8lVFFK.js} +139 -54
  94. package/dist/environment-BY8lVFFK.js.map +1 -0
  95. package/dist/{errors-C1GBcWE2.js → errors-P8oHhNzy.js} +2 -2
  96. package/dist/{errors-C1GBcWE2.js.map → errors-P8oHhNzy.js.map} +1 -1
  97. package/dist/{eval-source-CsW5VIXS.js → eval-source-BB8In3xo.js} +6 -6
  98. package/dist/{eval-source-CsW5VIXS.js.map → eval-source-BB8In3xo.js.map} +1 -1
  99. package/dist/{evaluate-BHQyAszQ.js → evaluate-B8I9AKgw.js} +62 -43
  100. package/dist/evaluate-B8I9AKgw.js.map +1 -0
  101. package/dist/{evaluate-DzHq4EsU.d.ts → evaluate-B9_nukrc.d.ts} +2 -3
  102. package/dist/events-D97ZzAeq.js +475 -0
  103. package/dist/events-D97ZzAeq.js.map +1 -0
  104. package/dist/{fake-bootstrap-VpisF1WE.js → fake-bootstrap-4DFtzib0.js} +2 -2
  105. package/dist/{fake-bootstrap-VpisF1WE.js.map → fake-bootstrap-4DFtzib0.js.map} +1 -1
  106. package/dist/files-5HsFIpxw.js +1 -0
  107. package/dist/{files-g1watgRC.js → files-B0DbptiO.js} +25 -16
  108. package/dist/files-B0DbptiO.js.map +1 -0
  109. package/dist/{files-Cv856jLN.js → files-B4K1k__s.js} +5 -5
  110. package/dist/{files-Cv856jLN.js.map → files-B4K1k__s.js.map} +1 -1
  111. package/dist/files-BNg3wgw_.js +1 -0
  112. package/dist/files-BesexM88.js +1477 -0
  113. package/dist/files-BesexM88.js.map +1 -0
  114. package/dist/{files-BrGVs4gY.js → files-DE13BqBC.js} +2 -2
  115. package/dist/{files-BrGVs4gY.js.map → files-DE13BqBC.js.map} +1 -1
  116. package/dist/files-DNgQwgA0.js +1 -0
  117. package/dist/files-DvDUSrWL.js +1 -0
  118. package/dist/{files-BCraBodb.js → files-GBTUBAek.js} +3 -3
  119. package/dist/{files-BCraBodb.js.map → files-GBTUBAek.js.map} +1 -1
  120. package/dist/{files-BuKWZCzY.js → files-TwSVeWwM.js} +6 -6
  121. package/dist/{files-BuKWZCzY.js.map → files-TwSVeWwM.js.map} +1 -1
  122. package/dist/gateway.d.ts +2 -3
  123. package/dist/{git-DOrOtAiD.js → git-DatgUcnf.js} +3 -3
  124. package/dist/{git-DOrOtAiD.js.map → git-DatgUcnf.js.map} +1 -1
  125. package/dist/{harness-nwnyghJZ.js → harness-EZNoeUBf.js} +2 -2
  126. package/dist/{harness-nwnyghJZ.js.map → harness-EZNoeUBf.js.map} +1 -1
  127. package/dist/{harness-install-Dxho1yaU.js → harness-install-HgR73tpF.js} +4 -3
  128. package/dist/harness-install-HgR73tpF.js.map +1 -0
  129. package/dist/harness.d.ts +2 -3
  130. package/dist/harness.js +1 -1
  131. package/dist/{ids-B-JKTCP8.js → ids-DqEvrBFZ.js} +18 -13
  132. package/dist/ids-DqEvrBFZ.js.map +1 -0
  133. package/dist/{images-Ch1y1t6_.js → images-SRE4f3SM.js} +13 -12
  134. package/dist/images-SRE4f3SM.js.map +1 -0
  135. package/dist/index.d.ts +4 -5
  136. package/dist/index.js +5 -5
  137. package/dist/init-CS5kEaVg.js +1 -0
  138. package/dist/{init-C2HqCwnt.js → init-D5F9MYPC.js} +6 -6
  139. package/dist/{init-C2HqCwnt.js.map → init-D5F9MYPC.js.map} +1 -1
  140. package/dist/{ink-list-BbKXElcQ.js → ink-list-CLq6YVB8.js} +3 -3
  141. package/dist/{ink-list-BbKXElcQ.js.map → ink-list-CLq6YVB8.js.map} +1 -1
  142. package/dist/{inputs-5UIDpjz-.js → inputs-B_FsOD2N.js} +6 -6
  143. package/dist/{inputs-5UIDpjz-.js.map → inputs-B_FsOD2N.js.map} +1 -1
  144. package/dist/{inputs-load-CGPyigMC.js → inputs-load-B4MFkp0Q.js} +3 -3
  145. package/dist/{inputs-load-CGPyigMC.js.map → inputs-load-B4MFkp0Q.js.map} +1 -1
  146. package/dist/inputs-load-D4IsEjq3.js +1 -0
  147. package/dist/internal/vm.d.ts +15 -0
  148. package/dist/internal/vm.js +22 -0
  149. package/dist/internal/vm.js.map +1 -0
  150. package/dist/{invocations-BrZAMuTb.js → invocations-BxQqe5GU.js} +5 -5
  151. package/dist/{invocations-BrZAMuTb.js.map → invocations-BxQqe5GU.js.map} +1 -1
  152. package/dist/issue-DmSorsTF.js +1 -0
  153. package/dist/issue-iErT9KkK.js +120 -0
  154. package/dist/issue-iErT9KkK.js.map +1 -0
  155. package/dist/{jiti-radm1Soi.js → jiti-CtahaHaY.js} +4 -2
  156. package/dist/{jiti-radm1Soi.js.map → jiti-CtahaHaY.js.map} +1 -1
  157. package/dist/{judge-DwzqucLS.js → judge-MOKPsr6R.js} +7 -4
  158. package/dist/judge-MOKPsr6R.js.map +1 -0
  159. package/dist/judge.d.ts +5 -6
  160. package/dist/judge.js +1 -1
  161. package/dist/{judgments-Cj8bFaDG.js → judgments-Dur4D2pj.js} +2 -2
  162. package/dist/{judgments-Cj8bFaDG.js.map → judgments-Dur4D2pj.js.map} +1 -1
  163. package/dist/kinds-Dohijzi-.js +593 -0
  164. package/dist/kinds-Dohijzi-.js.map +1 -0
  165. package/dist/{layout-Czh5wOpz.js → layout-BhhJAEgf.js} +3 -3
  166. package/dist/{layout-Czh5wOpz.js.map → layout-BhhJAEgf.js.map} +1 -1
  167. package/dist/{list-B_C0k5ex.js → list-ClDb8qiX.js} +9 -7
  168. package/dist/list-ClDb8qiX.js.map +1 -0
  169. package/dist/{live-DgFm0H90.js → live-C7iGaDCA.js} +9 -9
  170. package/dist/{live-DgFm0H90.js.map → live-C7iGaDCA.js.map} +1 -1
  171. package/dist/live-C7kN5v2P.js +1 -0
  172. package/dist/{live-DGgIrVw0.js → live-QFILMmql.js} +2 -2
  173. package/dist/{live-DGgIrVw0.js.map → live-QFILMmql.js.map} +1 -1
  174. package/dist/{machine-service-2lIv5UWF.js → machine-service-DpJScNtA.js} +1 -1
  175. package/dist/{machine-service-Ct_1XMMi.js → machine-service-xFhakTs5.js} +287 -98
  176. package/dist/machine-service-xFhakTs5.js.map +1 -0
  177. package/dist/machines-Cm-rU7jp.js +279 -0
  178. package/dist/machines-Cm-rU7jp.js.map +1 -0
  179. package/dist/{model-DRa7yv6K.js → model-CcvSrrq9.js} +5 -5
  180. package/dist/{model-DRa7yv6K.js.map → model-CcvSrrq9.js.map} +1 -1
  181. package/dist/model-Colu5mEp.js +1 -0
  182. package/dist/{model-E5X8YBJM.js → model-D9WMMEWD.js} +4 -4
  183. package/dist/{model-E5X8YBJM.js.map → model-D9WMMEWD.js.map} +1 -1
  184. package/dist/{model-B1tdv9-d.js → model-Rmv-L9Jb.js} +1 -1
  185. package/dist/{model-DF77SgZv.js → model-mTaaEkeQ.js} +6 -6
  186. package/dist/{model-DF77SgZv.js.map → model-mTaaEkeQ.js.map} +1 -1
  187. package/dist/{node-BjuhqQwa.js → node-Bl2CtSjB.js} +8 -8
  188. package/dist/{node-BjuhqQwa.js.map → node-Bl2CtSjB.js.map} +1 -1
  189. package/dist/options-CmRy82gl.js +1 -0
  190. package/dist/{patch-BR8rdl7r.js → patch-DhJDHRFs.js} +2 -2
  191. package/dist/{patch-BR8rdl7r.js.map → patch-DhJDHRFs.js.map} +1 -1
  192. package/dist/{plan-BcT4G5jj.js → plan-CC0bKbm9.js} +11 -11
  193. package/dist/{plan-BcT4G5jj.js.map → plan-CC0bKbm9.js.map} +1 -1
  194. package/dist/{plugins-cC0sqoDA.js → plugins-PwEtW8GH.js} +8 -597
  195. package/dist/plugins-PwEtW8GH.js.map +1 -0
  196. package/dist/{preflight-C9OtTb7k.js → preflight-BHUEfA4m.js} +9 -4
  197. package/dist/preflight-BHUEfA4m.js.map +1 -0
  198. package/dist/{preflight-DySHXeFJ.js → preflight-BzvLYQ70.js} +8 -7
  199. package/dist/preflight-BzvLYQ70.js.map +1 -0
  200. package/dist/preflight-DEV_vrdB.js +1 -0
  201. package/dist/preflight-xa8_eGOW.js +1 -0
  202. package/dist/{prepare-nbX1CXXg.js → prepare-D7hPrh7Q.js} +19 -39
  203. package/dist/prepare-D7hPrh7Q.js.map +1 -0
  204. package/dist/prepare-DS42k409.js +2 -0
  205. package/dist/prices-C_mbZa5a.js +1 -0
  206. package/dist/{prices-BrY_ihLs.js → prices-DXJsP2Ha.js} +4 -4
  207. package/dist/{prices-BrY_ihLs.js.map → prices-DXJsP2Ha.js.map} +1 -1
  208. package/dist/process-RPlEhpHz.js +118 -0
  209. package/dist/process-RPlEhpHz.js.map +1 -0
  210. package/dist/{provenance-CkykifD9.js → provenance-DgQJ-dq7.js} +5 -5
  211. package/dist/{provenance-CkykifD9.js.map → provenance-DgQJ-dq7.js.map} +1 -1
  212. package/dist/{providers-bNgfKa6m.js → providers-B5Vr0hKH.js} +173 -31
  213. package/dist/providers-B5Vr0hKH.js.map +1 -0
  214. package/dist/providers-N4HDMeeo.js +1 -0
  215. package/dist/query-BXV6pRyI.js +1 -0
  216. package/dist/{query-DhV3a8lM.js → query-CmTjYbqh.js} +2 -2
  217. package/dist/{query-DhV3a8lM.js.map → query-CmTjYbqh.js.map} +1 -1
  218. package/dist/{questions-Csv64WCb.js → questions-DnqkJga0.js} +7 -7
  219. package/dist/{questions-Csv64WCb.js.map → questions-DnqkJga0.js.map} +1 -1
  220. package/dist/recipe-B0NeT_Sn.js +128 -0
  221. package/dist/recipe-B0NeT_Sn.js.map +1 -0
  222. package/dist/{record--vHreTLk.js → record-2liAelrB.js} +13 -5
  223. package/dist/record-2liAelrB.js.map +1 -0
  224. package/dist/{redact-t-L3VGy8.js → redact-DMueYS-v.js} +28 -6
  225. package/dist/redact-DMueYS-v.js.map +1 -0
  226. package/dist/{remarks-CYFOsnz5.js → remarks-D-9f1y1B.js} +10 -10
  227. package/dist/{remarks-CYFOsnz5.js.map → remarks-D-9f1y1B.js.map} +1 -1
  228. package/dist/{remarks-DqriPKxm.js → remarks-D5qOZzcX.js} +2 -2
  229. package/dist/{remarks-DqriPKxm.js.map → remarks-D5qOZzcX.js.map} +1 -1
  230. package/dist/{remote-0CHog7Oq.js → remote-B7BIRUTK.js} +6 -6
  231. package/dist/{remote-0CHog7Oq.js.map → remote-B7BIRUTK.js.map} +1 -1
  232. package/dist/{resolve-Bul8lHaa.js → resolve-B60w6DcB.js} +20 -5
  233. package/dist/resolve-B60w6DcB.js.map +1 -0
  234. package/dist/resolve-CCLiJX4i.js +1 -0
  235. package/dist/{resolve-DorSHDBs.js → resolve-t9sOkGGS.js} +51 -18
  236. package/dist/resolve-t9sOkGGS.js.map +1 -0
  237. package/dist/{results-DhMgRkR0.js → results-Df910ONm.js} +6 -6
  238. package/dist/{results-DhMgRkR0.js.map → results-Df910ONm.js.map} +1 -1
  239. package/dist/{resume-C8Ihfy-C.js → resume-4Q9q8AcE.js} +6 -6
  240. package/dist/{resume-C8Ihfy-C.js.map → resume-4Q9q8AcE.js.map} +1 -1
  241. package/dist/{retry-Bfk7pDti.js → retry-C15f5yyy.js} +4 -4
  242. package/dist/{retry-Bfk7pDti.js.map → retry-C15f5yyy.js.map} +1 -1
  243. package/dist/{root-BzeoyfGd.js → root-Cm93-6ix.js} +3 -3
  244. package/dist/{root-BzeoyfGd.js.map → root-Cm93-6ix.js.map} +1 -1
  245. package/dist/{runtime-CPUH0Vk5.js → runtime-CIsljVBy.js} +5 -5
  246. package/dist/{runtime-CPUH0Vk5.js.map → runtime-CIsljVBy.js.map} +1 -1
  247. package/dist/sandbox/boat.d.ts +14 -7
  248. package/dist/sandbox/boat.js +18 -4
  249. package/dist/sandbox/boat.js.map +1 -1
  250. package/dist/sandbox/daytona.d.ts +29 -0
  251. package/dist/sandbox/daytona.js +49 -0
  252. package/dist/sandbox/daytona.js.map +1 -0
  253. package/dist/{sandbox-z8q_4Ywn.js → sandbox-BffNervX.js} +3 -3
  254. package/dist/{sandbox-z8q_4Ywn.js.map → sandbox-BffNervX.js.map} +1 -1
  255. package/dist/sandbox.d.ts +4 -5
  256. package/dist/sandbox.js +1 -1
  257. package/dist/secrets-file-Dtd3h3kY.js +100 -0
  258. package/dist/secrets-file-Dtd3h3kY.js.map +1 -0
  259. package/dist/secrets-file-take-BXfYMTM-.js +33 -0
  260. package/dist/secrets-file-take-BXfYMTM-.js.map +1 -0
  261. package/dist/server-CeYUmuuu.js +1 -0
  262. package/dist/{server-BsQZtuF9.js → server-fSNuT3Z4.js} +13 -13
  263. package/dist/{server-BsQZtuF9.js.map → server-fSNuT3Z4.js.map} +1 -1
  264. package/dist/shared-B3iLKAiu.d.ts +1 -0
  265. package/dist/source-n7nUVm9p.js +1 -0
  266. package/dist/{source-9HWaTEgV.js → source-zoRWRMql.js} +2 -2
  267. package/dist/{source-9HWaTEgV.js.map → source-zoRWRMql.js.map} +1 -1
  268. package/dist/{src-D-PwBaBB.js → src-9V3C6A7C.js} +1 -1
  269. package/dist/{src-boB6D-5T.js → src-BQWAxhKD.js} +4 -4
  270. package/dist/{src-boB6D-5T.js.map → src-BQWAxhKD.js.map} +1 -1
  271. package/dist/{src-BfOlH_Bu.js → src-Bj3WJs3t.js} +2 -2
  272. package/dist/{src-CotUxxQV.js → src-CB5cZhaN.js} +1 -1
  273. package/dist/{src-C-ChdnG6.js → src-CDoAEO4u.js} +2 -2
  274. package/dist/{src-C-ChdnG6.js.map → src-CDoAEO4u.js.map} +1 -1
  275. package/dist/{src-C2K5_afU.js → src-CFBg2ecq.js} +1 -1
  276. package/dist/{src-DNWiU__5.js → src-CGBwMZgM.js} +2 -2
  277. package/dist/{src-DNWiU__5.js.map → src-CGBwMZgM.js.map} +1 -1
  278. package/dist/{src-BuGc40IF.js → src-CUrcaZ91.js} +1 -1
  279. package/dist/{src-CSVJjghq.js → src-CcbV6VpV.js} +2 -2
  280. package/dist/src-DB0vml0O.js +1 -0
  281. package/dist/{src-B2eHTCnp.js → src-DiS13D_q.js} +2 -2
  282. package/dist/{src-CWfy8ct8.js → src-OC89dAjO.js} +1127 -466
  283. package/dist/src-OC89dAjO.js.map +1 -0
  284. package/dist/{src-CcrQQB0_.js → src-TMKittwH.js} +1 -1
  285. package/dist/ssh-pool-ChpT-fDU.js +1 -0
  286. package/dist/ssh-pool-DwboLN9O.js +175 -0
  287. package/dist/ssh-pool-DwboLN9O.js.map +1 -0
  288. package/dist/{start-Db5VRcRZ.js → start-BwMyDneA.js} +148 -70
  289. package/dist/start-BwMyDneA.js.map +1 -0
  290. package/dist/{state-DUYdzNA7.js → state-CXTaT0t8.js} +10 -10
  291. package/dist/{state-DUYdzNA7.js.map → state-CXTaT0t8.js.map} +1 -1
  292. package/dist/state-CltRWlCu.js +1 -0
  293. package/dist/store/local.d.ts +2 -3
  294. package/dist/store/s3.d.ts +2 -3
  295. package/dist/{suite-DjGxmDSY.js → suite-C4XSg6Ls.js} +6 -6
  296. package/dist/{suite-DjGxmDSY.js.map → suite-C4XSg6Ls.js.map} +1 -1
  297. package/dist/suite-CIsyPqPA.js +2 -0
  298. package/dist/{summary-BK5Sa_N0.js → summary-DeeQJAR5.js} +8 -8
  299. package/dist/{summary-BK5Sa_N0.js.map → summary-DeeQJAR5.js.map} +1 -1
  300. package/dist/{sync-DUi_P2UJ.js → sync-bnI6WWaL.js} +6 -6
  301. package/dist/{sync-DUi_P2UJ.js.map → sync-bnI6WWaL.js.map} +1 -1
  302. package/dist/{tart-BQ_Ap0l4.js → tart-CSP5Q0qV.js} +10 -8
  303. package/dist/tart-CSP5Q0qV.js.map +1 -0
  304. package/dist/{tart-bake-D1RttYfM.js → tart-bake-BCKRfyKm.js} +9 -8
  305. package/dist/tart-bake-BCKRfyKm.js.map +1 -0
  306. package/dist/{tart-bake-DjFcsG3N.js → tart-bake-d9UvIfe3.js} +1 -1
  307. package/dist/{tart-cli-BOcluha1.js → tart-cli-C4d5FXG1.js} +1 -1
  308. package/dist/{tart-cli-gA9xEaQL.js → tart-cli-CqSpUYGV.js} +3 -2
  309. package/dist/tart-cli-CqSpUYGV.js.map +1 -0
  310. package/dist/{tart-hosts-CWse-ASo.js → tart-hosts-Du7SZM4w.js} +1 -1
  311. package/dist/{tart-hosts-CHNrfV6u.js → tart-hosts-G0EUDt07.js} +5 -4
  312. package/dist/tart-hosts-G0EUDt07.js.map +1 -0
  313. package/dist/{tart-images-CLBjfF9u.js → tart-images-De0-ib7R.js} +4 -4
  314. package/dist/{tart-images-CLBjfF9u.js.map → tart-images-De0-ib7R.js.map} +1 -1
  315. package/dist/testing.d.ts +4 -5
  316. package/dist/testing.js +4 -4
  317. package/dist/{tool-class-krsmEo44.js → tool-class-B3ZFTSOw.js} +2 -2
  318. package/dist/{tool-class-krsmEo44.js.map → tool-class-B3ZFTSOw.js.map} +1 -1
  319. package/dist/{trace-BpXByD7W.js → trace-CfppUzD9.js} +2 -2
  320. package/dist/{trace-BpXByD7W.js.map → trace-CfppUzD9.js.map} +1 -1
  321. package/dist/{traits-CCD8XsmI.js → traits-Bj1PM5F7.js} +2 -2
  322. package/dist/{traits-CCD8XsmI.js.map → traits-Bj1PM5F7.js.map} +1 -1
  323. package/dist/{transcript-BXWZiMuC.js → transcript-CW02A4s9.js} +3 -3
  324. package/dist/{transcript-BXWZiMuC.js.map → transcript-CW02A4s9.js.map} +1 -1
  325. package/dist/types-CbcnJxCy.js.map +1 -1
  326. package/dist/{types-DKK8jj--.d.ts → types-D4WEnzhY.d.ts} +192 -17
  327. package/dist/{ui-DKYjTVpn.js → ui-DfvPNmPP.js} +54 -485
  328. package/dist/ui-DfvPNmPP.js.map +1 -0
  329. package/dist/{vertex-BEWxHoxH.js → vertex-BLxYasfw.js} +2 -2
  330. package/dist/{vertex-BEWxHoxH.js.map → vertex-BLxYasfw.js.map} +1 -1
  331. package/dist/vertex-D4H9bKHD.d.ts +2 -0
  332. package/dist/vertex-DZDUpp0W.js +1 -0
  333. package/dist/view/index.d.ts +2 -3
  334. package/dist/view/index.js +10 -10
  335. package/dist/{views-B1zVLJsF.js → views-ChoSQxfF.js} +6 -6
  336. package/dist/{views-B1zVLJsF.js.map → views-ChoSQxfF.js.map} +1 -1
  337. package/dist/views-DU0PM0UW.js +2 -0
  338. package/dist/vm-container-DOtIi_rd.js +149 -0
  339. package/dist/vm-container-DOtIi_rd.js.map +1 -0
  340. package/dist/vm-images-CHutQVml.js +375 -0
  341. package/dist/vm-images-CHutQVml.js.map +1 -0
  342. package/dist/{worker-entry-DrAYYt0M.js → worker-entry-CKBfEt0h.js} +7 -7
  343. package/dist/{worker-entry-DrAYYt0M.js.map → worker-entry-CKBfEt0h.js.map} +1 -1
  344. package/dist/workspace-BKcNJAPb.js +1 -0
  345. package/dist/{workspace-DwTe1zo6.js → workspace-Cip2dVwU.js} +9 -8
  346. package/dist/workspace-Cip2dVwU.js.map +1 -0
  347. package/package.json +22 -10
  348. package/skills/reeval/SKILL.md +2 -2
  349. package/skills/reeval/references/environments.md +4 -3
  350. package/skills/setup/SKILL.md +1 -1
  351. package/dist/agents-KBTYhSSh.js.map +0 -1
  352. package/dist/app-files-Cmh9FGr5.js +0 -10
  353. package/dist/app-files-Cmh9FGr5.js.map +0 -1
  354. package/dist/attach-EbDGKGTO.js.map +0 -1
  355. package/dist/boat-Bzz8L-KQ.js +0 -701
  356. package/dist/boat-Bzz8L-KQ.js.map +0 -1
  357. package/dist/boat-Dek8ftIt.js +0 -120
  358. package/dist/boat-Dek8ftIt.js.map +0 -1
  359. package/dist/bundle-DZstHDeW.js.map +0 -1
  360. package/dist/capture-BkbPsfej.js.map +0 -1
  361. package/dist/capture-CUAvk9KM.js +0 -1
  362. package/dist/cases-FvhbM8M5.js +0 -1
  363. package/dist/cli-BgBBuxxJ.js.map +0 -1
  364. package/dist/cli-spec-B5L9n-DV.js.map +0 -1
  365. package/dist/command-loXH2jHr.js.map +0 -1
  366. package/dist/config-C0RKt00M.js.map +0 -1
  367. package/dist/cost-IM80LyGD.js +0 -1
  368. package/dist/db-3o8s2EyD.js +0 -2
  369. package/dist/docker-DrMnpL84.js +0 -1
  370. package/dist/doctor-B7utCSdh.js.map +0 -1
  371. package/dist/environment-C0Gg8kyN.js.map +0 -1
  372. package/dist/evaluate-BHQyAszQ.js.map +0 -1
  373. package/dist/files-BjOJw4sn.js +0 -1
  374. package/dist/files-CAzVG3Rr.js +0 -1
  375. package/dist/files-D-Lir4aE.js +0 -1
  376. package/dist/files-DRlJ0Xr2.js +0 -1
  377. package/dist/files-g1watgRC.js.map +0 -1
  378. package/dist/files-qjeqXnfE.js +0 -775
  379. package/dist/files-qjeqXnfE.js.map +0 -1
  380. package/dist/harness-install-Dxho1yaU.js.map +0 -1
  381. package/dist/ids-B-JKTCP8.js.map +0 -1
  382. package/dist/images-Ch1y1t6_.js.map +0 -1
  383. package/dist/init-CM9xwyre.js +0 -1
  384. package/dist/inputs-load-C82HOKnb.js +0 -1
  385. package/dist/judge-DwzqucLS.js.map +0 -1
  386. package/dist/list-B_C0k5ex.js.map +0 -1
  387. package/dist/live-C9Et_BVT.js +0 -1
  388. package/dist/machine-service-Ct_1XMMi.js.map +0 -1
  389. package/dist/machines-BnquHcBZ.js +0 -120
  390. package/dist/machines-BnquHcBZ.js.map +0 -1
  391. package/dist/model-Bcy4Qjmm.js +0 -1
  392. package/dist/options-C989kuVE.js +0 -1
  393. package/dist/plugins-cC0sqoDA.js.map +0 -1
  394. package/dist/preflight-BMVDBcux.js +0 -1
  395. package/dist/preflight-C9OtTb7k.js.map +0 -1
  396. package/dist/preflight-DySHXeFJ.js.map +0 -1
  397. package/dist/preflight-zsAn3heN.js +0 -1
  398. package/dist/prepare-MaRWRhNT.js +0 -2
  399. package/dist/prepare-nbX1CXXg.js.map +0 -1
  400. package/dist/prices-B1vm_lPk.js +0 -1
  401. package/dist/providers-BkLGzaSY.js +0 -1
  402. package/dist/providers-bNgfKa6m.js.map +0 -1
  403. package/dist/query-B2SQddoV.js +0 -1
  404. package/dist/record--vHreTLk.js.map +0 -1
  405. package/dist/redact-t-L3VGy8.js.map +0 -1
  406. package/dist/resolve-Bm9ZyFR-.js +0 -1
  407. package/dist/resolve-Bul8lHaa.js.map +0 -1
  408. package/dist/resolve-DorSHDBs.js.map +0 -1
  409. package/dist/server-ZaMzUNmV.js +0 -1
  410. package/dist/shared-CHvO7eLi.d.ts +0 -1
  411. package/dist/source-BcBDj-R0.js +0 -1
  412. package/dist/src-CWfy8ct8.js.map +0 -1
  413. package/dist/src-jYqNkT-F.js +0 -1
  414. package/dist/start-Db5VRcRZ.js.map +0 -1
  415. package/dist/state-CKIjZZRK.js +0 -1
  416. package/dist/suite-CH1aaAbs.js +0 -2
  417. package/dist/tarball-C8BSTAMk.js +0 -257
  418. package/dist/tarball-C8BSTAMk.js.map +0 -1
  419. package/dist/tart-BQ_Ap0l4.js.map +0 -1
  420. package/dist/tart-bake-D1RttYfM.js.map +0 -1
  421. package/dist/tart-cli-gA9xEaQL.js.map +0 -1
  422. package/dist/tart-hosts-CHNrfV6u.js.map +0 -1
  423. package/dist/ui-DKYjTVpn.js.map +0 -1
  424. package/dist/vertex-C7PI-WPc.d.ts +0 -3
  425. package/dist/vertex-DXfcXYKn.js +0 -1
  426. package/dist/views-DCjtw1jF.js +0 -2
  427. package/dist/workspace-CnRbV8cM.js +0 -1
  428. package/dist/workspace-DwTe1zo6.js.map +0 -1
@@ -1,28 +1,31 @@
1
1
  import { n as UsageError } from "./errors-ttMTnIYX.js";
2
2
  import { g as parseDuration } from "./shared-DtZwIAfy.js";
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";
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";
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";
11
- import { l as judgeModelName, m as unusedGatewayKey } from "./judge-DwzqucLS.js";
3
+ import { i as INSTEAD, l as helpText, n as FLAGS, r as GLOBAL, s as commandHelpText, t as COMMANDS } from "./cli-spec-3zvLC9YW.js";
4
+ 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-Bn2OhCN_.js";
5
+ import { g as wantsCloud } from "./cloud-run-DqMkSGYB.js";
6
+ import { t as budgetMarker } from "./budget-BcxLYY5L.js";
12
7
  import { n as loadEnvFiles, t as inCI } from "./env-8x1O8I1M.js";
13
- import { r as localStudio } from "./resolve-Bul8lHaa.js";
8
+ import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-BY8lVFFK.js";
9
+ import { c as notEventStream, i as displayUrl, l as openEventStream, o as isAttachUrl, s as isEventsUrl, u as teeRenderer } from "./events-D97ZzAeq.js";
14
10
  import { r as openRouterFallbacks } from "./openrouter-models-B1sIOTD2.js";
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";
11
+ import { y as vertexSettingsIn } from "./vertex-BLxYasfw.js";
12
+ import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-DgQJ-dq7.js";
13
+ import { a as fromCwd, l as relativeFile, o as newRunId, r as cwdIn } from "./ids-DqEvrBFZ.js";
14
+ import { l as judgeModelName, m as unusedGatewayKey } from "./judge-MOKPsr6R.js";
15
+ 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-4Q9q8AcE.js";
16
+ import { n as preflight } from "./preflight-BzvLYQ70.js";
17
+ import { C as stripCredentials, S as registerSecret, _ as redactSecrets } from "./redact-DMueYS-v.js";
18
+ import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-BxQqe5GU.js";
19
+ import { o as PACKAGE_VERSION } from "./root-Cm93-6ix.js";
20
+ import { c as sandboxCapacity, n as capabilitiesOf, r as cleanupRun, u as sandboxKind } from "./kinds-Dohijzi-.js";
21
+ import { i as heldSecrets, o as readSecretsFile } from "./secrets-file-Dtd3h3kY.js";
22
+ import { r as localStudio } from "./resolve-B60w6DcB.js";
23
+ import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-bnI6WWaL.js";
24
+ import { i as formatDuration, n as clip } from "./text-B8-W3Cvn.js";
25
+ import { a as traitFilters, o as traitFlags, t as checkTraitKeys } from "./traits-Bj1PM5F7.js";
18
26
  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";
24
- import { t as budgetMarker } from "./budget-BcxLYY5L.js";
25
- import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-BrZAMuTb.js";
27
+ import { t as createRenderer } from "./ui-DfvPNmPP.js";
28
+ import { k as runOutcome } from "./model-mTaaEkeQ.js";
26
29
  import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
27
30
  import { dirname, join, resolve } from "node:path";
28
31
  import { appendFile, readFile, rm } from "node:fs/promises";
@@ -55,19 +58,19 @@ function parseCli(argv) {
55
58
  };
56
59
  });
57
60
  for (const [name, spec] of Object.entries(COMMANDS)) {
58
- const command = configure(program.command(name), `reeval ${name}`, spec.flags);
61
+ const command = configure(program.command(name), `reeval ${name}`, spec.flags, spec.secretArgs);
59
62
  if (name === "query") takeStatements(command);
60
63
  command.argument("[args...]").action(() => {
61
64
  const max = spec.sub && !spec.help ? Number.POSITIVE_INFINITY : spec.positionals;
62
- parsed = done(program, command, [name], spec.flags, max);
65
+ parsed = done(program, command, [name], spec.flags, max, spec.secretArgs);
63
66
  });
64
67
  for (const [subName, sub] of Object.entries(spec.sub ?? {})) {
65
- const subcommand = configure(command.command(subName), `reeval ${name} ${subName}`, sub.flags);
68
+ const subcommand = configure(command.command(subName), `reeval ${name} ${subName}`, sub.flags, sub.secretArgs);
66
69
  subcommand.argument("[args...]").action(() => {
67
70
  const own = valuesOf(command, spec.flags);
68
71
  const stray = Object.keys(own).find((flag) => !sub.flags.includes(flag));
69
72
  if (stray) throw new UsageError(`--${stray} isn't an option of reeval ${name} ${subName}. Run reeval --help.`);
70
- const result = done(program, subcommand, [name, subName], sub.flags, sub.positionals);
73
+ const result = done(program, subcommand, [name, subName], sub.flags, sub.positionals, sub.secretArgs);
71
74
  parsed = {
72
75
  ...result,
73
76
  values: {
@@ -82,13 +85,13 @@ function parseCli(argv) {
82
85
  if (!parsed) throw new UsageError("reeval couldn't read that command line. Run reeval --help.");
83
86
  return parsed;
84
87
  }
85
- function configure(command, name, flags) {
88
+ function configure(command, name, flags, secretArgs) {
86
89
  command.helpOption(false).helpCommand(false).allowExcessArguments().configureOutput({
87
90
  writeOut: () => {},
88
91
  writeErr: () => {},
89
92
  outputError: () => {}
90
93
  }).exitOverride((error) => {
91
- throw usageError(error, name);
94
+ throw usageError(error, name, secretArgs);
92
95
  });
93
96
  for (const flag of flags) command.addOption(OPTIONS[flag]());
94
97
  return command;
@@ -115,7 +118,7 @@ function takeStatements(command) {
115
118
  };
116
119
  };
117
120
  }
118
- function done(program, command, path, flags, max) {
121
+ function done(program, command, path, flags, max, secretArgs) {
119
122
  const values = {
120
123
  ...valuesOf(program, GLOBAL),
121
124
  ...valuesOf(command, flags)
@@ -123,7 +126,8 @@ function done(program, command, path, flags, max) {
123
126
  const args = command.args;
124
127
  if (!values.help && !values.version && args.length > max) {
125
128
  const name = `reeval ${path.join(" ")}`;
126
- throw new UsageError(max === 0 ? `${name} takes no arguments (got ${args.join(" ")})` : `${name} takes at most ${max} argument${max === 1 ? "" : "s"} (got ${args.join(" ")})`);
129
+ const got = secretArgs ? `got ${args.length}` : `got ${args.join(" ")}`;
130
+ throw new UsageError(max === 0 ? `${name} takes no arguments (${got})` : `${name} takes at most ${max} argument${max === 1 ? "" : "s"} (${got})`);
127
131
  }
128
132
  return {
129
133
  positionals: [...path, ...args],
@@ -147,7 +151,7 @@ function valuesOf(command, flags) {
147
151
  return values;
148
152
  }
149
153
  /** Commander's error, in reeval's words, naming the command whose flag it is. */
150
- function usageError(error, command) {
154
+ function usageError(error, command, secretArgs) {
151
155
  const text = error.message.replace(/^error: /, "");
152
156
  const [first = ""] = text.split("\n");
153
157
  if (error.code === "commander.unknownOption") {
@@ -160,6 +164,7 @@ function usageError(error, command) {
160
164
  const instead = INSTEAD[`${command} --${long}`];
161
165
  return new UsageError(`--${long} isn't an option of ${command}. ${instead ? `${instead}.` : "Run reeval --help."}`);
162
166
  }
167
+ if (secretArgs) return new UsageError(`${command} has no such option. Run reeval --help.`);
163
168
  const shown = arg.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
164
169
  return new UsageError(`Unknown option '${shown}'. ${suggestion ? `${suggestion} ` : ""}Run reeval --help.`);
165
170
  }
@@ -202,7 +207,8 @@ const EXPECTED_ERRORS = [
202
207
  const INFRA_ERRORS = [
203
208
  "PreflightInfraError",
204
209
  "StoreError",
205
- "EventStreamError"
210
+ "EventStreamError",
211
+ "CloudError"
206
212
  ];
207
213
  const EXIT = {
208
214
  ok: 0,
@@ -248,6 +254,7 @@ async function sweep(root, keep) {
248
254
  for (const runId of await sweepStaging(root, keep)) process.stderr.write(`reeval: run ${runId} stopped over a day ago and can still be resumed: reeval run --resume ${runId} finishes it, reeval clean --staging deletes it.\n`);
249
255
  }
250
256
  async function run(argv) {
257
+ readSecretsFile();
251
258
  const { values, positionals } = parseCli(argv);
252
259
  invocation.flags = values;
253
260
  if (values.version) {
@@ -264,7 +271,7 @@ async function run(argv) {
264
271
  return values.help ? EXIT.ok : EXIT.usage;
265
272
  }
266
273
  if (command === "init") {
267
- const { initCommand } = await import("./init-CM9xwyre.js");
274
+ const { initCommand } = await import("./init-CS5kEaVg.js");
268
275
  return initCommand(values, filters, {
269
276
  out: (s) => console.log(s),
270
277
  input: process.stdin,
@@ -273,7 +280,7 @@ async function run(argv) {
273
280
  });
274
281
  }
275
282
  if (command === "doctor") {
276
- const { doctorCommand } = await import("./doctor-B7utCSdh.js");
283
+ const { doctorCommand } = await import("./doctor-BfS6jswW.js");
277
284
  return doctorCommand(values, {
278
285
  out: (s) => console.log(s),
279
286
  color: !!process.stdout.isTTY && !process.env.NO_COLOR,
@@ -281,7 +288,7 @@ async function run(argv) {
281
288
  });
282
289
  }
283
290
  if (command === "report") {
284
- const { reportCommand } = await import("./command-loXH2jHr.js");
291
+ const { reportCommand } = await import("./command-efTGfUYb.js");
285
292
  return reportCommand(values, filters, {
286
293
  out: (s) => console.log(s),
287
294
  err: (s) => console.error(dim(s)),
@@ -289,15 +296,42 @@ async function run(argv) {
289
296
  confirm: process.stdin.isTTY && process.stdout.isTTY ? confirm : void 0
290
297
  });
291
298
  }
299
+ if (command === "login" || command === "logout" || command === "whoami") {
300
+ const login = await import("./command-CoHN1ibe.js");
301
+ loadEnvFiles(configPathFor(values.config));
302
+ const { defaultIssueDeps } = await import("./issue-DmSorsTF.js");
303
+ const io = {
304
+ out: (s) => console.log(s),
305
+ err: (s) => console.error(dim(s)),
306
+ ...process.stdout.isTTY && !inCI() && { open: defaultIssueDeps().open }
307
+ };
308
+ if (command === "login") return login.loginCommand(io);
309
+ if (command === "logout") return login.logoutCommand(io);
310
+ return login.whoamiCommand(values, io);
311
+ }
292
312
  const configPath = configPathFor(values.config);
313
+ if (command === "cloud") {
314
+ const [area, ...args] = filters;
315
+ if (area !== "secrets" && area !== "provider") throw new UsageError(`Unknown command "cloud ${area ?? ""}". Did you mean reeval cloud secrets or reeval cloud provider?`);
316
+ loadEnvFiles(configPath);
317
+ const cloud = await import("./cloud-secrets-Bak83tik.js");
318
+ const io = {
319
+ out: (s) => console.log(s),
320
+ readValue: cloud.readSecretValue,
321
+ projectDir: cloud.projectDirFor(configPath)
322
+ };
323
+ return area === "secrets" ? cloud.secretsCommand(values, args, io) : cloud.providerCommand(values, args, io);
324
+ }
293
325
  if (command === "image") {
294
- if (filters[0] !== "build") throw new UsageError(`Unknown command "image ${filters[0] ?? ""}". Did you mean reeval image build?`);
326
+ if (filters[0] === "list") return imageListCommand(values, configPath, filters.slice(1));
327
+ if (filters[0] === "clean") return imageCleanCommand(values, configPath);
328
+ if (filters[0] !== "build") throw new UsageError(`Unknown command "image ${filters[0] ?? ""}". Did you mean reeval image build, list or clean?`);
295
329
  return imageBuildCommand(values, configPath, filters.slice(1));
296
330
  }
297
331
  if (command === "studio") {
298
332
  const config = await historyConfig(configPath, "studio", values.profile);
299
333
  localStudio(config);
300
- const { studioCommand } = await import("./command-BKb8eN_X.js");
334
+ const { studioCommand } = await import("./command-Bs6Knfm4.js");
301
335
  return studioCommand({
302
336
  config,
303
337
  flags: values,
@@ -308,7 +342,7 @@ async function run(argv) {
308
342
  if (command === "mcp") {
309
343
  if (!values.http) console.log = console.info = console.debug = console.error;
310
344
  const config = await historyConfig(configPath, "mcp", values.profile, values);
311
- const { mcpCommand } = await import("./command-Dwlh0Vhu.js");
345
+ const { mcpCommand } = await import("./command-CtmSJzPC.js");
312
346
  return mcpCommand({
313
347
  config,
314
348
  flags: values,
@@ -317,7 +351,7 @@ async function run(argv) {
317
351
  }
318
352
  if (command in HISTORY_COMMANDS) {
319
353
  const config = await historyConfig(configPath, command, values.profile, values);
320
- const commands = await import("./commands-Dqli45sR.js");
354
+ const commands = await import("./commands-B_cAs8nG.js");
321
355
  const ctx = {
322
356
  config,
323
357
  flags: values,
@@ -331,14 +365,14 @@ async function run(argv) {
331
365
  case "checkout": return commands.checkoutCommand(ctx, filters);
332
366
  case "sync": return commands.syncCommand(ctx, filters);
333
367
  case "query": {
334
- const { queryCommand } = await import("./query-B2SQddoV.js");
368
+ const { queryCommand } = await import("./query-BXV6pRyI.js");
335
369
  return queryCommand({
336
370
  ...ctx,
337
371
  err: (s) => console.error(dim(s))
338
372
  }, filters);
339
373
  }
340
374
  case "analyze": {
341
- const { analyzeCommand } = await import("./command-D_w_kDpI.js");
375
+ const { analyzeCommand } = await import("./command-CeygdoVe.js");
342
376
  return analyzeCommand({
343
377
  ...ctx,
344
378
  err: (s) => console.error(dim(s))
@@ -349,7 +383,7 @@ async function run(argv) {
349
383
  if (command === "clean") return cleanCommand(values, configPath);
350
384
  if (command === "attach") return attachCommand(values, filters[0], configPath);
351
385
  if (command === "bundle") {
352
- const { bundleCommand } = await import("./bundle-DZstHDeW.js");
386
+ const { bundleCommand } = await import("./bundle-yEgI3RsI.js");
353
387
  return bundleCommand(values, filters, configPath, argv.slice(1), (s) => console.log(s));
354
388
  }
355
389
  if (command !== "run") throw new UsageError(`Unknown command "${command}". Run reeval --help.`);
@@ -368,25 +402,30 @@ async function bundleRun(flags, filters) {
368
402
  "runs",
369
403
  "config",
370
404
  "resume",
371
- "retry-errors"
405
+ "retry-errors",
406
+ "cloud"
372
407
  ].filter((f) => flags[f] !== void 0).map((f) => `--${f}`);
373
408
  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
409
  const file = flags.bundle;
375
410
  const log = (s) => flags.json ? console.error(s) : console.log(s);
376
- const { openBundle } = await import("./bundle-DZstHDeW.js");
411
+ const { bundledGit, openBundle } = await import("./bundle-yEgI3RsI.js");
377
412
  const opened = await openBundle(file, log);
378
413
  if (opened.exit !== void 0) return opened.exit;
379
- const { args } = opened.manifest;
414
+ const { args, author } = opened.manifest;
380
415
  log(`reeval: running ${file} in ${opened.project}, where its .reeval/ stays`);
381
416
  process.chdir(opened.project);
382
417
  return runCommand({
383
418
  ...flags,
384
419
  bundle: void 0,
420
+ local: true,
385
421
  ...args.profile ? { profile: args.profile } : {},
386
422
  tag: args.tags,
387
423
  trait: args.traits,
388
424
  ...args.runs ? { runs: args.runs } : {}
389
- }, opened.config, args.filters);
425
+ }, opened.config, args.filters, {
426
+ git: bundledGit(opened.manifest),
427
+ ...author ? { author } : {}
428
+ });
390
429
  }
391
430
  /**
392
431
  * The config a command that reads the history runs on: the profile `--profile`, `REEVAL_PROFILE`
@@ -414,12 +453,12 @@ async function historyConfig(configPath, command, flag, values = {}) {
414
453
  }
415
454
  /** The dry run's prices, fetched only when a planned attempt or the judge has anything to price. */
416
455
  async function dryRunPrices(planned, judgeModel) {
417
- const { needsPrices } = await import("./cost-IM80LyGD.js");
456
+ const { needsPrices } = await import("./cost-a_rUSdsf.js");
418
457
  if (!needsPrices(planned.filter((p) => !p.attempt.plan.skip).map((p) => p.attempt.harness), judgeModel)) return {
419
458
  table: null,
420
459
  why: "nothing to price"
421
460
  };
422
- const { loadPrices } = await import("./prices-B1vm_lPk.js");
461
+ const { loadPrices } = await import("./prices-C_mbZa5a.js");
423
462
  return loadPrices();
424
463
  }
425
464
  /** Asks a yes/no question on the terminal; anything but y or yes is no. */
@@ -447,7 +486,7 @@ async function cleanCommand(flags, configPath) {
447
486
  keep = Number(flags.keep);
448
487
  if (!(Number.isInteger(keep) && keep >= 0)) throw new UsageError(`--keep must be a whole number (got ${flags.keep})`);
449
488
  }
450
- const { debugRoot, pruneDebug } = await import("./files-BjOJw4sn.js");
489
+ const { debugRoot, pruneDebug } = await import("./files-DvDUSrWL.js");
451
490
  const { formatBytes } = await import("./debug-CF4p4Lp_.js");
452
491
  const { runs, bytes } = await pruneDebug(config.root, keep);
453
492
  const where = fromCwd(debugRoot(config.root)) || ".";
@@ -459,23 +498,23 @@ async function cleanCommand(flags, configPath) {
459
498
  const streams = await pruneEvents(config.root, keep);
460
499
  if (streams.length) console.log(`Removed the event streams of ${streams.length} finished run${streams.length === 1 ? "" : "s"} from .reeval/events`);
461
500
  if (flags.bundles) {
462
- const { removeExtractedBundles } = await import("./bundle-DZstHDeW.js");
501
+ const { removeExtractedBundles } = await import("./bundle-yEgI3RsI.js");
463
502
  const removed = await removeExtractedBundles();
464
503
  console.log(removed.length ? `Removed ${removed.length} extracted bundle${removed.length === 1 ? "" : "s"}: ${removed.join(", ")}` : "No extracted bundles to remove");
465
504
  }
466
505
  if (flags.images) {
467
- const { dockerAvailable, pruneImages } = await import("./src-jYqNkT-F.js");
468
- const { requireDocker } = await import("./providers-BkLGzaSY.js");
506
+ const { dockerAvailable, pruneImages } = await import("./src-DB0vml0O.js");
507
+ const { requireDocker } = await import("./providers-N4HDMeeo.js");
469
508
  const engines = [];
470
509
  for (const engine of ["docker", "podman"]) if (await dockerAvailable(engine)) engines.push(engine);
471
- const { tartCli } = await import("./tart-cli-BOcluha1.js");
510
+ const { tartCli } = await import("./tart-cli-C4d5FXG1.js");
472
511
  const tart = await tartCli(["--version"]).then((r) => r.exitCode === 0, () => false);
473
512
  if (!engines.length && !tart) await requireDocker();
474
513
  let removed = 0;
475
514
  for (const engine of engines) removed += await pruneImages(engine);
476
515
  if (engines.length) console.log(removed ? `Removed ${removed} image${removed === 1 ? "" : "s"} reeval built that nothing uses` : "No leftover images to remove");
477
516
  if (tart) {
478
- const { deleteBakedImages } = await import("./tart-bake-DjFcsG3N.js");
517
+ const { deleteBakedImages } = await import("./tart-bake-d9UvIfe3.js");
479
518
  const baked = await deleteBakedImages();
480
519
  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
520
  }
@@ -494,26 +533,14 @@ function verbosityOf(flags) {
494
533
  * image.
495
534
  */
496
535
  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));
536
+ const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-SRE4f3SM.js");
537
+ const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-CHutQVml.js");
538
+ const { setup, root, uses } = await imageUses(flags, configPath, filters, plannedImageUses);
513
539
  const targets = imageTargets(uses);
514
540
  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.");
541
+ const snapshots = vmImageTargets(uses);
542
+ if (targets.length === 0 && vms.length === 0 && snapshots.length === 0) {
543
+ 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
544
  return EXIT.ok;
518
545
  }
519
546
  const { tartTagWarning } = await import("./tart-ref-7Qv3cm3B.js");
@@ -524,6 +551,7 @@ async function imageBuildCommand(flags, configPath, filters) {
524
551
  if (flags["dry-run"]) {
525
552
  if (vms.length) for (const line of await tartPlanLines(vms)) console.log(line);
526
553
  if (targets.length) for (const line of await imagePlanLines(targets, root)) console.log(line);
554
+ if (snapshots.length) for (const line of await vmPlanLines(snapshots, root)) console.log(line);
527
555
  return EXIT.ok;
528
556
  }
529
557
  const { PrepareError } = await import("./provider-DHT20Gl8.js");
@@ -545,7 +573,7 @@ async function imageBuildCommand(flags, configPath, filters) {
545
573
  const pulled = vms.length ? await pullTartImages(vms, root, {
546
574
  log: (line) => console.log(line.startsWith("warning: ") ? yellow(line) : dim(line)),
547
575
  force: !!flags.force
548
- }).catch(refusal("tart", vms, targets.length)) : [];
576
+ }).catch(refusal("tart", vms, targets.length + snapshots.length)) : [];
549
577
  for (const p of pulled) outcomes.push(p.ok ? {
550
578
  id: p.id,
551
579
  evals: p.evals,
@@ -564,7 +592,7 @@ async function imageBuildCommand(flags, configPath, filters) {
564
592
  force: !!flags.force,
565
593
  registry: setup.registry,
566
594
  push: !!flags.push
567
- }).catch(refusal("docker", targets, vms.length));
595
+ }).catch(refusal("docker", targets, vms.length + snapshots.length));
568
596
  for (const b of built) outcomes.push(b.ok ? {
569
597
  id: b.id,
570
598
  evals: b.evals,
@@ -578,11 +606,29 @@ async function imageBuildCommand(flags, configPath, filters) {
578
606
  failure: b.failure
579
607
  });
580
608
  }
609
+ if (snapshots.length) {
610
+ 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));
611
+ for (const b of built) {
612
+ const evals = b.ids.length;
613
+ outcomes.push(b.ok ? {
614
+ id: b.id,
615
+ evals,
616
+ ok: true,
617
+ ref: `snapshot ${b.name}`,
618
+ id12: b.cached ? "saved" : `built in ${formatDuration(b.ms)}`
619
+ } : {
620
+ id: b.id,
621
+ evals,
622
+ ok: false,
623
+ failure: b.failure
624
+ });
625
+ }
626
+ }
581
627
  } catch (error) {
582
628
  if (!(error instanceof PrepareError)) throw error;
583
629
  if (error.failure.usage) throw new UsageError(error.message);
584
630
  if (error.failure.cause === "enospc") invocation.machineState = true;
585
- const { PreflightInfraError } = await import("./preflight-BMVDBcux.js");
631
+ const { PreflightInfraError } = await import("./preflight-xa8_eGOW.js");
586
632
  throw new PreflightInfraError(error.message);
587
633
  }
588
634
  for (const o of outcomes) {
@@ -597,12 +643,150 @@ async function imageBuildCommand(flags, configPath, filters) {
597
643
  }
598
644
  const failed = outcomes.filter((o) => !o.ok);
599
645
  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`));
646
+ 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
647
  if (!failed.length) return EXIT.ok;
602
648
  if (refused || failed.every((o) => !o.ok && o.failure.usage)) return EXIT.usage;
603
649
  invocation.machineState = failed.every((o) => !o.ok && o.failure.cause === "enospc");
604
650
  return EXIT.infra;
605
651
  }
652
+ /** What `reeval image` plans for: the harness and sandbox of each attempt, collected as `--dry-run` does. */
653
+ async function imageUses(flags, configPath, filters, planned) {
654
+ const plannedImageUses = planned ?? (await import("./images-SRE4f3SM.js")).plannedImageUses;
655
+ const setup = await prepareRun({
656
+ ...flags,
657
+ "dry-run": true
658
+ }, configPath);
659
+ const { runId, stagingDir, config, runs, tags, concurrency, profile } = await startRun(setup);
660
+ const uses = await plannedImageUses({
661
+ runId,
662
+ stagingDir,
663
+ config,
664
+ runs,
665
+ tags,
666
+ concurrency,
667
+ profile
668
+ }, filters, (parts) => unmatchedFilter(config, parts));
669
+ return {
670
+ setup,
671
+ root: config.root,
672
+ uses
673
+ };
674
+ }
675
+ /**
676
+ * `reeval image list`: the image snapshots under each `boat()` and `daytona()` account and prefix
677
+ * the evals use, with the environments that start from each.
678
+ */
679
+ async function imageListCommand(flags, configPath, filters) {
680
+ const vm = await import("./vm-images-CHutQVml.js");
681
+ const { formatSize } = await import("./tart-images-De0-ib7R.js");
682
+ const { root, uses } = await imageUses(flags, configPath, filters);
683
+ const accounts = vm.vmAccounts(uses);
684
+ if (!accounts.length) {
685
+ console.log("No eval runs in a boat() or daytona() sandbox, so there are no image snapshots to list.");
686
+ return EXIT.ok;
687
+ }
688
+ const [{ snapshots, failed }, { usedBy }] = await Promise.all([vm.listAccounts(accounts, root), vm.usedSnapshots(vm.vmImageTargets(uses), root)]);
689
+ const cache = vm.readVmImageCache();
690
+ const rows = snapshots.map((s) => ({
691
+ ...s,
692
+ lastUsedAt: vm.lastUsed(s, cache),
693
+ usedBy: usedBy.get(s.name) ?? []
694
+ }));
695
+ if (flags.json) {
696
+ const iso = (t) => t === null ? null : new Date(t).toISOString();
697
+ console.log(JSON.stringify({
698
+ snapshots: rows.map((r) => ({
699
+ ...r,
700
+ createdAt: iso(r.createdAt),
701
+ lastUsedAt: iso(r.lastUsedAt)
702
+ })),
703
+ failed: failed.map((f) => ({
704
+ provider: f.account.provider,
705
+ account: f.account.sandbox.apiKey.from,
706
+ prefix: f.account.sandbox.prefix,
707
+ error: f.error.message
708
+ }))
709
+ }, null, 2));
710
+ return failed.length ? EXIT.infra : EXIT.ok;
711
+ }
712
+ const table = rows.map((r) => [
713
+ r.provider,
714
+ r.name,
715
+ r.status,
716
+ r.sizeBytes === null ? "-" : formatSize(r.sizeBytes),
717
+ `saved ${vm.ago(r.createdAt)}`,
718
+ `used ${vm.ago(r.lastUsedAt)}`,
719
+ r.usedBy.length ? r.usedBy.join(", ") : dim("no environment")
720
+ ]);
721
+ const widths = table[0]?.map((_, i) => Math.max(...table.map((row) => (row[i] ?? "").length))) ?? [];
722
+ for (const row of table) console.log(row.map((cell, i) => i === row.length - 1 ? cell : cell.padEnd(widths[i] ?? 0)).join(" "));
723
+ for (const f of failed) console.log(red(`✗ ${vm.accountLabel(f.account)}: ${f.error.message}`));
724
+ const n = rows.length;
725
+ console.log(dim(`${n} snapshot${n === 1 ? "" : "s"} under ${accounts.map(vm.accountLabel).join(", ")}`));
726
+ return failed.length ? EXIT.infra : EXIT.ok;
727
+ }
728
+ /**
729
+ * `reeval image clean`: deletes the image snapshots no environment of the evals starts from, under
730
+ * each `boat()` and `daytona()` account and prefix they use, never one used in the
731
+ * last hour or one still being saved.
732
+ */
733
+ async function imageCleanCommand(flags, configPath) {
734
+ const vm = await import("./vm-images-CHutQVml.js");
735
+ const { formatSize } = await import("./tart-images-De0-ib7R.js");
736
+ const provider = flags.provider;
737
+ if (provider !== void 0 && provider !== "boat" && provider !== "daytona") throw new UsageError(`--provider is boat or daytona (got "${provider}")`);
738
+ const olderThanMs = flags["older-than"] !== void 0 ? vm.parseAge(flags["older-than"]) : flags.all ? void 0 : vm.DEFAULT_OLDER_THAN_MS;
739
+ const { root, uses } = await imageUses(flags, configPath, []);
740
+ const accounts = vm.vmAccounts(uses).filter((a) => !provider || a.provider === provider);
741
+ if (!accounts.length) {
742
+ console.log(`No eval runs in a ${provider ? `${provider}()` : "boat() or daytona()"} sandbox, so there are no image snapshots to clean.`);
743
+ return EXIT.ok;
744
+ }
745
+ const [{ snapshots, failed }, { usedBy, unknown }] = await Promise.all([vm.listAccounts(accounts, root), vm.usedSnapshots(vm.vmImageTargets(uses).filter((t) => !provider || t.provider === provider), root)]);
746
+ const refused = unknown.find((u) => u.error.failure?.usage);
747
+ if (refused) throw new UsageError(refused.error.message);
748
+ if (unknown.length && !flags.all) {
749
+ for (const u of unknown) console.log(red(`✗ couldn't tell which snapshot ${u.target.id} starts from: ${u.error.message.split("\n")[0]}`));
750
+ console.log(red("Nothing was deleted, so a snapshot in use isn't. Fix that, or pass --all."));
751
+ return EXIT.infra;
752
+ }
753
+ const choices = vm.cleanChoices(snapshots, {
754
+ cache: vm.readVmImageCache(),
755
+ usedBy,
756
+ now: Date.now(),
757
+ ...olderThanMs !== void 0 && { olderThanMs },
758
+ all: !!flags.all
759
+ });
760
+ const doomed = choices.filter((c) => c.keep === null);
761
+ const byAccount = (s) => accounts.find((a) => a.provider === s.provider && a.sandbox.apiKey.from === s.account && a.sandbox.prefix === s.prefix);
762
+ let freed = 0;
763
+ let deleted = 0;
764
+ let failures = failed.length;
765
+ for (const c of choices) {
766
+ const size = c.snapshot.sizeBytes === null ? "" : ` (${formatSize(c.snapshot.sizeBytes)})`;
767
+ if (c.keep !== null) {
768
+ console.log(dim(` kept ${c.snapshot.provider} ${c.snapshot.name}: ${c.keep}`));
769
+ continue;
770
+ }
771
+ if (flags["dry-run"]) {
772
+ console.log(` would delete ${c.snapshot.provider} ${c.snapshot.name}${size}`);
773
+ continue;
774
+ }
775
+ try {
776
+ await vm.deleteVmSnapshot(byAccount(c.snapshot), c.snapshot, root);
777
+ deleted++;
778
+ freed += c.snapshot.sizeBytes ?? 0;
779
+ console.log(`${green("✓")} deleted ${c.snapshot.provider} ${c.snapshot.name}${size}`);
780
+ } catch (error) {
781
+ failures++;
782
+ console.log(red(`✗ ${c.snapshot.provider} ${c.snapshot.name}: ${error.message}`));
783
+ }
784
+ }
785
+ for (const f of failed) console.log(red(`✗ ${vm.accountLabel(f.account)}: ${f.error.message}`));
786
+ const n = doomed.length;
787
+ 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)})` : ""}`));
788
+ return failures ? EXIT.infra : EXIT.ok;
789
+ }
606
790
  /** The first 12 hex digits of an image id or digest. */
607
791
  const short12 = (id) => id.replace(/^sha256:/, "").slice(0, 12);
608
792
  /**
@@ -620,10 +804,63 @@ async function attachCommand(flags, target, configPath) {
620
804
  root = dirname(requireConfig(configPath));
621
805
  source = (await resolveAttach(root, target)).file;
622
806
  }
623
- const { attach } = await import("./attach-EbDGKGTO.js");
624
- return attach({
807
+ const cloud = await import("./cloud-run-C08P_Uap.js");
808
+ if (flags.profile !== void 0 && !flags.download) throw new UsageError("--profile picks the history folder --download puts a recorded cloud run in: pass it with --download");
809
+ if (flags.download || isAttachUrl(source)) loadEnvFiles(configPath);
810
+ const download = flags.download ? await cloudDownload(source, configPath, flags.profile) : void 0;
811
+ const follow = isAttachUrl(source) ? await cloud.cloudFollow(source) : void 0;
812
+ let detached = false;
813
+ const code = await attachHere(flags, {
625
814
  source,
626
815
  ...root === void 0 ? {} : { root },
816
+ ...follow ? { follow } : {},
817
+ onDetach: () => {
818
+ detached = true;
819
+ }
820
+ });
821
+ if (download && detached) console.log(dim(`Not downloading the files of cloud run ${download.runId} after detaching: reeval attach --download${download.profile === void 0 ? "" : ` --profile ${download.profile}`} ${displayUrl(source)} downloads them once it has ended`));
822
+ else if (download) {
823
+ const { downloadAfter } = await import("./cloud-files-BjinrTTe.js");
824
+ for (const line of await downloadAfter(code, download.runId, download.run)) console.log(dim(line));
825
+ }
826
+ return code;
827
+ }
828
+ /**
829
+ * `reeval attach --download`: what downloads the files of the cloud run whose event stream is
830
+ * `source` into this project, as a run here leaves them, a recorded run's into the history folder
831
+ * of the profile `profile`, `REEVAL_PROFILE` or `defaultProfile` picks; exit 2 for any other
832
+ * stream, or with no project.
833
+ */
834
+ async function cloudDownload(source, configPath, profile) {
835
+ const cloud = await import("./cloud-run-C08P_Uap.js");
836
+ const { cloudRunOf, downloadCloudFiles } = await import("./cloud-files-BjinrTTe.js");
837
+ loadEnvFiles(configPath);
838
+ const base = cloud.cloudUrl();
839
+ const run = isAttachUrl(source) ? cloudRunOf(source, base) : null;
840
+ if (!run) throw new UsageError(`--download takes a cloud run's event stream URL (${base.href}api/runs/<run>/events), not ${displayUrl(source)}: a run on this machine has its files in .reeval/ already`);
841
+ const path = requireConfig(configPath);
842
+ const named = profile ?? (process.env.REEVAL_PROFILE || void 0);
843
+ const loaded = await loadConfig(path, "run", named);
844
+ const picked = selectProfile(loaded, profile);
845
+ const { root, history } = withProfileHistory(loaded, picked);
846
+ const auth = await cloud.cloudAuth(base);
847
+ return {
848
+ runId: run.runId,
849
+ ...picked ? { profile: picked.name } : {},
850
+ run: () => downloadCloudFiles({
851
+ cloudRunId: run.runId,
852
+ url: run.files,
853
+ auth,
854
+ root,
855
+ history
856
+ })
857
+ };
858
+ }
859
+ /** `reeval attach`'s viewer on this terminal, drawn with the attach flags. */
860
+ async function attachHere(flags, options) {
861
+ const { attach } = await import("./attach-DvYiMu6w.js");
862
+ return attach({
863
+ ...options,
627
864
  out: process.stdout,
628
865
  columns: process.stdout.columns,
629
866
  colorDepth: process.stdout.isTTY ? process.stdout.getColorDepth() : void 0,
@@ -646,8 +883,83 @@ async function attachCommand(flags, target, configPath) {
646
883
  })
647
884
  });
648
885
  }
886
+ /**
887
+ * Where a run that asked for the cloud platform goes, from the bundle made for it: there, or
888
+ * here with why. A real run there is created, uploaded, started and followed, and its exit code is
889
+ * `exit`. Undefined when the run didn't ask to run in the cloud.
890
+ */
891
+ async function cloudTarget(flags, setup, filters, configPath) {
892
+ const cloud = await import("./cloud-run-C08P_Uap.js");
893
+ if (!cloud.wantsCloud(flags, setup.config, setup.profile)) {
894
+ if (flags.download) throw new UsageError("--download downloads a cloud run's files, and this run is on this machine: its files are in .reeval/ already. Leave it out, or pass --cloud");
895
+ return;
896
+ }
897
+ const { makeBundle } = await import("./bundle-yEgI3RsI.js");
898
+ const picked = setup.profile ? { profile: setup.profile.name } : {};
899
+ const bundle = async (env) => {
900
+ try {
901
+ const made = await makeBundle({
902
+ ...flags,
903
+ ...picked
904
+ }, filters, configPath, process.argv.slice(2), {
905
+ env,
906
+ prices: true
907
+ });
908
+ if ("code" in made) return made;
909
+ const blocked = made.plan.notCloud ?? [];
910
+ return blocked.length ? { why: blocked.join("; ") } : { made };
911
+ } catch (error) {
912
+ if (!(error instanceof UsageError)) throw error;
913
+ return { why: error.message };
914
+ }
915
+ };
916
+ let result = await bundle({});
917
+ let base = null;
918
+ if ("made" in result) {
919
+ cloud.refuseLocalFlags(flags);
920
+ const url = cloud.cloudUrl();
921
+ if (!setup.dryRun) {
922
+ base = url;
923
+ const env = await cloud.cloudPlanEnv(base);
924
+ if (Object.entries(env).some(([k, v]) => process.env[k] !== v)) result = await bundle(env);
925
+ }
926
+ }
927
+ if ("code" in result) return { exit: result.code };
928
+ if ("why" in result) {
929
+ const why = result.why.replace(/^[A-Z](?=[a-z])/, (c) => c.toLowerCase());
930
+ if (!setup.dryRun) {
931
+ console.log(dim(`Running here, not in the cloud: ${why}`));
932
+ if (setup.recording) storeCredentials(setup.config.history);
933
+ }
934
+ return {
935
+ target: {
936
+ kind: "local",
937
+ why
938
+ },
939
+ detail: `target here, not in the cloud: ${why.split("\n")[0]}`
940
+ };
941
+ }
942
+ const { made } = result;
943
+ if (!base) return {
944
+ target: { kind: "cloud" },
945
+ detail: await cloud.cloudLine(made.plan, "target cloud")
946
+ };
947
+ console.log(await cloud.cloudLine(made.plan));
948
+ if (setup.recording) console.log(dim("record: a cloud run isn't recorded into this machine's history"));
949
+ return { exit: await cloud.runCloud({
950
+ base,
951
+ bundle: made,
952
+ log: (line) => console.log(dim(line)),
953
+ follow: (options) => attachHere(flags, options),
954
+ ...flags.download && { download: {
955
+ root: setup.config.root,
956
+ history: setup.config.history,
957
+ ...setup.profile ? { profile: setup.profile.name } : {}
958
+ } }
959
+ }) };
960
+ }
649
961
  /** `reeval run`: check, plan, run the engine, then write the run and pick the exit code. */
650
- async function runCommand(flags, configPath, given) {
962
+ async function runCommand(flags, configPath, given, bundled) {
651
963
  const retry = flags["retry-errors"];
652
964
  const url = flags["events-url"];
653
965
  const parsed = url === void 0 ? null : URL.parse(url);
@@ -667,7 +979,7 @@ async function runCommand(flags, configPath, given) {
667
979
  const outcome = runOutcome(record);
668
980
  if (flags.json) {
669
981
  console.error(nothing);
670
- const { suiteResult } = await import("./suite-CH1aaAbs.js");
982
+ const { suiteResult } = await import("./suite-CIsyPqPA.js");
671
983
  process.stdout.write(`${JSON.stringify({
672
984
  ...suiteResult(record),
673
985
  outcome
@@ -684,8 +996,10 @@ async function runCommand(flags, configPath, given) {
684
996
  noProfile: !!resumed?.saved && resumed.saved.profile === void 0,
685
997
  ...resumed?.profileOf ? { profileOf: resumed.profileOf } : {}
686
998
  });
999
+ const cloud = bundled ? void 0 : await cloudTarget(runFlags, setup, filters, configPath);
1000
+ if (cloud && "exit" in cloud) return cloud.exit;
687
1001
  const explicit = runFlags.concurrency ?? (process.env.REEVAL_CONCURRENCY || void 0);
688
- const ctx = await startRun(setup);
1002
+ const ctx = await startRun(setup, bundled);
689
1003
  const startedWith = resumed ? resumed.saved ?? void 0 : {
690
1004
  ...setup.runs === void 0 ? {} : { runs: setup.runs },
691
1005
  ...setup.profile ? { profile: setup.profile.name } : {},
@@ -699,7 +1013,7 @@ async function runCommand(flags, configPath, given) {
699
1013
  if (githubOut) await appendFile(githubOut, `run-id=${ctx.runId}\n`).catch(() => {});
700
1014
  const stepStart = process.env.GITHUB_STEP_SUMMARY;
701
1015
  if (stepStart) await appendFile(stepStart, `run ${ctx.runId}\n`).catch(() => {});
702
- const { engineVersions } = await import("./node-BjuhqQwa.js");
1016
+ const { engineVersions } = await import("./node-Bl2CtSjB.js");
703
1017
  const terminal = setup.json && !setup.dryRun ? process.stderr : process.stdout;
704
1018
  const harness = setup.config.harness[0]?.kind ?? "agent";
705
1019
  const drawn = createRenderer({
@@ -719,21 +1033,25 @@ async function runCommand(flags, configPath, given) {
719
1033
  const savedEvents = eventsTo ? relativeFile(root, eventsTo) : void 0;
720
1034
  if (startedWith && savedEvents) startedWith.events = savedEvents;
721
1035
  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
- });
1036
+ if (eventsTo || eventsUrl) {
1037
+ const cwd = cwdIn(root);
1038
+ eventStream = openEventStream({
1039
+ ...eventsTo ? {
1040
+ file: eventsTo,
1041
+ append: continued
1042
+ } : {},
1043
+ ...eventsUrl ? { url: eventsUrl } : {},
1044
+ header: {
1045
+ reeval: version,
1046
+ runId: ctx.runId,
1047
+ startedAt: (/* @__PURE__ */ new Date()).toISOString(),
1048
+ harness,
1049
+ verbosity: ctx.verbosity ?? 0,
1050
+ ...cwd === void 0 ? {} : { cwd }
1051
+ },
1052
+ warn: (message) => process.stderr.write(yellow(`reeval: ${message}\n`))
1053
+ });
1054
+ }
737
1055
  const renderer = eventStream ? teeRenderer(drawn, eventStream) : drawn;
738
1056
  let executed;
739
1057
  try {
@@ -741,7 +1059,11 @@ async function runCommand(flags, configPath, given) {
741
1059
  startedWith,
742
1060
  notes: resumed?.notes ?? [],
743
1061
  narrowed: !!resumed && (given.length > 0 || !!flags.tag?.length || !!flags.trait?.length),
744
- ...savedEvents ? { events: savedEvents } : {}
1062
+ ...savedEvents ? { events: savedEvents } : {},
1063
+ ...cloud ? {
1064
+ target: cloud.target,
1065
+ targetDetail: cloud.detail
1066
+ } : {}
745
1067
  });
746
1068
  } catch (error) {
747
1069
  renderer.close();
@@ -762,7 +1084,7 @@ async function runCommand(flags, configPath, given) {
762
1084
  return EXIT.ok;
763
1085
  }
764
1086
  if (ctx.retry && ctx.previous && retried.size) {
765
- const { retryEnvironmentChanges } = await import("./retry-Bfk7pDti.js");
1087
+ const { retryEnvironmentChanges } = await import("./retry-C15f5yyy.js");
766
1088
  const changes = retryEnvironmentChanges(ctx.previous, ctx.stagingDir, retried);
767
1089
  if (changes.length) {
768
1090
  questions?.cancel();
@@ -781,8 +1103,8 @@ async function runCommand(flags, configPath, given) {
781
1103
  }
782
1104
  finishing = true;
783
1105
  live?.phase("finishing");
784
- const { lockfiles } = await import("./state-CKIjZZRK.js");
785
- const { writeScratchRun } = await import("./results-DhMgRkR0.js");
1106
+ const { lockfiles } = await import("./state-CltRWlCu.js");
1107
+ const { writeScratchRun } = await import("./results-Df910ONm.js");
786
1108
  const run = await writeScratchRun({
787
1109
  ctx,
788
1110
  author: ctx.author,
@@ -816,55 +1138,76 @@ async function runCommand(flags, configPath, given) {
816
1138
  status: "complete"
817
1139
  }) : outcome;
818
1140
  let code = stopped ? stopCode : ran === "fail" ? EXIT.failed : ran === "infra_error" ? EXIT.infra : EXIT.ok;
819
- const { pruneDebug } = await import("./files-BjOJw4sn.js");
1141
+ const { pruneDebug } = await import("./files-DvDUSrWL.js");
820
1142
  await pruneDebug(ctx.config.root, ctx.config.debug.keep).catch(() => {});
821
1143
  const summary = run.artifactDir ? join(run.artifactDir, "summary.md") : run.recordPath;
822
- renderer.onEvent({
823
- type: "run-end",
824
- at: Date.now(),
825
- record,
826
- summaryPath: fromCwd(summary),
827
- results: engineRun.evals,
828
- remarks: run.remarks,
829
- ...notRun > 0 && !stopped ? { notRun } : {}
830
- });
831
- renderer.close();
832
- if (retried.size) {
833
- const { retryCounts, retryLine } = await import("./retry-Bfk7pDti.js");
834
- const line = retryLine(retryCounts(record, retried, ctx.previous));
835
- if (setup.json) console.error(line);
836
- else console.log(line);
837
- }
838
- const stepSummary = process.env.GITHUB_STEP_SUMMARY;
839
- if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
840
1144
  const { config } = ctx;
841
1145
  const mode = setup.record;
842
- const { readRecord, recordFile } = await import("./files-CAzVG3Rr.js");
1146
+ const { readRecord, recordFile } = await import("./files-DNgQwgA0.js");
843
1147
  const rerecord = (setup.retry !== void 0 || setup.resume !== void 0) && record.status === "complete" && existsSync(recordFile(config.history.dir, record.runId));
844
1148
  const autoRecord = flags.record || mode === "always" || mode === "ci" && inCI() || rerecord;
845
- if (autoRecord && record.status !== "interrupted") {
846
- const { record: recordCmd } = await import("./commands-Dqli45sR.js");
847
- const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
848
- const level = rerecord ? { artifacts: (await readRecord(recordFile(config.history.dir, record.runId))).artifacts } : {};
849
- const line = await recordCmd(config, record.runId, {
850
- ...flags,
851
- ...allow,
852
- ...level
853
- }).catch((error) => {
854
- if (error.name !== "StoreError") throw error;
855
- if (code !== EXIT.interrupted && code !== EXIT.terminated) code = EXIT.infra;
856
- invocation.machineState = true;
857
- return red(`reeval: ${redactSecrets(error.message)}`);
1149
+ const recording = autoRecord && record.status !== "interrupted";
1150
+ let ended = false;
1151
+ const endRun = async (recorded) => {
1152
+ if (ended) return;
1153
+ ended = true;
1154
+ renderer.onEvent({
1155
+ type: "run-end",
1156
+ at: Date.now(),
1157
+ record,
1158
+ summaryPath: fromCwd(summary),
1159
+ results: engineRun.evals,
1160
+ remarks: run.remarks,
1161
+ ...notRun > 0 && !stopped ? { notRun } : {},
1162
+ ...recorded ? { recorded } : {}
858
1163
  });
859
- if (setup.json) console.error(line);
860
- else console.log(line);
1164
+ renderer.close();
1165
+ if (retried.size) {
1166
+ const { retryCounts, retryLine } = await import("./retry-C15f5yyy.js");
1167
+ const line = retryLine(retryCounts(record, retried, ctx.previous));
1168
+ if (setup.json) console.error(line);
1169
+ else console.log(line);
1170
+ }
1171
+ const stepSummary = process.env.GITHUB_STEP_SUMMARY;
1172
+ if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
1173
+ };
1174
+ let recordLine;
1175
+ let recordError;
1176
+ if (recording) {
1177
+ const { record: recordCmd } = await import("./commands-B_cAs8nG.js");
1178
+ const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
1179
+ try {
1180
+ const level = rerecord ? { artifacts: (await readRecord(recordFile(config.history.dir, record.runId))).artifacts } : {};
1181
+ recordLine = await recordCmd(config, record.runId, {
1182
+ ...flags,
1183
+ ...allow,
1184
+ ...level
1185
+ }, (landed) => endRun({
1186
+ record: fromCwd(landed.recordPath),
1187
+ files: landed.artifactDir ? fromCwd(landed.artifactDir) : null,
1188
+ ...landed.archive ? { archive: fromCwd(landed.archive.path) } : {}
1189
+ })).catch((error) => {
1190
+ if (error.name !== "StoreError") throw error;
1191
+ if (code !== EXIT.interrupted && code !== EXIT.terminated) code = EXIT.infra;
1192
+ invocation.machineState = true;
1193
+ return red(`reeval: ${redactSecrets(error.message)}`);
1194
+ });
1195
+ } catch (error) {
1196
+ recordError = error;
1197
+ }
1198
+ }
1199
+ await endRun();
1200
+ if (recordError !== void 0) throw recordError;
1201
+ if (recordLine !== void 0) {
1202
+ if (setup.json) console.error(recordLine);
1203
+ else console.log(recordLine);
861
1204
  } else if (autoRecord && notRun > 0 && !stopped) {
862
1205
  const line = `Not recorded: run ${record.runId} is incomplete. reeval run --resume ${record.runId}${flags.record ? " --record" : ""} runs the rest and records it.`;
863
1206
  if (setup.json) console.error(line);
864
1207
  else console.log(line);
865
1208
  }
866
1209
  if (setup.json) {
867
- const { suiteResult } = await import("./suite-CH1aaAbs.js");
1210
+ const { suiteResult } = await import("./suite-CIsyPqPA.js");
868
1211
  process.stdout.write(`${JSON.stringify({
869
1212
  ...suiteResult(record),
870
1213
  outcome: ran
@@ -944,7 +1287,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
944
1287
  stdinTTY: !!process.stdin.isTTY && !flags.json && !flags["dry-run"]
945
1288
  });
946
1289
  const path = requireConfig(configPath);
947
- const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-C82HOKnb.js")).trackLoad(dirname(path)) : void 0;
1290
+ const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-D4IsEjq3.js")).trackLoad(dirname(path)) : void 0;
948
1291
  let configInputs = [];
949
1292
  let loaded;
950
1293
  const named = noProfile ? void 0 : flags.profile ?? (process.env.REEVAL_PROFILE || void 0);
@@ -957,7 +1300,8 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
957
1300
  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
1301
  const profile = noProfile ? null : selectProfile(loaded, flags.profile);
959
1302
  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);
1303
+ const recording = flags.record || (profile?.record ?? config.record) === "always" || (profile?.record ?? config.record) === "ci" && inCI();
1304
+ if (recording && !flags["dry-run"] && !wantsCloud(flags, config, profile)) storeCredentials(config.history);
961
1305
  let runs;
962
1306
  if (flags.runs !== void 0) {
963
1307
  runs = Number(flags.runs);
@@ -983,6 +1327,8 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
983
1327
  sizeRun: async () => concurrency ?? defaultConcurrency(await sandboxCapacity(sandboxes) ?? hostCapacity()),
984
1328
  budget: profile?.budget ?? config.budget,
985
1329
  record: profile?.record ?? config.record,
1330
+ /** Whether the run is recorded into the history once it ends. */
1331
+ recording: !!recording,
986
1332
  dryRun: !!flags["dry-run"],
987
1333
  json: !!flags.json,
988
1334
  /** What loading the config read, for `--dry-run --json`'s `inputs`. */
@@ -1004,7 +1350,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
1004
1350
  async function registryFlag(flags) {
1005
1351
  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
1352
  if (flags.registry === void 0) return null;
1007
- const { registryProblem } = await import("./src-jYqNkT-F.js");
1353
+ const { registryProblem } = await import("./src-DB0vml0O.js");
1008
1354
  const problem = registryProblem(flags.registry);
1009
1355
  if (problem) throw new UsageError(problem);
1010
1356
  return flags.registry.replace(/\/+$/, "");
@@ -1012,14 +1358,14 @@ async function registryFlag(flags) {
1012
1358
  /** What a retry, or a resume that finishes one, does to the run's errors, for its refusals. */
1013
1359
  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
1360
  /** 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 }) {
1361
+ async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRun, verbosity, configFile, resume, retry, dryRun }, bundled) {
1016
1362
  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");
1363
+ const git = bundled ? bundled.git : await gitInfo(config.root, [config.history.dir]);
1364
+ const { worktreePatch } = await import("./state-CltRWlCu.js");
1365
+ const patch = git?.dirty && !bundled ? await worktreePatch(config.root, [config.history.dir]) : null;
1366
+ const who = bundled?.author ?? await author(config.root);
1367
+ const { stagingDir } = await import("./results-Df910ONm.js");
1368
+ const { scratchDir } = await import("./files-DNgQwgA0.js");
1023
1369
  const scratch = scratchDir(config.root);
1024
1370
  if (resume !== void 0 || retry !== void 0) {
1025
1371
  const target = await continuedRun(config.root, {
@@ -1040,7 +1386,7 @@ async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRu
1040
1386
  if (scoped.length) await cleanupRun(target.runId, scoped).catch(() => {});
1041
1387
  }
1042
1388
  const concurrency = await sizeRun();
1043
- const { unfoldCases } = await import("./cases-FvhbM8M5.js");
1389
+ const { unfoldCases } = await import("./cases-CA7gxxdr.js");
1044
1390
  const previous = aside.record ?? target.previous;
1045
1391
  return {
1046
1392
  runId: target.runId,
@@ -1134,12 +1480,12 @@ function namesDeclaredSecret(evals) {
1134
1480
  */
1135
1481
  async function planEfforts(planned) {
1136
1482
  const live = planned.filter((p) => !p.attempt.plan.skip);
1137
- const { effortNotes, withDefaultEffort } = await import("./default-effort-DHzj84dD.js");
1483
+ const { effortNotes, withDefaultEffort } = await import("./default-effort-Ck6ViSaI.js");
1138
1484
  let cursor;
1139
1485
  let unchecked = "CURSOR_API_KEY isn't set";
1140
1486
  const key = process.env.CURSOR_API_KEY;
1141
1487
  if (key && live.some((p) => p.attempt.harness.kind === "cursor")) {
1142
- const { checkCursorPlan } = await import("./cursor-catalog-CRsFxorF.js");
1488
+ const { checkCursorPlan } = await import("./cursor-catalog-BYIDSsLn.js");
1143
1489
  const checked = await checkCursorPlan(key, live);
1144
1490
  if (checked instanceof Error) unchecked = `its request failed: ${checked.message}`;
1145
1491
  else {
@@ -1177,8 +1523,8 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1177
1523
  completed: [],
1178
1524
  ...setup.dryRun && setup.json ? { inputs: true } : {}
1179
1525
  }));
1180
- const { runEngine } = await import("./node-BjuhqQwa.js");
1181
- const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-BcT4G5jj.js");
1526
+ const { runEngine } = await import("./node-Bl2CtSjB.js");
1527
+ const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-CC0bKbm9.js");
1182
1528
  let plan;
1183
1529
  let sandboxVersions = { images: [] };
1184
1530
  let preflightStop;
@@ -1223,9 +1569,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1223
1569
  if (ctx.retry && ctx.previous) {
1224
1570
  const ranOn = ctx.previous.stack?.reeval;
1225
1571
  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");
1572
+ const { retryChanges } = await import("./retry-C15f5yyy.js");
1573
+ const { judgePart } = await import("./assemble-DUtbByvj.js");
1574
+ const { engineVersions } = await import("./node-Bl2CtSjB.js");
1229
1575
  const judged = judgePart(config, profile, version, engineVersions);
1230
1576
  const runs = new Set(planned.map((p) => p.key).filter((key) => !completed.has(key)));
1231
1577
  const changes = await retryChanges(ctx.previous, planned, runs, config.root, judged);
@@ -1238,7 +1584,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1238
1584
  }
1239
1585
  }
1240
1586
  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;
1587
+ const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-Rmv-L9Jb.js") : void 0;
1242
1588
  const judge = runJudgeModel(config, profile);
1243
1589
  const judgeModel = judge === void 0 ? null : judgeModelName(judge);
1244
1590
  plan = await buildPlan({
@@ -1258,7 +1604,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1258
1604
  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
1605
  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
1606
  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");
1607
+ const { podmanRootless } = await import("./providers-N4HDMeeo.js");
1262
1608
  if (switching.length && await podmanRootless()) plan.warnings.push(rootlessPodmanSwitch(switching));
1263
1609
  plan.warnings.push(...started.notes);
1264
1610
  if (started.narrowed) {
@@ -1274,7 +1620,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1274
1620
  run.completed = [...completed];
1275
1621
  const done = leftOut.filter((l) => l.done).map((l) => l.key);
1276
1622
  kept = keptAttempts([...completed, ...done], stagingDir, ctx.previous);
1277
- const { imageStages, imageTargets } = await import("./images-Ch1y1t6_.js");
1623
+ const { imageStages, imageTargets } = await import("./images-SRE4f3SM.js");
1278
1624
  const targets = imageTargets(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
1279
1625
  id: p.attempt.family?.id ?? p.id,
1280
1626
  harness: p.attempt.harness,
@@ -1288,7 +1634,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1288
1634
  evals: t.evals,
1289
1635
  stages: await imageStages(t, config.root)
1290
1636
  })));
1291
- const { lockfiles } = await import("./state-CKIjZZRK.js");
1637
+ const { lockfiles } = await import("./state-CltRWlCu.js");
1292
1638
  const locks = (await lockfiles(config.root)).map(({ path }) => ({
1293
1639
  path: join(config.root, path),
1294
1640
  kind: "lockfile"
@@ -1303,18 +1649,24 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1303
1649
  judges: running.flatMap((p) => p.attempt.judge ? [p.attempt.judge] : [])
1304
1650
  });
1305
1651
  for (const { names } of needed) for (const name of names) secrets.add(name);
1306
- const doc = planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort());
1652
+ const { notCloud } = await import("./cloud-run-C08P_Uap.js");
1653
+ const blocked = notCloud(skipped);
1654
+ const doc = {
1655
+ ...planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort()),
1656
+ ...blocked.length ? { notCloud: blocked } : {},
1657
+ ...started.target ? { target: started.target } : {}
1658
+ };
1307
1659
  process.stdout.write(`${JSON.stringify(doc, null, 2)}\n`);
1308
1660
  return false;
1309
1661
  }
1310
1662
  const elsewhere = setup.configElsewhere ? configFile : void 0;
1311
- const { scratchDir } = await import("./files-CAzVG3Rr.js");
1663
+ const { scratchDir } = await import("./files-DNgQwgA0.js");
1312
1664
  const lines = [];
1313
1665
  if (setup.dryRun) {
1314
1666
  const todos = excluded.filter((e) => e.mode === "todo").map((e) => e.id);
1315
1667
  lines.push(...planTable(plan, todos));
1316
- const { imageStatusLines } = await import("./images-Ch1y1t6_.js");
1317
- const { dockerAvailable, engineSpec } = await import("./src-jYqNkT-F.js");
1668
+ const { imageStatusLines } = await import("./images-SRE4f3SM.js");
1669
+ const { dockerAvailable, engineSpec } = await import("./src-DB0vml0O.js");
1318
1670
  const engines = [...new Set(targets.map((t) => t.sandbox.engine ?? "docker"))];
1319
1671
  const down = [];
1320
1672
  for (const engine of engines) if (!await dockerAvailable(engine)) down.push(engine);
@@ -1323,9 +1675,10 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1323
1675
  const names = down.map((e) => engineSpec(e).name).join(" and ");
1324
1676
  lines.push(`images not checked: ${names} ${down.length === 1 ? "is" : "are"} not running`);
1325
1677
  }
1326
- const { costLine } = await import("./cost-IM80LyGD.js");
1678
+ const { costLine } = await import("./cost-a_rUSdsf.js");
1327
1679
  const cost = plan.cost && costLine(plan.cost);
1328
1680
  if (cost) lines.push(cost);
1681
+ if (started.targetDetail) lines.push(started.targetDetail);
1329
1682
  }
1330
1683
  renderer.onEvent({
1331
1684
  type: "plan",
@@ -1407,7 +1760,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1407
1760
  });
1408
1761
  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
1762
  if (asked.length) {
1410
- const { questionRunner } = await import("./questions-Csv64WCb.js");
1763
+ const { questionRunner } = await import("./questions-DnqkJga0.js");
1411
1764
  const warned = /* @__PURE__ */ new Set();
1412
1765
  questions = questionRunner({
1413
1766
  evals: asked,
@@ -1449,7 +1802,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1449
1802
  }
1450
1803
  });
1451
1804
  }
1452
- const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-CnRbV8cM.js");
1805
+ const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-BKcNJAPb.js");
1453
1806
  const live = skipped.filter((p) => !p.attempt.plan.skip);
1454
1807
  const outcomes = await prepareWorkspaces(live.flatMap(({ attempt: a }) => a.workspace ? [{
1455
1808
  workspace: a.workspace,
@@ -1542,7 +1895,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1542
1895
  };
1543
1896
  let engineRun;
1544
1897
  let cutShort = false;
1545
- const { MACHINES, MachineService } = await import("./machine-service-2lIv5UWF.js");
1898
+ const { MACHINES, MachineService } = await import("./machine-service-DpJScNtA.js");
1546
1899
  const machines = new MachineService();
1547
1900
  try {
1548
1901
  engineRun = await runEngine({
@@ -1550,7 +1903,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1550
1903
  filters,
1551
1904
  onPlan,
1552
1905
  services: {
1553
- call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
1906
+ call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : service === "secrets" ? Promise.resolve(heldSecrets()) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
1554
1907
  released: (owner) => machines.released(owner)
1555
1908
  },
1556
1909
  onRunStart: (files) => {
@@ -1586,6 +1939,15 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1586
1939
  questions?.onEvalEnd(e.result);
1587
1940
  }
1588
1941
  if (interrupted && e.type === "eval-end" && e.result.state === "skipped") return;
1942
+ if (e.type === "eval-progress" && e.progress.kind === "secret-warning") {
1943
+ const { kind: _, at, ...warning } = e.progress;
1944
+ return renderer.onEvent({
1945
+ type: "secret-warning",
1946
+ at,
1947
+ attemptId: e.key,
1948
+ ...warning
1949
+ });
1950
+ }
1589
1951
  renderer.onEvent(e);
1590
1952
  },
1591
1953
  onCancelable: (cancel) => {
@@ -1648,9 +2010,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
1648
2010
  } finally {
1649
2011
  clearTimeout(budgetTimer);
1650
2012
  await machines.close();
1651
- const { removePrepared } = await import("./preflight-zsAn3heN.js");
2013
+ const { removePrepared } = await import("./preflight-DEV_vrdB.js");
1652
2014
  removePrepared(config.root, runId);
1653
- const { removePreparedWorkspaces } = await import("./workspace-CnRbV8cM.js");
2015
+ const { removePreparedWorkspaces } = await import("./workspace-BKcNJAPb.js");
1654
2016
  removePreparedWorkspaces(config.root, runId);
1655
2017
  }
1656
2018
  if (preflightStop) throw preflightStop;
@@ -1738,4 +2100,4 @@ run(process.argv.slice(2)).finally(() => {
1738
2100
  });
1739
2101
  export {};
1740
2102
 
1741
- //# sourceMappingURL=cli-BgBBuxxJ.js.map
2103
+ //# sourceMappingURL=cli-Z7aw8k25.js.map