reeval 0.24.0 → 0.26.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 +64 -0
- package/README.md +16 -16
- package/THIRD_PARTY_NOTICES.md +0 -2068
- package/assets/package.json +1 -1
- package/assets/pnpm-lock.yaml +65 -50
- package/dist/{adapter-dHdepWKb.js → adapter-BHMbIeH9.js} +7 -7
- package/dist/{adapter-dHdepWKb.js.map → adapter-BHMbIeH9.js.map} +1 -1
- package/dist/{agent-CZpiwA_r.js → agent-D67VCd6Q.js} +8 -8
- package/dist/{agent-CZpiwA_r.js.map → agent-D67VCd6Q.js.map} +1 -1
- package/dist/{agents-CEapsHV-.js → agents-Dnv1MmgY.js} +40 -59
- package/dist/agents-Dnv1MmgY.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-BlA7FWRn.js +1 -0
- package/dist/{assemble-Dw1bF13I.js → assemble-CuvlsOaE.js} +117 -66
- package/dist/assemble-CuvlsOaE.js.map +1 -0
- package/dist/{attach-DvYiMu6w.js → attach-6av4DmO3.js} +24 -6
- package/dist/attach-6av4DmO3.js.map +1 -0
- package/dist/{attempt-DxR1agFo.js → attempt-D5WH0yFa.js} +3 -3
- package/dist/{attempt-DxR1agFo.js.map → attempt-D5WH0yFa.js.map} +1 -1
- package/dist/{attempt-host-DgeJFSZw.js → attempt-host-Be_-uDKJ.js} +37 -14
- package/dist/attempt-host-Be_-uDKJ.js.map +1 -0
- package/dist/boat-BCNNEJni.js +298 -0
- package/dist/boat-BCNNEJni.js.map +1 -0
- package/dist/boat-CwBW2sbp.js +1 -0
- package/dist/{boat-CUNgSc75.js → boat-CygRcaM0.js} +115 -196
- package/dist/boat-CygRcaM0.js.map +1 -0
- package/dist/{boat-images-BuFigiEb.js → boat-images-asGLQXD5.js} +19 -23
- package/dist/boat-images-asGLQXD5.js.map +1 -0
- package/dist/{bundle-yEgI3RsI.js → bundle-B7P-Awnm.js} +105 -17
- package/dist/bundle-B7P-Awnm.js.map +1 -0
- package/dist/{capture-DdEKVrwk.js → capture-BwLa-4s-.js} +20 -19
- package/dist/{capture-DdEKVrwk.js.map → capture-BwLa-4s-.js.map} +1 -1
- package/dist/capture-CG-J-1-j.js +1 -0
- package/dist/cases-Bsp-G-ZL.js +1 -0
- package/dist/{cases-B7QkvMGE.js → cases-C6vnV-gn.js} +60 -42
- 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-Z7aw8k25.js → cli-BoCPYLUQ.js} +305 -124
- package/dist/cli-BoCPYLUQ.js.map +1 -0
- package/dist/{cli-spec-3zvLC9YW.js → cli-spec-DgEWHOt3.js} +164 -50
- package/dist/cli-spec-DgEWHOt3.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/client-Dj65gXG3.js +105 -0
- package/dist/client-Dj65gXG3.js.map +1 -0
- package/dist/{cloud-owVBaSRt.js → cloud-TuNUlZ0L.js} +3 -3
- package/dist/{cloud-owVBaSRt.js.map → cloud-TuNUlZ0L.js.map} +1 -1
- package/dist/{cloud-files-BjinrTTe.js → cloud-files-CBovrfZA.js} +8 -8
- package/dist/{cloud-files-BjinrTTe.js.map → cloud-files-CBovrfZA.js.map} +1 -1
- package/dist/{cloud-DuHcNQVV.js → cloud-igGIS4Bm.js} +43 -20
- package/dist/cloud-igGIS4Bm.js.map +1 -0
- package/dist/cloud-project-Ch7jjlwh.js +110 -0
- package/dist/cloud-project-Ch7jjlwh.js.map +1 -0
- package/dist/cloud-project-DdUVB4EE.js +1 -0
- package/dist/cloud-push-DvnqOgRd.js +817 -0
- package/dist/cloud-push-DvnqOgRd.js.map +1 -0
- package/dist/cloud-push-MXKreNyq.js +1 -0
- package/dist/{cloud-run-DqMkSGYB.js → cloud-run-CbGF8Lwt.js} +285 -48
- package/dist/cloud-run-CbGF8Lwt.js.map +1 -0
- package/dist/cloud-run-CghE2dG6.js +1 -0
- package/dist/{cloud-secrets-Bak83tik.js → cloud-secrets-BWoV4ddM.js} +43 -35
- package/dist/cloud-secrets-BWoV4ddM.js.map +1 -0
- package/dist/cloud-secrets-DlPRfS2l.js +1 -0
- package/dist/command-Bps8kBML.js +141 -0
- package/dist/command-Bps8kBML.js.map +1 -0
- package/dist/{command-CtmSJzPC.js → command-ByUmSm2D.js} +29 -23
- package/dist/command-ByUmSm2D.js.map +1 -0
- package/dist/{command-CeygdoVe.js → command-CQk7FCI1.js} +92 -26
- package/dist/command-CQk7FCI1.js.map +1 -0
- package/dist/{command-CoHN1ibe.js → command-CxuGky7A.js} +44 -20
- package/dist/command-CxuGky7A.js.map +1 -0
- package/dist/{command-efTGfUYb.js → command-pxfK2bkV.js} +26 -16
- package/dist/command-pxfK2bkV.js.map +1 -0
- package/dist/commands-Cl3Y_UXg.js +1 -0
- package/dist/{commands-DR-NolV2.js → commands-DGWNNyRD.js} +54 -38
- package/dist/commands-DGWNNyRD.js.map +1 -0
- package/dist/{config-Bn2OhCN_.js → config-mU7wFvQq.js} +46 -32
- package/dist/config-mU7wFvQq.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/{cursor-catalog-BYIDSsLn.js → cursor-catalog-EOFft6LJ.js} +4 -4
- package/dist/{cursor-catalog-BYIDSsLn.js.map → cursor-catalog-EOFft6LJ.js.map} +1 -1
- package/dist/{daytona-CWs9j9mt.js → daytona-DtCjv8rH.js} +22 -17
- package/dist/daytona-DtCjv8rH.js.map +1 -0
- package/dist/daytona-image-Xy5o53Ji.js +1 -0
- package/dist/{daytona-image-DmGlFAyq.js → daytona-image-w4uTRZ0z.js} +6 -6
- package/dist/{daytona-image-DmGlFAyq.js.map → daytona-image-w4uTRZ0z.js.map} +1 -1
- package/dist/db-BcplCdzu.js +1 -0
- package/dist/{db-D6yQib7M.js → db-yigMuHM2.js} +31 -119
- package/dist/db-yigMuHM2.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-Ck6ViSaI.js → default-effort-B1b8t81b.js} +1 -1
- package/dist/{default-effort-Bpz5ULfC.js → default-effort-BDYXBzu5.js} +3 -3
- package/dist/{default-effort-Bpz5ULfC.js.map → default-effort-BDYXBzu5.js.map} +1 -1
- package/dist/{dist-CZtW7eI5.js → dist-DCG7vZGQ.js} +3 -3
- package/dist/{dist-CZtW7eI5.js.map → dist-DCG7vZGQ.js.map} +1 -1
- package/dist/{docker-Dgw4aaRk.js → docker-DcnX2WpM.js} +4 -4
- package/dist/{docker-Dgw4aaRk.js.map → docker-DcnX2WpM.js.map} +1 -1
- package/dist/{docker-Bbi4kmFj.js → docker-XCyDUd7_.js} +1 -1
- package/dist/{doctor-BfS6jswW.js → doctor-DTKa8rrq.js} +27 -27
- package/dist/{doctor-BfS6jswW.js.map → doctor-DTKa8rrq.js.map} +1 -1
- package/dist/duration-Bz2H7pXb.js +34 -0
- package/dist/duration-Bz2H7pXb.js.map +1 -0
- package/dist/{environment-BY8lVFFK.js → environment-BCBg6c0p.js} +38 -12
- package/dist/environment-BCBg6c0p.js.map +1 -0
- package/dist/errors-BjzEWESY.js +93 -0
- package/dist/errors-BjzEWESY.js.map +1 -0
- package/dist/{errors-P8oHhNzy.js → errors-Cda7UzRA.js} +2 -2
- package/dist/{errors-P8oHhNzy.js.map → errors-Cda7UzRA.js.map} +1 -1
- package/dist/{eval-source-BB8In3xo.js → eval-source-CSPyKuV6.js} +6 -6
- package/dist/{eval-source-BB8In3xo.js.map → eval-source-CSPyKuV6.js.map} +1 -1
- package/dist/{evaluate-B9_nukrc.d.ts → evaluate-Nnh0iPuo.d.ts} +1 -1
- package/dist/{evaluate-B8I9AKgw.js → evaluate-wgW1lGQj.js} +280 -60
- package/dist/evaluate-wgW1lGQj.js.map +1 -0
- package/dist/{events-D97ZzAeq.js → events-DG_Cq5Pn.js} +154 -33
- package/dist/events-DG_Cq5Pn.js.map +1 -0
- package/dist/events-RaK1pDmT.js +1 -0
- package/dist/{fake-bootstrap-4DFtzib0.js → fake-bootstrap-uCyHhnMO.js} +2 -2
- package/dist/{fake-bootstrap-4DFtzib0.js.map → fake-bootstrap-uCyHhnMO.js.map} +1 -1
- package/dist/files-BnsRehge.js +1 -0
- package/dist/{files-B0DbptiO.js → files-Bv6ipFjc.js} +4 -4
- package/dist/{files-B0DbptiO.js.map → files-Bv6ipFjc.js.map} +1 -1
- package/dist/{files-GBTUBAek.js → files-CcnSILye.js} +3 -3
- package/dist/{files-GBTUBAek.js.map → files-CcnSILye.js.map} +1 -1
- package/dist/{files-BesexM88.js → files-CjPm3yyj.js} +173 -41
- package/dist/files-CjPm3yyj.js.map +1 -0
- package/dist/files-CkmCV5rH.js +1 -0
- package/dist/{files-DE13BqBC.js → files-ClUbQPj9.js} +2 -2
- package/dist/{files-DE13BqBC.js.map → files-ClUbQPj9.js.map} +1 -1
- package/dist/{files-B4K1k__s.js → files-CqfVnRXw.js} +5 -5
- package/dist/{files-B4K1k__s.js.map → files-CqfVnRXw.js.map} +1 -1
- package/dist/files-D4Hb9HZS.js +1 -0
- package/dist/files-DCcRkJN4.js +1 -0
- package/dist/{files-TwSVeWwM.js → files-GAocj_Z1.js} +27 -41
- package/dist/files-GAocj_Z1.js.map +1 -0
- package/dist/gateway.d.ts +1 -1
- package/dist/{git-DatgUcnf.js → git-CRPr6I2T.js} +3 -3
- package/dist/{git-DatgUcnf.js.map → git-CRPr6I2T.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-EZNoeUBf.js → harness-DvqNGwl6.js} +2 -2
- package/dist/{harness-EZNoeUBf.js.map → harness-DvqNGwl6.js.map} +1 -1
- package/dist/{harness-install-HgR73tpF.js → harness-install-B0Y2GjnO.js} +4 -4
- package/dist/{harness-install-HgR73tpF.js.map → harness-install-B0Y2GjnO.js.map} +1 -1
- package/dist/harness.d.ts +1 -1
- package/dist/harness.js +1 -1
- package/dist/http-DtlSzw4A.js +96 -0
- package/dist/http-DtlSzw4A.js.map +1 -0
- package/dist/{ids-DqEvrBFZ.js → ids-CtxRn13a.js} +4 -3
- package/dist/ids-CtxRn13a.js.map +1 -0
- package/dist/{images-SRE4f3SM.js → images-JspTw1vt.js} +13 -13
- package/dist/{images-SRE4f3SM.js.map → images-JspTw1vt.js.map} +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +4 -5
- package/dist/init-BHIWfE2L.js +1 -0
- package/dist/{init-D5F9MYPC.js → init-wmMbauok.js} +6 -6
- package/dist/{init-D5F9MYPC.js.map → init-wmMbauok.js.map} +1 -1
- package/dist/{ink-list-CLq6YVB8.js → ink-list-B5Gul5iZ.js} +7 -6
- package/dist/ink-list-B5Gul5iZ.js.map +1 -0
- package/dist/{inputs-B_FsOD2N.js → inputs-BWTtz1-v.js} +6 -6
- package/dist/{inputs-B_FsOD2N.js.map → inputs-BWTtz1-v.js.map} +1 -1
- package/dist/inputs-load-C8HEtAej.js +1 -0
- package/dist/{inputs-load-B4MFkp0Q.js → inputs-load-DQRC3dUA.js} +3 -3
- package/dist/{inputs-load-B4MFkp0Q.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 +1 -1
- package/dist/internal/vm.js +1 -1
- package/dist/{invocations-BxQqe5GU.js → invocations-CSA9OKFn.js} +5 -5
- package/dist/{invocations-BxQqe5GU.js.map → invocations-CSA9OKFn.js.map} +1 -1
- package/dist/issue-ipG9Yy1h.js +1 -0
- package/dist/{issue-iErT9KkK.js → issue-lKqtL3iX.js} +4 -4
- package/dist/{issue-iErT9KkK.js.map → issue-lKqtL3iX.js.map} +1 -1
- package/dist/{jiti-CtahaHaY.js → jiti-aNfS_lSj.js} +2 -2
- package/dist/{jiti-CtahaHaY.js.map → jiti-aNfS_lSj.js.map} +1 -1
- package/dist/{judge-MOKPsr6R.js → judge-etHC4K02.js} +5 -5
- package/dist/{judge-MOKPsr6R.js.map → judge-etHC4K02.js.map} +1 -1
- package/dist/judge.d.ts +1 -1
- package/dist/judge.js +1 -1
- package/dist/{judgments-Dur4D2pj.js → judgments-CVCUWT-g.js} +7 -4
- package/dist/{judgments-Dur4D2pj.js.map → judgments-CVCUWT-g.js.map} +1 -1
- package/dist/{kinds-Dohijzi-.js → kinds-BQX5ZxpK.js} +37 -11
- package/dist/{kinds-Dohijzi-.js.map → kinds-BQX5ZxpK.js.map} +1 -1
- package/dist/labels-Dtyf5-pd.js +251 -0
- package/dist/labels-Dtyf5-pd.js.map +1 -0
- package/dist/{layout-BhhJAEgf.js → layout-Co4tPHWI.js} +3 -3
- package/dist/{layout-BhhJAEgf.js.map → layout-Co4tPHWI.js.map} +1 -1
- package/dist/link-Cqs2DhxR.js +127 -0
- package/dist/link-Cqs2DhxR.js.map +1 -0
- package/dist/{list-ClDb8qiX.js → list-CjcNH-5e.js} +10 -7
- package/dist/list-CjcNH-5e.js.map +1 -0
- package/dist/{live-QFILMmql.js → live-BRF0ogR6.js} +3 -5
- package/dist/live-BRF0ogR6.js.map +1 -0
- package/dist/live-DTpM9b4D.js +56 -0
- package/dist/live-DTpM9b4D.js.map +1 -0
- package/dist/{machine-service-xFhakTs5.js → machine-service-BetvBWHz.js} +146 -13
- package/dist/machine-service-BetvBWHz.js.map +1 -0
- package/dist/{machine-service-DpJScNtA.js → machine-service-XFymGCHj.js} +1 -1
- package/dist/{machines-Cm-rU7jp.js → machines-CkDTbMZ6.js} +25 -25
- package/dist/{machines-Cm-rU7jp.js.map → machines-CkDTbMZ6.js.map} +1 -1
- package/dist/markdown-COts-jxf.js +653 -0
- package/dist/markdown-COts-jxf.js.map +1 -0
- package/dist/{model-Rmv-L9Jb.js → model-BYHXnYLe.js} +1 -1
- package/dist/model-CrsA2Evf.js +1 -0
- package/dist/{model-CcvSrrq9.js → model-DNC53cPL.js} +4 -4
- package/dist/{model-CcvSrrq9.js.map → model-DNC53cPL.js.map} +1 -1
- package/dist/{model-D9WMMEWD.js → model-F4UH_YG6.js} +4 -4
- package/dist/{model-D9WMMEWD.js.map → model-F4UH_YG6.js.map} +1 -1
- package/dist/{model-mTaaEkeQ.js → model-xemZQ7DK.js} +251 -65
- package/dist/model-xemZQ7DK.js.map +1 -0
- package/dist/{node-Bl2CtSjB.js → node-gPT36n_n.js} +19 -8
- package/dist/{node-Bl2CtSjB.js.map → node-gPT36n_n.js.map} +1 -1
- package/dist/options-CAZfxE0h.js +1 -0
- package/dist/otlp-BxPnO99e.js +1 -0
- package/dist/otlp-DbNz-occ.js +25 -0
- package/dist/otlp-DbNz-occ.js.map +1 -0
- package/dist/outcome-1LBk2e3w.js +38 -0
- package/dist/outcome-1LBk2e3w.js.map +1 -0
- package/dist/{patch-DhJDHRFs.js → patch-Dxzv8msl.js} +3 -3
- package/dist/{patch-DhJDHRFs.js.map → patch-Dxzv8msl.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-CC0bKbm9.js → plan-DSJX7Oyq.js} +9 -9
- package/dist/{plan-CC0bKbm9.js.map → plan-DSJX7Oyq.js.map} +1 -1
- package/dist/{plugins-PwEtW8GH.js → plugins-DVEOMsYw.js} +7 -7
- package/dist/{plugins-PwEtW8GH.js.map → plugins-DVEOMsYw.js.map} +1 -1
- package/dist/{preflight-BHUEfA4m.js → preflight-B3oLZttl.js} +4 -4
- package/dist/{preflight-BHUEfA4m.js.map → preflight-B3oLZttl.js.map} +1 -1
- package/dist/preflight-CLYRuQ3r.js +1 -0
- package/dist/{preflight-DEV_vrdB.js → preflight-DXMD6jou.js} +1 -1
- package/dist/{preflight-BzvLYQ70.js → preflight-dUe0QiPK.js} +9 -9
- package/dist/{preflight-BzvLYQ70.js.map → preflight-dUe0QiPK.js.map} +1 -1
- package/dist/{prepare-D7hPrh7Q.js → prepare-BTaX7vcC.js} +8 -8
- package/dist/{prepare-D7hPrh7Q.js.map → prepare-BTaX7vcC.js.map} +1 -1
- package/dist/{prepare-DS42k409.js → prepare-QdiYPOwR.js} +2 -2
- package/dist/prices-CfnkJOth.js +1 -0
- package/dist/{prices-DXJsP2Ha.js → prices-CoLymMRd.js} +3 -3
- package/dist/{prices-DXJsP2Ha.js.map → prices-CoLymMRd.js.map} +1 -1
- package/dist/{process-RPlEhpHz.js → process-C_nh1H7X.js} +9 -3
- package/dist/process-C_nh1H7X.js.map +1 -0
- package/dist/provenance-Cylt_YxT.d.ts +222 -0
- package/dist/{provenance-DgQJ-dq7.js → provenance-Di42xQIS.js} +5 -5
- package/dist/{provenance-DgQJ-dq7.js.map → provenance-Di42xQIS.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-N4HDMeeo.js → providers-Bm5NLaRh.js} +1 -1
- package/dist/{providers-B5Vr0hKH.js → providers-CTTfYbm0.js} +28 -28
- package/dist/{providers-B5Vr0hKH.js.map → providers-CTTfYbm0.js.map} +1 -1
- package/dist/query-CTMdWXbx.js +1 -0
- package/dist/{query-CmTjYbqh.js → query-TzNtTvwf.js} +2 -2
- package/dist/{query-CmTjYbqh.js.map → query-TzNtTvwf.js.map} +1 -1
- package/dist/{questions-DnqkJga0.js → questions-BqisU7A0.js} +19 -13
- package/dist/questions-BqisU7A0.js.map +1 -0
- package/dist/{recipe-B0NeT_Sn.js → recipe-DzjXne35.js} +4 -4
- package/dist/{recipe-B0NeT_Sn.js.map → recipe-DzjXne35.js.map} +1 -1
- package/dist/{record-2liAelrB.js → record-Cj3yWR0E.js} +43 -12
- package/dist/record-Cj3yWR0E.js.map +1 -0
- package/dist/{redact-DMueYS-v.js → redact-CfTHYWLv.js} +30 -1
- package/dist/redact-CfTHYWLv.js.map +1 -0
- package/dist/{remarks-D5qOZzcX.js → remarks-BPKGorBW.js} +4 -2
- package/dist/remarks-BPKGorBW.js.map +1 -0
- package/dist/{remarks-D-9f1y1B.js → remarks-CYXYiB_O.js} +21 -11
- package/dist/{remarks-D-9f1y1B.js.map → remarks-CYXYiB_O.js.map} +1 -1
- package/dist/{remote-B7BIRUTK.js → remote-D4UEa7Rs.js} +10 -8
- package/dist/{remote-B7BIRUTK.js.map → remote-D4UEa7Rs.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-5XwZBIRK.js +113 -0
- package/dist/report-inputs-5XwZBIRK.js.map +1 -0
- package/dist/{resolve-B60w6DcB.js → resolve-BEltmYhD.js} +6 -5
- package/dist/resolve-BEltmYhD.js.map +1 -0
- package/dist/resolve-C7A5Q2Jj.js +1 -0
- package/dist/{resolve-t9sOkGGS.js → resolve-nRzGt4Ff.js} +30 -13
- package/dist/resolve-nRzGt4Ff.js.map +1 -0
- package/dist/{results-Df910ONm.js → results-DXBaxfIM.js} +11 -7
- package/dist/{results-Df910ONm.js.map → results-DXBaxfIM.js.map} +1 -1
- package/dist/{resume-4Q9q8AcE.js → resume-DZPjjToJ.js} +46 -21
- package/dist/resume-DZPjjToJ.js.map +1 -0
- package/dist/{retry-C15f5yyy.js → retry-rLdXCinf.js} +5 -5
- package/dist/{retry-C15f5yyy.js.map → retry-rLdXCinf.js.map} +1 -1
- package/dist/{root-Cm93-6ix.js → root-Co0jhOT5.js} +2 -2
- package/dist/{root-Cm93-6ix.js.map → root-Co0jhOT5.js.map} +1 -1
- package/dist/run-D_o_8Fkv.js +128 -0
- package/dist/run-D_o_8Fkv.js.map +1 -0
- package/dist/{client-kUwtq-vt.js → runtime-DsRjnydE.js} +525 -105
- package/dist/runtime-DsRjnydE.js.map +1 -0
- package/dist/sandbox/boat.d.ts +1 -1
- package/dist/sandbox/boat.js +2 -2
- package/dist/sandbox/daytona.d.ts +1 -1
- package/dist/sandbox/daytona.js +1 -1
- package/dist/{sandbox-BffNervX.js → sandbox-B8gDRs5E.js} +3 -3
- package/dist/{sandbox-BffNervX.js.map → sandbox-B8gDRs5E.js.map} +1 -1
- package/dist/sandbox.d.ts +1 -1
- package/dist/sandbox.js +1 -1
- package/dist/{secrets-file-Dtd3h3kY.js → secrets-file-B8rUJV2L.js} +4 -4
- package/dist/{secrets-file-Dtd3h3kY.js.map → secrets-file-B8rUJV2L.js.map} +1 -1
- package/dist/server-eUWbjZoi.js +1 -0
- package/dist/server-mJzPXBMM.js +204 -0
- package/dist/server-mJzPXBMM.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-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-C6JgdJdJ.js +1 -0
- package/dist/{source-zoRWRMql.js → source-DxgCge_u.js} +33 -18
- package/dist/source-DxgCge_u.js.map +1 -0
- package/dist/spans-B4MwgEyy.js +1 -0
- package/dist/spans-Dq3fo6HM.js +6 -0
- package/dist/spans-Dq3fo6HM.js.map +1 -0
- package/dist/spans-tf3biLpT.js +72 -0
- package/dist/spans-tf3biLpT.js.map +1 -0
- package/dist/src-B2psni1B.js +1 -0
- package/dist/{src-DiS13D_q.js → src-BI35cTig.js} +2 -2
- package/dist/src-BLePHsjw.js +2 -0
- package/dist/{src-Bj3WJs3t.js → src-CftydE9Q.js} +2 -2
- package/dist/{src-CDoAEO4u.js → src-ClMhIgi3.js} +2 -2
- package/dist/{src-CDoAEO4u.js.map → src-ClMhIgi3.js.map} +1 -1
- package/dist/{src-CUrcaZ91.js → src-CnOj4_n4.js} +1 -1
- package/dist/src-Cs3nmbrr.js +2 -0
- package/dist/{src-TMKittwH.js → src-D0GezGkJ.js} +2 -2
- package/dist/{src-OC89dAjO.js → src-D1Q6ElaF.js} +182 -36
- package/dist/src-D1Q6ElaF.js.map +1 -0
- package/dist/{src-CFBg2ecq.js → src-D_9qqp-Y.js} +2 -2
- 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-CGBwMZgM.js → src-Dm2YIeXn.js} +8 -8
- package/dist/{src-CGBwMZgM.js.map → src-Dm2YIeXn.js.map} +1 -1
- package/dist/{src-CcbV6VpV.js → src-Dpzfe-vl.js} +3 -3
- 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-BQWAxhKD.js → src-YpmRtJmP.js} +3 -3
- package/dist/{src-BQWAxhKD.js.map → src-YpmRtJmP.js.map} +1 -1
- package/dist/{src-Bb3k9Kn_.js → src-nIPDQ297.js} +66 -11
- package/dist/{src-Bb3k9Kn_.js.map → src-nIPDQ297.js.map} +1 -1
- package/dist/ssh-pool-B9bnSQIj.js +1 -0
- package/dist/{ssh-pool-DwboLN9O.js → ssh-pool-Gv8gAsgZ.js} +19 -16
- package/dist/ssh-pool-Gv8gAsgZ.js.map +1 -0
- package/dist/{start-BwMyDneA.js → start-YOYgbaNU.js} +45 -13
- package/dist/start-YOYgbaNU.js.map +1 -0
- package/dist/state-Bvsi2WgZ.js +1 -0
- package/dist/{state-CXTaT0t8.js → state-CJlYQtdl.js} +21 -38
- package/dist/state-CJlYQtdl.js.map +1 -0
- package/dist/store/local.d.ts +1 -1
- package/dist/store/s3.d.ts +1 -1
- package/dist/studio-share-4T6GYO7l.js +209 -0
- package/dist/studio-share-4T6GYO7l.js.map +1 -0
- package/dist/suite-fO-u8jlS.js +2 -0
- package/dist/{suite-C4XSg6Ls.js → suite-oH7uiCRq.js} +107 -106
- 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-bnI6WWaL.js → sync-BNduS38K.js} +6 -6
- package/dist/{sync-bnI6WWaL.js.map → sync-BNduS38K.js.map} +1 -1
- package/dist/{tart-CSP5Q0qV.js → tart-B6Uz4S3I.js} +43 -13
- package/dist/tart-B6Uz4S3I.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-d9UvIfe3.js → tart-bake-B4QyNb7f.js} +1 -1
- package/dist/{tart-bake-BCKRfyKm.js → tart-bake-s99wBzxO.js} +9 -9
- package/dist/{tart-bake-BCKRfyKm.js.map → tart-bake-s99wBzxO.js.map} +1 -1
- package/dist/{tart-cli-CqSpUYGV.js → tart-cli-B0xVYBti.js} +6 -4
- package/dist/tart-cli-B0xVYBti.js.map +1 -0
- package/dist/{tart-cli-C4d5FXG1.js → tart-cli-DfteJCN9.js} +1 -1
- package/dist/{tart-hosts-Du7SZM4w.js → tart-hosts-B3Ze8aMp.js} +1 -1
- package/dist/{tart-hosts-G0EUDt07.js → tart-hosts-DfVUcZqA.js} +6 -6
- package/dist/{tart-hosts-G0EUDt07.js.map → tart-hosts-DfVUcZqA.js.map} +1 -1
- package/dist/{tart-images-De0-ib7R.js → tart-images-yzIyb0bQ.js} +8 -3
- package/dist/tart-images-yzIyb0bQ.js.map +1 -0
- package/dist/telemetry-bBhK3DSs.js +399 -0
- package/dist/telemetry-bBhK3DSs.js.map +1 -0
- package/dist/testing.d.ts +11 -2
- package/dist/testing.js +4 -4
- package/dist/{tool-class-B3ZFTSOw.js → tool-class-CB-m4PiF.js} +2 -2
- package/dist/{tool-class-B3ZFTSOw.js.map → tool-class-CB-m4PiF.js.map} +1 -1
- package/dist/{trace-CfppUzD9.js → trace-CJQLlAbB.js} +2 -2
- package/dist/{trace-CfppUzD9.js.map → trace-CJQLlAbB.js.map} +1 -1
- package/dist/{traits-Bj1PM5F7.js → traits-DPIffsN8.js} +2 -2
- package/dist/{traits-Bj1PM5F7.js.map → traits-DPIffsN8.js.map} +1 -1
- package/dist/{transcript-CW02A4s9.js → transcript-TWiaAuoL.js} +2 -2
- package/dist/{transcript-CW02A4s9.js.map → transcript-TWiaAuoL.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-D4WEnzhY.d.ts → types-BZaItiui.d.ts} +159 -13
- package/dist/types-Buut5yGe.js +29 -0
- package/dist/{types-CbcnJxCy.js.map → types-Buut5yGe.js.map} +1 -1
- package/dist/types-C48zuZbT.d.ts +156 -0
- package/dist/types-CYz4dqAd.d.ts +1366 -0
- package/dist/{ui-DfvPNmPP.js → ui-BIYUGm8D.js} +21 -17
- package/dist/ui-BIYUGm8D.js.map +1 -0
- package/dist/{vertex-BLxYasfw.js → vertex-DQQGhUn7.js} +2 -2
- package/dist/{vertex-BLxYasfw.js.map → vertex-DQQGhUn7.js.map} +1 -1
- package/dist/vertex-DtWe0Xf6.js +1 -0
- package/dist/view/index.d.ts +142 -809
- 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-DOYgIWRs.js +2 -0
- package/dist/{views-ChoSQxfF.js → views-DPsEJBBP.js} +6 -6
- package/dist/{views-ChoSQxfF.js.map → views-DPsEJBBP.js.map} +1 -1
- package/dist/{vm-container-DOtIi_rd.js → vm-container-rHUmgBRf.js} +13 -11
- package/dist/vm-container-rHUmgBRf.js.map +1 -0
- package/dist/{vm-images-CHutQVml.js → vm-images-BC2ZjZl5.js} +19 -21
- package/dist/vm-images-BC2ZjZl5.js.map +1 -0
- package/dist/wait-CixM6W0G.js +65 -0
- package/dist/wait-CixM6W0G.js.map +1 -0
- package/dist/{worker-entry-CKBfEt0h.js → worker-entry-CN1eVLzz.js} +7 -7
- package/dist/{worker-entry-CKBfEt0h.js.map → worker-entry-CN1eVLzz.js.map} +1 -1
- package/dist/{workspace-Cip2dVwU.js → workspace-BS-FUp5I.js} +9 -9
- package/dist/{workspace-Cip2dVwU.js.map → workspace-BS-FUp5I.js.map} +1 -1
- package/dist/workspace-D8HqjfsQ.js +1 -0
- package/package.json +38 -1
- 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/dist/agents-CEapsHV-.js.map +0 -1
- package/dist/analysis-BnG_1x_O.js.map +0 -1
- package/dist/app-files-Dsr3U1Q7.js +0 -10
- package/dist/app-files-Dsr3U1Q7.js.map +0 -1
- package/dist/assemble-DUtbByvj.js +0 -1
- package/dist/assemble-Dw1bF13I.js.map +0 -1
- package/dist/attach-DvYiMu6w.js.map +0 -1
- package/dist/attempt-host-DgeJFSZw.js.map +0 -1
- package/dist/boat-BBPOc_bs.js +0 -1
- package/dist/boat-CUNgSc75.js.map +0 -1
- package/dist/boat-images-BuFigiEb.js.map +0 -1
- package/dist/bundle-yEgI3RsI.js.map +0 -1
- package/dist/capture-DxxB3d7p.js +0 -1
- package/dist/cases-B7QkvMGE.js.map +0 -1
- package/dist/cases-CA7gxxdr.js +0 -1
- package/dist/cli-Z7aw8k25.js.map +0 -1
- package/dist/cli-spec-3zvLC9YW.js.map +0 -1
- package/dist/client-kUwtq-vt.js.map +0 -1
- package/dist/cloud-DuHcNQVV.js.map +0 -1
- package/dist/cloud-run-C08P_Uap.js +0 -1
- package/dist/cloud-run-DqMkSGYB.js.map +0 -1
- package/dist/cloud-secrets-Bak83tik.js.map +0 -1
- package/dist/command-Bs6Knfm4.js +0 -298
- package/dist/command-Bs6Knfm4.js.map +0 -1
- package/dist/command-CeygdoVe.js.map +0 -1
- package/dist/command-CoHN1ibe.js.map +0 -1
- package/dist/command-CtmSJzPC.js.map +0 -1
- package/dist/command-efTGfUYb.js.map +0 -1
- package/dist/commands-B_cAs8nG.js +0 -1
- package/dist/commands-DR-NolV2.js.map +0 -1
- package/dist/config-Bn2OhCN_.js.map +0 -1
- package/dist/context-Ba7PNMMe.js +0 -120
- package/dist/context-Ba7PNMMe.js.map +0 -1
- package/dist/daytona-CWs9j9mt.js.map +0 -1
- package/dist/daytona-image-BjVpi3KS.js +0 -1
- package/dist/db-Bjq6qr6c.js +0 -2
- package/dist/db-D6yQib7M.js.map +0 -1
- package/dist/debug-CF4p4Lp_.js +0 -1
- package/dist/debug-CIXzB4wK.js.map +0 -1
- package/dist/environment-BY8lVFFK.js.map +0 -1
- package/dist/evaluate-B8I9AKgw.js.map +0 -1
- package/dist/events-D97ZzAeq.js.map +0 -1
- package/dist/files-5HsFIpxw.js +0 -1
- package/dist/files-BNg3wgw_.js +0 -1
- package/dist/files-BesexM88.js.map +0 -1
- package/dist/files-DNgQwgA0.js +0 -1
- package/dist/files-DvDUSrWL.js +0 -1
- package/dist/files-TwSVeWwM.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/ids-DqEvrBFZ.js.map +0 -1
- package/dist/init-CS5kEaVg.js +0 -1
- package/dist/ink-list-CLq6YVB8.js.map +0 -1
- package/dist/inputs-load-D4IsEjq3.js +0 -1
- package/dist/issue-DmSorsTF.js +0 -1
- package/dist/list-ClDb8qiX.js.map +0 -1
- package/dist/live-C7iGaDCA.js +0 -120
- package/dist/live-C7iGaDCA.js.map +0 -1
- package/dist/live-C7kN5v2P.js +0 -1
- package/dist/live-QFILMmql.js.map +0 -1
- package/dist/machine-service-xFhakTs5.js.map +0 -1
- package/dist/model-Colu5mEp.js +0 -1
- package/dist/model-mTaaEkeQ.js.map +0 -1
- package/dist/options-CmRy82gl.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-xa8_eGOW.js +0 -1
- package/dist/prices-C_mbZa5a.js +0 -1
- package/dist/process-RPlEhpHz.js.map +0 -1
- package/dist/provider-DHT20Gl8.js +0 -1
- package/dist/query-BXV6pRyI.js +0 -1
- package/dist/questions-DnqkJga0.js.map +0 -1
- package/dist/record-2liAelrB.js.map +0 -1
- package/dist/redact-DMueYS-v.js.map +0 -1
- package/dist/remarks-D5qOZzcX.js.map +0 -1
- package/dist/resolve-B60w6DcB.js.map +0 -1
- package/dist/resolve-CCLiJX4i.js +0 -1
- package/dist/resolve-t9sOkGGS.js.map +0 -1
- package/dist/resources-DqdwihhT.js.map +0 -1
- package/dist/resume-4Q9q8AcE.js.map +0 -1
- package/dist/runtime-CIsljVBy.js +0 -457
- package/dist/runtime-CIsljVBy.js.map +0 -1
- package/dist/server-CeYUmuuu.js +0 -1
- package/dist/server-fSNuT3Z4.js +0 -284
- package/dist/server-fSNuT3Z4.js.map +0 -1
- package/dist/services-BG8xuU82.js.map +0 -1
- package/dist/shared-DtZwIAfy.js.map +0 -1
- package/dist/slug-IHh3f770.js.map +0 -1
- package/dist/source-n7nUVm9p.js +0 -1
- package/dist/source-zoRWRMql.js.map +0 -1
- package/dist/src-9V3C6A7C.js +0 -2
- package/dist/src-CB5cZhaN.js +0 -2
- package/dist/src-DB0vml0O.js +0 -1
- package/dist/src-OC89dAjO.js.map +0 -1
- package/dist/ssh-pool-ChpT-fDU.js +0 -1
- package/dist/ssh-pool-DwboLN9O.js.map +0 -1
- package/dist/start-BwMyDneA.js.map +0 -1
- package/dist/state-CXTaT0t8.js.map +0 -1
- package/dist/state-CltRWlCu.js +0 -1
- package/dist/suite-C4XSg6Ls.js.map +0 -1
- package/dist/suite-CIsyPqPA.js +0 -2
- package/dist/summary-DeeQJAR5.js +0 -169
- package/dist/summary-DeeQJAR5.js.map +0 -1
- package/dist/tart-CSP5Q0qV.js.map +0 -1
- package/dist/tart-cli-CqSpUYGV.js.map +0 -1
- package/dist/tart-images-De0-ib7R.js.map +0 -1
- package/dist/types-CbcnJxCy.js +0 -15
- package/dist/ui-DfvPNmPP.js.map +0 -1
- package/dist/vertex-DZDUpp0W.js +0 -1
- package/dist/views-DU0PM0UW.js +0 -2
- package/dist/vm-container-DOtIi_rd.js.map +0 -1
- package/dist/vm-images-CHutQVml.js.map +0 -1
- package/dist/workspace-BKcNJAPb.js +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import { n as UsageError } from "./errors-ttMTnIYX.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as INSTEAD, l as helpText, n as FLAGS, r as GLOBAL, s as commandHelpText, t as COMMANDS } from "./cli-spec-
|
|
4
|
-
import { At as
|
|
5
|
-
import {
|
|
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-DgEWHOt3.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-mU7wFvQq.js";
|
|
5
|
+
import { w as wantsCloud } from "./cloud-run-CbGF8Lwt.js";
|
|
6
|
+
import { t as RUN_ID } from "./api-ZeGnedB3.js";
|
|
6
7
|
import { t as budgetMarker } from "./budget-BcxLYY5L.js";
|
|
7
8
|
import { n as loadEnvFiles, t as inCI } from "./env-8x1O8I1M.js";
|
|
8
|
-
import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-
|
|
9
|
-
import { c as
|
|
9
|
+
import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-BCBg6c0p.js";
|
|
10
|
+
import { c as beatWith, d as isAttachUrl, f as isEventsUrl, h as teeRenderer, l as displayUrl, m as openEventStream, n as ATTEMPTS_HEARTBEAT_RANGE, p as notEventStream, t as ATTEMPTS_HEARTBEAT_MS } from "./events-DG_Cq5Pn.js";
|
|
10
11
|
import { r as openRouterFallbacks } from "./openrouter-models-B1sIOTD2.js";
|
|
11
|
-
import { y as vertexSettingsIn } from "./vertex-
|
|
12
|
-
import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-
|
|
13
|
-
import { a as fromCwd, l as relativeFile, o as newRunId, r as cwdIn } from "./ids-
|
|
14
|
-
import { l as judgeModelName, m as unusedGatewayKey } from "./judge-
|
|
15
|
-
import { A as
|
|
16
|
-
import { n as preflight } from "./preflight-
|
|
17
|
-
import { C as stripCredentials, S as registerSecret, _ as redactSecrets } from "./redact-
|
|
18
|
-
import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-
|
|
19
|
-
import { o as PACKAGE_VERSION } from "./root-
|
|
20
|
-
import {
|
|
21
|
-
import { i as heldSecrets, o as readSecretsFile } from "./secrets-file-
|
|
22
|
-
import { r as localStudio } from "./resolve-
|
|
23
|
-
import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-
|
|
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-Di42xQIS.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-etHC4K02.js";
|
|
16
|
+
import { A as writeCurrent, C as restoreRetry, E as savedInvocation, O as stoppedRetry, 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, j as writeLiveProgress, k as sweepStaging, 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-DZPjjToJ.js";
|
|
17
|
+
import { n as preflight } from "./preflight-dUe0QiPK.js";
|
|
18
|
+
import { C as stripCredentials, S as registerSecret, _ as redactSecrets } from "./redact-CfTHYWLv.js";
|
|
19
|
+
import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-CSA9OKFn.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-BQX5ZxpK.js";
|
|
22
|
+
import { i as heldSecrets, o as readSecretsFile } from "./secrets-file-B8rUJV2L.js";
|
|
23
|
+
import { r as localStudio } from "./resolve-BEltmYhD.js";
|
|
24
|
+
import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-BNduS38K.js";
|
|
24
25
|
import { i as formatDuration, n as clip } from "./text-B8-W3Cvn.js";
|
|
25
|
-
import { a as traitFilters, o as traitFlags, t as checkTraitKeys } from "./traits-
|
|
26
|
+
import { a as traitFilters, o as traitFlags, t as checkTraitKeys } from "./traits-DPIffsN8.js";
|
|
26
27
|
import { t as colors } from "./colors-DcXBvAlU.js";
|
|
27
|
-
import { t as createRenderer } from "./ui-
|
|
28
|
-
import {
|
|
28
|
+
import { t as createRenderer } from "./ui-BIYUGm8D.js";
|
|
29
|
+
import { O as runOutcome } from "./model-xemZQ7DK.js";
|
|
29
30
|
import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
|
|
30
31
|
import { dirname, join, resolve } from "node:path";
|
|
31
32
|
import { appendFile, readFile, rm } from "node:fs/promises";
|
|
@@ -194,7 +195,9 @@ const PULLS = {
|
|
|
194
195
|
checkout: 1,
|
|
195
196
|
query: 1,
|
|
196
197
|
analyze: 1,
|
|
197
|
-
mcp: 1
|
|
198
|
+
mcp: 1,
|
|
199
|
+
"cloud push": 1,
|
|
200
|
+
"studio share": 1
|
|
198
201
|
};
|
|
199
202
|
const EXPECTED_ERRORS = [
|
|
200
203
|
"CommandError",
|
|
@@ -215,6 +218,7 @@ const EXIT = {
|
|
|
215
218
|
failed: 1,
|
|
216
219
|
usage: 2,
|
|
217
220
|
infra: 3,
|
|
221
|
+
stopped: 4,
|
|
218
222
|
interrupted: 130,
|
|
219
223
|
terminated: 143
|
|
220
224
|
};
|
|
@@ -253,6 +257,11 @@ function quitWithoutRecord(runId, stagingDir) {
|
|
|
253
257
|
async function sweep(root, keep) {
|
|
254
258
|
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`);
|
|
255
259
|
}
|
|
260
|
+
/** Removes the sandboxes runs on this host left behind when their process was killed, saying so. */
|
|
261
|
+
async function reapOrphans(sandboxes) {
|
|
262
|
+
const removed = await removeOrphans(sandboxes).catch(() => 0);
|
|
263
|
+
if (removed) process.stderr.write(`reeval: removed ${removed} sandbox${removed === 1 ? "" : "es"} a killed reeval left running\n`);
|
|
264
|
+
}
|
|
256
265
|
async function run(argv) {
|
|
257
266
|
readSecretsFile();
|
|
258
267
|
const { values, positionals } = parseCli(argv);
|
|
@@ -271,7 +280,7 @@ async function run(argv) {
|
|
|
271
280
|
return values.help ? EXIT.ok : EXIT.usage;
|
|
272
281
|
}
|
|
273
282
|
if (command === "init") {
|
|
274
|
-
const { initCommand } = await import("./init-
|
|
283
|
+
const { initCommand } = await import("./init-BHIWfE2L.js");
|
|
275
284
|
return initCommand(values, filters, {
|
|
276
285
|
out: (s) => console.log(s),
|
|
277
286
|
input: process.stdin,
|
|
@@ -280,7 +289,7 @@ async function run(argv) {
|
|
|
280
289
|
});
|
|
281
290
|
}
|
|
282
291
|
if (command === "doctor") {
|
|
283
|
-
const { doctorCommand } = await import("./doctor-
|
|
292
|
+
const { doctorCommand } = await import("./doctor-DTKa8rrq.js");
|
|
284
293
|
return doctorCommand(values, {
|
|
285
294
|
out: (s) => console.log(s),
|
|
286
295
|
color: !!process.stdout.isTTY && !process.env.NO_COLOR,
|
|
@@ -288,7 +297,7 @@ async function run(argv) {
|
|
|
288
297
|
});
|
|
289
298
|
}
|
|
290
299
|
if (command === "report") {
|
|
291
|
-
const { reportCommand } = await import("./command-
|
|
300
|
+
const { reportCommand } = await import("./command-pxfK2bkV.js");
|
|
292
301
|
return reportCommand(values, filters, {
|
|
293
302
|
out: (s) => console.log(s),
|
|
294
303
|
err: (s) => console.error(dim(s)),
|
|
@@ -297,9 +306,9 @@ async function run(argv) {
|
|
|
297
306
|
});
|
|
298
307
|
}
|
|
299
308
|
if (command === "login" || command === "logout" || command === "whoami") {
|
|
300
|
-
const login = await import("./command-
|
|
309
|
+
const login = await import("./command-CxuGky7A.js");
|
|
301
310
|
loadEnvFiles(configPathFor(values.config));
|
|
302
|
-
const { defaultIssueDeps } = await import("./issue-
|
|
311
|
+
const { defaultIssueDeps } = await import("./issue-ipG9Yy1h.js");
|
|
303
312
|
const io = {
|
|
304
313
|
out: (s) => console.log(s),
|
|
305
314
|
err: (s) => console.error(dim(s)),
|
|
@@ -310,15 +319,41 @@ async function run(argv) {
|
|
|
310
319
|
return login.whoamiCommand(values, io);
|
|
311
320
|
}
|
|
312
321
|
const configPath = configPathFor(values.config);
|
|
322
|
+
if (command === "link") {
|
|
323
|
+
loadEnvFiles(configPath);
|
|
324
|
+
const [{ linkCommand }, { projectDirFor }] = await Promise.all([import("./link-Cqs2DhxR.js"), import("./cloud-project-DdUVB4EE.js")]);
|
|
325
|
+
return linkCommand(values, {
|
|
326
|
+
out: (s) => console.log(s),
|
|
327
|
+
input: process.stdin,
|
|
328
|
+
output: process.stdout,
|
|
329
|
+
interactive: !!process.stdin.isTTY && !!process.stdout.isTTY,
|
|
330
|
+
projectDir: projectDirFor(configPath)
|
|
331
|
+
});
|
|
332
|
+
}
|
|
313
333
|
if (command === "cloud") {
|
|
314
334
|
const [area, ...args] = filters;
|
|
315
|
-
if (area !== "secrets" && area !== "provider") throw new UsageError(`Unknown command "cloud
|
|
335
|
+
if (area !== "secrets" && area !== "provider" && area !== "push" && area !== "run") throw new UsageError(`Unknown command "${["cloud", area].filter(Boolean).join(" ")}". Did you mean reeval cloud secrets, provider, push or run?`);
|
|
336
|
+
if (area === "push") {
|
|
337
|
+
const config = await historyConfig(configPath, "cloud push", values.profile, values);
|
|
338
|
+
const [{ pushCommand }, { projectDirFor }] = await Promise.all([import("./cloud-push-MXKreNyq.js"), import("./cloud-project-DdUVB4EE.js")]);
|
|
339
|
+
return pushCommand(config, values, args, {
|
|
340
|
+
out: (s) => console.log(s),
|
|
341
|
+
err: (s) => console.error(yellow(s)),
|
|
342
|
+
note: (s) => console.error(s),
|
|
343
|
+
projectDir: projectDirFor(configPath)
|
|
344
|
+
});
|
|
345
|
+
}
|
|
316
346
|
loadEnvFiles(configPath);
|
|
317
|
-
|
|
347
|
+
if (area === "run") {
|
|
348
|
+
const { cloudRunCommand } = await import("./cloud-run-CghE2dG6.js");
|
|
349
|
+
return cloudRunCommand(args, { out: (s) => console.log(s) });
|
|
350
|
+
}
|
|
351
|
+
const cloud = await import("./cloud-secrets-DlPRfS2l.js");
|
|
352
|
+
const { projectDirFor } = await import("./cloud-project-DdUVB4EE.js");
|
|
318
353
|
const io = {
|
|
319
354
|
out: (s) => console.log(s),
|
|
320
355
|
readValue: cloud.readSecretValue,
|
|
321
|
-
projectDir:
|
|
356
|
+
projectDir: projectDirFor(configPath)
|
|
322
357
|
};
|
|
323
358
|
return area === "secrets" ? cloud.secretsCommand(values, args, io) : cloud.providerCommand(values, args, io);
|
|
324
359
|
}
|
|
@@ -328,21 +363,36 @@ async function run(argv) {
|
|
|
328
363
|
if (filters[0] !== "build") throw new UsageError(`Unknown command "image ${filters[0] ?? ""}". Did you mean reeval image build, list or clean?`);
|
|
329
364
|
return imageBuildCommand(values, configPath, filters.slice(1));
|
|
330
365
|
}
|
|
366
|
+
if (command === "studio" && filters[0] === "share") {
|
|
367
|
+
const ref = filters[1];
|
|
368
|
+
const readsNoRuns = values.revoke !== void 0 || values.list && (ref === void 0 || RUN_ID.test(ref));
|
|
369
|
+
const config = await historyConfig(configPath, "studio share", values.profile, readsNoRuns ? {
|
|
370
|
+
...values,
|
|
371
|
+
offline: true
|
|
372
|
+
} : values);
|
|
373
|
+
const [{ shareCommand }, { projectDirFor }] = await Promise.all([import("./studio-share-4T6GYO7l.js"), import("./cloud-project-DdUVB4EE.js")]);
|
|
374
|
+
return shareCommand(config, values, filters.slice(1), {
|
|
375
|
+
out: (s) => console.log(s),
|
|
376
|
+
err: (s) => console.error(yellow(s)),
|
|
377
|
+
note: (s) => console.error(s),
|
|
378
|
+
projectDir: projectDirFor(configPath)
|
|
379
|
+
});
|
|
380
|
+
}
|
|
331
381
|
if (command === "studio") {
|
|
332
382
|
const config = await historyConfig(configPath, "studio", values.profile);
|
|
333
383
|
localStudio(config);
|
|
334
|
-
const { studioCommand } = await import("./command-
|
|
384
|
+
const { studioCommand } = await import("./command-Bps8kBML.js");
|
|
335
385
|
return studioCommand({
|
|
336
386
|
config,
|
|
337
387
|
flags: values,
|
|
338
388
|
version,
|
|
339
|
-
|
|
389
|
+
run: filters[0]
|
|
340
390
|
});
|
|
341
391
|
}
|
|
342
392
|
if (command === "mcp") {
|
|
343
393
|
if (!values.http) console.log = console.info = console.debug = console.error;
|
|
344
394
|
const config = await historyConfig(configPath, "mcp", values.profile, values);
|
|
345
|
-
const { mcpCommand } = await import("./command-
|
|
395
|
+
const { mcpCommand } = await import("./command-ByUmSm2D.js");
|
|
346
396
|
return mcpCommand({
|
|
347
397
|
config,
|
|
348
398
|
flags: values,
|
|
@@ -351,7 +401,7 @@ async function run(argv) {
|
|
|
351
401
|
}
|
|
352
402
|
if (command in HISTORY_COMMANDS) {
|
|
353
403
|
const config = await historyConfig(configPath, command, values.profile, values);
|
|
354
|
-
const commands = await import("./commands-
|
|
404
|
+
const commands = await import("./commands-Cl3Y_UXg.js");
|
|
355
405
|
const ctx = {
|
|
356
406
|
config,
|
|
357
407
|
flags: values,
|
|
@@ -365,14 +415,14 @@ async function run(argv) {
|
|
|
365
415
|
case "checkout": return commands.checkoutCommand(ctx, filters);
|
|
366
416
|
case "sync": return commands.syncCommand(ctx, filters);
|
|
367
417
|
case "query": {
|
|
368
|
-
const { queryCommand } = await import("./query-
|
|
418
|
+
const { queryCommand } = await import("./query-CTMdWXbx.js");
|
|
369
419
|
return queryCommand({
|
|
370
420
|
...ctx,
|
|
371
421
|
err: (s) => console.error(dim(s))
|
|
372
422
|
}, filters);
|
|
373
423
|
}
|
|
374
424
|
case "analyze": {
|
|
375
|
-
const { analyzeCommand } = await import("./command-
|
|
425
|
+
const { analyzeCommand } = await import("./command-CQk7FCI1.js");
|
|
376
426
|
return analyzeCommand({
|
|
377
427
|
...ctx,
|
|
378
428
|
err: (s) => console.error(dim(s))
|
|
@@ -383,7 +433,7 @@ async function run(argv) {
|
|
|
383
433
|
if (command === "clean") return cleanCommand(values, configPath);
|
|
384
434
|
if (command === "attach") return attachCommand(values, filters[0], configPath);
|
|
385
435
|
if (command === "bundle") {
|
|
386
|
-
const { bundleCommand } = await import("./bundle-
|
|
436
|
+
const { bundleCommand } = await import("./bundle-B7P-Awnm.js");
|
|
387
437
|
return bundleCommand(values, filters, configPath, argv.slice(1), (s) => console.log(s));
|
|
388
438
|
}
|
|
389
439
|
if (command !== "run") throw new UsageError(`Unknown command "${command}". Run reeval --help.`);
|
|
@@ -393,6 +443,8 @@ async function run(argv) {
|
|
|
393
443
|
/**
|
|
394
444
|
* `reeval run --bundle`: the bundle's own filters, profile, tags, traits and runs, from the
|
|
395
445
|
* project it extracts to. Other run flags (`--json`, `--record`, `--concurrency`, …) apply as given.
|
|
446
|
+
* With `--resume <id>`, the run's state moves from the current directory's `.reeval/` into the
|
|
447
|
+
* extracted project's, and the run continues there.
|
|
396
448
|
*/
|
|
397
449
|
async function bundleRun(flags, filters) {
|
|
398
450
|
const planning = [
|
|
@@ -401,21 +453,27 @@ async function bundleRun(flags, filters) {
|
|
|
401
453
|
"trait",
|
|
402
454
|
"runs",
|
|
403
455
|
"config",
|
|
404
|
-
"resume",
|
|
405
456
|
"retry-errors",
|
|
406
457
|
"cloud"
|
|
407
458
|
].filter((f) => flags[f] !== void 0).map((f) => `--${f}`);
|
|
408
459
|
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(", ")}.`);
|
|
409
460
|
const file = flags.bundle;
|
|
410
461
|
const log = (s) => flags.json ? console.error(s) : console.log(s);
|
|
411
|
-
const { bundledGit, openBundle } = await import("./bundle-
|
|
462
|
+
const { bundledGit, checkResumeState, moveResumeState, openBundle } = await import("./bundle-B7P-Awnm.js");
|
|
463
|
+
const from = process.cwd();
|
|
464
|
+
const resume = flags.resume;
|
|
465
|
+
if (resume !== void 0) checkResumeState(from, resume);
|
|
412
466
|
const opened = await openBundle(file, log);
|
|
413
467
|
if (opened.exit !== void 0) return opened.exit;
|
|
414
468
|
const { args, author } = opened.manifest;
|
|
415
|
-
|
|
469
|
+
if (resume !== void 0) {
|
|
470
|
+
moveResumeState(from, opened.project, resume);
|
|
471
|
+
log(`reeval: resuming run ${resume} from ${file} in ${opened.project}, where its .reeval/ stays`);
|
|
472
|
+
} else log(`reeval: running ${file} in ${opened.project}, where its .reeval/ stays`);
|
|
416
473
|
process.chdir(opened.project);
|
|
417
474
|
return runCommand({
|
|
418
475
|
...flags,
|
|
476
|
+
...flags["events-file"] === void 0 ? {} : { "events-file": resolve(from, flags["events-file"]) },
|
|
419
477
|
bundle: void 0,
|
|
420
478
|
local: true,
|
|
421
479
|
...args.profile ? { profile: args.profile } : {},
|
|
@@ -458,7 +516,7 @@ async function dryRunPrices(planned, judgeModel) {
|
|
|
458
516
|
table: null,
|
|
459
517
|
why: "nothing to price"
|
|
460
518
|
};
|
|
461
|
-
const { loadPrices } = await import("./prices-
|
|
519
|
+
const { loadPrices } = await import("./prices-CfnkJOth.js");
|
|
462
520
|
return loadPrices();
|
|
463
521
|
}
|
|
464
522
|
/** Asks a yes/no question on the terminal; anything but y or yes is no. */
|
|
@@ -476,8 +534,9 @@ async function confirm(question) {
|
|
|
476
534
|
}
|
|
477
535
|
/**
|
|
478
536
|
* `reeval clean`: removes local debug data and snapshots, all of them or all but the newest
|
|
479
|
-
* `--keep` runs',
|
|
480
|
-
* `run --bundle` extracted whose
|
|
537
|
+
* `--keep` runs', and the sandboxes a killed reeval on this host left running; with `--staging`
|
|
538
|
+
* every stopped run's staging, and with `--bundles` every copy `run --bundle` extracted whose
|
|
539
|
+
* process has ended.
|
|
481
540
|
*/
|
|
482
541
|
async function cleanCommand(flags, configPath) {
|
|
483
542
|
const config = await loadConfig(configPath, "clean");
|
|
@@ -486,8 +545,8 @@ async function cleanCommand(flags, configPath) {
|
|
|
486
545
|
keep = Number(flags.keep);
|
|
487
546
|
if (!(Number.isInteger(keep) && keep >= 0)) throw new UsageError(`--keep must be a whole number (got ${flags.keep})`);
|
|
488
547
|
}
|
|
489
|
-
const { debugRoot, pruneDebug } = await import("./files-
|
|
490
|
-
const { formatBytes } = await import("./debug-
|
|
548
|
+
const { debugRoot, pruneDebug } = await import("./files-DCcRkJN4.js");
|
|
549
|
+
const { formatBytes } = await import("./debug-CGg7KHKq.js");
|
|
491
550
|
const { runs, bytes } = await pruneDebug(config.root, keep);
|
|
492
551
|
const where = fromCwd(debugRoot(config.root)) || ".";
|
|
493
552
|
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`);
|
|
@@ -497,24 +556,26 @@ async function cleanCommand(flags, configPath) {
|
|
|
497
556
|
}
|
|
498
557
|
const streams = await pruneEvents(config.root, keep);
|
|
499
558
|
if (streams.length) console.log(`Removed the event streams of ${streams.length} finished run${streams.length === 1 ? "" : "s"} from .reeval/events`);
|
|
559
|
+
const orphans = await removeOrphans();
|
|
560
|
+
if (orphans) console.log(`Removed ${orphans} sandbox${orphans === 1 ? "" : "es"} that a killed reeval left running`);
|
|
500
561
|
if (flags.bundles) {
|
|
501
|
-
const { removeExtractedBundles } = await import("./bundle-
|
|
562
|
+
const { removeExtractedBundles } = await import("./bundle-B7P-Awnm.js");
|
|
502
563
|
const removed = await removeExtractedBundles();
|
|
503
564
|
console.log(removed.length ? `Removed ${removed.length} extracted bundle${removed.length === 1 ? "" : "s"}: ${removed.join(", ")}` : "No extracted bundles to remove");
|
|
504
565
|
}
|
|
505
566
|
if (flags.images) {
|
|
506
|
-
const { dockerAvailable, pruneImages } = await import("./src-
|
|
507
|
-
const { requireDocker } = await import("./providers-
|
|
567
|
+
const { dockerAvailable, pruneImages } = await import("./src-B2psni1B.js");
|
|
568
|
+
const { requireDocker } = await import("./providers-Bm5NLaRh.js");
|
|
508
569
|
const engines = [];
|
|
509
570
|
for (const engine of ["docker", "podman"]) if (await dockerAvailable(engine)) engines.push(engine);
|
|
510
|
-
const { tartCli } = await import("./tart-cli-
|
|
571
|
+
const { tartCli } = await import("./tart-cli-DfteJCN9.js");
|
|
511
572
|
const tart = await tartCli(["--version"]).then((r) => r.exitCode === 0, () => false);
|
|
512
573
|
if (!engines.length && !tart) await requireDocker();
|
|
513
574
|
let removed = 0;
|
|
514
575
|
for (const engine of engines) removed += await pruneImages(engine);
|
|
515
576
|
if (engines.length) console.log(removed ? `Removed ${removed} image${removed === 1 ? "" : "s"} reeval built that nothing uses` : "No leftover images to remove");
|
|
516
577
|
if (tart) {
|
|
517
|
-
const { deleteBakedImages } = await import("./tart-bake-
|
|
578
|
+
const { deleteBakedImages } = await import("./tart-bake-B4QyNb7f.js");
|
|
518
579
|
const baked = await deleteBakedImages();
|
|
519
580
|
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");
|
|
520
581
|
}
|
|
@@ -533,8 +594,8 @@ function verbosityOf(flags) {
|
|
|
533
594
|
* image.
|
|
534
595
|
*/
|
|
535
596
|
async function imageBuildCommand(flags, configPath, filters) {
|
|
536
|
-
const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-
|
|
537
|
-
const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-
|
|
597
|
+
const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-JspTw1vt.js");
|
|
598
|
+
const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-BC2ZjZl5.js");
|
|
538
599
|
const { setup, root, uses } = await imageUses(flags, configPath, filters, plannedImageUses);
|
|
539
600
|
const targets = imageTargets(uses);
|
|
540
601
|
const vms = tartTargets(uses);
|
|
@@ -554,7 +615,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
554
615
|
if (snapshots.length) for (const line of await vmPlanLines(snapshots, root)) console.log(line);
|
|
555
616
|
return EXIT.ok;
|
|
556
617
|
}
|
|
557
|
-
const { PrepareError } = await import("./provider-
|
|
618
|
+
const { PrepareError } = await import("./provider-B24hZX95.js");
|
|
558
619
|
const outcomes = [];
|
|
559
620
|
let refused = false;
|
|
560
621
|
const refusal = (id, of, others) => (error) => {
|
|
@@ -628,7 +689,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
628
689
|
if (!(error instanceof PrepareError)) throw error;
|
|
629
690
|
if (error.failure.usage) throw new UsageError(error.message);
|
|
630
691
|
if (error.failure.cause === "enospc") invocation.machineState = true;
|
|
631
|
-
const { PreflightInfraError } = await import("./preflight-
|
|
692
|
+
const { PreflightInfraError } = await import("./preflight-CLYRuQ3r.js");
|
|
632
693
|
throw new PreflightInfraError(error.message);
|
|
633
694
|
}
|
|
634
695
|
for (const o of outcomes) {
|
|
@@ -651,7 +712,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
651
712
|
}
|
|
652
713
|
/** What `reeval image` plans for: the harness and sandbox of each attempt, collected as `--dry-run` does. */
|
|
653
714
|
async function imageUses(flags, configPath, filters, planned) {
|
|
654
|
-
const plannedImageUses = planned ?? (await import("./images-
|
|
715
|
+
const plannedImageUses = planned ?? (await import("./images-JspTw1vt.js")).plannedImageUses;
|
|
655
716
|
const setup = await prepareRun({
|
|
656
717
|
...flags,
|
|
657
718
|
"dry-run": true
|
|
@@ -677,8 +738,8 @@ async function imageUses(flags, configPath, filters, planned) {
|
|
|
677
738
|
* the evals use, with the environments that start from each.
|
|
678
739
|
*/
|
|
679
740
|
async function imageListCommand(flags, configPath, filters) {
|
|
680
|
-
const vm = await import("./vm-images-
|
|
681
|
-
const { formatSize } = await import("./tart-images-
|
|
741
|
+
const vm = await import("./vm-images-BC2ZjZl5.js");
|
|
742
|
+
const { formatSize } = await import("./tart-images-yzIyb0bQ.js");
|
|
682
743
|
const { root, uses } = await imageUses(flags, configPath, filters);
|
|
683
744
|
const accounts = vm.vmAccounts(uses);
|
|
684
745
|
if (!accounts.length) {
|
|
@@ -731,8 +792,8 @@ async function imageListCommand(flags, configPath, filters) {
|
|
|
731
792
|
* last hour or one still being saved.
|
|
732
793
|
*/
|
|
733
794
|
async function imageCleanCommand(flags, configPath) {
|
|
734
|
-
const vm = await import("./vm-images-
|
|
735
|
-
const { formatSize } = await import("./tart-images-
|
|
795
|
+
const vm = await import("./vm-images-BC2ZjZl5.js");
|
|
796
|
+
const { formatSize } = await import("./tart-images-yzIyb0bQ.js");
|
|
736
797
|
const provider = flags.provider;
|
|
737
798
|
if (provider !== void 0 && provider !== "boat" && provider !== "daytona") throw new UsageError(`--provider is boat or daytona (got "${provider}")`);
|
|
738
799
|
const olderThanMs = flags["older-than"] !== void 0 ? vm.parseAge(flags["older-than"]) : flags.all ? void 0 : vm.DEFAULT_OLDER_THAN_MS;
|
|
@@ -804,27 +865,51 @@ async function attachCommand(flags, target, configPath) {
|
|
|
804
865
|
root = dirname(requireConfig(configPath));
|
|
805
866
|
source = (await resolveAttach(root, target)).file;
|
|
806
867
|
}
|
|
807
|
-
const cloud = await import("./cloud-run-
|
|
868
|
+
const cloud = await import("./cloud-run-CghE2dG6.js");
|
|
808
869
|
if (flags.profile !== void 0 && !flags.download) throw new UsageError("--profile picks the history folder --download puts a recorded cloud run in: pass it with --download");
|
|
809
870
|
if (flags.download || isAttachUrl(source)) loadEnvFiles(configPath);
|
|
810
871
|
const download = flags.download ? await cloudDownload(source, configPath, flags.profile) : void 0;
|
|
811
872
|
const follow = isAttachUrl(source) ? await cloud.cloudFollow(source) : void 0;
|
|
873
|
+
const cloudRun = follow ? await cloudRunAt(source) : null;
|
|
812
874
|
let detached = false;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
875
|
+
let code;
|
|
876
|
+
let read;
|
|
877
|
+
const log = (line) => console.log(dim(line));
|
|
878
|
+
try {
|
|
879
|
+
code = await attachHere(flags, {
|
|
880
|
+
source,
|
|
881
|
+
...root === void 0 ? {} : { root },
|
|
882
|
+
...follow ? { follow } : {},
|
|
883
|
+
...cloudRun ? { cancelHint: cloud.cancelHint(cloudRun.runId) } : {},
|
|
884
|
+
onDetach: () => {
|
|
885
|
+
detached = true;
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
} catch (error) {
|
|
889
|
+
const { EventStreamError } = await import("./events-RaK1pDmT.js");
|
|
890
|
+
if (!cloudRun || !(error instanceof EventStreamError)) throw error;
|
|
891
|
+
({code, read} = await cloud.afterLostStream(error, cloudRun.runId, cloudRun.base, cloudRun.auth, log));
|
|
892
|
+
}
|
|
893
|
+
if (cloudRun && !detached) code = await cloud.stoppedOr(code, cloudRun.runId, cloudRun.base, cloudRun.auth, log, read);
|
|
821
894
|
if (download && detached) console.log(dim(`Not downloading the files of cloud run ${download.runId} after detaching: reeval attach --download${download.profile === void 0 ? "" : ` --profile ${download.profile}`} ${displayUrl(source)} downloads them once it has ended`));
|
|
822
895
|
else if (download) {
|
|
823
|
-
const { downloadAfter } = await import("./cloud-files-
|
|
896
|
+
const { downloadAfter } = await import("./cloud-files-CBovrfZA.js");
|
|
824
897
|
for (const line of await downloadAfter(code, download.runId, download.run)) console.log(dim(line));
|
|
825
898
|
}
|
|
826
899
|
return code;
|
|
827
900
|
}
|
|
901
|
+
/** The cloud run whose event stream is `source`, with what reads it; null for any other stream. */
|
|
902
|
+
async function cloudRunAt(source) {
|
|
903
|
+
const cloud = await import("./cloud-run-CghE2dG6.js");
|
|
904
|
+
const { cloudRunOf } = await import("./cloud-files-CBovrfZA.js");
|
|
905
|
+
const base = cloud.cloudUrl();
|
|
906
|
+
const run = cloudRunOf(source, base);
|
|
907
|
+
return run ? {
|
|
908
|
+
runId: run.runId,
|
|
909
|
+
base,
|
|
910
|
+
auth: await cloud.cloudAuth(base)
|
|
911
|
+
} : null;
|
|
912
|
+
}
|
|
828
913
|
/**
|
|
829
914
|
* `reeval attach --download`: what downloads the files of the cloud run whose event stream is
|
|
830
915
|
* `source` into this project, as a run here leaves them, a recorded run's into the history folder
|
|
@@ -832,8 +917,8 @@ async function attachCommand(flags, target, configPath) {
|
|
|
832
917
|
* stream, or with no project.
|
|
833
918
|
*/
|
|
834
919
|
async function cloudDownload(source, configPath, profile) {
|
|
835
|
-
const cloud = await import("./cloud-run-
|
|
836
|
-
const { cloudRunOf, downloadCloudFiles } = await import("./cloud-files-
|
|
920
|
+
const cloud = await import("./cloud-run-CghE2dG6.js");
|
|
921
|
+
const { cloudRunOf, downloadCloudFiles } = await import("./cloud-files-CBovrfZA.js");
|
|
837
922
|
loadEnvFiles(configPath);
|
|
838
923
|
const base = cloud.cloudUrl();
|
|
839
924
|
const run = isAttachUrl(source) ? cloudRunOf(source, base) : null;
|
|
@@ -858,7 +943,7 @@ async function cloudDownload(source, configPath, profile) {
|
|
|
858
943
|
}
|
|
859
944
|
/** `reeval attach`'s viewer on this terminal, drawn with the attach flags. */
|
|
860
945
|
async function attachHere(flags, options) {
|
|
861
|
-
const { attach } = await import("./attach-
|
|
946
|
+
const { attach } = await import("./attach-6av4DmO3.js");
|
|
862
947
|
return attach({
|
|
863
948
|
...options,
|
|
864
949
|
out: process.stdout,
|
|
@@ -889,12 +974,15 @@ async function attachHere(flags, options) {
|
|
|
889
974
|
* `exit`. Undefined when the run didn't ask to run in the cloud.
|
|
890
975
|
*/
|
|
891
976
|
async function cloudTarget(flags, setup, filters, configPath) {
|
|
892
|
-
const cloud = await import("./cloud-run-
|
|
977
|
+
const cloud = await import("./cloud-run-CghE2dG6.js");
|
|
893
978
|
if (!cloud.wantsCloud(flags, setup.config, setup.profile)) {
|
|
894
979
|
if (flags.download) throw new UsageError("--download downloads a cloud run's files, and this run is on this machine: its files are in .reeval/ already. Leave it out, or pass --cloud");
|
|
895
980
|
return;
|
|
896
981
|
}
|
|
897
|
-
const {
|
|
982
|
+
const { linkedProject, projectDirFor } = await import("./cloud-project-DdUVB4EE.js");
|
|
983
|
+
const project = await linkedProject(projectDirFor(configPath));
|
|
984
|
+
if (!project) throw new UsageError(`A cloud run goes into a linked cloud project, and this project isn't linked: run ${process.stdin.isTTY ? "reeval link" : "reeval link --org <org> --project <project>"} to link it, or pass --local to run here`);
|
|
985
|
+
const { makeBundle } = await import("./bundle-B7P-Awnm.js");
|
|
898
986
|
const picked = setup.profile ? { profile: setup.profile.name } : {};
|
|
899
987
|
const bundle = async (env) => {
|
|
900
988
|
try {
|
|
@@ -949,7 +1037,10 @@ async function cloudTarget(flags, setup, filters, configPath) {
|
|
|
949
1037
|
return { exit: await cloud.runCloud({
|
|
950
1038
|
base,
|
|
951
1039
|
bundle: made,
|
|
1040
|
+
project,
|
|
952
1041
|
log: (line) => console.log(dim(line)),
|
|
1042
|
+
...process.stdin.isTTY && process.stdout.isTTY && { confirm },
|
|
1043
|
+
...flags.force && { force: true },
|
|
953
1044
|
follow: (options) => attachHere(flags, options),
|
|
954
1045
|
...flags.download && { download: {
|
|
955
1046
|
root: setup.config.root,
|
|
@@ -971,15 +1062,16 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
971
1062
|
if (refused) throw new UsageError(`--events-file: ${refused}`);
|
|
972
1063
|
}
|
|
973
1064
|
if (retry !== void 0 && flags.resume !== void 0) throw new UsageError("--resume and --retry-errors both continue a run: pass one of them.");
|
|
1065
|
+
if ((flags.resume !== void 0 || retry !== void 0) && !flags.local) await refuseCloudContinue(flags, configPath);
|
|
974
1066
|
if (retry !== void 0 && (given.length || flags.tag?.length || flags.trait?.length)) throw new UsageError("--retry-errors runs every infra-errored attempt of the run again, with its plan: leave out filters, --tag and --trait.");
|
|
975
1067
|
const continued = flags.resume !== void 0 || retry !== void 0;
|
|
976
|
-
const resumed = continued ? await resumedRun(flags, given, configPath) : null;
|
|
1068
|
+
const resumed = continued ? await resumedRun(flags, given, configPath, bundled) : null;
|
|
977
1069
|
if (resumed?.nothing) {
|
|
978
1070
|
const { nothing, record } = resumed.nothing;
|
|
979
1071
|
const outcome = runOutcome(record);
|
|
980
1072
|
if (flags.json) {
|
|
981
1073
|
console.error(nothing);
|
|
982
|
-
const { suiteResult } = await import("./suite-
|
|
1074
|
+
const { suiteResult } = await import("./suite-fO-u8jlS.js");
|
|
983
1075
|
process.stdout.write(`${JSON.stringify({
|
|
984
1076
|
...suiteResult(record),
|
|
985
1077
|
outcome
|
|
@@ -1013,7 +1105,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1013
1105
|
if (githubOut) await appendFile(githubOut, `run-id=${ctx.runId}\n`).catch(() => {});
|
|
1014
1106
|
const stepStart = process.env.GITHUB_STEP_SUMMARY;
|
|
1015
1107
|
if (stepStart) await appendFile(stepStart, `run ${ctx.runId}\n`).catch(() => {});
|
|
1016
|
-
const { engineVersions } = await import("./node-
|
|
1108
|
+
const { engineVersions } = await import("./node-gPT36n_n.js");
|
|
1017
1109
|
const terminal = setup.json && !setup.dryRun ? process.stderr : process.stdout;
|
|
1018
1110
|
const harness = setup.config.harness[0]?.kind ?? "agent";
|
|
1019
1111
|
const drawn = createRenderer({
|
|
@@ -1033,7 +1125,9 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1033
1125
|
const savedEvents = eventsTo ? relativeFile(root, eventsTo) : void 0;
|
|
1034
1126
|
if (startedWith && savedEvents) startedWith.events = savedEvents;
|
|
1035
1127
|
const eventsUrl = flags["events-url"];
|
|
1128
|
+
let heartbeat;
|
|
1036
1129
|
if (eventsTo || eventsUrl) {
|
|
1130
|
+
const ms = parseHeartbeat("REEVAL_EVENTS_HEARTBEAT", process.env.REEVAL_EVENTS_HEARTBEAT, ATTEMPTS_HEARTBEAT_MS, ATTEMPTS_HEARTBEAT_RANGE);
|
|
1037
1131
|
const cwd = cwdIn(root);
|
|
1038
1132
|
eventStream = openEventStream({
|
|
1039
1133
|
...eventsTo ? {
|
|
@@ -1047,10 +1141,16 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1047
1141
|
startedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1048
1142
|
harness,
|
|
1049
1143
|
verbosity: ctx.verbosity ?? 0,
|
|
1050
|
-
...cwd === void 0 ? {} : { cwd }
|
|
1144
|
+
...cwd === void 0 ? {} : { cwd },
|
|
1145
|
+
...ms > 0 ? { attemptsHeartbeatMs: ms } : {}
|
|
1051
1146
|
},
|
|
1052
1147
|
warn: (message) => process.stderr.write(yellow(`reeval: ${message}\n`))
|
|
1053
1148
|
});
|
|
1149
|
+
const stream = eventStream;
|
|
1150
|
+
if (ms > 0) heartbeat = {
|
|
1151
|
+
ms,
|
|
1152
|
+
send: (beat) => stream.heartbeat(beat)
|
|
1153
|
+
};
|
|
1054
1154
|
}
|
|
1055
1155
|
const renderer = eventStream ? teeRenderer(drawn, eventStream) : drawn;
|
|
1056
1156
|
let executed;
|
|
@@ -1060,6 +1160,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1060
1160
|
notes: resumed?.notes ?? [],
|
|
1061
1161
|
narrowed: !!resumed && (given.length > 0 || !!flags.tag?.length || !!flags.trait?.length),
|
|
1062
1162
|
...savedEvents ? { events: savedEvents } : {},
|
|
1163
|
+
...heartbeat ? { heartbeat } : {},
|
|
1063
1164
|
...cloud ? {
|
|
1064
1165
|
target: cloud.target,
|
|
1065
1166
|
targetDetail: cloud.detail
|
|
@@ -1075,16 +1176,27 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1075
1176
|
throw error;
|
|
1076
1177
|
}
|
|
1077
1178
|
const { engineRun, plan, sandboxVersions, budgetReached, cutShort, live, questions, leftOut } = executed;
|
|
1179
|
+
const exportDone = async () => {
|
|
1180
|
+
const why = await executed.exported;
|
|
1181
|
+
if (why) renderer.onEvent({
|
|
1182
|
+
type: "notice",
|
|
1183
|
+
at: Date.now(),
|
|
1184
|
+
level: "warn",
|
|
1185
|
+
text: `OpenTelemetry export: ${why}`
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1078
1188
|
const { retried } = executed;
|
|
1079
1189
|
invocation.unhandledErrors = engineRun.unhandledErrors;
|
|
1080
1190
|
if ((interrupted || engineRun.canceled) && plan) await cleanupRun(ctx.runId, plan.sandboxes);
|
|
1191
|
+
if (plan) await reapOrphans(plan.sandboxes);
|
|
1081
1192
|
if (engineRun.stopped || !plan) {
|
|
1082
1193
|
live?.remove();
|
|
1194
|
+
await exportDone();
|
|
1083
1195
|
renderer.close();
|
|
1084
1196
|
return EXIT.ok;
|
|
1085
1197
|
}
|
|
1086
1198
|
if (ctx.retry && ctx.previous && retried.size) {
|
|
1087
|
-
const { retryEnvironmentChanges } = await import("./retry-
|
|
1199
|
+
const { retryEnvironmentChanges } = await import("./retry-rLdXCinf.js");
|
|
1088
1200
|
const changes = retryEnvironmentChanges(ctx.previous, ctx.stagingDir, retried);
|
|
1089
1201
|
if (changes.length) {
|
|
1090
1202
|
questions?.cancel();
|
|
@@ -1103,8 +1215,8 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1103
1215
|
}
|
|
1104
1216
|
finishing = true;
|
|
1105
1217
|
live?.phase("finishing");
|
|
1106
|
-
const { lockfiles } = await import("./state-
|
|
1107
|
-
const { writeScratchRun } = await import("./results-
|
|
1218
|
+
const { lockfiles } = await import("./state-Bvsi2WgZ.js");
|
|
1219
|
+
const { writeScratchRun } = await import("./results-DXBaxfIM.js");
|
|
1108
1220
|
const run = await writeScratchRun({
|
|
1109
1221
|
ctx,
|
|
1110
1222
|
author: ctx.author,
|
|
@@ -1138,12 +1250,12 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1138
1250
|
status: "complete"
|
|
1139
1251
|
}) : outcome;
|
|
1140
1252
|
let code = stopped ? stopCode : ran === "fail" ? EXIT.failed : ran === "infra_error" ? EXIT.infra : EXIT.ok;
|
|
1141
|
-
const { pruneDebug } = await import("./files-
|
|
1253
|
+
const { pruneDebug } = await import("./files-DCcRkJN4.js");
|
|
1142
1254
|
await pruneDebug(ctx.config.root, ctx.config.debug.keep).catch(() => {});
|
|
1143
1255
|
const summary = run.artifactDir ? join(run.artifactDir, "summary.md") : run.recordPath;
|
|
1144
1256
|
const { config } = ctx;
|
|
1145
1257
|
const mode = setup.record;
|
|
1146
|
-
const { readRecord, recordFile } = await import("./files-
|
|
1258
|
+
const { readRecord, recordFile } = await import("./files-BnsRehge.js");
|
|
1147
1259
|
const rerecord = (setup.retry !== void 0 || setup.resume !== void 0) && record.status === "complete" && existsSync(recordFile(config.history.dir, record.runId));
|
|
1148
1260
|
const autoRecord = flags.record || mode === "always" || mode === "ci" && inCI() || rerecord;
|
|
1149
1261
|
const recording = autoRecord && record.status !== "interrupted";
|
|
@@ -1151,6 +1263,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1151
1263
|
const endRun = async (recorded) => {
|
|
1152
1264
|
if (ended) return;
|
|
1153
1265
|
ended = true;
|
|
1266
|
+
await exportDone();
|
|
1154
1267
|
renderer.onEvent({
|
|
1155
1268
|
type: "run-end",
|
|
1156
1269
|
at: Date.now(),
|
|
@@ -1163,7 +1276,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1163
1276
|
});
|
|
1164
1277
|
renderer.close();
|
|
1165
1278
|
if (retried.size) {
|
|
1166
|
-
const { retryCounts, retryLine } = await import("./retry-
|
|
1279
|
+
const { retryCounts, retryLine } = await import("./retry-rLdXCinf.js");
|
|
1167
1280
|
const line = retryLine(retryCounts(record, retried, ctx.previous));
|
|
1168
1281
|
if (setup.json) console.error(line);
|
|
1169
1282
|
else console.log(line);
|
|
@@ -1174,7 +1287,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1174
1287
|
let recordLine;
|
|
1175
1288
|
let recordError;
|
|
1176
1289
|
if (recording) {
|
|
1177
|
-
const { record: recordCmd } = await import("./commands-
|
|
1290
|
+
const { record: recordCmd } = await import("./commands-Cl3Y_UXg.js");
|
|
1178
1291
|
const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
|
|
1179
1292
|
try {
|
|
1180
1293
|
const level = rerecord ? { artifacts: (await readRecord(recordFile(config.history.dir, record.runId))).artifacts } : {};
|
|
@@ -1207,7 +1320,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1207
1320
|
else console.log(line);
|
|
1208
1321
|
}
|
|
1209
1322
|
if (setup.json) {
|
|
1210
|
-
const { suiteResult } = await import("./suite-
|
|
1323
|
+
const { suiteResult } = await import("./suite-fO-u8jlS.js");
|
|
1211
1324
|
process.stdout.write(`${JSON.stringify({
|
|
1212
1325
|
...suiteResult(record),
|
|
1213
1326
|
outcome: ran
|
|
@@ -1217,14 +1330,37 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1217
1330
|
return code;
|
|
1218
1331
|
}
|
|
1219
1332
|
/**
|
|
1333
|
+
* Refuses `--resume` or `--retry-errors` on a run that goes to the cloud, from `--cloud` or the
|
|
1334
|
+
* config's or profile's `cloud`, before anything looks for the run here.
|
|
1335
|
+
*/
|
|
1336
|
+
async function refuseCloudContinue(flags, configPath) {
|
|
1337
|
+
const { wantsCloud } = await import("./cloud-run-CghE2dG6.js");
|
|
1338
|
+
let cloud = !!flags.cloud;
|
|
1339
|
+
if (!cloud) {
|
|
1340
|
+
const path = requireConfig(configPath);
|
|
1341
|
+
loadEnvFiles(path);
|
|
1342
|
+
const loaded = await loadConfig(path, "run", flags.profile ?? (process.env.REEVAL_PROFILE || void 0));
|
|
1343
|
+
let profile = null;
|
|
1344
|
+
try {
|
|
1345
|
+
profile = selectProfile(loaded, flags.profile);
|
|
1346
|
+
} catch (error) {
|
|
1347
|
+
if (!(error instanceof UsageError)) throw error;
|
|
1348
|
+
}
|
|
1349
|
+
cloud = wantsCloud(flags, loaded, profile);
|
|
1350
|
+
}
|
|
1351
|
+
if (!cloud) return;
|
|
1352
|
+
const flag = flags.resume !== void 0 ? "--resume" : "--retry-errors";
|
|
1353
|
+
throw new UsageError(`${flag} with a cloud run isn't supported by this reeval yet: pass --local to continue a run on this machine`);
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1220
1356
|
* `--resume`: the run's saved settings with the flags given now. An older reeval's run saved none,
|
|
1221
1357
|
* so it plans with the flags given now, with a note.
|
|
1222
1358
|
*/
|
|
1223
|
-
async function resumedRun(flags, filters, configPath) {
|
|
1359
|
+
async function resumedRun(flags, filters, configPath, bundled) {
|
|
1224
1360
|
const path = requireConfig(configPath);
|
|
1225
1361
|
loadEnvFiles(path);
|
|
1226
1362
|
const root = dirname(path);
|
|
1227
|
-
const target = await continuedRun(root, flags);
|
|
1363
|
+
const target = await continuedRun(root, flags, bundled);
|
|
1228
1364
|
if (flags["retry-errors"] !== void 0 && target.previous && !erroredAttempts(target.previous).length) return {
|
|
1229
1365
|
nothing: {
|
|
1230
1366
|
nothing: `run ${target.runId} has no infra errors, so --retry-errors has nothing to run again.`,
|
|
@@ -1266,7 +1402,7 @@ async function resumedRun(flags, filters, configPath) {
|
|
|
1266
1402
|
};
|
|
1267
1403
|
}
|
|
1268
1404
|
/** The run `--resume` continues, or the finished one `--retry-errors` runs the errors of again. */
|
|
1269
|
-
const continuedRun = (root, flags) => flags["retry-errors"] !== void 0 ? resolveRetry(root, flags["retry-errors"] || void 0) : resolveResume(root, flags.resume || void 0);
|
|
1405
|
+
const continuedRun = (root, flags, bundled) => flags["retry-errors"] !== void 0 ? resolveRetry(root, flags["retry-errors"] || void 0) : resolveResume(root, flags.resume || void 0, { movedIn: bundled !== void 0 });
|
|
1270
1406
|
/**
|
|
1271
1407
|
* Everything that can fail before the evals are collected: output mode, config, profile, flags.
|
|
1272
1408
|
* `noProfile` is a resume of a run that had none, which `defaultProfile` mustn't give one;
|
|
@@ -1287,7 +1423,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1287
1423
|
stdinTTY: !!process.stdin.isTTY && !flags.json && !flags["dry-run"]
|
|
1288
1424
|
});
|
|
1289
1425
|
const path = requireConfig(configPath);
|
|
1290
|
-
const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-
|
|
1426
|
+
const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-C8HEtAej.js")).trackLoad(dirname(path)) : void 0;
|
|
1291
1427
|
let configInputs = [];
|
|
1292
1428
|
let loaded;
|
|
1293
1429
|
const named = noProfile ? void 0 : flags.profile ?? (process.env.REEVAL_PROFILE || void 0);
|
|
@@ -1350,7 +1486,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1350
1486
|
async function registryFlag(flags) {
|
|
1351
1487
|
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");
|
|
1352
1488
|
if (flags.registry === void 0) return null;
|
|
1353
|
-
const { registryProblem } = await import("./src-
|
|
1489
|
+
const { registryProblem } = await import("./src-B2psni1B.js");
|
|
1354
1490
|
const problem = registryProblem(flags.registry);
|
|
1355
1491
|
if (problem) throw new UsageError(problem);
|
|
1356
1492
|
return flags.registry.replace(/\/+$/, "");
|
|
@@ -1361,17 +1497,17 @@ const retryVerb = (retry, runId) => retry.resume ? `--resume finishes run ${runI
|
|
|
1361
1497
|
async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRun, verbosity, configFile, resume, retry, dryRun }, bundled) {
|
|
1362
1498
|
const startedAt = /* @__PURE__ */ new Date();
|
|
1363
1499
|
const git = bundled ? bundled.git : await gitInfo(config.root, [config.history.dir]);
|
|
1364
|
-
const { worktreePatch } = await import("./state-
|
|
1500
|
+
const { worktreePatch } = await import("./state-Bvsi2WgZ.js");
|
|
1365
1501
|
const patch = git?.dirty && !bundled ? await worktreePatch(config.root, [config.history.dir]) : null;
|
|
1366
1502
|
const who = bundled?.author ?? await author(config.root);
|
|
1367
|
-
const { stagingDir } = await import("./results-
|
|
1368
|
-
const { scratchDir } = await import("./files-
|
|
1503
|
+
const { stagingDir } = await import("./results-DXBaxfIM.js");
|
|
1504
|
+
const { scratchDir } = await import("./files-BnsRehge.js");
|
|
1369
1505
|
const scratch = scratchDir(config.root);
|
|
1370
1506
|
if (resume !== void 0 || retry !== void 0) {
|
|
1371
1507
|
const target = await continuedRun(config.root, {
|
|
1372
1508
|
resume,
|
|
1373
1509
|
"retry-errors": retry
|
|
1374
|
-
});
|
|
1510
|
+
}, bundled);
|
|
1375
1511
|
if (!dryRun && retry === void 0) await prepareResume(target, config.root);
|
|
1376
1512
|
else if (!dryRun) holdRetry(target, config.root);
|
|
1377
1513
|
const stopped = retry === void 0 ? await stoppedRetry(config.root, target) : null;
|
|
@@ -1386,7 +1522,7 @@ async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRu
|
|
|
1386
1522
|
if (scoped.length) await cleanupRun(target.runId, scoped).catch(() => {});
|
|
1387
1523
|
}
|
|
1388
1524
|
const concurrency = await sizeRun();
|
|
1389
|
-
const { unfoldCases } = await import("./cases-
|
|
1525
|
+
const { unfoldCases } = await import("./cases-Bsp-G-ZL.js");
|
|
1390
1526
|
const previous = aside.record ?? target.previous;
|
|
1391
1527
|
return {
|
|
1392
1528
|
runId: target.runId,
|
|
@@ -1480,12 +1616,12 @@ function namesDeclaredSecret(evals) {
|
|
|
1480
1616
|
*/
|
|
1481
1617
|
async function planEfforts(planned) {
|
|
1482
1618
|
const live = planned.filter((p) => !p.attempt.plan.skip);
|
|
1483
|
-
const { effortNotes, withDefaultEffort } = await import("./default-effort-
|
|
1619
|
+
const { effortNotes, withDefaultEffort } = await import("./default-effort-B1b8t81b.js");
|
|
1484
1620
|
let cursor;
|
|
1485
1621
|
let unchecked = "CURSOR_API_KEY isn't set";
|
|
1486
1622
|
const key = process.env.CURSOR_API_KEY;
|
|
1487
1623
|
if (key && live.some((p) => p.attempt.harness.kind === "cursor")) {
|
|
1488
|
-
const { checkCursorPlan } = await import("./cursor-catalog-
|
|
1624
|
+
const { checkCursorPlan } = await import("./cursor-catalog-EOFft6LJ.js");
|
|
1489
1625
|
const checked = await checkCursorPlan(key, live);
|
|
1490
1626
|
if (checked instanceof Error) unchecked = `its request failed: ${checked.message}`;
|
|
1491
1627
|
else {
|
|
@@ -1523,8 +1659,8 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1523
1659
|
completed: [],
|
|
1524
1660
|
...setup.dryRun && setup.json ? { inputs: true } : {}
|
|
1525
1661
|
}));
|
|
1526
|
-
const { runEngine } = await import("./node-
|
|
1527
|
-
const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-
|
|
1662
|
+
const { runEngine } = await import("./node-gPT36n_n.js");
|
|
1663
|
+
const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-DSJX7Oyq.js");
|
|
1528
1664
|
let plan;
|
|
1529
1665
|
let sandboxVersions = { images: [] };
|
|
1530
1666
|
let preflightStop;
|
|
@@ -1569,9 +1705,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1569
1705
|
if (ctx.retry && ctx.previous) {
|
|
1570
1706
|
const ranOn = ctx.previous.stack?.reeval;
|
|
1571
1707
|
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.`);
|
|
1572
|
-
const { retryChanges } = await import("./retry-
|
|
1573
|
-
const { judgePart } = await import("./assemble-
|
|
1574
|
-
const { engineVersions } = await import("./node-
|
|
1708
|
+
const { retryChanges } = await import("./retry-rLdXCinf.js");
|
|
1709
|
+
const { judgePart } = await import("./assemble-BlA7FWRn.js");
|
|
1710
|
+
const { engineVersions } = await import("./node-gPT36n_n.js");
|
|
1575
1711
|
const judged = judgePart(config, profile, version, engineVersions);
|
|
1576
1712
|
const runs = new Set(planned.map((p) => p.key).filter((key) => !completed.has(key)));
|
|
1577
1713
|
const changes = await retryChanges(ctx.previous, planned, runs, config.root, judged);
|
|
@@ -1584,7 +1720,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1584
1720
|
}
|
|
1585
1721
|
}
|
|
1586
1722
|
retried = continuing && !setup.dryRun ? noteRetries(planned, stagingDir, ctx.previous, true).errored : errored;
|
|
1587
|
-
const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-
|
|
1723
|
+
const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-BYHXnYLe.js") : void 0;
|
|
1588
1724
|
const judge = runJudgeModel(config, profile);
|
|
1589
1725
|
const judgeModel = judge === void 0 ? null : judgeModelName(judge);
|
|
1590
1726
|
plan = await buildPlan({
|
|
@@ -1604,7 +1740,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1604
1740
|
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))] : [];
|
|
1605
1741
|
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`);
|
|
1606
1742
|
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))] : [];
|
|
1607
|
-
const { podmanRootless } = await import("./providers-
|
|
1743
|
+
const { podmanRootless } = await import("./providers-Bm5NLaRh.js");
|
|
1608
1744
|
if (switching.length && await podmanRootless()) plan.warnings.push(rootlessPodmanSwitch(switching));
|
|
1609
1745
|
plan.warnings.push(...started.notes);
|
|
1610
1746
|
if (started.narrowed) {
|
|
@@ -1620,7 +1756,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1620
1756
|
run.completed = [...completed];
|
|
1621
1757
|
const done = leftOut.filter((l) => l.done).map((l) => l.key);
|
|
1622
1758
|
kept = keptAttempts([...completed, ...done], stagingDir, ctx.previous);
|
|
1623
|
-
const { imageStages, imageTargets } = await import("./images-
|
|
1759
|
+
const { imageStages, imageTargets } = await import("./images-JspTw1vt.js");
|
|
1624
1760
|
const targets = imageTargets(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
|
|
1625
1761
|
id: p.attempt.family?.id ?? p.id,
|
|
1626
1762
|
harness: p.attempt.harness,
|
|
@@ -1634,7 +1770,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1634
1770
|
evals: t.evals,
|
|
1635
1771
|
stages: await imageStages(t, config.root)
|
|
1636
1772
|
})));
|
|
1637
|
-
const { lockfiles } = await import("./state-
|
|
1773
|
+
const { lockfiles } = await import("./state-Bvsi2WgZ.js");
|
|
1638
1774
|
const locks = (await lockfiles(config.root)).map(({ path }) => ({
|
|
1639
1775
|
path: join(config.root, path),
|
|
1640
1776
|
kind: "lockfile"
|
|
@@ -1649,7 +1785,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1649
1785
|
judges: running.flatMap((p) => p.attempt.judge ? [p.attempt.judge] : [])
|
|
1650
1786
|
});
|
|
1651
1787
|
for (const { names } of needed) for (const name of names) secrets.add(name);
|
|
1652
|
-
const { notCloud } = await import("./cloud-run-
|
|
1788
|
+
const { notCloud } = await import("./cloud-run-CghE2dG6.js");
|
|
1653
1789
|
const blocked = notCloud(skipped);
|
|
1654
1790
|
const doc = {
|
|
1655
1791
|
...planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort()),
|
|
@@ -1660,13 +1796,13 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1660
1796
|
return false;
|
|
1661
1797
|
}
|
|
1662
1798
|
const elsewhere = setup.configElsewhere ? configFile : void 0;
|
|
1663
|
-
const { scratchDir } = await import("./files-
|
|
1799
|
+
const { scratchDir } = await import("./files-BnsRehge.js");
|
|
1664
1800
|
const lines = [];
|
|
1665
1801
|
if (setup.dryRun) {
|
|
1666
1802
|
const todos = excluded.filter((e) => e.mode === "todo").map((e) => e.id);
|
|
1667
1803
|
lines.push(...planTable(plan, todos));
|
|
1668
|
-
const { imageStatusLines } = await import("./images-
|
|
1669
|
-
const { dockerAvailable, engineSpec } = await import("./src-
|
|
1804
|
+
const { imageStatusLines } = await import("./images-JspTw1vt.js");
|
|
1805
|
+
const { dockerAvailable, engineSpec } = await import("./src-B2psni1B.js");
|
|
1670
1806
|
const engines = [...new Set(targets.map((t) => t.sandbox.engine ?? "docker"))];
|
|
1671
1807
|
const down = [];
|
|
1672
1808
|
for (const engine of engines) if (!await dockerAvailable(engine)) down.push(engine);
|
|
@@ -1699,6 +1835,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1699
1835
|
sandboxWarnings: plan.sandboxWarnings
|
|
1700
1836
|
});
|
|
1701
1837
|
if (setup.dryRun) return false;
|
|
1838
|
+
await reapOrphans(plan.sandboxes);
|
|
1702
1839
|
if (continuing) {
|
|
1703
1840
|
const away = /* @__PURE__ */ new Map();
|
|
1704
1841
|
for (const { attempt } of planned) {
|
|
@@ -1760,7 +1897,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1760
1897
|
});
|
|
1761
1898
|
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.`);
|
|
1762
1899
|
if (asked.length) {
|
|
1763
|
-
const { questionRunner } = await import("./questions-
|
|
1900
|
+
const { questionRunner } = await import("./questions-BqisU7A0.js");
|
|
1764
1901
|
const warned = /* @__PURE__ */ new Set();
|
|
1765
1902
|
questions = questionRunner({
|
|
1766
1903
|
evals: asked,
|
|
@@ -1802,7 +1939,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1802
1939
|
}
|
|
1803
1940
|
});
|
|
1804
1941
|
}
|
|
1805
|
-
const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-
|
|
1942
|
+
const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-D8HqjfsQ.js");
|
|
1806
1943
|
const live = skipped.filter((p) => !p.attempt.plan.skip);
|
|
1807
1944
|
const outcomes = await prepareWorkspaces(live.flatMap(({ attempt: a }) => a.workspace ? [{
|
|
1808
1945
|
workspace: a.workspace,
|
|
@@ -1863,11 +2000,14 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1863
2000
|
})), {
|
|
1864
2001
|
root: config.root,
|
|
1865
2002
|
runId,
|
|
1866
|
-
onEvent: (e) =>
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
2003
|
+
onEvent: (e) => {
|
|
2004
|
+
trace?.prepare(e);
|
|
2005
|
+
renderer.onEvent({
|
|
2006
|
+
type: "prepare",
|
|
2007
|
+
at: Date.now(),
|
|
2008
|
+
...e
|
|
2009
|
+
});
|
|
2010
|
+
},
|
|
1871
2011
|
...setup.registry ? { registry: setup.registry } : {}
|
|
1872
2012
|
});
|
|
1873
2013
|
} catch (error) {
|
|
@@ -1895,18 +2035,53 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1895
2035
|
};
|
|
1896
2036
|
let engineRun;
|
|
1897
2037
|
let cutShort = false;
|
|
1898
|
-
const { MACHINES, MachineService } = await import("./machine-service-
|
|
2038
|
+
const { MACHINES, MachineService } = await import("./machine-service-XFymGCHj.js");
|
|
1899
2039
|
const machines = new MachineService();
|
|
2040
|
+
const { TRACE } = await import("./spans-B4MwgEyy.js");
|
|
2041
|
+
const { RunTrace } = await import("./run-D_o_8Fkv.js");
|
|
2042
|
+
const { otlpConfigured } = await import("./otlp-BxPnO99e.js");
|
|
2043
|
+
let exported = Promise.resolve(null);
|
|
2044
|
+
let runStarted = false;
|
|
2045
|
+
let telemetry = null;
|
|
2046
|
+
const trace = setup.dryRun ? void 0 : new RunTrace({
|
|
2047
|
+
dir: stagingDir,
|
|
2048
|
+
runId,
|
|
2049
|
+
onSpan: (span) => telemetry?.span(span),
|
|
2050
|
+
attributes: {
|
|
2051
|
+
"reeval.version": version,
|
|
2052
|
+
...profile && { "reeval.profile": profile.name }
|
|
2053
|
+
}
|
|
2054
|
+
}).install();
|
|
2055
|
+
if (trace && otlpConfigured(process.env)) telemetry = (await import("./telemetry-bBhK3DSs.js")).startTelemetry({
|
|
2056
|
+
version,
|
|
2057
|
+
traceId: trace.traceId,
|
|
2058
|
+
spanId: trace.spanId,
|
|
2059
|
+
runId,
|
|
2060
|
+
filesystems: {
|
|
2061
|
+
project: config.root,
|
|
2062
|
+
staging: stagingDir
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
if (telemetry) {
|
|
2066
|
+
const onEvent = renderer.onEvent.bind(renderer);
|
|
2067
|
+
const exporting = telemetry;
|
|
2068
|
+
renderer.onEvent = (e) => {
|
|
2069
|
+
exporting.event(e);
|
|
2070
|
+
onEvent(e);
|
|
2071
|
+
};
|
|
2072
|
+
}
|
|
1900
2073
|
try {
|
|
1901
2074
|
engineRun = await runEngine({
|
|
1902
2075
|
run,
|
|
1903
2076
|
filters,
|
|
1904
2077
|
onPlan,
|
|
2078
|
+
...started.heartbeat ? { heartbeat: beatWith(started.heartbeat, machines) } : {},
|
|
1905
2079
|
services: {
|
|
1906
|
-
call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : service === "secrets" ? Promise.resolve(heldSecrets()) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
|
|
2080
|
+
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`)),
|
|
1907
2081
|
released: (owner) => machines.released(owner)
|
|
1908
2082
|
},
|
|
1909
2083
|
onRunStart: (files) => {
|
|
2084
|
+
runStarted = true;
|
|
1910
2085
|
writeCurrent(setup.config.root, runId);
|
|
1911
2086
|
live = writeLiveProgress({
|
|
1912
2087
|
dir: stagingDir,
|
|
@@ -2010,9 +2185,14 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
2010
2185
|
} finally {
|
|
2011
2186
|
clearTimeout(budgetTimer);
|
|
2012
2187
|
await machines.close();
|
|
2013
|
-
|
|
2188
|
+
trace?.close({
|
|
2189
|
+
status: interrupted ? "interrupted" : reached ? "budget" : "ran",
|
|
2190
|
+
started: runStarted
|
|
2191
|
+
});
|
|
2192
|
+
if (telemetry) exported = telemetry.close();
|
|
2193
|
+
const { removePrepared } = await import("./preflight-DXMD6jou.js");
|
|
2014
2194
|
removePrepared(config.root, runId);
|
|
2015
|
-
const { removePreparedWorkspaces } = await import("./workspace-
|
|
2195
|
+
const { removePreparedWorkspaces } = await import("./workspace-D8HqjfsQ.js");
|
|
2016
2196
|
removePreparedWorkspaces(config.root, runId);
|
|
2017
2197
|
}
|
|
2018
2198
|
if (preflightStop) throw preflightStop;
|
|
@@ -2027,6 +2207,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
2027
2207
|
cutShort,
|
|
2028
2208
|
live,
|
|
2029
2209
|
questions,
|
|
2210
|
+
exported,
|
|
2030
2211
|
leftOut,
|
|
2031
2212
|
/** The attempts that ran again after an infra error, by key; none on a dry run. */
|
|
2032
2213
|
retried: setup.dryRun ? /* @__PURE__ */ new Set() : retried
|
|
@@ -2100,4 +2281,4 @@ run(process.argv.slice(2)).finally(() => {
|
|
|
2100
2281
|
});
|
|
2101
2282
|
export {};
|
|
2102
2283
|
|
|
2103
|
-
//# sourceMappingURL=cli-
|
|
2284
|
+
//# sourceMappingURL=cli-BoCPYLUQ.js.map
|