reeval 0.23.0 → 0.25.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.
- package/CHANGELOG.md +66 -0
- package/README.md +17 -17
- package/THIRD_PARTY_NOTICES.md +0 -2068
- package/assets/package.json +1 -1
- package/assets/pnpm-lock.yaml +65 -50
- package/dist/{adapter-Dlq3-4OS.js → adapter-vLxVtLdk.js} +6 -6
- package/dist/{adapter-Dlq3-4OS.js.map → adapter-vLxVtLdk.js.map} +1 -1
- package/dist/{agent-OsAfayRf.js → agent-DN36i629.js} +9 -9
- package/dist/{agent-OsAfayRf.js.map → agent-DN36i629.js.map} +1 -1
- package/dist/{agents-BztvTkfM.js → agents-Bp40Y7Lk.js} +47 -59
- package/dist/agents-Bp40Y7Lk.js.map +1 -0
- package/dist/{analysis-BnG_1x_O.js → analysis-8vvMnUJB.js} +4 -5
- package/dist/analysis-8vvMnUJB.js.map +1 -0
- package/dist/api-ZeGnedB3.js +141 -0
- package/dist/api-ZeGnedB3.js.map +1 -0
- package/dist/assemble-ChNVeWNr.js +1 -0
- package/dist/{assemble-Doa1m-HW.js → assemble-DsllweEG.js} +132 -68
- package/dist/assemble-DsllweEG.js.map +1 -0
- package/dist/{attach-BH2HdwH_.js → attach-DFf2hFl7.js} +18 -10
- package/dist/attach-DFf2hFl7.js.map +1 -0
- package/dist/{attempt-_dUsblVx.js → attempt-CfwXgF2q.js} +3 -3
- package/dist/{attempt-_dUsblVx.js.map → attempt-CfwXgF2q.js.map} +1 -1
- package/dist/{attempt-host-8mQV8Uee.js → attempt-host-XyyFR6jc.js} +37 -14
- package/dist/attempt-host-XyyFR6jc.js.map +1 -0
- package/dist/boat-BCNNEJni.js +298 -0
- package/dist/boat-BCNNEJni.js.map +1 -0
- package/dist/{boat-DKjqo_ie.js → boat-CNUnhvWH.js} +117 -197
- package/dist/boat-CNUnhvWH.js.map +1 -0
- package/dist/boat-DRTQHXlj.js +1 -0
- package/dist/{boat-images-CRN_U_eG.js → boat-images-B0MsRBFx.js} +18 -22
- package/dist/boat-images-B0MsRBFx.js.map +1 -0
- package/dist/{bundle-DU2aQVeq.js → bundle-B1v8DEEX.js} +26 -15
- package/dist/bundle-B1v8DEEX.js.map +1 -0
- package/dist/{capture-By1byHaX.js → capture-BAtaw-L-.js} +20 -19
- package/dist/{capture-By1byHaX.js.map → capture-BAtaw-L-.js.map} +1 -1
- package/dist/capture-DOHR_KXl.js +1 -0
- package/dist/cases-Bsp-G-ZL.js +1 -0
- package/dist/{cases-CM-MQRQp.js → cases-C6vnV-gn.js} +61 -43
- package/dist/cases-C6vnV-gn.js.map +1 -0
- package/dist/classify-BIJQ2Xqo.js +163 -0
- package/dist/classify-BIJQ2Xqo.js.map +1 -0
- package/dist/{cli-DMHOwdVr.js → cli-BFfZy9Ax.js} +385 -178
- package/dist/cli-BFfZy9Ax.js.map +1 -0
- package/dist/{cli-spec-D0wuUaj9.js → cli-spec-Bj2z-4Pa.js} +242 -39
- package/dist/cli-spec-Bj2z-4Pa.js.map +1 -0
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +1 -1
- package/dist/client-Dj65gXG3.js +105 -0
- package/dist/client-Dj65gXG3.js.map +1 -0
- package/dist/cloud-DgMSxpCk.js +154 -0
- package/dist/cloud-DgMSxpCk.js.map +1 -0
- package/dist/{hosted-5Zz2peTR.js → cloud-TuNUlZ0L.js} +31 -31
- package/dist/cloud-TuNUlZ0L.js.map +1 -0
- package/dist/cloud-files-BjoNhDJs.js +301 -0
- package/dist/cloud-files-BjoNhDJs.js.map +1 -0
- package/dist/cloud-project-B1lN8D9m.js +1 -0
- package/dist/cloud-project-Dh17iadw.js +110 -0
- package/dist/cloud-project-Dh17iadw.js.map +1 -0
- package/dist/cloud-push-CdYqsM34.js +817 -0
- package/dist/cloud-push-CdYqsM34.js.map +1 -0
- package/dist/cloud-push-GXvEYHoa.js +1 -0
- package/dist/cloud-run-BfFCs6Fm.js +1 -0
- package/dist/cloud-run-CZOpabN1.js +517 -0
- package/dist/cloud-run-CZOpabN1.js.map +1 -0
- package/dist/cloud-secrets-BskXM_2n.js +1 -0
- package/dist/cloud-secrets-DrrgGOF_.js +345 -0
- package/dist/cloud-secrets-DrrgGOF_.js.map +1 -0
- package/dist/{command-CXxckfsq.js → command-Bic6f84Y.js} +28 -130
- package/dist/command-Bic6f84Y.js.map +1 -0
- package/dist/{command-CAmnWLFL.js → command-C7m3ZoXS.js} +93 -27
- package/dist/command-C7m3ZoXS.js.map +1 -0
- package/dist/command-DHrT6YVl.js +183 -0
- package/dist/command-DHrT6YVl.js.map +1 -0
- package/dist/command-DMwSLfJT.js +141 -0
- package/dist/command-DMwSLfJT.js.map +1 -0
- package/dist/{command-ao0NZ8h0.js → command-DP8sQ-dk.js} +29 -23
- package/dist/command-DP8sQ-dk.js.map +1 -0
- package/dist/{commands-ttChCsAy.js → commands-BPLexk6R.js} +62 -41
- package/dist/commands-BPLexk6R.js.map +1 -0
- package/dist/commands-D8D7ZJ0I.js +1 -0
- package/dist/{config-myJT1Qjc.js → config-DQqcGmz7.js} +67 -47
- package/dist/config-DQqcGmz7.js.map +1 -0
- package/dist/core-BXYzOEyQ.js +2058 -0
- package/dist/core-BXYzOEyQ.js.map +1 -0
- package/dist/{slug-IHh3f770.js → cost-DQ0ayy6h.js} +37 -2
- package/dist/cost-DQ0ayy6h.js.map +1 -0
- package/dist/{cost-C21gGrju.js → cost-Dp-xFGJ1.js} +2 -2
- package/dist/{cost-C21gGrju.js.map → cost-Dp-xFGJ1.js.map} +1 -1
- package/dist/{cost-CdRX1s2p.js → cost-a_rUSdsf.js} +1 -1
- package/dist/{cursor-catalog-CUQrabJ_.js → cursor-catalog-DQCmwsX3.js} +4 -4
- package/dist/{cursor-catalog-CUQrabJ_.js.map → cursor-catalog-DQCmwsX3.js.map} +1 -1
- package/dist/{daytona-Dfhwtr9P.js → daytona-DOeJzXl_.js} +27 -19
- package/dist/daytona-DOeJzXl_.js.map +1 -0
- package/dist/{daytona-image-CnG6G00x.js → daytona-image-B9JpVeP5.js} +5 -4
- package/dist/daytona-image-B9JpVeP5.js.map +1 -0
- package/dist/daytona-image-BsCbvDGn.js +1 -0
- package/dist/db-BqFlDMmS.js +1 -0
- package/dist/{db-5H95sFii.js → db-DU3fgU0h.js} +32 -120
- package/dist/db-DU3fgU0h.js.map +1 -0
- package/dist/debug-CGg7KHKq.js +1 -0
- package/dist/{debug-CIXzB4wK.js → debug-T29p6HOX.js} +2 -10
- package/dist/debug-T29p6HOX.js.map +1 -0
- package/dist/{default-effort-DYpCkJRk.js → default-effort-BFl6WLBi.js} +3 -3
- package/dist/{default-effort-DYpCkJRk.js.map → default-effort-BFl6WLBi.js.map} +1 -1
- package/dist/{default-effort-CtNY9CGW.js → default-effort-C6Gcd-Fy.js} +1 -1
- package/dist/{dist-DeqeCUZe.js → dist-DCG7vZGQ.js} +3 -3
- package/dist/{dist-DeqeCUZe.js.map → dist-DCG7vZGQ.js.map} +1 -1
- package/dist/{docker-kpudeSxV.js → docker-B5YBmpPz.js} +1 -1
- package/dist/{docker-CR0JZ1FE.js → docker-hIo_H0W0.js} +4 -4
- package/dist/{docker-CR0JZ1FE.js.map → docker-hIo_H0W0.js.map} +1 -1
- package/dist/{doctor-aE-RMbB_.js → doctor-DGWbvYtu.js} +29 -29
- package/dist/{doctor-aE-RMbB_.js.map → doctor-DGWbvYtu.js.map} +1 -1
- package/dist/duration-Bz2H7pXb.js +34 -0
- package/dist/duration-Bz2H7pXb.js.map +1 -0
- package/dist/{environment-C8pUCD_A.js → environment-WC8PrLoe.js} +14 -11
- package/dist/environment-WC8PrLoe.js.map +1 -0
- package/dist/errors-BjzEWESY.js +93 -0
- package/dist/errors-BjzEWESY.js.map +1 -0
- package/dist/{errors-DPUoUTdK.js → errors-Cda7UzRA.js} +2 -2
- package/dist/{errors-DPUoUTdK.js.map → errors-Cda7UzRA.js.map} +1 -1
- package/dist/{eval-source-CaLIGH3U.js → eval-source-DL1HOi8U.js} +6 -6
- package/dist/{eval-source-CaLIGH3U.js.map → eval-source-DL1HOi8U.js.map} +1 -1
- package/dist/{evaluate-4kBVtwZZ.js → evaluate-DHnD8yzq.js} +280 -59
- package/dist/evaluate-DHnD8yzq.js.map +1 -0
- package/dist/{evaluate-DHaNtgVf.d.ts → evaluate-Nnh0iPuo.d.ts} +2 -3
- package/dist/{events-CXxFvVMK.js → events-oe84EOLK.js} +153 -34
- package/dist/{events-CXxFvVMK.js.map → events-oe84EOLK.js.map} +1 -1
- package/dist/{fake-bootstrap-CzxrCqO3.js → fake-bootstrap-Ct1qEs-Z.js} +2 -2
- package/dist/{fake-bootstrap-CzxrCqO3.js.map → fake-bootstrap-Ct1qEs-Z.js.map} +1 -1
- package/dist/files-2fO6iaJG.js +1 -0
- package/dist/{files-DpwJW3w6.js → files-4Qt4KUyR.js} +3 -3
- package/dist/{files-DpwJW3w6.js.map → files-4Qt4KUyR.js.map} +1 -1
- package/dist/{files-DgHeTdCZ.js → files-4XWe_gow.js} +27 -41
- package/dist/files-4XWe_gow.js.map +1 -0
- package/dist/files-63CNzRBF.js +1 -0
- package/dist/files-BDkCNIEh.js +1 -0
- package/dist/{files-CDfG8swM.js → files-Bv6ipFjc.js} +27 -18
- package/dist/files-Bv6ipFjc.js.map +1 -0
- package/dist/{files-Cs2dtb7-.js → files-ClUbQPj9.js} +2 -2
- package/dist/{files-Cs2dtb7-.js.map → files-ClUbQPj9.js.map} +1 -1
- package/dist/files-CzgXLYGq.js +1609 -0
- package/dist/files-CzgXLYGq.js.map +1 -0
- package/dist/files-DCcRkJN4.js +1 -0
- package/dist/{files-BkvxIqfI.js → files-DW8y3WCx.js} +5 -5
- package/dist/{files-BkvxIqfI.js.map → files-DW8y3WCx.js.map} +1 -1
- package/dist/gateway.d.ts +2 -3
- package/dist/{git-BnnNEXqh.js → git-CiCya2yZ.js} +3 -3
- package/dist/{git-BnnNEXqh.js.map → git-CiCya2yZ.js.map} +1 -1
- package/dist/{harness-FcTyyPco.js → harness-Dcd3ffkY.js} +3 -2
- package/dist/harness-Dcd3ffkY.js.map +1 -0
- package/dist/{harness-nwnyghJZ.js → harness-DvqNGwl6.js} +3 -3
- package/dist/{harness-nwnyghJZ.js.map → harness-DvqNGwl6.js.map} +1 -1
- package/dist/{harness-install-BfMBYDfP.js → harness-install-BSet5fE5.js} +4 -3
- package/dist/harness-install-BSet5fE5.js.map +1 -0
- package/dist/harness.d.ts +2 -3
- package/dist/harness.js +1 -1
- package/dist/http-DtlSzw4A.js +96 -0
- package/dist/http-DtlSzw4A.js.map +1 -0
- package/dist/{ids-a6cr243_.js → ids-CtxRn13a.js} +3 -2
- package/dist/ids-CtxRn13a.js.map +1 -0
- package/dist/{images-DtXwj2wL.js → images-BkJn7NHU.js} +13 -13
- package/dist/{images-DtXwj2wL.js.map → images-BkJn7NHU.js.map} +1 -1
- package/dist/index.d.ts +9 -5
- package/dist/index.js +4 -5
- package/dist/init-BOYNr3Ql.js +1 -0
- package/dist/{init-Ci_IAp8p.js → init-CAJvEKEt.js} +6 -6
- package/dist/{init-Ci_IAp8p.js.map → init-CAJvEKEt.js.map} +1 -1
- package/dist/{ink-list-Dnh6XD3C.js → ink-list-BJIKlKpN.js} +3 -3
- package/dist/{ink-list-Dnh6XD3C.js.map → ink-list-BJIKlKpN.js.map} +1 -1
- package/dist/{inputs-z4JqnQ5g.js → inputs-CjhDEzr4.js} +6 -6
- package/dist/{inputs-z4JqnQ5g.js.map → inputs-CjhDEzr4.js.map} +1 -1
- package/dist/inputs-load-C8HEtAej.js +1 -0
- package/dist/{inputs-load-DPUP_IFL.js → inputs-load-DQRC3dUA.js} +3 -3
- package/dist/{inputs-load-DPUP_IFL.js.map → inputs-load-DQRC3dUA.js.map} +1 -1
- package/dist/internal/vm-api/boat.d.ts +46 -0
- package/dist/internal/vm-api/boat.js +1 -0
- package/dist/internal/vm-api/daytona.d.ts +26 -0
- package/dist/internal/vm-api/daytona.js +220 -0
- package/dist/internal/vm-api/daytona.js.map +1 -0
- package/dist/internal/vm-api.d.ts +86 -0
- package/dist/internal/vm-api.js +3 -0
- package/dist/internal/vm.d.ts +7 -8
- package/dist/internal/vm.js +6 -6
- package/dist/internal/vm.js.map +1 -1
- package/dist/{invocations-C1gY3E0J.js → invocations-DUFiIb_S.js} +6 -6
- package/dist/{invocations-C1gY3E0J.js.map → invocations-DUFiIb_S.js.map} +1 -1
- package/dist/issue-BKMnnit3.js +120 -0
- package/dist/issue-BKMnnit3.js.map +1 -0
- package/dist/issue-esBvB5Df.js +1 -0
- package/dist/{jiti-ILwyxt93.js → jiti-aNfS_lSj.js} +2 -2
- package/dist/{jiti-ILwyxt93.js.map → jiti-aNfS_lSj.js.map} +1 -1
- package/dist/{judge-DwzqucLS.js → judge-_fsdF4YB.js} +7 -4
- package/dist/judge-_fsdF4YB.js.map +1 -0
- package/dist/judge.d.ts +5 -6
- package/dist/judge.js +1 -1
- package/dist/{judgments-Cj8bFaDG.js → judgments-CVCUWT-g.js} +8 -5
- package/dist/{judgments-Cj8bFaDG.js.map → judgments-CVCUWT-g.js.map} +1 -1
- package/dist/{kinds-DEKXOWVJ.js → kinds-5utDFJ15.js} +37 -12
- package/dist/kinds-5utDFJ15.js.map +1 -0
- package/dist/labels-Dtyf5-pd.js +251 -0
- package/dist/labels-Dtyf5-pd.js.map +1 -0
- package/dist/{layout-nCnU9Vu2.js → layout-Co4tPHWI.js} +3 -3
- package/dist/{layout-nCnU9Vu2.js.map → layout-Co4tPHWI.js.map} +1 -1
- package/dist/link-Dat_O7Gn.js +128 -0
- package/dist/link-Dat_O7Gn.js.map +1 -0
- package/dist/{list-MK4L8tfW.js → list-CjcNH-5e.js} +13 -8
- package/dist/list-CjcNH-5e.js.map +1 -0
- package/dist/live-BElpkw5b.js +56 -0
- package/dist/live-BElpkw5b.js.map +1 -0
- package/dist/{live-Dlq-S2yy.js → live-BRF0ogR6.js} +3 -5
- package/dist/live-BRF0ogR6.js.map +1 -0
- package/dist/{machine-service-Byl0BlcT.js → machine-service-Cymfk7E-.js} +1 -1
- package/dist/{machine-service-CZiXiVsS.js → machine-service-DYdTM_rW.js} +146 -13
- package/dist/machine-service-DYdTM_rW.js.map +1 -0
- package/dist/{machines-Ch5bhgvk.js → machines-B6rS9-Xu.js} +38 -38
- package/dist/{machines-Ch5bhgvk.js.map → machines-B6rS9-Xu.js.map} +1 -1
- package/dist/markdown-COts-jxf.js +653 -0
- package/dist/markdown-COts-jxf.js.map +1 -0
- package/dist/{model-lLaUxxno.js → model-BdLvfSQO.js} +1 -1
- package/dist/{model-DRa7yv6K.js → model-CIMBjBS7.js} +5 -5
- package/dist/{model-DRa7yv6K.js.map → model-CIMBjBS7.js.map} +1 -1
- package/dist/model-CrsA2Evf.js +1 -0
- package/dist/{model-CRh8aiYS.js → model-oBFmfzES.js} +4 -4
- package/dist/{model-CRh8aiYS.js.map → model-oBFmfzES.js.map} +1 -1
- package/dist/{model-LoLnq9y1.js → model-xemZQ7DK.js} +251 -65
- package/dist/model-xemZQ7DK.js.map +1 -0
- package/dist/{node-BQjSQw0d.js → node-DyRPGAT5.js} +19 -8
- package/dist/{node-BQjSQw0d.js.map → node-DyRPGAT5.js.map} +1 -1
- package/dist/options-CeIRZslO.js +1 -0
- package/dist/otlp-ehLWBhVL.js +123 -0
- package/dist/otlp-ehLWBhVL.js.map +1 -0
- package/dist/outcome-1LBk2e3w.js +38 -0
- package/dist/outcome-1LBk2e3w.js.map +1 -0
- package/dist/{patch-D8X6VB-e.js → patch-BgSw3TXR.js} +3 -3
- package/dist/{patch-D8X6VB-e.js.map → patch-BgSw3TXR.js.map} +1 -1
- package/dist/{patch-C7yBztZj.js → patch-uwo6t4Zy.js} +26 -2
- package/dist/patch-uwo6t4Zy.js.map +1 -0
- package/dist/{pi-providers-HygmL1y-.js → pi-providers-BjcQv2A1.js} +23 -9
- package/dist/{pi-providers-HygmL1y-.js.map → pi-providers-BjcQv2A1.js.map} +1 -1
- package/dist/{plain-Ctn8oUdp.js → plain-DXUNwqpO.js} +2 -2
- package/dist/{plain-Ctn8oUdp.js.map → plain-DXUNwqpO.js.map} +1 -1
- package/dist/{plan-DgIVIrXJ.js → plan-x-_vZMQH.js} +11 -11
- package/dist/{plan-DgIVIrXJ.js.map → plan-x-_vZMQH.js.map} +1 -1
- package/dist/{plugins-DvEbow6a.js → plugins-0DuNw_c5.js} +7 -7
- package/dist/{plugins-DvEbow6a.js.map → plugins-0DuNw_c5.js.map} +1 -1
- package/dist/{preflight-dJqs5x3r.js → preflight-0Wt3wufx.js} +1 -1
- package/dist/preflight-CKrvQ-of.js +1 -0
- package/dist/{preflight-BKGbxN67.js → preflight-CUc-Y1d3.js} +9 -9
- package/dist/{preflight-BKGbxN67.js.map → preflight-CUc-Y1d3.js.map} +1 -1
- package/dist/{preflight-Qm4wE094.js → preflight-Cce8YEPE.js} +4 -4
- package/dist/{preflight-Qm4wE094.js.map → preflight-Cce8YEPE.js.map} +1 -1
- package/dist/{prepare-CRPPfRJf.js → prepare-Bj8KzeBU.js} +2 -2
- package/dist/{prepare-BAjRSoku.js → prepare-FXc1YcxO.js} +8 -8
- package/dist/{prepare-BAjRSoku.js.map → prepare-FXc1YcxO.js.map} +1 -1
- package/dist/prices-CfnkJOth.js +1 -0
- package/dist/{prices-DCokI_Ka.js → prices-CoLymMRd.js} +3 -3
- package/dist/{prices-DCokI_Ka.js.map → prices-CoLymMRd.js.map} +1 -1
- package/dist/process-B86Nvm4J.js +118 -0
- package/dist/process-B86Nvm4J.js.map +1 -0
- package/dist/provenance-Cylt_YxT.d.ts +222 -0
- package/dist/{provenance-CSyRCc9B.js → provenance-DDZGWE4O.js} +6 -6
- package/dist/{provenance-CSyRCc9B.js.map → provenance-DDZGWE4O.js.map} +1 -1
- package/dist/provider-B24hZX95.js +1 -0
- package/dist/{provider-ieWOn4YS.js → provider-Cn7lmECy.js} +2 -2
- package/dist/{provider-ieWOn4YS.js.map → provider-Cn7lmECy.js.map} +1 -1
- package/dist/{provider-stop-CxzWW7Ft.js → provider-stop-DjBMfZW5.js} +2 -2
- package/dist/{provider-stop-CxzWW7Ft.js.map → provider-stop-DjBMfZW5.js.map} +1 -1
- package/dist/{providers-DxZ26YoG.js → providers-BPujoqQM.js} +1 -1
- package/dist/{providers-DkaEJvF5.js → providers-Cqb25Aq1.js} +35 -35
- package/dist/{providers-DkaEJvF5.js.map → providers-Cqb25Aq1.js.map} +1 -1
- package/dist/{query-BL66BOqL.js → query-C_lwW-ok.js} +2 -2
- package/dist/{query-BL66BOqL.js.map → query-C_lwW-ok.js.map} +1 -1
- package/dist/query-DzS1Z4bw.js +1 -0
- package/dist/{questions-boVPzGoC.js → questions-DRPM7pky.js} +19 -13
- package/dist/questions-DRPM7pky.js.map +1 -0
- package/dist/{recipe-qyIpP96r.js → recipe-CV_EifJk.js} +4 -4
- package/dist/{recipe-qyIpP96r.js.map → recipe-CV_EifJk.js.map} +1 -1
- package/dist/{record-D1_D1KFY.js → record-Cj3yWR0E.js} +50 -13
- package/dist/record-Cj3yWR0E.js.map +1 -0
- package/dist/{redact-t-L3VGy8.js → redact-DMueYS-v.js} +28 -6
- package/dist/redact-DMueYS-v.js.map +1 -0
- package/dist/{remarks-DqriPKxm.js → remarks-BPKGorBW.js} +4 -2
- package/dist/remarks-BPKGorBW.js.map +1 -0
- package/dist/{remarks-DEvk5f8v.js → remarks-Bded6YeV.js} +22 -12
- package/dist/{remarks-DEvk5f8v.js.map → remarks-Bded6YeV.js.map} +1 -1
- package/dist/{remote-CQoBRpOv.js → remote-DMuAUedR.js} +9 -7
- package/dist/{remote-CQoBRpOv.js.map → remote-DMuAUedR.js.map} +1 -1
- package/dist/renderer/ascii.d.ts +6 -0
- package/dist/renderer/ascii.js +7 -0
- package/dist/renderer/ascii.js.map +1 -0
- package/dist/renderer/markdown.d.ts +31 -0
- package/dist/renderer/markdown.js +1 -0
- package/dist/report-BSi-R8hC.js +941 -0
- package/dist/report-BSi-R8hC.js.map +1 -0
- package/dist/report-inputs-JhiwKAZH.js +113 -0
- package/dist/report-inputs-JhiwKAZH.js.map +1 -0
- package/dist/{resolve-Bfo8sjd-.js → resolve-BEltmYhD.js} +23 -7
- package/dist/resolve-BEltmYhD.js.map +1 -0
- package/dist/resolve-s6JzFZu0.js +1 -0
- package/dist/{resolve-D2RqmybX.js → resolve-usf6ejs_.js} +64 -19
- package/dist/resolve-usf6ejs_.js.map +1 -0
- package/dist/{results-BpxzyoMd.js → results-rYLTGa1F.js} +11 -7
- package/dist/{results-BpxzyoMd.js.map → results-rYLTGa1F.js.map} +1 -1
- package/dist/{resume-2ekm_9OB.js → resume-aGIZhM58.js} +7 -7
- package/dist/{resume-2ekm_9OB.js.map → resume-aGIZhM58.js.map} +1 -1
- package/dist/{retry-CAhpW1hH.js → retry-BNFAHTES.js} +5 -5
- package/dist/{retry-CAhpW1hH.js.map → retry-BNFAHTES.js.map} +1 -1
- package/dist/{root-BzeoyfGd.js → root-Co0jhOT5.js} +2 -2
- package/dist/{root-BzeoyfGd.js.map → root-Co0jhOT5.js.map} +1 -1
- package/dist/run-DSKRllpd.js +127 -0
- package/dist/run-DSKRllpd.js.map +1 -0
- package/dist/{client-B41UK150.js → runtime-B2zv9GPL.js} +525 -105
- package/dist/runtime-B2zv9GPL.js.map +1 -0
- package/dist/sandbox/boat.d.ts +4 -5
- package/dist/sandbox/boat.js +2 -2
- package/dist/sandbox/daytona.d.ts +4 -5
- package/dist/sandbox/daytona.js +1 -1
- package/dist/{sandbox-t-Q-8lA_.js → sandbox-DbTHBA7g.js} +3 -3
- package/dist/{sandbox-t-Q-8lA_.js.map → sandbox-DbTHBA7g.js.map} +1 -1
- package/dist/sandbox.d.ts +4 -5
- package/dist/sandbox.js +1 -1
- package/dist/secrets-file-BEScYC3S.js +100 -0
- package/dist/secrets-file-BEScYC3S.js.map +1 -0
- package/dist/secrets-file-take-BXfYMTM-.js +33 -0
- package/dist/secrets-file-take-BXfYMTM-.js.map +1 -0
- package/dist/server-BIqAFNjF.js +1 -0
- package/dist/server-Dc-V_-C1.js +204 -0
- package/dist/server-Dc-V_-C1.js.map +1 -0
- package/dist/{services-BG8xuU82.js → services-CHh83UDC.js} +4 -2
- package/dist/services-CHh83UDC.js.map +1 -0
- package/dist/shared-B3iLKAiu.d.ts +1 -0
- package/dist/{shared-DtZwIAfy.js → shared-bXaqVxk-.js} +5 -34
- package/dist/shared-bXaqVxk-.js.map +1 -0
- package/dist/skill-dirs-B7o83G5I.js +63 -0
- package/dist/skill-dirs-B7o83G5I.js.map +1 -0
- package/dist/{source-CrXM19HD.js → source-BodZTD70.js} +33 -18
- package/dist/source-BodZTD70.js.map +1 -0
- package/dist/source-BtdFbZLW.js +1 -0
- package/dist/spans-C3FlFC22.js +1 -0
- package/dist/spans-Dq3fo6HM.js +6 -0
- package/dist/spans-Dq3fo6HM.js.map +1 -0
- package/dist/spans-WvAmJF2z.js +72 -0
- package/dist/spans-WvAmJF2z.js.map +1 -0
- package/dist/{src-C6MsGyD6.js → src-AAdLbAn2.js} +1 -1
- package/dist/{src-VG2IRoT4.js → src-BbaLTc-p.js} +2 -2
- package/dist/src-BjiNaGf5.js +2 -0
- package/dist/{src-Cf4vRyea.js → src-BkkdN2w0.js} +2 -2
- package/dist/{src-C5rrQlt8.js → src-BzeiF5Lh.js} +197 -138
- package/dist/src-BzeiF5Lh.js.map +1 -0
- package/dist/{src-Ds1pmXTg.js → src-CfPSD_GS.js} +2 -2
- package/dist/{src-C-ChdnG6.js → src-ClMhIgi3.js} +2 -2
- package/dist/{src-C-ChdnG6.js.map → src-ClMhIgi3.js.map} +1 -1
- package/dist/{src-io_SKoZ5.js → src-D5i8gCa3.js} +2 -2
- package/dist/{src-Bb3k9Kn_.js → src-DDIV_RfE.js} +65 -10
- package/dist/{src-Bb3k9Kn_.js.map → src-DDIV_RfE.js.map} +1 -1
- package/dist/src-DXZXofCJ.js +1 -0
- package/dist/src-Db01fVzc.js +2 -0
- package/dist/{src-DwcTn4JY.js → src-DhZuOcgq.js} +5 -5
- package/dist/{src-DwcTn4JY.js.map → src-DhZuOcgq.js.map} +1 -1
- package/dist/{src-DwcCKsV0.js → src-DiBd7r1i.js} +3 -3
- package/dist/{src-DNWiU__5.js → src-Dm2YIeXn.js} +8 -8
- package/dist/{src-DNWiU__5.js.map → src-Dm2YIeXn.js.map} +1 -1
- package/dist/{src-c3ZQu7Uu.js → src-NYxoDS3b.js} +5 -5
- package/dist/{src-c3ZQu7Uu.js.map → src-NYxoDS3b.js.map} +1 -1
- package/dist/{src-C3OhA5pw.js → src-Y4AiZxLt.js} +5 -5
- package/dist/{src-C3OhA5pw.js.map → src-Y4AiZxLt.js.map} +1 -1
- package/dist/{src-Bf5RZlPi.js → src-YpmRtJmP.js} +2 -2
- package/dist/{src-Bf5RZlPi.js.map → src-YpmRtJmP.js.map} +1 -1
- package/dist/{ssh-pool-Dvfx5GuV.js → ssh-pool-B2c2vxzx.js} +20 -16
- package/dist/ssh-pool-B2c2vxzx.js.map +1 -0
- package/dist/ssh-pool-mcCYe6RO.js +1 -0
- package/dist/{start-COB07NpH.js → start-DyXCyHGX.js} +64 -12
- package/dist/start-DyXCyHGX.js.map +1 -0
- package/dist/{state-B319V1p8.js → state-CiR8Ema7.js} +21 -38
- package/dist/state-CiR8Ema7.js.map +1 -0
- package/dist/state-DBuFimCA.js +1 -0
- package/dist/store/local.d.ts +2 -3
- package/dist/store/s3.d.ts +2 -3
- package/dist/studio-share-C05twqpy.js +209 -0
- package/dist/studio-share-C05twqpy.js.map +1 -0
- package/dist/suite-fO-u8jlS.js +2 -0
- package/dist/{suite-D1tgXZxM.js → suite-oH7uiCRq.js} +108 -107
- package/dist/suite-oH7uiCRq.js.map +1 -0
- package/dist/summary-CTMWfnOF.js +75 -0
- package/dist/summary-CTMWfnOF.js.map +1 -0
- package/dist/{sync-mOG74RXH.js → sync-r8EvW6Hr.js} +6 -6
- package/dist/{sync-mOG74RXH.js.map → sync-r8EvW6Hr.js.map} +1 -1
- package/dist/{tart-DMppfbEm.js → tart-BUh58nxA.js} +37 -10
- package/dist/tart-BUh58nxA.js.map +1 -0
- package/dist/{tart-DmVuVsmX.js → tart-DNrumWZu.js} +1 -1
- package/dist/{tart-CzViW3WZ.js → tart-Duqp33Zh.js} +2 -2
- package/dist/{tart-CzViW3WZ.js.map → tart-Duqp33Zh.js.map} +1 -1
- package/dist/{tart-bake-Cva_qdir.js → tart-bake-ChrVpjuF.js} +8 -7
- package/dist/tart-bake-ChrVpjuF.js.map +1 -0
- package/dist/{tart-bake-DVIoXWr_.js → tart-bake-LwdUVOzS.js} +1 -1
- package/dist/{tart-cli-LzDud2Z6.js → tart-cli-Dv3dNC13.js} +3 -2
- package/dist/tart-cli-Dv3dNC13.js.map +1 -0
- package/dist/{tart-cli-D88c5YYJ.js → tart-cli-S388NU-r.js} +1 -1
- package/dist/{tart-hosts-CTRY5kQ2.js → tart-hosts-B-dQEGpc.js} +7 -6
- package/dist/tart-hosts-B-dQEGpc.js.map +1 -0
- package/dist/{tart-hosts-8N6Tt7Yb.js → tart-hosts-_nHGB4mC.js} +1 -1
- package/dist/{tart-images-JfHirU8W.js → tart-images-DAEYoC_M.js} +3 -3
- package/dist/{tart-images-JfHirU8W.js.map → tart-images-DAEYoC_M.js.map} +1 -1
- package/dist/testing.d.ts +13 -5
- package/dist/testing.js +4 -4
- package/dist/{tool-class-CncfCw03.js → tool-class-CB-m4PiF.js} +2 -2
- package/dist/{tool-class-CncfCw03.js.map → tool-class-CB-m4PiF.js.map} +1 -1
- package/dist/{trace-BpXByD7W.js → trace-CJQLlAbB.js} +2 -2
- package/dist/{trace-BpXByD7W.js.map → trace-CJQLlAbB.js.map} +1 -1
- package/dist/{traits-CCD8XsmI.js → traits-DPIffsN8.js} +2 -2
- package/dist/{traits-CCD8XsmI.js.map → traits-DPIffsN8.js.map} +1 -1
- package/dist/{transcript-BXWZiMuC.js → transcript-CW02A4s9.js} +3 -3
- package/dist/{transcript-BXWZiMuC.js.map → transcript-CW02A4s9.js.map} +1 -1
- package/dist/{resources-DqdwihhT.js → turn-error-Dmv_Muj7.js} +15 -2
- package/dist/turn-error-Dmv_Muj7.js.map +1 -0
- package/dist/{types-BDo8ttQo.d.ts → types-BZaItiui.d.ts} +209 -28
- package/dist/types-Buut5yGe.js +29 -0
- package/dist/types-Buut5yGe.js.map +1 -0
- package/dist/types-C48zuZbT.d.ts +156 -0
- package/dist/types-CYz4dqAd.d.ts +1366 -0
- package/dist/{ui-DUiVPbQ2.js → ui-CJvbt2Cc.js} +15 -14
- package/dist/ui-CJvbt2Cc.js.map +1 -0
- package/dist/vertex-D4H9bKHD.d.ts +2 -0
- package/dist/{vertex-BEWxHoxH.js → vertex-DQQGhUn7.js} +2 -2
- package/dist/{vertex-BEWxHoxH.js.map → vertex-DQQGhUn7.js.map} +1 -1
- package/dist/vertex-DtWe0Xf6.js +1 -0
- package/dist/view/index.d.ts +142 -810
- package/dist/view/index.js +17 -12
- package/dist/view/report/index.d.ts +217 -0
- package/dist/view/report/index.js +4 -0
- package/dist/{views-CiZGh3ws.js → views-CtnOlABJ.js} +6 -6
- package/dist/{views-CiZGh3ws.js.map → views-CtnOlABJ.js.map} +1 -1
- package/dist/views-crppDW_B.js +2 -0
- package/dist/{vm-container-BVn7pXfD.js → vm-container-DwroMAXW.js} +13 -10
- package/dist/vm-container-DwroMAXW.js.map +1 -0
- package/dist/{vm-images-CNk-Zl2a.js → vm-images-y0BcVyv3.js} +19 -21
- package/dist/vm-images-y0BcVyv3.js.map +1 -0
- package/dist/wait-CixM6W0G.js +65 -0
- package/dist/wait-CixM6W0G.js.map +1 -0
- package/dist/{worker-entry-DmXQ2Znu.js → worker-entry-8KHmPzr4.js} +7 -7
- package/dist/{worker-entry-DmXQ2Znu.js.map → worker-entry-8KHmPzr4.js.map} +1 -1
- package/dist/workspace-JlgoGyR0.js +1 -0
- package/dist/{workspace-wwvwEHzP.js → workspace-xCQ6VDR-.js} +9 -8
- package/dist/workspace-xCQ6VDR-.js.map +1 -0
- package/package.json +33 -9
- package/skills/reeval/SKILL.md +2 -2
- package/skills/reeval/references/cli.md +1 -1
- package/skills/reeval/references/config.md +1 -1
- package/skills/reeval/references/environments.md +1 -1
- package/skills/setup/SKILL.md +1 -1
- package/dist/agents-BztvTkfM.js.map +0 -1
- package/dist/analysis-BnG_1x_O.js.map +0 -1
- package/dist/app-files-6NHzghym.js +0 -10
- package/dist/app-files-6NHzghym.js.map +0 -1
- package/dist/assemble-Doa1m-HW.js.map +0 -1
- package/dist/assemble-XrZskSNj.js +0 -1
- package/dist/attach-BH2HdwH_.js.map +0 -1
- package/dist/attempt-host-8mQV8Uee.js.map +0 -1
- package/dist/boat-DKRH0Gv7.js +0 -1
- package/dist/boat-DKjqo_ie.js.map +0 -1
- package/dist/boat-images-CRN_U_eG.js.map +0 -1
- package/dist/bundle-DU2aQVeq.js.map +0 -1
- package/dist/capture-BzjNv0qP.js +0 -1
- package/dist/cases-CM-MQRQp.js.map +0 -1
- package/dist/cases-FvhbM8M5.js +0 -1
- package/dist/cli-DMHOwdVr.js.map +0 -1
- package/dist/cli-spec-D0wuUaj9.js.map +0 -1
- package/dist/client-B41UK150.js.map +0 -1
- package/dist/command-8GIHYGZf.js +0 -298
- package/dist/command-8GIHYGZf.js.map +0 -1
- package/dist/command-CAmnWLFL.js.map +0 -1
- package/dist/command-CXxckfsq.js.map +0 -1
- package/dist/command-ao0NZ8h0.js.map +0 -1
- package/dist/commands-B3lnIPj5.js +0 -1
- package/dist/commands-ttChCsAy.js.map +0 -1
- package/dist/config-myJT1Qjc.js.map +0 -1
- package/dist/context-DnzR9TNK.js +0 -120
- package/dist/context-DnzR9TNK.js.map +0 -1
- package/dist/daytona-Dfhwtr9P.js.map +0 -1
- package/dist/daytona-image-CnG6G00x.js.map +0 -1
- package/dist/daytona-image-yJK3c4EV.js +0 -1
- package/dist/db-5H95sFii.js.map +0 -1
- package/dist/db-Bbg1n_2M.js +0 -2
- package/dist/debug-CF4p4Lp_.js +0 -1
- package/dist/debug-CIXzB4wK.js.map +0 -1
- package/dist/environment-C8pUCD_A.js.map +0 -1
- package/dist/evaluate-4kBVtwZZ.js.map +0 -1
- package/dist/files-BFnkOAhn.js +0 -1
- package/dist/files-BgQxoDlN.js +0 -1
- package/dist/files-CDfG8swM.js.map +0 -1
- package/dist/files-CSe4VaMj.js +0 -1
- package/dist/files-CX_mmvCc.js +0 -775
- package/dist/files-CX_mmvCc.js.map +0 -1
- package/dist/files-D6M7J3iX.js +0 -1
- package/dist/files-DgHeTdCZ.js.map +0 -1
- package/dist/gate-CgYdaprG.js +0 -49
- package/dist/gate-CgYdaprG.js.map +0 -1
- package/dist/harness-FcTyyPco.js.map +0 -1
- package/dist/harness-install-BfMBYDfP.js.map +0 -1
- package/dist/hosted-5Zz2peTR.js.map +0 -1
- package/dist/hosted-Co-waHe0.js +0 -131
- package/dist/hosted-Co-waHe0.js.map +0 -1
- package/dist/hosted-run-202QicZ-.js +0 -1
- package/dist/hosted-run-BfAPIMyT.js +0 -230
- package/dist/hosted-run-BfAPIMyT.js.map +0 -1
- package/dist/ids-a6cr243_.js.map +0 -1
- package/dist/init-BiL6B3S4.js +0 -1
- package/dist/inputs-load-M-BGe7gd.js +0 -1
- package/dist/judge-DwzqucLS.js.map +0 -1
- package/dist/kinds-DEKXOWVJ.js.map +0 -1
- package/dist/list-MK4L8tfW.js.map +0 -1
- package/dist/live-BkPNXVmN.js +0 -120
- package/dist/live-BkPNXVmN.js.map +0 -1
- package/dist/live-Dlq-S2yy.js.map +0 -1
- package/dist/live-gZtkBwuo.js +0 -1
- package/dist/machine-service-CZiXiVsS.js.map +0 -1
- package/dist/model-C6aoJLg_.js +0 -1
- package/dist/model-LoLnq9y1.js.map +0 -1
- package/dist/options-I9I3FwMl.js +0 -1
- package/dist/pairs-BGb134Vu.js +0 -230
- package/dist/pairs-BGb134Vu.js.map +0 -1
- package/dist/patch-C7yBztZj.js.map +0 -1
- package/dist/paths-Dwmi7L4X.js +0 -75
- package/dist/paths-Dwmi7L4X.js.map +0 -1
- package/dist/preflight-fyV5nnea.js +0 -1
- package/dist/prices-C0gKS_8G.js +0 -1
- package/dist/provider-DHT20Gl8.js +0 -1
- package/dist/query-C9OKU1Vz.js +0 -1
- package/dist/questions-boVPzGoC.js.map +0 -1
- package/dist/record-D1_D1KFY.js.map +0 -1
- package/dist/redact-t-L3VGy8.js.map +0 -1
- package/dist/remarks-DqriPKxm.js.map +0 -1
- package/dist/resolve-BdpO8BN1.js +0 -1
- package/dist/resolve-Bfo8sjd-.js.map +0 -1
- package/dist/resolve-D2RqmybX.js.map +0 -1
- package/dist/resources-DqdwihhT.js.map +0 -1
- package/dist/runtime-C5fKSFCz.js +0 -457
- package/dist/runtime-C5fKSFCz.js.map +0 -1
- package/dist/server-BcLg9WzE.js +0 -284
- package/dist/server-BcLg9WzE.js.map +0 -1
- package/dist/server-Buav2-CG.js +0 -1
- package/dist/services-BG8xuU82.js.map +0 -1
- package/dist/shared-CHvO7eLi.d.ts +0 -1
- package/dist/shared-DtZwIAfy.js.map +0 -1
- package/dist/slug-IHh3f770.js.map +0 -1
- package/dist/source-CrXM19HD.js.map +0 -1
- package/dist/source-dvxkqYvk.js +0 -1
- package/dist/src-5dCrqbFd.js +0 -2
- package/dist/src-C5rrQlt8.js.map +0 -1
- package/dist/src-DEbNp-rx.js +0 -1
- package/dist/src-DrLbG1HM.js +0 -2
- package/dist/ssh-pool-BorCizYw.js +0 -1
- package/dist/ssh-pool-Dvfx5GuV.js.map +0 -1
- package/dist/start-COB07NpH.js.map +0 -1
- package/dist/state-B319V1p8.js.map +0 -1
- package/dist/state-C5oBvmoZ.js +0 -1
- package/dist/suite-BwJGOhCZ.js +0 -2
- package/dist/suite-D1tgXZxM.js.map +0 -1
- package/dist/summary-ClLns_wv.js +0 -169
- package/dist/summary-ClLns_wv.js.map +0 -1
- package/dist/tart-DMppfbEm.js.map +0 -1
- package/dist/tart-bake-Cva_qdir.js.map +0 -1
- package/dist/tart-cli-LzDud2Z6.js.map +0 -1
- package/dist/tart-hosts-CTRY5kQ2.js.map +0 -1
- package/dist/types-CbcnJxCy.js +0 -15
- package/dist/types-CbcnJxCy.js.map +0 -1
- package/dist/ui-DUiVPbQ2.js.map +0 -1
- package/dist/vertex-C7PI-WPc.d.ts +0 -3
- package/dist/vertex-DXfcXYKn.js +0 -1
- package/dist/views-B0qZR5Ef.js +0 -2
- package/dist/vm-container-BVn7pXfD.js.map +0 -1
- package/dist/vm-images-CNk-Zl2a.js.map +0 -1
- package/dist/workspace-CRgFdmgW.js +0 -1
- package/dist/workspace-wwvwEHzP.js.map +0 -1
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { n as UsageError } from "./errors-ttMTnIYX.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { y as vertexSettingsIn } from "./vertex-BEWxHoxH.js";
|
|
9
|
-
import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-C8pUCD_A.js";
|
|
10
|
-
import { At as resolveOutput, Dt as rootlessPodmanSwitch, Ot as setupEgress, R as checkLimitHarness, S as resolveModelGateway, U as harnessId, _ as selectProfile, _t as ciRunner, a as configPathFor, b as gatewayScope, c as findConfig, d as loadConfig, et as plannedSandboxIds, f as malformedCredentials, g as runJudgeModel, h as requireConfig, i as configLabel, l as givenConcurrency, m as neededCredentials, o as defaultConcurrency, p as missingCredentials, tt as plannedSandboxes, u as hostCapacity, v as withProfileHistory, vt as directOnCloud, xt as isDirect } from "./config-myJT1Qjc.js";
|
|
11
|
-
import { l as judgeModelName, m as unusedGatewayKey } from "./judge-DwzqucLS.js";
|
|
2
|
+
import { r as parseDuration } from "./duration-Bz2H7pXb.js";
|
|
3
|
+
import { i as INSTEAD, l as helpText, n as FLAGS, r as GLOBAL, s as commandHelpText, t as COMMANDS } from "./cli-spec-Bj2z-4Pa.js";
|
|
4
|
+
import { At as parseHeartbeat, 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, jt as resolveOutput, 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-DQqcGmz7.js";
|
|
5
|
+
import { v as wantsCloud } from "./cloud-run-CZOpabN1.js";
|
|
6
|
+
import { t as RUN_ID } from "./api-ZeGnedB3.js";
|
|
7
|
+
import { t as budgetMarker } from "./budget-BcxLYY5L.js";
|
|
12
8
|
import { n as loadEnvFiles, t as inCI } from "./env-8x1O8I1M.js";
|
|
13
|
-
import {
|
|
9
|
+
import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-WC8PrLoe.js";
|
|
10
|
+
import { d as notEventStream, f as openEventStream, l as isAttachUrl, n as ATTEMPTS_HEARTBEAT_RANGE, o as beatWith, p as teeRenderer, s as displayUrl, t as ATTEMPTS_HEARTBEAT_MS, u as isEventsUrl } from "./events-oe84EOLK.js";
|
|
14
11
|
import { r as openRouterFallbacks } from "./openrouter-models-B1sIOTD2.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
12
|
+
import { y as vertexSettingsIn } from "./vertex-DQQGhUn7.js";
|
|
13
|
+
import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-DDZGWE4O.js";
|
|
14
|
+
import { a as fromCwd, l as relativeFile, o as newRunId, r as cwdIn } from "./ids-CtxRn13a.js";
|
|
15
|
+
import { l as judgeModelName, m as unusedGatewayKey } from "./judge-_fsdF4YB.js";
|
|
16
|
+
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-aGIZhM58.js";
|
|
17
|
+
import { n as preflight } from "./preflight-CUc-Y1d3.js";
|
|
18
|
+
import { C as stripCredentials, S as registerSecret, _ as redactSecrets } from "./redact-DMueYS-v.js";
|
|
19
|
+
import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-DUFiIb_S.js";
|
|
20
|
+
import { o as PACKAGE_VERSION } from "./root-Co0jhOT5.js";
|
|
21
|
+
import { d as sandboxKind, l as sandboxCapacity, n as capabilitiesOf, r as cleanupRun, s as removeOrphans } from "./kinds-5utDFJ15.js";
|
|
22
|
+
import { i as heldSecrets, o as readSecretsFile } from "./secrets-file-BEScYC3S.js";
|
|
23
|
+
import { r as localStudio } from "./resolve-BEltmYhD.js";
|
|
24
|
+
import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-r8EvW6Hr.js";
|
|
25
|
+
import { i as formatDuration, n as clip } from "./text-B8-W3Cvn.js";
|
|
26
|
+
import { a as traitFilters, o as traitFlags, t as checkTraitKeys } from "./traits-DPIffsN8.js";
|
|
18
27
|
import { t as colors } from "./colors-DcXBvAlU.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { A as writeLiveProgress, C as restoreRetry, D as stoppedRetry, E as savedInvocation, O as sweepStaging, S as resolveRetry, T as savedFilters, _ as pruneEvents, a as eventsFile, b as resolveAttach, d as liveAttempts, f as loadPrevious, h as previousAttempt, i as erroredAttempts, k as writeCurrent, l as keptAttempts, m as prepareResume, o as holdRetry, p as noteRetries, r as completedKeysFor, t as CANCEL_SIGNAL, u as leftOutAttempts, w as resumeSettings, x as resolveResume, y as removeStoppedStaging } from "./resume-2ekm_9OB.js";
|
|
22
|
-
import { c as notEventStream, l as openEventStream, o as isAttachUrl, s as isEventsUrl, u as teeRenderer } from "./events-CXxFvVMK.js";
|
|
23
|
-
import { t as createRenderer } from "./ui-DUiVPbQ2.js";
|
|
24
|
-
import { n as preflight } from "./preflight-BKGbxN67.js";
|
|
25
|
-
import { t as budgetMarker } from "./budget-BcxLYY5L.js";
|
|
26
|
-
import { d as wantsHosted } from "./hosted-run-BfAPIMyT.js";
|
|
27
|
-
import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-C1gY3E0J.js";
|
|
28
|
+
import { t as createRenderer } from "./ui-CJvbt2Cc.js";
|
|
29
|
+
import { O as runOutcome } from "./model-xemZQ7DK.js";
|
|
28
30
|
import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
|
|
29
31
|
import { dirname, join, resolve } from "node:path";
|
|
30
32
|
import { appendFile, readFile, rm } from "node:fs/promises";
|
|
@@ -57,19 +59,19 @@ function parseCli(argv) {
|
|
|
57
59
|
};
|
|
58
60
|
});
|
|
59
61
|
for (const [name, spec] of Object.entries(COMMANDS)) {
|
|
60
|
-
const command = configure(program.command(name), `reeval ${name}`, spec.flags);
|
|
62
|
+
const command = configure(program.command(name), `reeval ${name}`, spec.flags, spec.secretArgs);
|
|
61
63
|
if (name === "query") takeStatements(command);
|
|
62
64
|
command.argument("[args...]").action(() => {
|
|
63
65
|
const max = spec.sub && !spec.help ? Number.POSITIVE_INFINITY : spec.positionals;
|
|
64
|
-
parsed = done(program, command, [name], spec.flags, max);
|
|
66
|
+
parsed = done(program, command, [name], spec.flags, max, spec.secretArgs);
|
|
65
67
|
});
|
|
66
68
|
for (const [subName, sub] of Object.entries(spec.sub ?? {})) {
|
|
67
|
-
const subcommand = configure(command.command(subName), `reeval ${name} ${subName}`, sub.flags);
|
|
69
|
+
const subcommand = configure(command.command(subName), `reeval ${name} ${subName}`, sub.flags, sub.secretArgs);
|
|
68
70
|
subcommand.argument("[args...]").action(() => {
|
|
69
71
|
const own = valuesOf(command, spec.flags);
|
|
70
72
|
const stray = Object.keys(own).find((flag) => !sub.flags.includes(flag));
|
|
71
73
|
if (stray) throw new UsageError(`--${stray} isn't an option of reeval ${name} ${subName}. Run reeval --help.`);
|
|
72
|
-
const result = done(program, subcommand, [name, subName], sub.flags, sub.positionals);
|
|
74
|
+
const result = done(program, subcommand, [name, subName], sub.flags, sub.positionals, sub.secretArgs);
|
|
73
75
|
parsed = {
|
|
74
76
|
...result,
|
|
75
77
|
values: {
|
|
@@ -84,13 +86,13 @@ function parseCli(argv) {
|
|
|
84
86
|
if (!parsed) throw new UsageError("reeval couldn't read that command line. Run reeval --help.");
|
|
85
87
|
return parsed;
|
|
86
88
|
}
|
|
87
|
-
function configure(command, name, flags) {
|
|
89
|
+
function configure(command, name, flags, secretArgs) {
|
|
88
90
|
command.helpOption(false).helpCommand(false).allowExcessArguments().configureOutput({
|
|
89
91
|
writeOut: () => {},
|
|
90
92
|
writeErr: () => {},
|
|
91
93
|
outputError: () => {}
|
|
92
94
|
}).exitOverride((error) => {
|
|
93
|
-
throw usageError(error, name);
|
|
95
|
+
throw usageError(error, name, secretArgs);
|
|
94
96
|
});
|
|
95
97
|
for (const flag of flags) command.addOption(OPTIONS[flag]());
|
|
96
98
|
return command;
|
|
@@ -117,7 +119,7 @@ function takeStatements(command) {
|
|
|
117
119
|
};
|
|
118
120
|
};
|
|
119
121
|
}
|
|
120
|
-
function done(program, command, path, flags, max) {
|
|
122
|
+
function done(program, command, path, flags, max, secretArgs) {
|
|
121
123
|
const values = {
|
|
122
124
|
...valuesOf(program, GLOBAL),
|
|
123
125
|
...valuesOf(command, flags)
|
|
@@ -125,7 +127,8 @@ function done(program, command, path, flags, max) {
|
|
|
125
127
|
const args = command.args;
|
|
126
128
|
if (!values.help && !values.version && args.length > max) {
|
|
127
129
|
const name = `reeval ${path.join(" ")}`;
|
|
128
|
-
|
|
130
|
+
const got = secretArgs ? `got ${args.length}` : `got ${args.join(" ")}`;
|
|
131
|
+
throw new UsageError(max === 0 ? `${name} takes no arguments (${got})` : `${name} takes at most ${max} argument${max === 1 ? "" : "s"} (${got})`);
|
|
129
132
|
}
|
|
130
133
|
return {
|
|
131
134
|
positionals: [...path, ...args],
|
|
@@ -149,7 +152,7 @@ function valuesOf(command, flags) {
|
|
|
149
152
|
return values;
|
|
150
153
|
}
|
|
151
154
|
/** Commander's error, in reeval's words, naming the command whose flag it is. */
|
|
152
|
-
function usageError(error, command) {
|
|
155
|
+
function usageError(error, command, secretArgs) {
|
|
153
156
|
const text = error.message.replace(/^error: /, "");
|
|
154
157
|
const [first = ""] = text.split("\n");
|
|
155
158
|
if (error.code === "commander.unknownOption") {
|
|
@@ -162,6 +165,7 @@ function usageError(error, command) {
|
|
|
162
165
|
const instead = INSTEAD[`${command} --${long}`];
|
|
163
166
|
return new UsageError(`--${long} isn't an option of ${command}. ${instead ? `${instead}.` : "Run reeval --help."}`);
|
|
164
167
|
}
|
|
168
|
+
if (secretArgs) return new UsageError(`${command} has no such option. Run reeval --help.`);
|
|
165
169
|
const shown = arg.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
|
|
166
170
|
return new UsageError(`Unknown option '${shown}'. ${suggestion ? `${suggestion} ` : ""}Run reeval --help.`);
|
|
167
171
|
}
|
|
@@ -191,7 +195,9 @@ const PULLS = {
|
|
|
191
195
|
checkout: 1,
|
|
192
196
|
query: 1,
|
|
193
197
|
analyze: 1,
|
|
194
|
-
mcp: 1
|
|
198
|
+
mcp: 1,
|
|
199
|
+
"cloud push": 1,
|
|
200
|
+
"studio share": 1
|
|
195
201
|
};
|
|
196
202
|
const EXPECTED_ERRORS = [
|
|
197
203
|
"CommandError",
|
|
@@ -205,7 +211,7 @@ const INFRA_ERRORS = [
|
|
|
205
211
|
"PreflightInfraError",
|
|
206
212
|
"StoreError",
|
|
207
213
|
"EventStreamError",
|
|
208
|
-
"
|
|
214
|
+
"CloudError"
|
|
209
215
|
];
|
|
210
216
|
const EXIT = {
|
|
211
217
|
ok: 0,
|
|
@@ -250,7 +256,13 @@ function quitWithoutRecord(runId, stagingDir) {
|
|
|
250
256
|
async function sweep(root, keep) {
|
|
251
257
|
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`);
|
|
252
258
|
}
|
|
259
|
+
/** Removes the sandboxes runs on this host left behind when their process was killed, saying so. */
|
|
260
|
+
async function reapOrphans(sandboxes) {
|
|
261
|
+
const removed = await removeOrphans(sandboxes).catch(() => 0);
|
|
262
|
+
if (removed) process.stderr.write(`reeval: removed ${removed} sandbox${removed === 1 ? "" : "es"} a killed reeval left running\n`);
|
|
263
|
+
}
|
|
253
264
|
async function run(argv) {
|
|
265
|
+
readSecretsFile();
|
|
254
266
|
const { values, positionals } = parseCli(argv);
|
|
255
267
|
invocation.flags = values;
|
|
256
268
|
if (values.version) {
|
|
@@ -267,7 +279,7 @@ async function run(argv) {
|
|
|
267
279
|
return values.help ? EXIT.ok : EXIT.usage;
|
|
268
280
|
}
|
|
269
281
|
if (command === "init") {
|
|
270
|
-
const { initCommand } = await import("./init-
|
|
282
|
+
const { initCommand } = await import("./init-BOYNr3Ql.js");
|
|
271
283
|
return initCommand(values, filters, {
|
|
272
284
|
out: (s) => console.log(s),
|
|
273
285
|
input: process.stdin,
|
|
@@ -276,7 +288,7 @@ async function run(argv) {
|
|
|
276
288
|
});
|
|
277
289
|
}
|
|
278
290
|
if (command === "doctor") {
|
|
279
|
-
const { doctorCommand } = await import("./doctor-
|
|
291
|
+
const { doctorCommand } = await import("./doctor-DGWbvYtu.js");
|
|
280
292
|
return doctorCommand(values, {
|
|
281
293
|
out: (s) => console.log(s),
|
|
282
294
|
color: !!process.stdout.isTTY && !process.env.NO_COLOR,
|
|
@@ -284,7 +296,7 @@ async function run(argv) {
|
|
|
284
296
|
});
|
|
285
297
|
}
|
|
286
298
|
if (command === "report") {
|
|
287
|
-
const { reportCommand } = await import("./command-
|
|
299
|
+
const { reportCommand } = await import("./command-Bic6f84Y.js");
|
|
288
300
|
return reportCommand(values, filters, {
|
|
289
301
|
out: (s) => console.log(s),
|
|
290
302
|
err: (s) => console.error(dim(s)),
|
|
@@ -292,28 +304,90 @@ async function run(argv) {
|
|
|
292
304
|
confirm: process.stdin.isTTY && process.stdout.isTTY ? confirm : void 0
|
|
293
305
|
});
|
|
294
306
|
}
|
|
307
|
+
if (command === "login" || command === "logout" || command === "whoami") {
|
|
308
|
+
const login = await import("./command-DHrT6YVl.js");
|
|
309
|
+
loadEnvFiles(configPathFor(values.config));
|
|
310
|
+
const { defaultIssueDeps } = await import("./issue-esBvB5Df.js");
|
|
311
|
+
const io = {
|
|
312
|
+
out: (s) => console.log(s),
|
|
313
|
+
err: (s) => console.error(dim(s)),
|
|
314
|
+
...process.stdout.isTTY && !inCI() && { open: defaultIssueDeps().open }
|
|
315
|
+
};
|
|
316
|
+
if (command === "login") return login.loginCommand(io);
|
|
317
|
+
if (command === "logout") return login.logoutCommand(io);
|
|
318
|
+
return login.whoamiCommand(values, io);
|
|
319
|
+
}
|
|
295
320
|
const configPath = configPathFor(values.config);
|
|
321
|
+
if (command === "link") {
|
|
322
|
+
loadEnvFiles(configPath);
|
|
323
|
+
const [{ linkCommand }, { projectDirFor }] = await Promise.all([import("./link-Dat_O7Gn.js"), import("./cloud-project-B1lN8D9m.js")]);
|
|
324
|
+
return linkCommand(values, {
|
|
325
|
+
out: (s) => console.log(s),
|
|
326
|
+
input: process.stdin,
|
|
327
|
+
output: process.stdout,
|
|
328
|
+
interactive: !!process.stdin.isTTY && !!process.stdout.isTTY,
|
|
329
|
+
projectDir: projectDirFor(configPath)
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
if (command === "cloud") {
|
|
333
|
+
const [area, ...args] = filters;
|
|
334
|
+
if (area !== "secrets" && area !== "provider" && area !== "push") throw new UsageError(`Unknown command "cloud ${area ?? ""}". Did you mean reeval cloud secrets, provider or push?`);
|
|
335
|
+
if (area === "push") {
|
|
336
|
+
const config = await historyConfig(configPath, "cloud push", values.profile, values);
|
|
337
|
+
const [{ pushCommand }, { projectDirFor }] = await Promise.all([import("./cloud-push-GXvEYHoa.js"), import("./cloud-project-B1lN8D9m.js")]);
|
|
338
|
+
return pushCommand(config, values, args, {
|
|
339
|
+
out: (s) => console.log(s),
|
|
340
|
+
err: (s) => console.error(yellow(s)),
|
|
341
|
+
note: (s) => console.error(s),
|
|
342
|
+
projectDir: projectDirFor(configPath)
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
loadEnvFiles(configPath);
|
|
346
|
+
const cloud = await import("./cloud-secrets-BskXM_2n.js");
|
|
347
|
+
const { projectDirFor } = await import("./cloud-project-B1lN8D9m.js");
|
|
348
|
+
const io = {
|
|
349
|
+
out: (s) => console.log(s),
|
|
350
|
+
readValue: cloud.readSecretValue,
|
|
351
|
+
projectDir: projectDirFor(configPath)
|
|
352
|
+
};
|
|
353
|
+
return area === "secrets" ? cloud.secretsCommand(values, args, io) : cloud.providerCommand(values, args, io);
|
|
354
|
+
}
|
|
296
355
|
if (command === "image") {
|
|
297
356
|
if (filters[0] === "list") return imageListCommand(values, configPath, filters.slice(1));
|
|
298
357
|
if (filters[0] === "clean") return imageCleanCommand(values, configPath);
|
|
299
358
|
if (filters[0] !== "build") throw new UsageError(`Unknown command "image ${filters[0] ?? ""}". Did you mean reeval image build, list or clean?`);
|
|
300
359
|
return imageBuildCommand(values, configPath, filters.slice(1));
|
|
301
360
|
}
|
|
361
|
+
if (command === "studio" && filters[0] === "share") {
|
|
362
|
+
const ref = filters[1];
|
|
363
|
+
const readsNoRuns = values.revoke !== void 0 || values.list && (ref === void 0 || RUN_ID.test(ref));
|
|
364
|
+
const config = await historyConfig(configPath, "studio share", values.profile, readsNoRuns ? {
|
|
365
|
+
...values,
|
|
366
|
+
offline: true
|
|
367
|
+
} : values);
|
|
368
|
+
const [{ shareCommand }, { projectDirFor }] = await Promise.all([import("./studio-share-C05twqpy.js"), import("./cloud-project-B1lN8D9m.js")]);
|
|
369
|
+
return shareCommand(config, values, filters.slice(1), {
|
|
370
|
+
out: (s) => console.log(s),
|
|
371
|
+
err: (s) => console.error(yellow(s)),
|
|
372
|
+
note: (s) => console.error(s),
|
|
373
|
+
projectDir: projectDirFor(configPath)
|
|
374
|
+
});
|
|
375
|
+
}
|
|
302
376
|
if (command === "studio") {
|
|
303
377
|
const config = await historyConfig(configPath, "studio", values.profile);
|
|
304
378
|
localStudio(config);
|
|
305
|
-
const { studioCommand } = await import("./command-
|
|
379
|
+
const { studioCommand } = await import("./command-DMwSLfJT.js");
|
|
306
380
|
return studioCommand({
|
|
307
381
|
config,
|
|
308
382
|
flags: values,
|
|
309
383
|
version,
|
|
310
|
-
|
|
384
|
+
run: filters[0]
|
|
311
385
|
});
|
|
312
386
|
}
|
|
313
387
|
if (command === "mcp") {
|
|
314
388
|
if (!values.http) console.log = console.info = console.debug = console.error;
|
|
315
389
|
const config = await historyConfig(configPath, "mcp", values.profile, values);
|
|
316
|
-
const { mcpCommand } = await import("./command-
|
|
390
|
+
const { mcpCommand } = await import("./command-DP8sQ-dk.js");
|
|
317
391
|
return mcpCommand({
|
|
318
392
|
config,
|
|
319
393
|
flags: values,
|
|
@@ -322,7 +396,7 @@ async function run(argv) {
|
|
|
322
396
|
}
|
|
323
397
|
if (command in HISTORY_COMMANDS) {
|
|
324
398
|
const config = await historyConfig(configPath, command, values.profile, values);
|
|
325
|
-
const commands = await import("./commands-
|
|
399
|
+
const commands = await import("./commands-D8D7ZJ0I.js");
|
|
326
400
|
const ctx = {
|
|
327
401
|
config,
|
|
328
402
|
flags: values,
|
|
@@ -336,14 +410,14 @@ async function run(argv) {
|
|
|
336
410
|
case "checkout": return commands.checkoutCommand(ctx, filters);
|
|
337
411
|
case "sync": return commands.syncCommand(ctx, filters);
|
|
338
412
|
case "query": {
|
|
339
|
-
const { queryCommand } = await import("./query-
|
|
413
|
+
const { queryCommand } = await import("./query-DzS1Z4bw.js");
|
|
340
414
|
return queryCommand({
|
|
341
415
|
...ctx,
|
|
342
416
|
err: (s) => console.error(dim(s))
|
|
343
417
|
}, filters);
|
|
344
418
|
}
|
|
345
419
|
case "analyze": {
|
|
346
|
-
const { analyzeCommand } = await import("./command-
|
|
420
|
+
const { analyzeCommand } = await import("./command-C7m3ZoXS.js");
|
|
347
421
|
return analyzeCommand({
|
|
348
422
|
...ctx,
|
|
349
423
|
err: (s) => console.error(dim(s))
|
|
@@ -354,7 +428,7 @@ async function run(argv) {
|
|
|
354
428
|
if (command === "clean") return cleanCommand(values, configPath);
|
|
355
429
|
if (command === "attach") return attachCommand(values, filters[0], configPath);
|
|
356
430
|
if (command === "bundle") {
|
|
357
|
-
const { bundleCommand } = await import("./bundle-
|
|
431
|
+
const { bundleCommand } = await import("./bundle-B1v8DEEX.js");
|
|
358
432
|
return bundleCommand(values, filters, configPath, argv.slice(1), (s) => console.log(s));
|
|
359
433
|
}
|
|
360
434
|
if (command !== "run") throw new UsageError(`Unknown command "${command}". Run reeval --help.`);
|
|
@@ -374,12 +448,12 @@ async function bundleRun(flags, filters) {
|
|
|
374
448
|
"config",
|
|
375
449
|
"resume",
|
|
376
450
|
"retry-errors",
|
|
377
|
-
"
|
|
451
|
+
"cloud"
|
|
378
452
|
].filter((f) => flags[f] !== void 0).map((f) => `--${f}`);
|
|
379
453
|
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(", ")}.`);
|
|
380
454
|
const file = flags.bundle;
|
|
381
455
|
const log = (s) => flags.json ? console.error(s) : console.log(s);
|
|
382
|
-
const { bundledGit, openBundle } = await import("./bundle-
|
|
456
|
+
const { bundledGit, openBundle } = await import("./bundle-B1v8DEEX.js");
|
|
383
457
|
const opened = await openBundle(file, log);
|
|
384
458
|
if (opened.exit !== void 0) return opened.exit;
|
|
385
459
|
const { args, author } = opened.manifest;
|
|
@@ -424,12 +498,12 @@ async function historyConfig(configPath, command, flag, values = {}) {
|
|
|
424
498
|
}
|
|
425
499
|
/** The dry run's prices, fetched only when a planned attempt or the judge has anything to price. */
|
|
426
500
|
async function dryRunPrices(planned, judgeModel) {
|
|
427
|
-
const { needsPrices } = await import("./cost-
|
|
501
|
+
const { needsPrices } = await import("./cost-a_rUSdsf.js");
|
|
428
502
|
if (!needsPrices(planned.filter((p) => !p.attempt.plan.skip).map((p) => p.attempt.harness), judgeModel)) return {
|
|
429
503
|
table: null,
|
|
430
504
|
why: "nothing to price"
|
|
431
505
|
};
|
|
432
|
-
const { loadPrices } = await import("./prices-
|
|
506
|
+
const { loadPrices } = await import("./prices-CfnkJOth.js");
|
|
433
507
|
return loadPrices();
|
|
434
508
|
}
|
|
435
509
|
/** Asks a yes/no question on the terminal; anything but y or yes is no. */
|
|
@@ -447,8 +521,9 @@ async function confirm(question) {
|
|
|
447
521
|
}
|
|
448
522
|
/**
|
|
449
523
|
* `reeval clean`: removes local debug data and snapshots, all of them or all but the newest
|
|
450
|
-
* `--keep` runs',
|
|
451
|
-
* `run --bundle` extracted whose
|
|
524
|
+
* `--keep` runs', and the sandboxes a killed reeval on this host left running; with `--staging`
|
|
525
|
+
* every stopped run's staging, and with `--bundles` every copy `run --bundle` extracted whose
|
|
526
|
+
* process has ended.
|
|
452
527
|
*/
|
|
453
528
|
async function cleanCommand(flags, configPath) {
|
|
454
529
|
const config = await loadConfig(configPath, "clean");
|
|
@@ -457,8 +532,8 @@ async function cleanCommand(flags, configPath) {
|
|
|
457
532
|
keep = Number(flags.keep);
|
|
458
533
|
if (!(Number.isInteger(keep) && keep >= 0)) throw new UsageError(`--keep must be a whole number (got ${flags.keep})`);
|
|
459
534
|
}
|
|
460
|
-
const { debugRoot, pruneDebug } = await import("./files-
|
|
461
|
-
const { formatBytes } = await import("./debug-
|
|
535
|
+
const { debugRoot, pruneDebug } = await import("./files-DCcRkJN4.js");
|
|
536
|
+
const { formatBytes } = await import("./debug-CGg7KHKq.js");
|
|
462
537
|
const { runs, bytes } = await pruneDebug(config.root, keep);
|
|
463
538
|
const where = fromCwd(debugRoot(config.root)) || ".";
|
|
464
539
|
console.log(runs.length ? `Removed debug data and snapshots for ${runs.length} run${runs.length === 1 ? "" : "s"} (${formatBytes(bytes)}) from ${where} and .reeval/runs` : `No debug data or snapshots to remove in ${where} or .reeval/runs`);
|
|
@@ -468,24 +543,26 @@ async function cleanCommand(flags, configPath) {
|
|
|
468
543
|
}
|
|
469
544
|
const streams = await pruneEvents(config.root, keep);
|
|
470
545
|
if (streams.length) console.log(`Removed the event streams of ${streams.length} finished run${streams.length === 1 ? "" : "s"} from .reeval/events`);
|
|
546
|
+
const orphans = await removeOrphans();
|
|
547
|
+
if (orphans) console.log(`Removed ${orphans} sandbox${orphans === 1 ? "" : "es"} that a killed reeval left running`);
|
|
471
548
|
if (flags.bundles) {
|
|
472
|
-
const { removeExtractedBundles } = await import("./bundle-
|
|
549
|
+
const { removeExtractedBundles } = await import("./bundle-B1v8DEEX.js");
|
|
473
550
|
const removed = await removeExtractedBundles();
|
|
474
551
|
console.log(removed.length ? `Removed ${removed.length} extracted bundle${removed.length === 1 ? "" : "s"}: ${removed.join(", ")}` : "No extracted bundles to remove");
|
|
475
552
|
}
|
|
476
553
|
if (flags.images) {
|
|
477
|
-
const { dockerAvailable, pruneImages } = await import("./src-
|
|
478
|
-
const { requireDocker } = await import("./providers-
|
|
554
|
+
const { dockerAvailable, pruneImages } = await import("./src-DXZXofCJ.js");
|
|
555
|
+
const { requireDocker } = await import("./providers-BPujoqQM.js");
|
|
479
556
|
const engines = [];
|
|
480
557
|
for (const engine of ["docker", "podman"]) if (await dockerAvailable(engine)) engines.push(engine);
|
|
481
|
-
const { tartCli } = await import("./tart-cli-
|
|
558
|
+
const { tartCli } = await import("./tart-cli-S388NU-r.js");
|
|
482
559
|
const tart = await tartCli(["--version"]).then((r) => r.exitCode === 0, () => false);
|
|
483
560
|
if (!engines.length && !tart) await requireDocker();
|
|
484
561
|
let removed = 0;
|
|
485
562
|
for (const engine of engines) removed += await pruneImages(engine);
|
|
486
563
|
if (engines.length) console.log(removed ? `Removed ${removed} image${removed === 1 ? "" : "s"} reeval built that nothing uses` : "No leftover images to remove");
|
|
487
564
|
if (tart) {
|
|
488
|
-
const { deleteBakedImages } = await import("./tart-bake-
|
|
565
|
+
const { deleteBakedImages } = await import("./tart-bake-LwdUVOzS.js");
|
|
489
566
|
const baked = await deleteBakedImages();
|
|
490
567
|
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");
|
|
491
568
|
}
|
|
@@ -504,8 +581,8 @@ function verbosityOf(flags) {
|
|
|
504
581
|
* image.
|
|
505
582
|
*/
|
|
506
583
|
async function imageBuildCommand(flags, configPath, filters) {
|
|
507
|
-
const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-
|
|
508
|
-
const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-
|
|
584
|
+
const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-BkJn7NHU.js");
|
|
585
|
+
const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-y0BcVyv3.js");
|
|
509
586
|
const { setup, root, uses } = await imageUses(flags, configPath, filters, plannedImageUses);
|
|
510
587
|
const targets = imageTargets(uses);
|
|
511
588
|
const vms = tartTargets(uses);
|
|
@@ -525,7 +602,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
525
602
|
if (snapshots.length) for (const line of await vmPlanLines(snapshots, root)) console.log(line);
|
|
526
603
|
return EXIT.ok;
|
|
527
604
|
}
|
|
528
|
-
const { PrepareError } = await import("./provider-
|
|
605
|
+
const { PrepareError } = await import("./provider-B24hZX95.js");
|
|
529
606
|
const outcomes = [];
|
|
530
607
|
let refused = false;
|
|
531
608
|
const refusal = (id, of, others) => (error) => {
|
|
@@ -599,7 +676,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
599
676
|
if (!(error instanceof PrepareError)) throw error;
|
|
600
677
|
if (error.failure.usage) throw new UsageError(error.message);
|
|
601
678
|
if (error.failure.cause === "enospc") invocation.machineState = true;
|
|
602
|
-
const { PreflightInfraError } = await import("./preflight-
|
|
679
|
+
const { PreflightInfraError } = await import("./preflight-CKrvQ-of.js");
|
|
603
680
|
throw new PreflightInfraError(error.message);
|
|
604
681
|
}
|
|
605
682
|
for (const o of outcomes) {
|
|
@@ -622,7 +699,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
622
699
|
}
|
|
623
700
|
/** What `reeval image` plans for: the harness and sandbox of each attempt, collected as `--dry-run` does. */
|
|
624
701
|
async function imageUses(flags, configPath, filters, planned) {
|
|
625
|
-
const plannedImageUses = planned ?? (await import("./images-
|
|
702
|
+
const plannedImageUses = planned ?? (await import("./images-BkJn7NHU.js")).plannedImageUses;
|
|
626
703
|
const setup = await prepareRun({
|
|
627
704
|
...flags,
|
|
628
705
|
"dry-run": true
|
|
@@ -648,8 +725,8 @@ async function imageUses(flags, configPath, filters, planned) {
|
|
|
648
725
|
* the evals use, with the environments that start from each.
|
|
649
726
|
*/
|
|
650
727
|
async function imageListCommand(flags, configPath, filters) {
|
|
651
|
-
const vm = await import("./vm-images-
|
|
652
|
-
const { formatSize } = await import("./tart-images-
|
|
728
|
+
const vm = await import("./vm-images-y0BcVyv3.js");
|
|
729
|
+
const { formatSize } = await import("./tart-images-DAEYoC_M.js");
|
|
653
730
|
const { root, uses } = await imageUses(flags, configPath, filters);
|
|
654
731
|
const accounts = vm.vmAccounts(uses);
|
|
655
732
|
if (!accounts.length) {
|
|
@@ -702,8 +779,8 @@ async function imageListCommand(flags, configPath, filters) {
|
|
|
702
779
|
* last hour or one still being saved.
|
|
703
780
|
*/
|
|
704
781
|
async function imageCleanCommand(flags, configPath) {
|
|
705
|
-
const vm = await import("./vm-images-
|
|
706
|
-
const { formatSize } = await import("./tart-images-
|
|
782
|
+
const vm = await import("./vm-images-y0BcVyv3.js");
|
|
783
|
+
const { formatSize } = await import("./tart-images-DAEYoC_M.js");
|
|
707
784
|
const provider = flags.provider;
|
|
708
785
|
if (provider !== void 0 && provider !== "boat" && provider !== "daytona") throw new UsageError(`--provider is boat or daytona (got "${provider}")`);
|
|
709
786
|
const olderThanMs = flags["older-than"] !== void 0 ? vm.parseAge(flags["older-than"]) : flags.all ? void 0 : vm.DEFAULT_OLDER_THAN_MS;
|
|
@@ -775,17 +852,61 @@ async function attachCommand(flags, target, configPath) {
|
|
|
775
852
|
root = dirname(requireConfig(configPath));
|
|
776
853
|
source = (await resolveAttach(root, target)).file;
|
|
777
854
|
}
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
|
|
855
|
+
const cloud = await import("./cloud-run-BfFCs6Fm.js");
|
|
856
|
+
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");
|
|
857
|
+
if (flags.download || isAttachUrl(source)) loadEnvFiles(configPath);
|
|
858
|
+
const download = flags.download ? await cloudDownload(source, configPath, flags.profile) : void 0;
|
|
859
|
+
const follow = isAttachUrl(source) ? await cloud.cloudFollow(source) : void 0;
|
|
860
|
+
let detached = false;
|
|
861
|
+
const code = await attachHere(flags, {
|
|
781
862
|
source,
|
|
782
863
|
...root === void 0 ? {} : { root },
|
|
783
|
-
...follow ? { follow } : {}
|
|
864
|
+
...follow ? { follow } : {},
|
|
865
|
+
onDetach: () => {
|
|
866
|
+
detached = true;
|
|
867
|
+
}
|
|
784
868
|
});
|
|
869
|
+
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`));
|
|
870
|
+
else if (download) {
|
|
871
|
+
const { downloadAfter } = await import("./cloud-files-BjoNhDJs.js");
|
|
872
|
+
for (const line of await downloadAfter(code, download.runId, download.run)) console.log(dim(line));
|
|
873
|
+
}
|
|
874
|
+
return code;
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* `reeval attach --download`: what downloads the files of the cloud run whose event stream is
|
|
878
|
+
* `source` into this project, as a run here leaves them, a recorded run's into the history folder
|
|
879
|
+
* of the profile `profile`, `REEVAL_PROFILE` or `defaultProfile` picks; exit 2 for any other
|
|
880
|
+
* stream, or with no project.
|
|
881
|
+
*/
|
|
882
|
+
async function cloudDownload(source, configPath, profile) {
|
|
883
|
+
const cloud = await import("./cloud-run-BfFCs6Fm.js");
|
|
884
|
+
const { cloudRunOf, downloadCloudFiles } = await import("./cloud-files-BjoNhDJs.js");
|
|
885
|
+
loadEnvFiles(configPath);
|
|
886
|
+
const base = cloud.cloudUrl();
|
|
887
|
+
const run = isAttachUrl(source) ? cloudRunOf(source, base) : null;
|
|
888
|
+
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`);
|
|
889
|
+
const path = requireConfig(configPath);
|
|
890
|
+
const named = profile ?? (process.env.REEVAL_PROFILE || void 0);
|
|
891
|
+
const loaded = await loadConfig(path, "run", named);
|
|
892
|
+
const picked = selectProfile(loaded, profile);
|
|
893
|
+
const { root, history } = withProfileHistory(loaded, picked);
|
|
894
|
+
const auth = await cloud.cloudAuth(base);
|
|
895
|
+
return {
|
|
896
|
+
runId: run.runId,
|
|
897
|
+
...picked ? { profile: picked.name } : {},
|
|
898
|
+
run: () => downloadCloudFiles({
|
|
899
|
+
cloudRunId: run.runId,
|
|
900
|
+
url: run.files,
|
|
901
|
+
auth,
|
|
902
|
+
root,
|
|
903
|
+
history
|
|
904
|
+
})
|
|
905
|
+
};
|
|
785
906
|
}
|
|
786
907
|
/** `reeval attach`'s viewer on this terminal, drawn with the attach flags. */
|
|
787
908
|
async function attachHere(flags, options) {
|
|
788
|
-
const { attach } = await import("./attach-
|
|
909
|
+
const { attach } = await import("./attach-DFf2hFl7.js");
|
|
789
910
|
return attach({
|
|
790
911
|
...options,
|
|
791
912
|
out: process.stdout,
|
|
@@ -811,14 +932,19 @@ async function attachHere(flags, options) {
|
|
|
811
932
|
});
|
|
812
933
|
}
|
|
813
934
|
/**
|
|
814
|
-
* Where a run that asked for the
|
|
935
|
+
* Where a run that asked for the cloud platform goes, from the bundle made for it: there, or
|
|
815
936
|
* here with why. A real run there is created, uploaded, started and followed, and its exit code is
|
|
816
|
-
* `exit`. Undefined when the run didn't ask
|
|
937
|
+
* `exit`. Undefined when the run didn't ask to run in the cloud.
|
|
817
938
|
*/
|
|
818
|
-
async function
|
|
819
|
-
const
|
|
820
|
-
if (!
|
|
821
|
-
|
|
939
|
+
async function cloudTarget(flags, setup, filters, configPath) {
|
|
940
|
+
const cloud = await import("./cloud-run-BfFCs6Fm.js");
|
|
941
|
+
if (!cloud.wantsCloud(flags, setup.config, setup.profile)) {
|
|
942
|
+
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");
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
const { linkedProject, projectDirFor } = await import("./cloud-project-B1lN8D9m.js");
|
|
946
|
+
const project = await linkedProject(projectDirFor(configPath));
|
|
947
|
+
const { makeBundle } = await import("./bundle-B1v8DEEX.js");
|
|
822
948
|
const picked = setup.profile ? { profile: setup.profile.name } : {};
|
|
823
949
|
const bundle = async (env) => {
|
|
824
950
|
try {
|
|
@@ -830,7 +956,7 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
830
956
|
prices: true
|
|
831
957
|
});
|
|
832
958
|
if ("code" in made) return made;
|
|
833
|
-
const blocked = made.plan.
|
|
959
|
+
const blocked = made.plan.notCloud ?? [];
|
|
834
960
|
return blocked.length ? { why: blocked.join("; ") } : { made };
|
|
835
961
|
} catch (error) {
|
|
836
962
|
if (!(error instanceof UsageError)) throw error;
|
|
@@ -840,10 +966,11 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
840
966
|
let result = await bundle({});
|
|
841
967
|
let base = null;
|
|
842
968
|
if ("made" in result) {
|
|
843
|
-
|
|
969
|
+
cloud.refuseLocalFlags(flags);
|
|
970
|
+
const url = cloud.cloudUrl();
|
|
844
971
|
if (!setup.dryRun) {
|
|
845
|
-
base =
|
|
846
|
-
const env = await
|
|
972
|
+
base = url;
|
|
973
|
+
const env = await cloud.cloudPlanEnv(base);
|
|
847
974
|
if (Object.entries(env).some(([k, v]) => process.env[k] !== v)) result = await bundle(env);
|
|
848
975
|
}
|
|
849
976
|
}
|
|
@@ -851,7 +978,7 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
851
978
|
if ("why" in result) {
|
|
852
979
|
const why = result.why.replace(/^[A-Z](?=[a-z])/, (c) => c.toLowerCase());
|
|
853
980
|
if (!setup.dryRun) {
|
|
854
|
-
console.log(dim(`Running here, not
|
|
981
|
+
console.log(dim(`Running here, not in the cloud: ${why}`));
|
|
855
982
|
if (setup.recording) storeCredentials(setup.config.history);
|
|
856
983
|
}
|
|
857
984
|
return {
|
|
@@ -859,24 +986,27 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
859
986
|
kind: "local",
|
|
860
987
|
why
|
|
861
988
|
},
|
|
862
|
-
detail: `target here, not
|
|
989
|
+
detail: `target here, not in the cloud: ${why.split("\n")[0]}`
|
|
863
990
|
};
|
|
864
991
|
}
|
|
865
992
|
const { made } = result;
|
|
866
|
-
if (!base) {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
console.log(await hosted.hostedLine(made.plan));
|
|
874
|
-
if (setup.recording) console.log(dim("record: a hosted run isn't recorded into this machine's history"));
|
|
875
|
-
return { exit: await hosted.runHosted({
|
|
993
|
+
if (!base) return {
|
|
994
|
+
target: { kind: "cloud" },
|
|
995
|
+
detail: await cloud.cloudLine(made.plan, "target cloud")
|
|
996
|
+
};
|
|
997
|
+
console.log(await cloud.cloudLine(made.plan));
|
|
998
|
+
if (setup.recording) console.log(dim("record: a cloud run isn't recorded into this machine's history"));
|
|
999
|
+
return { exit: await cloud.runCloud({
|
|
876
1000
|
base,
|
|
877
1001
|
bundle: made,
|
|
1002
|
+
project,
|
|
878
1003
|
log: (line) => console.log(dim(line)),
|
|
879
|
-
follow: (options) => attachHere(flags, options)
|
|
1004
|
+
follow: (options) => attachHere(flags, options),
|
|
1005
|
+
...flags.download && { download: {
|
|
1006
|
+
root: setup.config.root,
|
|
1007
|
+
history: setup.config.history,
|
|
1008
|
+
...setup.profile ? { profile: setup.profile.name } : {}
|
|
1009
|
+
} }
|
|
880
1010
|
}) };
|
|
881
1011
|
}
|
|
882
1012
|
/** `reeval run`: check, plan, run the engine, then write the run and pick the exit code. */
|
|
@@ -900,7 +1030,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
900
1030
|
const outcome = runOutcome(record);
|
|
901
1031
|
if (flags.json) {
|
|
902
1032
|
console.error(nothing);
|
|
903
|
-
const { suiteResult } = await import("./suite-
|
|
1033
|
+
const { suiteResult } = await import("./suite-fO-u8jlS.js");
|
|
904
1034
|
process.stdout.write(`${JSON.stringify({
|
|
905
1035
|
...suiteResult(record),
|
|
906
1036
|
outcome
|
|
@@ -917,8 +1047,8 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
917
1047
|
noProfile: !!resumed?.saved && resumed.saved.profile === void 0,
|
|
918
1048
|
...resumed?.profileOf ? { profileOf: resumed.profileOf } : {}
|
|
919
1049
|
});
|
|
920
|
-
const
|
|
921
|
-
if (
|
|
1050
|
+
const cloud = bundled ? void 0 : await cloudTarget(runFlags, setup, filters, configPath);
|
|
1051
|
+
if (cloud && "exit" in cloud) return cloud.exit;
|
|
922
1052
|
const explicit = runFlags.concurrency ?? (process.env.REEVAL_CONCURRENCY || void 0);
|
|
923
1053
|
const ctx = await startRun(setup, bundled);
|
|
924
1054
|
const startedWith = resumed ? resumed.saved ?? void 0 : {
|
|
@@ -934,7 +1064,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
934
1064
|
if (githubOut) await appendFile(githubOut, `run-id=${ctx.runId}\n`).catch(() => {});
|
|
935
1065
|
const stepStart = process.env.GITHUB_STEP_SUMMARY;
|
|
936
1066
|
if (stepStart) await appendFile(stepStart, `run ${ctx.runId}\n`).catch(() => {});
|
|
937
|
-
const { engineVersions } = await import("./node-
|
|
1067
|
+
const { engineVersions } = await import("./node-DyRPGAT5.js");
|
|
938
1068
|
const terminal = setup.json && !setup.dryRun ? process.stderr : process.stdout;
|
|
939
1069
|
const harness = setup.config.harness[0]?.kind ?? "agent";
|
|
940
1070
|
const drawn = createRenderer({
|
|
@@ -954,7 +1084,9 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
954
1084
|
const savedEvents = eventsTo ? relativeFile(root, eventsTo) : void 0;
|
|
955
1085
|
if (startedWith && savedEvents) startedWith.events = savedEvents;
|
|
956
1086
|
const eventsUrl = flags["events-url"];
|
|
1087
|
+
let heartbeat;
|
|
957
1088
|
if (eventsTo || eventsUrl) {
|
|
1089
|
+
const ms = parseHeartbeat("REEVAL_EVENTS_HEARTBEAT", process.env.REEVAL_EVENTS_HEARTBEAT, ATTEMPTS_HEARTBEAT_MS, ATTEMPTS_HEARTBEAT_RANGE);
|
|
958
1090
|
const cwd = cwdIn(root);
|
|
959
1091
|
eventStream = openEventStream({
|
|
960
1092
|
...eventsTo ? {
|
|
@@ -968,10 +1100,16 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
968
1100
|
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
969
1101
|
harness,
|
|
970
1102
|
verbosity: ctx.verbosity ?? 0,
|
|
971
|
-
...cwd === void 0 ? {} : { cwd }
|
|
1103
|
+
...cwd === void 0 ? {} : { cwd },
|
|
1104
|
+
...ms > 0 ? { attemptsHeartbeatMs: ms } : {}
|
|
972
1105
|
},
|
|
973
1106
|
warn: (message) => process.stderr.write(yellow(`reeval: ${message}\n`))
|
|
974
1107
|
});
|
|
1108
|
+
const stream = eventStream;
|
|
1109
|
+
if (ms > 0) heartbeat = {
|
|
1110
|
+
ms,
|
|
1111
|
+
send: (beat) => stream.heartbeat(beat)
|
|
1112
|
+
};
|
|
975
1113
|
}
|
|
976
1114
|
const renderer = eventStream ? teeRenderer(drawn, eventStream) : drawn;
|
|
977
1115
|
let executed;
|
|
@@ -981,9 +1119,10 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
981
1119
|
notes: resumed?.notes ?? [],
|
|
982
1120
|
narrowed: !!resumed && (given.length > 0 || !!flags.tag?.length || !!flags.trait?.length),
|
|
983
1121
|
...savedEvents ? { events: savedEvents } : {},
|
|
984
|
-
...
|
|
985
|
-
|
|
986
|
-
|
|
1122
|
+
...heartbeat ? { heartbeat } : {},
|
|
1123
|
+
...cloud ? {
|
|
1124
|
+
target: cloud.target,
|
|
1125
|
+
targetDetail: cloud.detail
|
|
987
1126
|
} : {}
|
|
988
1127
|
});
|
|
989
1128
|
} catch (error) {
|
|
@@ -996,16 +1135,27 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
996
1135
|
throw error;
|
|
997
1136
|
}
|
|
998
1137
|
const { engineRun, plan, sandboxVersions, budgetReached, cutShort, live, questions, leftOut } = executed;
|
|
1138
|
+
const exportDone = async () => {
|
|
1139
|
+
const why = await executed.exported;
|
|
1140
|
+
if (why) renderer.onEvent({
|
|
1141
|
+
type: "notice",
|
|
1142
|
+
at: Date.now(),
|
|
1143
|
+
level: "warn",
|
|
1144
|
+
text: `OpenTelemetry export: ${why}`
|
|
1145
|
+
});
|
|
1146
|
+
};
|
|
999
1147
|
const { retried } = executed;
|
|
1000
1148
|
invocation.unhandledErrors = engineRun.unhandledErrors;
|
|
1001
1149
|
if ((interrupted || engineRun.canceled) && plan) await cleanupRun(ctx.runId, plan.sandboxes);
|
|
1150
|
+
if (plan) await reapOrphans(plan.sandboxes);
|
|
1002
1151
|
if (engineRun.stopped || !plan) {
|
|
1003
1152
|
live?.remove();
|
|
1153
|
+
await exportDone();
|
|
1004
1154
|
renderer.close();
|
|
1005
1155
|
return EXIT.ok;
|
|
1006
1156
|
}
|
|
1007
1157
|
if (ctx.retry && ctx.previous && retried.size) {
|
|
1008
|
-
const { retryEnvironmentChanges } = await import("./retry-
|
|
1158
|
+
const { retryEnvironmentChanges } = await import("./retry-BNFAHTES.js");
|
|
1009
1159
|
const changes = retryEnvironmentChanges(ctx.previous, ctx.stagingDir, retried);
|
|
1010
1160
|
if (changes.length) {
|
|
1011
1161
|
questions?.cancel();
|
|
@@ -1024,8 +1174,8 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1024
1174
|
}
|
|
1025
1175
|
finishing = true;
|
|
1026
1176
|
live?.phase("finishing");
|
|
1027
|
-
const { lockfiles } = await import("./state-
|
|
1028
|
-
const { writeScratchRun } = await import("./results-
|
|
1177
|
+
const { lockfiles } = await import("./state-DBuFimCA.js");
|
|
1178
|
+
const { writeScratchRun } = await import("./results-rYLTGa1F.js");
|
|
1029
1179
|
const run = await writeScratchRun({
|
|
1030
1180
|
ctx,
|
|
1031
1181
|
author: ctx.author,
|
|
@@ -1059,55 +1209,77 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1059
1209
|
status: "complete"
|
|
1060
1210
|
}) : outcome;
|
|
1061
1211
|
let code = stopped ? stopCode : ran === "fail" ? EXIT.failed : ran === "infra_error" ? EXIT.infra : EXIT.ok;
|
|
1062
|
-
const { pruneDebug } = await import("./files-
|
|
1212
|
+
const { pruneDebug } = await import("./files-DCcRkJN4.js");
|
|
1063
1213
|
await pruneDebug(ctx.config.root, ctx.config.debug.keep).catch(() => {});
|
|
1064
1214
|
const summary = run.artifactDir ? join(run.artifactDir, "summary.md") : run.recordPath;
|
|
1065
|
-
renderer.onEvent({
|
|
1066
|
-
type: "run-end",
|
|
1067
|
-
at: Date.now(),
|
|
1068
|
-
record,
|
|
1069
|
-
summaryPath: fromCwd(summary),
|
|
1070
|
-
results: engineRun.evals,
|
|
1071
|
-
remarks: run.remarks,
|
|
1072
|
-
...notRun > 0 && !stopped ? { notRun } : {}
|
|
1073
|
-
});
|
|
1074
|
-
renderer.close();
|
|
1075
|
-
if (retried.size) {
|
|
1076
|
-
const { retryCounts, retryLine } = await import("./retry-CAhpW1hH.js");
|
|
1077
|
-
const line = retryLine(retryCounts(record, retried, ctx.previous));
|
|
1078
|
-
if (setup.json) console.error(line);
|
|
1079
|
-
else console.log(line);
|
|
1080
|
-
}
|
|
1081
|
-
const stepSummary = process.env.GITHUB_STEP_SUMMARY;
|
|
1082
|
-
if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
|
|
1083
1215
|
const { config } = ctx;
|
|
1084
1216
|
const mode = setup.record;
|
|
1085
|
-
const { readRecord, recordFile } = await import("./files-
|
|
1217
|
+
const { readRecord, recordFile } = await import("./files-63CNzRBF.js");
|
|
1086
1218
|
const rerecord = (setup.retry !== void 0 || setup.resume !== void 0) && record.status === "complete" && existsSync(recordFile(config.history.dir, record.runId));
|
|
1087
1219
|
const autoRecord = flags.record || mode === "always" || mode === "ci" && inCI() || rerecord;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1220
|
+
const recording = autoRecord && record.status !== "interrupted";
|
|
1221
|
+
let ended = false;
|
|
1222
|
+
const endRun = async (recorded) => {
|
|
1223
|
+
if (ended) return;
|
|
1224
|
+
ended = true;
|
|
1225
|
+
await exportDone();
|
|
1226
|
+
renderer.onEvent({
|
|
1227
|
+
type: "run-end",
|
|
1228
|
+
at: Date.now(),
|
|
1229
|
+
record,
|
|
1230
|
+
summaryPath: fromCwd(summary),
|
|
1231
|
+
results: engineRun.evals,
|
|
1232
|
+
remarks: run.remarks,
|
|
1233
|
+
...notRun > 0 && !stopped ? { notRun } : {},
|
|
1234
|
+
...recorded ? { recorded } : {}
|
|
1101
1235
|
});
|
|
1102
|
-
|
|
1103
|
-
|
|
1236
|
+
renderer.close();
|
|
1237
|
+
if (retried.size) {
|
|
1238
|
+
const { retryCounts, retryLine } = await import("./retry-BNFAHTES.js");
|
|
1239
|
+
const line = retryLine(retryCounts(record, retried, ctx.previous));
|
|
1240
|
+
if (setup.json) console.error(line);
|
|
1241
|
+
else console.log(line);
|
|
1242
|
+
}
|
|
1243
|
+
const stepSummary = process.env.GITHUB_STEP_SUMMARY;
|
|
1244
|
+
if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
|
|
1245
|
+
};
|
|
1246
|
+
let recordLine;
|
|
1247
|
+
let recordError;
|
|
1248
|
+
if (recording) {
|
|
1249
|
+
const { record: recordCmd } = await import("./commands-D8D7ZJ0I.js");
|
|
1250
|
+
const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
|
|
1251
|
+
try {
|
|
1252
|
+
const level = rerecord ? { artifacts: (await readRecord(recordFile(config.history.dir, record.runId))).artifacts } : {};
|
|
1253
|
+
recordLine = await recordCmd(config, record.runId, {
|
|
1254
|
+
...flags,
|
|
1255
|
+
...allow,
|
|
1256
|
+
...level
|
|
1257
|
+
}, (landed) => endRun({
|
|
1258
|
+
record: fromCwd(landed.recordPath),
|
|
1259
|
+
files: landed.artifactDir ? fromCwd(landed.artifactDir) : null,
|
|
1260
|
+
...landed.archive ? { archive: fromCwd(landed.archive.path) } : {}
|
|
1261
|
+
})).catch((error) => {
|
|
1262
|
+
if (error.name !== "StoreError") throw error;
|
|
1263
|
+
if (code !== EXIT.interrupted && code !== EXIT.terminated) code = EXIT.infra;
|
|
1264
|
+
invocation.machineState = true;
|
|
1265
|
+
return red(`reeval: ${redactSecrets(error.message)}`);
|
|
1266
|
+
});
|
|
1267
|
+
} catch (error) {
|
|
1268
|
+
recordError = error;
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
await endRun();
|
|
1272
|
+
if (recordError !== void 0) throw recordError;
|
|
1273
|
+
if (recordLine !== void 0) {
|
|
1274
|
+
if (setup.json) console.error(recordLine);
|
|
1275
|
+
else console.log(recordLine);
|
|
1104
1276
|
} else if (autoRecord && notRun > 0 && !stopped) {
|
|
1105
1277
|
const line = `Not recorded: run ${record.runId} is incomplete. reeval run --resume ${record.runId}${flags.record ? " --record" : ""} runs the rest and records it.`;
|
|
1106
1278
|
if (setup.json) console.error(line);
|
|
1107
1279
|
else console.log(line);
|
|
1108
1280
|
}
|
|
1109
1281
|
if (setup.json) {
|
|
1110
|
-
const { suiteResult } = await import("./suite-
|
|
1282
|
+
const { suiteResult } = await import("./suite-fO-u8jlS.js");
|
|
1111
1283
|
process.stdout.write(`${JSON.stringify({
|
|
1112
1284
|
...suiteResult(record),
|
|
1113
1285
|
outcome: ran
|
|
@@ -1187,7 +1359,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1187
1359
|
stdinTTY: !!process.stdin.isTTY && !flags.json && !flags["dry-run"]
|
|
1188
1360
|
});
|
|
1189
1361
|
const path = requireConfig(configPath);
|
|
1190
|
-
const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-
|
|
1362
|
+
const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-C8HEtAej.js")).trackLoad(dirname(path)) : void 0;
|
|
1191
1363
|
let configInputs = [];
|
|
1192
1364
|
let loaded;
|
|
1193
1365
|
const named = noProfile ? void 0 : flags.profile ?? (process.env.REEVAL_PROFILE || void 0);
|
|
@@ -1201,7 +1373,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1201
1373
|
const profile = noProfile ? null : selectProfile(loaded, flags.profile);
|
|
1202
1374
|
const config = withProfileHistory(loaded, profile);
|
|
1203
1375
|
const recording = flags.record || (profile?.record ?? config.record) === "always" || (profile?.record ?? config.record) === "ci" && inCI();
|
|
1204
|
-
if (recording && !flags["dry-run"] && !
|
|
1376
|
+
if (recording && !flags["dry-run"] && !wantsCloud(flags, config, profile)) storeCredentials(config.history);
|
|
1205
1377
|
let runs;
|
|
1206
1378
|
if (flags.runs !== void 0) {
|
|
1207
1379
|
runs = Number(flags.runs);
|
|
@@ -1250,7 +1422,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1250
1422
|
async function registryFlag(flags) {
|
|
1251
1423
|
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");
|
|
1252
1424
|
if (flags.registry === void 0) return null;
|
|
1253
|
-
const { registryProblem } = await import("./src-
|
|
1425
|
+
const { registryProblem } = await import("./src-DXZXofCJ.js");
|
|
1254
1426
|
const problem = registryProblem(flags.registry);
|
|
1255
1427
|
if (problem) throw new UsageError(problem);
|
|
1256
1428
|
return flags.registry.replace(/\/+$/, "");
|
|
@@ -1261,11 +1433,11 @@ const retryVerb = (retry, runId) => retry.resume ? `--resume finishes run ${runI
|
|
|
1261
1433
|
async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRun, verbosity, configFile, resume, retry, dryRun }, bundled) {
|
|
1262
1434
|
const startedAt = /* @__PURE__ */ new Date();
|
|
1263
1435
|
const git = bundled ? bundled.git : await gitInfo(config.root, [config.history.dir]);
|
|
1264
|
-
const { worktreePatch } = await import("./state-
|
|
1436
|
+
const { worktreePatch } = await import("./state-DBuFimCA.js");
|
|
1265
1437
|
const patch = git?.dirty && !bundled ? await worktreePatch(config.root, [config.history.dir]) : null;
|
|
1266
1438
|
const who = bundled?.author ?? await author(config.root);
|
|
1267
|
-
const { stagingDir } = await import("./results-
|
|
1268
|
-
const { scratchDir } = await import("./files-
|
|
1439
|
+
const { stagingDir } = await import("./results-rYLTGa1F.js");
|
|
1440
|
+
const { scratchDir } = await import("./files-63CNzRBF.js");
|
|
1269
1441
|
const scratch = scratchDir(config.root);
|
|
1270
1442
|
if (resume !== void 0 || retry !== void 0) {
|
|
1271
1443
|
const target = await continuedRun(config.root, {
|
|
@@ -1286,7 +1458,7 @@ async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRu
|
|
|
1286
1458
|
if (scoped.length) await cleanupRun(target.runId, scoped).catch(() => {});
|
|
1287
1459
|
}
|
|
1288
1460
|
const concurrency = await sizeRun();
|
|
1289
|
-
const { unfoldCases } = await import("./cases-
|
|
1461
|
+
const { unfoldCases } = await import("./cases-Bsp-G-ZL.js");
|
|
1290
1462
|
const previous = aside.record ?? target.previous;
|
|
1291
1463
|
return {
|
|
1292
1464
|
runId: target.runId,
|
|
@@ -1380,12 +1552,12 @@ function namesDeclaredSecret(evals) {
|
|
|
1380
1552
|
*/
|
|
1381
1553
|
async function planEfforts(planned) {
|
|
1382
1554
|
const live = planned.filter((p) => !p.attempt.plan.skip);
|
|
1383
|
-
const { effortNotes, withDefaultEffort } = await import("./default-effort-
|
|
1555
|
+
const { effortNotes, withDefaultEffort } = await import("./default-effort-C6Gcd-Fy.js");
|
|
1384
1556
|
let cursor;
|
|
1385
1557
|
let unchecked = "CURSOR_API_KEY isn't set";
|
|
1386
1558
|
const key = process.env.CURSOR_API_KEY;
|
|
1387
1559
|
if (key && live.some((p) => p.attempt.harness.kind === "cursor")) {
|
|
1388
|
-
const { checkCursorPlan } = await import("./cursor-catalog-
|
|
1560
|
+
const { checkCursorPlan } = await import("./cursor-catalog-DQCmwsX3.js");
|
|
1389
1561
|
const checked = await checkCursorPlan(key, live);
|
|
1390
1562
|
if (checked instanceof Error) unchecked = `its request failed: ${checked.message}`;
|
|
1391
1563
|
else {
|
|
@@ -1423,8 +1595,8 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1423
1595
|
completed: [],
|
|
1424
1596
|
...setup.dryRun && setup.json ? { inputs: true } : {}
|
|
1425
1597
|
}));
|
|
1426
|
-
const { runEngine } = await import("./node-
|
|
1427
|
-
const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-
|
|
1598
|
+
const { runEngine } = await import("./node-DyRPGAT5.js");
|
|
1599
|
+
const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-x-_vZMQH.js");
|
|
1428
1600
|
let plan;
|
|
1429
1601
|
let sandboxVersions = { images: [] };
|
|
1430
1602
|
let preflightStop;
|
|
@@ -1469,9 +1641,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1469
1641
|
if (ctx.retry && ctx.previous) {
|
|
1470
1642
|
const ranOn = ctx.previous.stack?.reeval;
|
|
1471
1643
|
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.`);
|
|
1472
|
-
const { retryChanges } = await import("./retry-
|
|
1473
|
-
const { judgePart } = await import("./assemble-
|
|
1474
|
-
const { engineVersions } = await import("./node-
|
|
1644
|
+
const { retryChanges } = await import("./retry-BNFAHTES.js");
|
|
1645
|
+
const { judgePart } = await import("./assemble-ChNVeWNr.js");
|
|
1646
|
+
const { engineVersions } = await import("./node-DyRPGAT5.js");
|
|
1475
1647
|
const judged = judgePart(config, profile, version, engineVersions);
|
|
1476
1648
|
const runs = new Set(planned.map((p) => p.key).filter((key) => !completed.has(key)));
|
|
1477
1649
|
const changes = await retryChanges(ctx.previous, planned, runs, config.root, judged);
|
|
@@ -1484,7 +1656,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1484
1656
|
}
|
|
1485
1657
|
}
|
|
1486
1658
|
retried = continuing && !setup.dryRun ? noteRetries(planned, stagingDir, ctx.previous, true).errored : errored;
|
|
1487
|
-
const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-
|
|
1659
|
+
const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-BdLvfSQO.js") : void 0;
|
|
1488
1660
|
const judge = runJudgeModel(config, profile);
|
|
1489
1661
|
const judgeModel = judge === void 0 ? null : judgeModelName(judge);
|
|
1490
1662
|
plan = await buildPlan({
|
|
@@ -1504,7 +1676,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1504
1676
|
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))] : [];
|
|
1505
1677
|
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`);
|
|
1506
1678
|
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))] : [];
|
|
1507
|
-
const { podmanRootless } = await import("./providers-
|
|
1679
|
+
const { podmanRootless } = await import("./providers-BPujoqQM.js");
|
|
1508
1680
|
if (switching.length && await podmanRootless()) plan.warnings.push(rootlessPodmanSwitch(switching));
|
|
1509
1681
|
plan.warnings.push(...started.notes);
|
|
1510
1682
|
if (started.narrowed) {
|
|
@@ -1520,7 +1692,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1520
1692
|
run.completed = [...completed];
|
|
1521
1693
|
const done = leftOut.filter((l) => l.done).map((l) => l.key);
|
|
1522
1694
|
kept = keptAttempts([...completed, ...done], stagingDir, ctx.previous);
|
|
1523
|
-
const { imageStages, imageTargets } = await import("./images-
|
|
1695
|
+
const { imageStages, imageTargets } = await import("./images-BkJn7NHU.js");
|
|
1524
1696
|
const targets = imageTargets(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
|
|
1525
1697
|
id: p.attempt.family?.id ?? p.id,
|
|
1526
1698
|
harness: p.attempt.harness,
|
|
@@ -1534,7 +1706,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1534
1706
|
evals: t.evals,
|
|
1535
1707
|
stages: await imageStages(t, config.root)
|
|
1536
1708
|
})));
|
|
1537
|
-
const { lockfiles } = await import("./state-
|
|
1709
|
+
const { lockfiles } = await import("./state-DBuFimCA.js");
|
|
1538
1710
|
const locks = (await lockfiles(config.root)).map(({ path }) => ({
|
|
1539
1711
|
path: join(config.root, path),
|
|
1540
1712
|
kind: "lockfile"
|
|
@@ -1549,24 +1721,24 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1549
1721
|
judges: running.flatMap((p) => p.attempt.judge ? [p.attempt.judge] : [])
|
|
1550
1722
|
});
|
|
1551
1723
|
for (const { names } of needed) for (const name of names) secrets.add(name);
|
|
1552
|
-
const {
|
|
1553
|
-
const blocked =
|
|
1724
|
+
const { notCloud } = await import("./cloud-run-BfFCs6Fm.js");
|
|
1725
|
+
const blocked = notCloud(skipped);
|
|
1554
1726
|
const doc = {
|
|
1555
1727
|
...planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort()),
|
|
1556
|
-
...blocked.length ? {
|
|
1728
|
+
...blocked.length ? { notCloud: blocked } : {},
|
|
1557
1729
|
...started.target ? { target: started.target } : {}
|
|
1558
1730
|
};
|
|
1559
1731
|
process.stdout.write(`${JSON.stringify(doc, null, 2)}\n`);
|
|
1560
1732
|
return false;
|
|
1561
1733
|
}
|
|
1562
1734
|
const elsewhere = setup.configElsewhere ? configFile : void 0;
|
|
1563
|
-
const { scratchDir } = await import("./files-
|
|
1735
|
+
const { scratchDir } = await import("./files-63CNzRBF.js");
|
|
1564
1736
|
const lines = [];
|
|
1565
1737
|
if (setup.dryRun) {
|
|
1566
1738
|
const todos = excluded.filter((e) => e.mode === "todo").map((e) => e.id);
|
|
1567
1739
|
lines.push(...planTable(plan, todos));
|
|
1568
|
-
const { imageStatusLines } = await import("./images-
|
|
1569
|
-
const { dockerAvailable, engineSpec } = await import("./src-
|
|
1740
|
+
const { imageStatusLines } = await import("./images-BkJn7NHU.js");
|
|
1741
|
+
const { dockerAvailable, engineSpec } = await import("./src-DXZXofCJ.js");
|
|
1570
1742
|
const engines = [...new Set(targets.map((t) => t.sandbox.engine ?? "docker"))];
|
|
1571
1743
|
const down = [];
|
|
1572
1744
|
for (const engine of engines) if (!await dockerAvailable(engine)) down.push(engine);
|
|
@@ -1575,7 +1747,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1575
1747
|
const names = down.map((e) => engineSpec(e).name).join(" and ");
|
|
1576
1748
|
lines.push(`images not checked: ${names} ${down.length === 1 ? "is" : "are"} not running`);
|
|
1577
1749
|
}
|
|
1578
|
-
const { costLine } = await import("./cost-
|
|
1750
|
+
const { costLine } = await import("./cost-a_rUSdsf.js");
|
|
1579
1751
|
const cost = plan.cost && costLine(plan.cost);
|
|
1580
1752
|
if (cost) lines.push(cost);
|
|
1581
1753
|
if (started.targetDetail) lines.push(started.targetDetail);
|
|
@@ -1599,6 +1771,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1599
1771
|
sandboxWarnings: plan.sandboxWarnings
|
|
1600
1772
|
});
|
|
1601
1773
|
if (setup.dryRun) return false;
|
|
1774
|
+
await reapOrphans(plan.sandboxes);
|
|
1602
1775
|
if (continuing) {
|
|
1603
1776
|
const away = /* @__PURE__ */ new Map();
|
|
1604
1777
|
for (const { attempt } of planned) {
|
|
@@ -1660,7 +1833,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1660
1833
|
});
|
|
1661
1834
|
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.`);
|
|
1662
1835
|
if (asked.length) {
|
|
1663
|
-
const { questionRunner } = await import("./questions-
|
|
1836
|
+
const { questionRunner } = await import("./questions-DRPM7pky.js");
|
|
1664
1837
|
const warned = /* @__PURE__ */ new Set();
|
|
1665
1838
|
questions = questionRunner({
|
|
1666
1839
|
evals: asked,
|
|
@@ -1702,7 +1875,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1702
1875
|
}
|
|
1703
1876
|
});
|
|
1704
1877
|
}
|
|
1705
|
-
const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-
|
|
1878
|
+
const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-JlgoGyR0.js");
|
|
1706
1879
|
const live = skipped.filter((p) => !p.attempt.plan.skip);
|
|
1707
1880
|
const outcomes = await prepareWorkspaces(live.flatMap(({ attempt: a }) => a.workspace ? [{
|
|
1708
1881
|
workspace: a.workspace,
|
|
@@ -1763,11 +1936,14 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1763
1936
|
})), {
|
|
1764
1937
|
root: config.root,
|
|
1765
1938
|
runId,
|
|
1766
|
-
onEvent: (e) =>
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1939
|
+
onEvent: (e) => {
|
|
1940
|
+
trace?.prepare(e);
|
|
1941
|
+
renderer.onEvent({
|
|
1942
|
+
type: "prepare",
|
|
1943
|
+
at: Date.now(),
|
|
1944
|
+
...e
|
|
1945
|
+
});
|
|
1946
|
+
},
|
|
1771
1947
|
...setup.registry ? { registry: setup.registry } : {}
|
|
1772
1948
|
});
|
|
1773
1949
|
} catch (error) {
|
|
@@ -1795,18 +1971,35 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1795
1971
|
};
|
|
1796
1972
|
let engineRun;
|
|
1797
1973
|
let cutShort = false;
|
|
1798
|
-
const { MACHINES, MachineService } = await import("./machine-service-
|
|
1974
|
+
const { MACHINES, MachineService } = await import("./machine-service-Cymfk7E-.js");
|
|
1799
1975
|
const machines = new MachineService();
|
|
1976
|
+
const { TRACE } = await import("./spans-C3FlFC22.js");
|
|
1977
|
+
const { RunTrace } = await import("./run-DSKRllpd.js");
|
|
1978
|
+
const { exportSpans, otlpTarget } = await import("./otlp-ehLWBhVL.js");
|
|
1979
|
+
const exporting = otlpTarget(process.env);
|
|
1980
|
+
let exported = Promise.resolve(null);
|
|
1981
|
+
let runStarted = false;
|
|
1982
|
+
const trace = setup.dryRun ? void 0 : new RunTrace({
|
|
1983
|
+
dir: stagingDir,
|
|
1984
|
+
runId,
|
|
1985
|
+
keep: typeof exporting === "object" && exporting !== null,
|
|
1986
|
+
attributes: {
|
|
1987
|
+
"reeval.version": version,
|
|
1988
|
+
...profile && { "reeval.profile": profile.name }
|
|
1989
|
+
}
|
|
1990
|
+
}).install();
|
|
1800
1991
|
try {
|
|
1801
1992
|
engineRun = await runEngine({
|
|
1802
1993
|
run,
|
|
1803
1994
|
filters,
|
|
1804
1995
|
onPlan,
|
|
1996
|
+
...started.heartbeat ? { heartbeat: beatWith(started.heartbeat, machines) } : {},
|
|
1805
1997
|
services: {
|
|
1806
|
-
call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
|
|
1998
|
+
call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : service === TRACE ? trace?.call(body) ?? Promise.resolve(null) : service === "secrets" ? Promise.resolve(heldSecrets()) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
|
|
1807
1999
|
released: (owner) => machines.released(owner)
|
|
1808
2000
|
},
|
|
1809
2001
|
onRunStart: (files) => {
|
|
2002
|
+
runStarted = true;
|
|
1810
2003
|
writeCurrent(setup.config.root, runId);
|
|
1811
2004
|
live = writeLiveProgress({
|
|
1812
2005
|
dir: stagingDir,
|
|
@@ -1839,6 +2032,15 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1839
2032
|
questions?.onEvalEnd(e.result);
|
|
1840
2033
|
}
|
|
1841
2034
|
if (interrupted && e.type === "eval-end" && e.result.state === "skipped") return;
|
|
2035
|
+
if (e.type === "eval-progress" && e.progress.kind === "secret-warning") {
|
|
2036
|
+
const { kind: _, at, ...warning } = e.progress;
|
|
2037
|
+
return renderer.onEvent({
|
|
2038
|
+
type: "secret-warning",
|
|
2039
|
+
at,
|
|
2040
|
+
attemptId: e.key,
|
|
2041
|
+
...warning
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
1842
2044
|
renderer.onEvent(e);
|
|
1843
2045
|
},
|
|
1844
2046
|
onCancelable: (cancel) => {
|
|
@@ -1901,9 +2103,13 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1901
2103
|
} finally {
|
|
1902
2104
|
clearTimeout(budgetTimer);
|
|
1903
2105
|
await machines.close();
|
|
1904
|
-
|
|
2106
|
+
if (trace) exported = exportSpans(trace.close({
|
|
2107
|
+
status: interrupted ? "interrupted" : reached ? "budget" : "ran",
|
|
2108
|
+
started: runStarted
|
|
2109
|
+
}), process.env, version);
|
|
2110
|
+
const { removePrepared } = await import("./preflight-0Wt3wufx.js");
|
|
1905
2111
|
removePrepared(config.root, runId);
|
|
1906
|
-
const { removePreparedWorkspaces } = await import("./workspace-
|
|
2112
|
+
const { removePreparedWorkspaces } = await import("./workspace-JlgoGyR0.js");
|
|
1907
2113
|
removePreparedWorkspaces(config.root, runId);
|
|
1908
2114
|
}
|
|
1909
2115
|
if (preflightStop) throw preflightStop;
|
|
@@ -1918,6 +2124,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1918
2124
|
cutShort,
|
|
1919
2125
|
live,
|
|
1920
2126
|
questions,
|
|
2127
|
+
exported,
|
|
1921
2128
|
leftOut,
|
|
1922
2129
|
/** The attempts that ran again after an infra error, by key; none on a dry run. */
|
|
1923
2130
|
retried: setup.dryRun ? /* @__PURE__ */ new Set() : retried
|
|
@@ -1991,4 +2198,4 @@ run(process.argv.slice(2)).finally(() => {
|
|
|
1991
2198
|
});
|
|
1992
2199
|
export {};
|
|
1993
2200
|
|
|
1994
|
-
//# sourceMappingURL=cli-
|
|
2201
|
+
//# sourceMappingURL=cli-BFfZy9Ax.js.map
|