reeval 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +16 -16
- package/THIRD_PARTY_NOTICES.md +14 -14
- package/dist/{adapter-Dlq3-4OS.js → adapter-dHdepWKb.js} +7 -7
- package/dist/{adapter-Dlq3-4OS.js.map → adapter-dHdepWKb.js.map} +1 -1
- package/dist/{agent-OsAfayRf.js → agent-CZpiwA_r.js} +8 -8
- package/dist/{agent-OsAfayRf.js.map → agent-CZpiwA_r.js.map} +1 -1
- package/dist/{agents-BztvTkfM.js → agents-CEapsHV-.js} +26 -19
- package/dist/agents-CEapsHV-.js.map +1 -0
- package/dist/app-files-Dsr3U1Q7.js +10 -0
- package/dist/app-files-Dsr3U1Q7.js.map +1 -0
- package/dist/{assemble-XrZskSNj.js → assemble-DUtbByvj.js} +1 -1
- package/dist/{assemble-Doa1m-HW.js → assemble-Dw1bF13I.js} +30 -17
- package/dist/{assemble-Doa1m-HW.js.map → assemble-Dw1bF13I.js.map} +1 -1
- package/dist/{attach-BH2HdwH_.js → attach-DvYiMu6w.js} +18 -10
- package/dist/attach-DvYiMu6w.js.map +1 -0
- package/dist/{attempt-_dUsblVx.js → attempt-DxR1agFo.js} +2 -2
- package/dist/{attempt-_dUsblVx.js.map → attempt-DxR1agFo.js.map} +1 -1
- package/dist/{attempt-host-8mQV8Uee.js → attempt-host-DgeJFSZw.js} +7 -7
- package/dist/{attempt-host-8mQV8Uee.js.map → attempt-host-DgeJFSZw.js.map} +1 -1
- package/dist/boat-BBPOc_bs.js +1 -0
- package/dist/{boat-DKjqo_ie.js → boat-CUNgSc75.js} +10 -9
- package/dist/boat-CUNgSc75.js.map +1 -0
- package/dist/{boat-images-CRN_U_eG.js → boat-images-BuFigiEb.js} +8 -8
- package/dist/{boat-images-CRN_U_eG.js.map → boat-images-BuFigiEb.js.map} +1 -1
- package/dist/{bundle-DU2aQVeq.js → bundle-yEgI3RsI.js} +21 -15
- package/dist/bundle-yEgI3RsI.js.map +1 -0
- package/dist/{capture-By1byHaX.js → capture-DdEKVrwk.js} +15 -15
- package/dist/{capture-By1byHaX.js.map → capture-DdEKVrwk.js.map} +1 -1
- package/dist/capture-DxxB3d7p.js +1 -0
- package/dist/{cases-CM-MQRQp.js → cases-B7QkvMGE.js} +2 -2
- package/dist/{cases-CM-MQRQp.js.map → cases-B7QkvMGE.js.map} +1 -1
- package/dist/cases-CA7gxxdr.js +1 -0
- package/dist/{cli-DMHOwdVr.js → cli-Z7aw8k25.js} +274 -165
- package/dist/cli-Z7aw8k25.js.map +1 -0
- package/dist/{cli-spec-D0wuUaj9.js → cli-spec-3zvLC9YW.js} +117 -15
- package/dist/cli-spec-3zvLC9YW.js.map +1 -0
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +1 -1
- package/dist/{client-B41UK150.js → client-kUwtq-vt.js} +3 -3
- package/dist/{client-B41UK150.js.map → client-kUwtq-vt.js.map} +1 -1
- package/dist/{hosted-Co-waHe0.js → cloud-DuHcNQVV.js} +38 -38
- package/dist/cloud-DuHcNQVV.js.map +1 -0
- package/dist/cloud-files-BjinrTTe.js +301 -0
- package/dist/cloud-files-BjinrTTe.js.map +1 -0
- package/dist/{hosted-5Zz2peTR.js → cloud-owVBaSRt.js} +30 -30
- package/dist/cloud-owVBaSRt.js.map +1 -0
- package/dist/cloud-run-C08P_Uap.js +1 -0
- package/dist/cloud-run-DqMkSGYB.js +500 -0
- package/dist/cloud-run-DqMkSGYB.js.map +1 -0
- package/dist/cloud-secrets-Bak83tik.js +337 -0
- package/dist/cloud-secrets-Bak83tik.js.map +1 -0
- package/dist/{command-8GIHYGZf.js → command-Bs6Knfm4.js} +13 -13
- package/dist/{command-8GIHYGZf.js.map → command-Bs6Knfm4.js.map} +1 -1
- package/dist/{command-CAmnWLFL.js → command-CeygdoVe.js} +19 -19
- package/dist/{command-CAmnWLFL.js.map → command-CeygdoVe.js.map} +1 -1
- package/dist/command-CoHN1ibe.js +183 -0
- package/dist/command-CoHN1ibe.js.map +1 -0
- package/dist/{command-ao0NZ8h0.js → command-CtmSJzPC.js} +18 -18
- package/dist/{command-ao0NZ8h0.js.map → command-CtmSJzPC.js.map} +1 -1
- package/dist/{command-CXxckfsq.js → command-efTGfUYb.js} +18 -130
- package/dist/command-efTGfUYb.js.map +1 -0
- package/dist/{commands-B3lnIPj5.js → commands-B_cAs8nG.js} +1 -1
- package/dist/{commands-ttChCsAy.js → commands-DR-NolV2.js} +25 -20
- package/dist/{commands-ttChCsAy.js.map → commands-DR-NolV2.js.map} +1 -1
- package/dist/{config-myJT1Qjc.js → config-Bn2OhCN_.js} +40 -34
- package/dist/config-Bn2OhCN_.js.map +1 -0
- package/dist/{context-DnzR9TNK.js → context-Ba7PNMMe.js} +2 -2
- package/dist/{context-DnzR9TNK.js.map → context-Ba7PNMMe.js.map} +1 -1
- package/dist/{cost-C21gGrju.js → cost-Dp-xFGJ1.js} +2 -2
- package/dist/{cost-C21gGrju.js.map → cost-Dp-xFGJ1.js.map} +1 -1
- package/dist/{cost-CdRX1s2p.js → cost-a_rUSdsf.js} +1 -1
- package/dist/{cursor-catalog-CUQrabJ_.js → cursor-catalog-BYIDSsLn.js} +5 -5
- package/dist/{cursor-catalog-CUQrabJ_.js.map → cursor-catalog-BYIDSsLn.js.map} +1 -1
- package/dist/{daytona-Dfhwtr9P.js → daytona-CWs9j9mt.js} +18 -15
- package/dist/daytona-CWs9j9mt.js.map +1 -0
- package/dist/daytona-image-BjVpi3KS.js +1 -0
- package/dist/{daytona-image-CnG6G00x.js → daytona-image-DmGlFAyq.js} +6 -5
- package/dist/daytona-image-DmGlFAyq.js.map +1 -0
- package/dist/db-Bjq6qr6c.js +2 -0
- package/dist/{db-5H95sFii.js → db-D6yQib7M.js} +12 -12
- package/dist/{db-5H95sFii.js.map → db-D6yQib7M.js.map} +1 -1
- package/dist/{default-effort-DYpCkJRk.js → default-effort-Bpz5ULfC.js} +2 -2
- package/dist/{default-effort-DYpCkJRk.js.map → default-effort-Bpz5ULfC.js.map} +1 -1
- package/dist/{default-effort-CtNY9CGW.js → default-effort-Ck6ViSaI.js} +1 -1
- package/dist/{dist-DeqeCUZe.js → dist-CZtW7eI5.js} +4 -4
- package/dist/{dist-DeqeCUZe.js.map → dist-CZtW7eI5.js.map} +1 -1
- package/dist/{docker-kpudeSxV.js → docker-Bbi4kmFj.js} +1 -1
- package/dist/{docker-CR0JZ1FE.js → docker-Dgw4aaRk.js} +4 -4
- package/dist/{docker-CR0JZ1FE.js.map → docker-Dgw4aaRk.js.map} +1 -1
- package/dist/{doctor-aE-RMbB_.js → doctor-BfS6jswW.js} +30 -30
- package/dist/{doctor-aE-RMbB_.js.map → doctor-BfS6jswW.js.map} +1 -1
- package/dist/{environment-C8pUCD_A.js → environment-BY8lVFFK.js} +9 -9
- package/dist/{environment-C8pUCD_A.js.map → environment-BY8lVFFK.js.map} +1 -1
- package/dist/{errors-DPUoUTdK.js → errors-P8oHhNzy.js} +2 -2
- package/dist/{errors-DPUoUTdK.js.map → errors-P8oHhNzy.js.map} +1 -1
- package/dist/{eval-source-CaLIGH3U.js → eval-source-BB8In3xo.js} +6 -6
- package/dist/{eval-source-CaLIGH3U.js.map → eval-source-BB8In3xo.js.map} +1 -1
- package/dist/{evaluate-4kBVtwZZ.js → evaluate-B8I9AKgw.js} +50 -40
- package/dist/evaluate-B8I9AKgw.js.map +1 -0
- package/dist/{evaluate-DHaNtgVf.d.ts → evaluate-B9_nukrc.d.ts} +2 -3
- package/dist/{events-CXxFvVMK.js → events-D97ZzAeq.js} +5 -5
- package/dist/{events-CXxFvVMK.js.map → events-D97ZzAeq.js.map} +1 -1
- package/dist/{fake-bootstrap-CzxrCqO3.js → fake-bootstrap-4DFtzib0.js} +2 -2
- package/dist/{fake-bootstrap-CzxrCqO3.js.map → fake-bootstrap-4DFtzib0.js.map} +1 -1
- package/dist/files-5HsFIpxw.js +1 -0
- package/dist/{files-CDfG8swM.js → files-B0DbptiO.js} +25 -16
- package/dist/files-B0DbptiO.js.map +1 -0
- package/dist/{files-BkvxIqfI.js → files-B4K1k__s.js} +5 -5
- package/dist/{files-BkvxIqfI.js.map → files-B4K1k__s.js.map} +1 -1
- package/dist/files-BNg3wgw_.js +1 -0
- package/dist/files-BesexM88.js +1477 -0
- package/dist/files-BesexM88.js.map +1 -0
- package/dist/{files-Cs2dtb7-.js → files-DE13BqBC.js} +2 -2
- package/dist/{files-Cs2dtb7-.js.map → files-DE13BqBC.js.map} +1 -1
- package/dist/files-DNgQwgA0.js +1 -0
- package/dist/files-DvDUSrWL.js +1 -0
- package/dist/{files-DpwJW3w6.js → files-GBTUBAek.js} +3 -3
- package/dist/{files-DpwJW3w6.js.map → files-GBTUBAek.js.map} +1 -1
- package/dist/{files-DgHeTdCZ.js → files-TwSVeWwM.js} +6 -6
- package/dist/{files-DgHeTdCZ.js.map → files-TwSVeWwM.js.map} +1 -1
- package/dist/gateway.d.ts +2 -3
- package/dist/{git-BnnNEXqh.js → git-DatgUcnf.js} +3 -3
- package/dist/{git-BnnNEXqh.js.map → git-DatgUcnf.js.map} +1 -1
- package/dist/{harness-nwnyghJZ.js → harness-EZNoeUBf.js} +2 -2
- package/dist/{harness-nwnyghJZ.js.map → harness-EZNoeUBf.js.map} +1 -1
- package/dist/{harness-install-BfMBYDfP.js → harness-install-HgR73tpF.js} +4 -3
- package/dist/harness-install-HgR73tpF.js.map +1 -0
- package/dist/harness.d.ts +2 -3
- package/dist/harness.js +1 -1
- package/dist/{ids-a6cr243_.js → ids-DqEvrBFZ.js} +2 -2
- package/dist/{ids-a6cr243_.js.map → ids-DqEvrBFZ.js.map} +1 -1
- package/dist/{images-DtXwj2wL.js → images-SRE4f3SM.js} +13 -13
- package/dist/{images-DtXwj2wL.js.map → images-SRE4f3SM.js.map} +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.js +5 -5
- package/dist/init-CS5kEaVg.js +1 -0
- package/dist/{init-Ci_IAp8p.js → init-D5F9MYPC.js} +6 -6
- package/dist/{init-Ci_IAp8p.js.map → init-D5F9MYPC.js.map} +1 -1
- package/dist/{ink-list-Dnh6XD3C.js → ink-list-CLq6YVB8.js} +3 -3
- package/dist/{ink-list-Dnh6XD3C.js.map → ink-list-CLq6YVB8.js.map} +1 -1
- package/dist/{inputs-z4JqnQ5g.js → inputs-B_FsOD2N.js} +6 -6
- package/dist/{inputs-z4JqnQ5g.js.map → inputs-B_FsOD2N.js.map} +1 -1
- package/dist/{inputs-load-DPUP_IFL.js → inputs-load-B4MFkp0Q.js} +3 -3
- package/dist/{inputs-load-DPUP_IFL.js.map → inputs-load-B4MFkp0Q.js.map} +1 -1
- package/dist/inputs-load-D4IsEjq3.js +1 -0
- package/dist/internal/vm.d.ts +7 -8
- package/dist/internal/vm.js +6 -6
- package/dist/internal/vm.js.map +1 -1
- package/dist/{invocations-C1gY3E0J.js → invocations-BxQqe5GU.js} +5 -5
- package/dist/{invocations-C1gY3E0J.js.map → invocations-BxQqe5GU.js.map} +1 -1
- package/dist/issue-DmSorsTF.js +1 -0
- package/dist/issue-iErT9KkK.js +120 -0
- package/dist/issue-iErT9KkK.js.map +1 -0
- package/dist/{jiti-ILwyxt93.js → jiti-CtahaHaY.js} +2 -2
- package/dist/{jiti-ILwyxt93.js.map → jiti-CtahaHaY.js.map} +1 -1
- package/dist/{judge-DwzqucLS.js → judge-MOKPsr6R.js} +7 -4
- package/dist/judge-MOKPsr6R.js.map +1 -0
- package/dist/judge.d.ts +5 -6
- package/dist/judge.js +1 -1
- package/dist/{judgments-Cj8bFaDG.js → judgments-Dur4D2pj.js} +2 -2
- package/dist/{judgments-Cj8bFaDG.js.map → judgments-Dur4D2pj.js.map} +1 -1
- package/dist/{kinds-DEKXOWVJ.js → kinds-Dohijzi-.js} +11 -10
- package/dist/kinds-Dohijzi-.js.map +1 -0
- package/dist/{layout-nCnU9Vu2.js → layout-BhhJAEgf.js} +3 -3
- package/dist/{layout-nCnU9Vu2.js.map → layout-BhhJAEgf.js.map} +1 -1
- package/dist/{list-MK4L8tfW.js → list-ClDb8qiX.js} +9 -7
- package/dist/list-ClDb8qiX.js.map +1 -0
- package/dist/{live-BkPNXVmN.js → live-C7iGaDCA.js} +9 -9
- package/dist/{live-BkPNXVmN.js.map → live-C7iGaDCA.js.map} +1 -1
- package/dist/live-C7kN5v2P.js +1 -0
- package/dist/{live-Dlq-S2yy.js → live-QFILMmql.js} +2 -2
- package/dist/{live-Dlq-S2yy.js.map → live-QFILMmql.js.map} +1 -1
- package/dist/{machine-service-Byl0BlcT.js → machine-service-DpJScNtA.js} +1 -1
- package/dist/{machine-service-CZiXiVsS.js → machine-service-xFhakTs5.js} +3 -3
- package/dist/{machine-service-CZiXiVsS.js.map → machine-service-xFhakTs5.js.map} +1 -1
- package/dist/{machines-Ch5bhgvk.js → machines-Cm-rU7jp.js} +36 -36
- package/dist/{machines-Ch5bhgvk.js.map → machines-Cm-rU7jp.js.map} +1 -1
- package/dist/{model-DRa7yv6K.js → model-CcvSrrq9.js} +5 -5
- package/dist/{model-DRa7yv6K.js.map → model-CcvSrrq9.js.map} +1 -1
- package/dist/model-Colu5mEp.js +1 -0
- package/dist/{model-CRh8aiYS.js → model-D9WMMEWD.js} +4 -4
- package/dist/{model-CRh8aiYS.js.map → model-D9WMMEWD.js.map} +1 -1
- package/dist/{model-lLaUxxno.js → model-Rmv-L9Jb.js} +1 -1
- package/dist/{model-LoLnq9y1.js → model-mTaaEkeQ.js} +6 -6
- package/dist/{model-LoLnq9y1.js.map → model-mTaaEkeQ.js.map} +1 -1
- package/dist/{node-BQjSQw0d.js → node-Bl2CtSjB.js} +8 -8
- package/dist/{node-BQjSQw0d.js.map → node-Bl2CtSjB.js.map} +1 -1
- package/dist/options-CmRy82gl.js +1 -0
- package/dist/{patch-D8X6VB-e.js → patch-DhJDHRFs.js} +2 -2
- package/dist/{patch-D8X6VB-e.js.map → patch-DhJDHRFs.js.map} +1 -1
- package/dist/{plan-DgIVIrXJ.js → plan-CC0bKbm9.js} +11 -11
- package/dist/{plan-DgIVIrXJ.js.map → plan-CC0bKbm9.js.map} +1 -1
- package/dist/{plugins-DvEbow6a.js → plugins-PwEtW8GH.js} +6 -6
- package/dist/{plugins-DvEbow6a.js.map → plugins-PwEtW8GH.js.map} +1 -1
- package/dist/{preflight-Qm4wE094.js → preflight-BHUEfA4m.js} +3 -3
- package/dist/{preflight-Qm4wE094.js.map → preflight-BHUEfA4m.js.map} +1 -1
- package/dist/{preflight-BKGbxN67.js → preflight-BzvLYQ70.js} +8 -8
- package/dist/{preflight-BKGbxN67.js.map → preflight-BzvLYQ70.js.map} +1 -1
- package/dist/{preflight-dJqs5x3r.js → preflight-DEV_vrdB.js} +1 -1
- package/dist/preflight-xa8_eGOW.js +1 -0
- package/dist/{prepare-BAjRSoku.js → prepare-D7hPrh7Q.js} +7 -7
- package/dist/{prepare-BAjRSoku.js.map → prepare-D7hPrh7Q.js.map} +1 -1
- package/dist/{prepare-CRPPfRJf.js → prepare-DS42k409.js} +2 -2
- package/dist/prices-C_mbZa5a.js +1 -0
- package/dist/{prices-DCokI_Ka.js → prices-DXJsP2Ha.js} +3 -3
- package/dist/{prices-DCokI_Ka.js.map → prices-DXJsP2Ha.js.map} +1 -1
- package/dist/process-RPlEhpHz.js +118 -0
- package/dist/process-RPlEhpHz.js.map +1 -0
- package/dist/{provenance-CSyRCc9B.js → provenance-DgQJ-dq7.js} +5 -5
- package/dist/{provenance-CSyRCc9B.js.map → provenance-DgQJ-dq7.js.map} +1 -1
- package/dist/{providers-DkaEJvF5.js → providers-B5Vr0hKH.js} +32 -32
- package/dist/{providers-DkaEJvF5.js.map → providers-B5Vr0hKH.js.map} +1 -1
- package/dist/{providers-DxZ26YoG.js → providers-N4HDMeeo.js} +1 -1
- package/dist/query-BXV6pRyI.js +1 -0
- package/dist/{query-BL66BOqL.js → query-CmTjYbqh.js} +2 -2
- package/dist/{query-BL66BOqL.js.map → query-CmTjYbqh.js.map} +1 -1
- package/dist/{questions-boVPzGoC.js → questions-DnqkJga0.js} +7 -7
- package/dist/{questions-boVPzGoC.js.map → questions-DnqkJga0.js.map} +1 -1
- package/dist/{recipe-qyIpP96r.js → recipe-B0NeT_Sn.js} +3 -3
- package/dist/{recipe-qyIpP96r.js.map → recipe-B0NeT_Sn.js.map} +1 -1
- package/dist/{record-D1_D1KFY.js → record-2liAelrB.js} +11 -5
- package/dist/record-2liAelrB.js.map +1 -0
- package/dist/{redact-t-L3VGy8.js → redact-DMueYS-v.js} +28 -6
- package/dist/redact-DMueYS-v.js.map +1 -0
- package/dist/{remarks-DEvk5f8v.js → remarks-D-9f1y1B.js} +10 -10
- package/dist/{remarks-DEvk5f8v.js.map → remarks-D-9f1y1B.js.map} +1 -1
- package/dist/{remarks-DqriPKxm.js → remarks-D5qOZzcX.js} +2 -2
- package/dist/{remarks-DqriPKxm.js.map → remarks-D5qOZzcX.js.map} +1 -1
- package/dist/{remote-CQoBRpOv.js → remote-B7BIRUTK.js} +6 -6
- package/dist/{remote-CQoBRpOv.js.map → remote-B7BIRUTK.js.map} +1 -1
- package/dist/{resolve-Bfo8sjd-.js → resolve-B60w6DcB.js} +20 -5
- package/dist/resolve-B60w6DcB.js.map +1 -0
- package/dist/resolve-CCLiJX4i.js +1 -0
- package/dist/{resolve-D2RqmybX.js → resolve-t9sOkGGS.js} +50 -17
- package/dist/resolve-t9sOkGGS.js.map +1 -0
- package/dist/{results-BpxzyoMd.js → results-Df910ONm.js} +6 -6
- package/dist/{results-BpxzyoMd.js.map → results-Df910ONm.js.map} +1 -1
- package/dist/{resume-2ekm_9OB.js → resume-4Q9q8AcE.js} +6 -6
- package/dist/{resume-2ekm_9OB.js.map → resume-4Q9q8AcE.js.map} +1 -1
- package/dist/{retry-CAhpW1hH.js → retry-C15f5yyy.js} +4 -4
- package/dist/{retry-CAhpW1hH.js.map → retry-C15f5yyy.js.map} +1 -1
- package/dist/{root-BzeoyfGd.js → root-Cm93-6ix.js} +3 -3
- package/dist/{root-BzeoyfGd.js.map → root-Cm93-6ix.js.map} +1 -1
- package/dist/{runtime-C5fKSFCz.js → runtime-CIsljVBy.js} +5 -5
- package/dist/{runtime-C5fKSFCz.js.map → runtime-CIsljVBy.js.map} +1 -1
- package/dist/sandbox/boat.d.ts +4 -5
- package/dist/sandbox/boat.js +2 -2
- package/dist/sandbox/daytona.d.ts +4 -5
- package/dist/sandbox/daytona.js +1 -1
- package/dist/{sandbox-t-Q-8lA_.js → sandbox-BffNervX.js} +3 -3
- package/dist/{sandbox-t-Q-8lA_.js.map → sandbox-BffNervX.js.map} +1 -1
- package/dist/sandbox.d.ts +4 -5
- package/dist/sandbox.js +1 -1
- package/dist/secrets-file-Dtd3h3kY.js +100 -0
- package/dist/secrets-file-Dtd3h3kY.js.map +1 -0
- package/dist/secrets-file-take-BXfYMTM-.js +33 -0
- package/dist/secrets-file-take-BXfYMTM-.js.map +1 -0
- package/dist/server-CeYUmuuu.js +1 -0
- package/dist/{server-BcLg9WzE.js → server-fSNuT3Z4.js} +12 -12
- package/dist/{server-BcLg9WzE.js.map → server-fSNuT3Z4.js.map} +1 -1
- package/dist/shared-B3iLKAiu.d.ts +1 -0
- package/dist/source-n7nUVm9p.js +1 -0
- package/dist/{source-CrXM19HD.js → source-zoRWRMql.js} +2 -2
- package/dist/{source-CrXM19HD.js.map → source-zoRWRMql.js.map} +1 -1
- package/dist/{src-DrLbG1HM.js → src-9V3C6A7C.js} +1 -1
- package/dist/{src-Bf5RZlPi.js → src-BQWAxhKD.js} +3 -3
- package/dist/{src-Bf5RZlPi.js.map → src-BQWAxhKD.js.map} +1 -1
- package/dist/{src-io_SKoZ5.js → src-Bj3WJs3t.js} +2 -2
- package/dist/{src-5dCrqbFd.js → src-CB5cZhaN.js} +1 -1
- package/dist/{src-C-ChdnG6.js → src-CDoAEO4u.js} +2 -2
- package/dist/{src-C-ChdnG6.js.map → src-CDoAEO4u.js.map} +1 -1
- package/dist/{src-Cf4vRyea.js → src-CFBg2ecq.js} +1 -1
- package/dist/{src-DNWiU__5.js → src-CGBwMZgM.js} +2 -2
- package/dist/{src-DNWiU__5.js.map → src-CGBwMZgM.js.map} +1 -1
- package/dist/{src-C6MsGyD6.js → src-CUrcaZ91.js} +1 -1
- package/dist/{src-DwcCKsV0.js → src-CcbV6VpV.js} +2 -2
- package/dist/{src-DEbNp-rx.js → src-DB0vml0O.js} +1 -1
- package/dist/{src-VG2IRoT4.js → src-DiS13D_q.js} +2 -2
- package/dist/{src-C5rrQlt8.js → src-OC89dAjO.js} +65 -129
- package/dist/src-OC89dAjO.js.map +1 -0
- package/dist/{src-Ds1pmXTg.js → src-TMKittwH.js} +1 -1
- package/dist/ssh-pool-ChpT-fDU.js +1 -0
- package/dist/{ssh-pool-Dvfx5GuV.js → ssh-pool-DwboLN9O.js} +10 -9
- package/dist/ssh-pool-DwboLN9O.js.map +1 -0
- package/dist/{start-COB07NpH.js → start-BwMyDneA.js} +27 -7
- package/dist/start-BwMyDneA.js.map +1 -0
- package/dist/{state-B319V1p8.js → state-CXTaT0t8.js} +10 -10
- package/dist/{state-B319V1p8.js.map → state-CXTaT0t8.js.map} +1 -1
- package/dist/state-CltRWlCu.js +1 -0
- package/dist/store/local.d.ts +2 -3
- package/dist/store/s3.d.ts +2 -3
- package/dist/{suite-D1tgXZxM.js → suite-C4XSg6Ls.js} +6 -6
- package/dist/{suite-D1tgXZxM.js.map → suite-C4XSg6Ls.js.map} +1 -1
- package/dist/suite-CIsyPqPA.js +2 -0
- package/dist/{summary-ClLns_wv.js → summary-DeeQJAR5.js} +8 -8
- package/dist/{summary-ClLns_wv.js.map → summary-DeeQJAR5.js.map} +1 -1
- package/dist/{sync-mOG74RXH.js → sync-bnI6WWaL.js} +6 -6
- package/dist/{sync-mOG74RXH.js.map → sync-bnI6WWaL.js.map} +1 -1
- package/dist/{tart-DMppfbEm.js → tart-CSP5Q0qV.js} +9 -8
- package/dist/tart-CSP5Q0qV.js.map +1 -0
- package/dist/{tart-bake-Cva_qdir.js → tart-bake-BCKRfyKm.js} +9 -8
- package/dist/tart-bake-BCKRfyKm.js.map +1 -0
- package/dist/{tart-bake-DVIoXWr_.js → tart-bake-d9UvIfe3.js} +1 -1
- package/dist/{tart-cli-D88c5YYJ.js → tart-cli-C4d5FXG1.js} +1 -1
- package/dist/{tart-cli-LzDud2Z6.js → tart-cli-CqSpUYGV.js} +3 -2
- package/dist/tart-cli-CqSpUYGV.js.map +1 -0
- package/dist/{tart-hosts-8N6Tt7Yb.js → tart-hosts-Du7SZM4w.js} +1 -1
- package/dist/{tart-hosts-CTRY5kQ2.js → tart-hosts-G0EUDt07.js} +5 -4
- package/dist/tart-hosts-G0EUDt07.js.map +1 -0
- package/dist/{tart-images-JfHirU8W.js → tart-images-De0-ib7R.js} +4 -4
- package/dist/{tart-images-JfHirU8W.js.map → tart-images-De0-ib7R.js.map} +1 -1
- package/dist/testing.d.ts +4 -5
- package/dist/testing.js +4 -4
- package/dist/{tool-class-CncfCw03.js → tool-class-B3ZFTSOw.js} +2 -2
- package/dist/{tool-class-CncfCw03.js.map → tool-class-B3ZFTSOw.js.map} +1 -1
- package/dist/{trace-BpXByD7W.js → trace-CfppUzD9.js} +2 -2
- package/dist/{trace-BpXByD7W.js.map → trace-CfppUzD9.js.map} +1 -1
- package/dist/{traits-CCD8XsmI.js → traits-Bj1PM5F7.js} +2 -2
- package/dist/{traits-CCD8XsmI.js.map → traits-Bj1PM5F7.js.map} +1 -1
- package/dist/{transcript-BXWZiMuC.js → transcript-CW02A4s9.js} +3 -3
- package/dist/{transcript-BXWZiMuC.js.map → transcript-CW02A4s9.js.map} +1 -1
- package/dist/types-CbcnJxCy.js.map +1 -1
- package/dist/{types-BDo8ttQo.d.ts → types-D4WEnzhY.d.ts} +51 -16
- package/dist/{ui-DUiVPbQ2.js → ui-DfvPNmPP.js} +7 -7
- package/dist/{ui-DUiVPbQ2.js.map → ui-DfvPNmPP.js.map} +1 -1
- package/dist/{vertex-BEWxHoxH.js → vertex-BLxYasfw.js} +2 -2
- package/dist/{vertex-BEWxHoxH.js.map → vertex-BLxYasfw.js.map} +1 -1
- package/dist/vertex-D4H9bKHD.d.ts +2 -0
- package/dist/vertex-DZDUpp0W.js +1 -0
- package/dist/view/index.d.ts +2 -3
- package/dist/view/index.js +10 -10
- package/dist/{views-CiZGh3ws.js → views-ChoSQxfF.js} +6 -6
- package/dist/{views-CiZGh3ws.js.map → views-ChoSQxfF.js.map} +1 -1
- package/dist/views-DU0PM0UW.js +2 -0
- package/dist/{vm-container-BVn7pXfD.js → vm-container-DOtIi_rd.js} +9 -8
- package/dist/vm-container-DOtIi_rd.js.map +1 -0
- package/dist/{vm-images-CNk-Zl2a.js → vm-images-CHutQVml.js} +13 -13
- package/dist/{vm-images-CNk-Zl2a.js.map → vm-images-CHutQVml.js.map} +1 -1
- package/dist/{worker-entry-DmXQ2Znu.js → worker-entry-CKBfEt0h.js} +7 -7
- package/dist/{worker-entry-DmXQ2Znu.js.map → worker-entry-CKBfEt0h.js.map} +1 -1
- package/dist/workspace-BKcNJAPb.js +1 -0
- package/dist/{workspace-wwvwEHzP.js → workspace-Cip2dVwU.js} +9 -8
- package/dist/workspace-Cip2dVwU.js.map +1 -0
- package/package.json +9 -9
- package/skills/reeval/SKILL.md +2 -2
- package/skills/setup/SKILL.md +1 -1
- package/dist/agents-BztvTkfM.js.map +0 -1
- package/dist/app-files-6NHzghym.js +0 -10
- package/dist/app-files-6NHzghym.js.map +0 -1
- package/dist/attach-BH2HdwH_.js.map +0 -1
- package/dist/boat-DKRH0Gv7.js +0 -1
- package/dist/boat-DKjqo_ie.js.map +0 -1
- package/dist/bundle-DU2aQVeq.js.map +0 -1
- package/dist/capture-BzjNv0qP.js +0 -1
- package/dist/cases-FvhbM8M5.js +0 -1
- package/dist/cli-DMHOwdVr.js.map +0 -1
- package/dist/cli-spec-D0wuUaj9.js.map +0 -1
- package/dist/command-CXxckfsq.js.map +0 -1
- package/dist/config-myJT1Qjc.js.map +0 -1
- package/dist/daytona-Dfhwtr9P.js.map +0 -1
- package/dist/daytona-image-CnG6G00x.js.map +0 -1
- package/dist/daytona-image-yJK3c4EV.js +0 -1
- package/dist/db-Bbg1n_2M.js +0 -2
- package/dist/evaluate-4kBVtwZZ.js.map +0 -1
- package/dist/files-BFnkOAhn.js +0 -1
- package/dist/files-BgQxoDlN.js +0 -1
- package/dist/files-CDfG8swM.js.map +0 -1
- package/dist/files-CSe4VaMj.js +0 -1
- package/dist/files-CX_mmvCc.js +0 -775
- package/dist/files-CX_mmvCc.js.map +0 -1
- package/dist/files-D6M7J3iX.js +0 -1
- package/dist/harness-install-BfMBYDfP.js.map +0 -1
- package/dist/hosted-5Zz2peTR.js.map +0 -1
- package/dist/hosted-Co-waHe0.js.map +0 -1
- package/dist/hosted-run-202QicZ-.js +0 -1
- package/dist/hosted-run-BfAPIMyT.js +0 -230
- package/dist/hosted-run-BfAPIMyT.js.map +0 -1
- package/dist/init-BiL6B3S4.js +0 -1
- package/dist/inputs-load-M-BGe7gd.js +0 -1
- package/dist/judge-DwzqucLS.js.map +0 -1
- package/dist/kinds-DEKXOWVJ.js.map +0 -1
- package/dist/list-MK4L8tfW.js.map +0 -1
- package/dist/live-gZtkBwuo.js +0 -1
- package/dist/model-C6aoJLg_.js +0 -1
- package/dist/options-I9I3FwMl.js +0 -1
- package/dist/preflight-fyV5nnea.js +0 -1
- package/dist/prices-C0gKS_8G.js +0 -1
- package/dist/query-C9OKU1Vz.js +0 -1
- package/dist/record-D1_D1KFY.js.map +0 -1
- package/dist/redact-t-L3VGy8.js.map +0 -1
- package/dist/resolve-BdpO8BN1.js +0 -1
- package/dist/resolve-Bfo8sjd-.js.map +0 -1
- package/dist/resolve-D2RqmybX.js.map +0 -1
- package/dist/server-Buav2-CG.js +0 -1
- package/dist/shared-CHvO7eLi.d.ts +0 -1
- package/dist/source-dvxkqYvk.js +0 -1
- package/dist/src-C5rrQlt8.js.map +0 -1
- package/dist/ssh-pool-BorCizYw.js +0 -1
- package/dist/ssh-pool-Dvfx5GuV.js.map +0 -1
- package/dist/start-COB07NpH.js.map +0 -1
- package/dist/state-C5oBvmoZ.js +0 -1
- package/dist/suite-BwJGOhCZ.js +0 -2
- package/dist/tart-DMppfbEm.js.map +0 -1
- package/dist/tart-bake-Cva_qdir.js.map +0 -1
- package/dist/tart-cli-LzDud2Z6.js.map +0 -1
- package/dist/tart-hosts-CTRY5kQ2.js.map +0 -1
- package/dist/vertex-C7PI-WPc.d.ts +0 -3
- package/dist/vertex-DXfcXYKn.js +0 -1
- package/dist/views-B0qZR5Ef.js +0 -2
- package/dist/vm-container-BVn7pXfD.js.map +0 -1
- package/dist/workspace-CRgFdmgW.js +0 -1
- package/dist/workspace-wwvwEHzP.js.map +0 -1
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { n as UsageError } from "./errors-ttMTnIYX.js";
|
|
2
2
|
import { g as parseDuration } from "./shared-DtZwIAfy.js";
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { i as formatDuration, n as clip } from "./text-B8-W3Cvn.js";
|
|
8
|
-
import { y as vertexSettingsIn } from "./vertex-BEWxHoxH.js";
|
|
9
|
-
import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-C8pUCD_A.js";
|
|
10
|
-
import { At as resolveOutput, Dt as rootlessPodmanSwitch, Ot as setupEgress, R as checkLimitHarness, S as resolveModelGateway, U as harnessId, _ as selectProfile, _t as ciRunner, a as configPathFor, b as gatewayScope, c as findConfig, d as loadConfig, et as plannedSandboxIds, f as malformedCredentials, g as runJudgeModel, h as requireConfig, i as configLabel, l as givenConcurrency, m as neededCredentials, o as defaultConcurrency, p as missingCredentials, tt as plannedSandboxes, u as hostCapacity, v as withProfileHistory, vt as directOnCloud, xt as isDirect } from "./config-myJT1Qjc.js";
|
|
11
|
-
import { l as judgeModelName, m as unusedGatewayKey } from "./judge-DwzqucLS.js";
|
|
3
|
+
import { i as INSTEAD, l as helpText, n as FLAGS, r as GLOBAL, s as commandHelpText, t as COMMANDS } from "./cli-spec-3zvLC9YW.js";
|
|
4
|
+
import { At as resolveOutput, Dt as rootlessPodmanSwitch, Ot as setupEgress, R as checkLimitHarness, S as resolveModelGateway, U as harnessId, _ as selectProfile, _t as ciRunner, a as configPathFor, b as gatewayScope, c as findConfig, d as loadConfig, et as plannedSandboxIds, f as malformedCredentials, g as runJudgeModel, h as requireConfig, i as configLabel, l as givenConcurrency, m as neededCredentials, o as defaultConcurrency, p as missingCredentials, tt as plannedSandboxes, u as hostCapacity, v as withProfileHistory, vt as directOnCloud, xt as isDirect } from "./config-Bn2OhCN_.js";
|
|
5
|
+
import { g as wantsCloud } from "./cloud-run-DqMkSGYB.js";
|
|
6
|
+
import { t as budgetMarker } from "./budget-BcxLYY5L.js";
|
|
12
7
|
import { n as loadEnvFiles, t as inCI } from "./env-8x1O8I1M.js";
|
|
13
|
-
import {
|
|
8
|
+
import { D as profileSandbox, F as workspaceLabel, d as environmentSandbox } from "./environment-BY8lVFFK.js";
|
|
9
|
+
import { c as notEventStream, i as displayUrl, l as openEventStream, o as isAttachUrl, s as isEventsUrl, u as teeRenderer } from "./events-D97ZzAeq.js";
|
|
14
10
|
import { r as openRouterFallbacks } from "./openrouter-models-B1sIOTD2.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
11
|
+
import { y as vertexSettingsIn } from "./vertex-BLxYasfw.js";
|
|
12
|
+
import { i as runtimeInfo, n as gitInfo, r as runnerInfo, t as author } from "./provenance-DgQJ-dq7.js";
|
|
13
|
+
import { a as fromCwd, l as relativeFile, o as newRunId, r as cwdIn } from "./ids-DqEvrBFZ.js";
|
|
14
|
+
import { l as judgeModelName, m as unusedGatewayKey } from "./judge-MOKPsr6R.js";
|
|
15
|
+
import { A as writeLiveProgress, C as restoreRetry, D as stoppedRetry, E as savedInvocation, O as sweepStaging, S as resolveRetry, T as savedFilters, _ as pruneEvents, a as eventsFile, b as resolveAttach, d as liveAttempts, f as loadPrevious, h as previousAttempt, i as erroredAttempts, k as writeCurrent, l as keptAttempts, m as prepareResume, o as holdRetry, p as noteRetries, r as completedKeysFor, t as CANCEL_SIGNAL, u as leftOutAttempts, w as resumeSettings, x as resolveResume, y as removeStoppedStaging } from "./resume-4Q9q8AcE.js";
|
|
16
|
+
import { n as preflight } from "./preflight-BzvLYQ70.js";
|
|
17
|
+
import { C as stripCredentials, S as registerSecret, _ as redactSecrets } from "./redact-DMueYS-v.js";
|
|
18
|
+
import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-BxQqe5GU.js";
|
|
19
|
+
import { o as PACKAGE_VERSION } from "./root-Cm93-6ix.js";
|
|
20
|
+
import { c as sandboxCapacity, n as capabilitiesOf, r as cleanupRun, u as sandboxKind } from "./kinds-Dohijzi-.js";
|
|
21
|
+
import { i as heldSecrets, o as readSecretsFile } from "./secrets-file-Dtd3h3kY.js";
|
|
22
|
+
import { r as localStudio } from "./resolve-B60w6DcB.js";
|
|
23
|
+
import { d as storeCredentials, i as isRemote, u as pullStore } from "./sync-bnI6WWaL.js";
|
|
24
|
+
import { i as formatDuration, n as clip } from "./text-B8-W3Cvn.js";
|
|
25
|
+
import { a as traitFilters, o as traitFlags, t as checkTraitKeys } from "./traits-Bj1PM5F7.js";
|
|
18
26
|
import { t as colors } from "./colors-DcXBvAlU.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { A as writeLiveProgress, C as restoreRetry, D as stoppedRetry, E as savedInvocation, O as sweepStaging, S as resolveRetry, T as savedFilters, _ as pruneEvents, a as eventsFile, b as resolveAttach, d as liveAttempts, f as loadPrevious, h as previousAttempt, i as erroredAttempts, k as writeCurrent, l as keptAttempts, m as prepareResume, o as holdRetry, p as noteRetries, r as completedKeysFor, t as CANCEL_SIGNAL, u as leftOutAttempts, w as resumeSettings, x as resolveResume, y as removeStoppedStaging } from "./resume-2ekm_9OB.js";
|
|
22
|
-
import { c as notEventStream, l as openEventStream, o as isAttachUrl, s as isEventsUrl, u as teeRenderer } from "./events-CXxFvVMK.js";
|
|
23
|
-
import { t as createRenderer } from "./ui-DUiVPbQ2.js";
|
|
24
|
-
import { n as preflight } from "./preflight-BKGbxN67.js";
|
|
25
|
-
import { t as budgetMarker } from "./budget-BcxLYY5L.js";
|
|
26
|
-
import { d as wantsHosted } from "./hosted-run-BfAPIMyT.js";
|
|
27
|
-
import { a as redactArgv, r as commandOf, t as logInvocation } from "./invocations-C1gY3E0J.js";
|
|
27
|
+
import { t as createRenderer } from "./ui-DfvPNmPP.js";
|
|
28
|
+
import { k as runOutcome } from "./model-mTaaEkeQ.js";
|
|
28
29
|
import { existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
|
|
29
30
|
import { dirname, join, resolve } from "node:path";
|
|
30
31
|
import { appendFile, readFile, rm } from "node:fs/promises";
|
|
@@ -57,19 +58,19 @@ function parseCli(argv) {
|
|
|
57
58
|
};
|
|
58
59
|
});
|
|
59
60
|
for (const [name, spec] of Object.entries(COMMANDS)) {
|
|
60
|
-
const command = configure(program.command(name), `reeval ${name}`, spec.flags);
|
|
61
|
+
const command = configure(program.command(name), `reeval ${name}`, spec.flags, spec.secretArgs);
|
|
61
62
|
if (name === "query") takeStatements(command);
|
|
62
63
|
command.argument("[args...]").action(() => {
|
|
63
64
|
const max = spec.sub && !spec.help ? Number.POSITIVE_INFINITY : spec.positionals;
|
|
64
|
-
parsed = done(program, command, [name], spec.flags, max);
|
|
65
|
+
parsed = done(program, command, [name], spec.flags, max, spec.secretArgs);
|
|
65
66
|
});
|
|
66
67
|
for (const [subName, sub] of Object.entries(spec.sub ?? {})) {
|
|
67
|
-
const subcommand = configure(command.command(subName), `reeval ${name} ${subName}`, sub.flags);
|
|
68
|
+
const subcommand = configure(command.command(subName), `reeval ${name} ${subName}`, sub.flags, sub.secretArgs);
|
|
68
69
|
subcommand.argument("[args...]").action(() => {
|
|
69
70
|
const own = valuesOf(command, spec.flags);
|
|
70
71
|
const stray = Object.keys(own).find((flag) => !sub.flags.includes(flag));
|
|
71
72
|
if (stray) throw new UsageError(`--${stray} isn't an option of reeval ${name} ${subName}. Run reeval --help.`);
|
|
72
|
-
const result = done(program, subcommand, [name, subName], sub.flags, sub.positionals);
|
|
73
|
+
const result = done(program, subcommand, [name, subName], sub.flags, sub.positionals, sub.secretArgs);
|
|
73
74
|
parsed = {
|
|
74
75
|
...result,
|
|
75
76
|
values: {
|
|
@@ -84,13 +85,13 @@ function parseCli(argv) {
|
|
|
84
85
|
if (!parsed) throw new UsageError("reeval couldn't read that command line. Run reeval --help.");
|
|
85
86
|
return parsed;
|
|
86
87
|
}
|
|
87
|
-
function configure(command, name, flags) {
|
|
88
|
+
function configure(command, name, flags, secretArgs) {
|
|
88
89
|
command.helpOption(false).helpCommand(false).allowExcessArguments().configureOutput({
|
|
89
90
|
writeOut: () => {},
|
|
90
91
|
writeErr: () => {},
|
|
91
92
|
outputError: () => {}
|
|
92
93
|
}).exitOverride((error) => {
|
|
93
|
-
throw usageError(error, name);
|
|
94
|
+
throw usageError(error, name, secretArgs);
|
|
94
95
|
});
|
|
95
96
|
for (const flag of flags) command.addOption(OPTIONS[flag]());
|
|
96
97
|
return command;
|
|
@@ -117,7 +118,7 @@ function takeStatements(command) {
|
|
|
117
118
|
};
|
|
118
119
|
};
|
|
119
120
|
}
|
|
120
|
-
function done(program, command, path, flags, max) {
|
|
121
|
+
function done(program, command, path, flags, max, secretArgs) {
|
|
121
122
|
const values = {
|
|
122
123
|
...valuesOf(program, GLOBAL),
|
|
123
124
|
...valuesOf(command, flags)
|
|
@@ -125,7 +126,8 @@ function done(program, command, path, flags, max) {
|
|
|
125
126
|
const args = command.args;
|
|
126
127
|
if (!values.help && !values.version && args.length > max) {
|
|
127
128
|
const name = `reeval ${path.join(" ")}`;
|
|
128
|
-
|
|
129
|
+
const got = secretArgs ? `got ${args.length}` : `got ${args.join(" ")}`;
|
|
130
|
+
throw new UsageError(max === 0 ? `${name} takes no arguments (${got})` : `${name} takes at most ${max} argument${max === 1 ? "" : "s"} (${got})`);
|
|
129
131
|
}
|
|
130
132
|
return {
|
|
131
133
|
positionals: [...path, ...args],
|
|
@@ -149,7 +151,7 @@ function valuesOf(command, flags) {
|
|
|
149
151
|
return values;
|
|
150
152
|
}
|
|
151
153
|
/** Commander's error, in reeval's words, naming the command whose flag it is. */
|
|
152
|
-
function usageError(error, command) {
|
|
154
|
+
function usageError(error, command, secretArgs) {
|
|
153
155
|
const text = error.message.replace(/^error: /, "");
|
|
154
156
|
const [first = ""] = text.split("\n");
|
|
155
157
|
if (error.code === "commander.unknownOption") {
|
|
@@ -162,6 +164,7 @@ function usageError(error, command) {
|
|
|
162
164
|
const instead = INSTEAD[`${command} --${long}`];
|
|
163
165
|
return new UsageError(`--${long} isn't an option of ${command}. ${instead ? `${instead}.` : "Run reeval --help."}`);
|
|
164
166
|
}
|
|
167
|
+
if (secretArgs) return new UsageError(`${command} has no such option. Run reeval --help.`);
|
|
165
168
|
const shown = arg.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
|
|
166
169
|
return new UsageError(`Unknown option '${shown}'. ${suggestion ? `${suggestion} ` : ""}Run reeval --help.`);
|
|
167
170
|
}
|
|
@@ -205,7 +208,7 @@ const INFRA_ERRORS = [
|
|
|
205
208
|
"PreflightInfraError",
|
|
206
209
|
"StoreError",
|
|
207
210
|
"EventStreamError",
|
|
208
|
-
"
|
|
211
|
+
"CloudError"
|
|
209
212
|
];
|
|
210
213
|
const EXIT = {
|
|
211
214
|
ok: 0,
|
|
@@ -251,6 +254,7 @@ async function sweep(root, keep) {
|
|
|
251
254
|
for (const runId of await sweepStaging(root, keep)) process.stderr.write(`reeval: run ${runId} stopped over a day ago and can still be resumed: reeval run --resume ${runId} finishes it, reeval clean --staging deletes it.\n`);
|
|
252
255
|
}
|
|
253
256
|
async function run(argv) {
|
|
257
|
+
readSecretsFile();
|
|
254
258
|
const { values, positionals } = parseCli(argv);
|
|
255
259
|
invocation.flags = values;
|
|
256
260
|
if (values.version) {
|
|
@@ -267,7 +271,7 @@ async function run(argv) {
|
|
|
267
271
|
return values.help ? EXIT.ok : EXIT.usage;
|
|
268
272
|
}
|
|
269
273
|
if (command === "init") {
|
|
270
|
-
const { initCommand } = await import("./init-
|
|
274
|
+
const { initCommand } = await import("./init-CS5kEaVg.js");
|
|
271
275
|
return initCommand(values, filters, {
|
|
272
276
|
out: (s) => console.log(s),
|
|
273
277
|
input: process.stdin,
|
|
@@ -276,7 +280,7 @@ async function run(argv) {
|
|
|
276
280
|
});
|
|
277
281
|
}
|
|
278
282
|
if (command === "doctor") {
|
|
279
|
-
const { doctorCommand } = await import("./doctor-
|
|
283
|
+
const { doctorCommand } = await import("./doctor-BfS6jswW.js");
|
|
280
284
|
return doctorCommand(values, {
|
|
281
285
|
out: (s) => console.log(s),
|
|
282
286
|
color: !!process.stdout.isTTY && !process.env.NO_COLOR,
|
|
@@ -284,7 +288,7 @@ async function run(argv) {
|
|
|
284
288
|
});
|
|
285
289
|
}
|
|
286
290
|
if (command === "report") {
|
|
287
|
-
const { reportCommand } = await import("./command-
|
|
291
|
+
const { reportCommand } = await import("./command-efTGfUYb.js");
|
|
288
292
|
return reportCommand(values, filters, {
|
|
289
293
|
out: (s) => console.log(s),
|
|
290
294
|
err: (s) => console.error(dim(s)),
|
|
@@ -292,7 +296,32 @@ async function run(argv) {
|
|
|
292
296
|
confirm: process.stdin.isTTY && process.stdout.isTTY ? confirm : void 0
|
|
293
297
|
});
|
|
294
298
|
}
|
|
299
|
+
if (command === "login" || command === "logout" || command === "whoami") {
|
|
300
|
+
const login = await import("./command-CoHN1ibe.js");
|
|
301
|
+
loadEnvFiles(configPathFor(values.config));
|
|
302
|
+
const { defaultIssueDeps } = await import("./issue-DmSorsTF.js");
|
|
303
|
+
const io = {
|
|
304
|
+
out: (s) => console.log(s),
|
|
305
|
+
err: (s) => console.error(dim(s)),
|
|
306
|
+
...process.stdout.isTTY && !inCI() && { open: defaultIssueDeps().open }
|
|
307
|
+
};
|
|
308
|
+
if (command === "login") return login.loginCommand(io);
|
|
309
|
+
if (command === "logout") return login.logoutCommand(io);
|
|
310
|
+
return login.whoamiCommand(values, io);
|
|
311
|
+
}
|
|
295
312
|
const configPath = configPathFor(values.config);
|
|
313
|
+
if (command === "cloud") {
|
|
314
|
+
const [area, ...args] = filters;
|
|
315
|
+
if (area !== "secrets" && area !== "provider") throw new UsageError(`Unknown command "cloud ${area ?? ""}". Did you mean reeval cloud secrets or reeval cloud provider?`);
|
|
316
|
+
loadEnvFiles(configPath);
|
|
317
|
+
const cloud = await import("./cloud-secrets-Bak83tik.js");
|
|
318
|
+
const io = {
|
|
319
|
+
out: (s) => console.log(s),
|
|
320
|
+
readValue: cloud.readSecretValue,
|
|
321
|
+
projectDir: cloud.projectDirFor(configPath)
|
|
322
|
+
};
|
|
323
|
+
return area === "secrets" ? cloud.secretsCommand(values, args, io) : cloud.providerCommand(values, args, io);
|
|
324
|
+
}
|
|
296
325
|
if (command === "image") {
|
|
297
326
|
if (filters[0] === "list") return imageListCommand(values, configPath, filters.slice(1));
|
|
298
327
|
if (filters[0] === "clean") return imageCleanCommand(values, configPath);
|
|
@@ -302,7 +331,7 @@ async function run(argv) {
|
|
|
302
331
|
if (command === "studio") {
|
|
303
332
|
const config = await historyConfig(configPath, "studio", values.profile);
|
|
304
333
|
localStudio(config);
|
|
305
|
-
const { studioCommand } = await import("./command-
|
|
334
|
+
const { studioCommand } = await import("./command-Bs6Knfm4.js");
|
|
306
335
|
return studioCommand({
|
|
307
336
|
config,
|
|
308
337
|
flags: values,
|
|
@@ -313,7 +342,7 @@ async function run(argv) {
|
|
|
313
342
|
if (command === "mcp") {
|
|
314
343
|
if (!values.http) console.log = console.info = console.debug = console.error;
|
|
315
344
|
const config = await historyConfig(configPath, "mcp", values.profile, values);
|
|
316
|
-
const { mcpCommand } = await import("./command-
|
|
345
|
+
const { mcpCommand } = await import("./command-CtmSJzPC.js");
|
|
317
346
|
return mcpCommand({
|
|
318
347
|
config,
|
|
319
348
|
flags: values,
|
|
@@ -322,7 +351,7 @@ async function run(argv) {
|
|
|
322
351
|
}
|
|
323
352
|
if (command in HISTORY_COMMANDS) {
|
|
324
353
|
const config = await historyConfig(configPath, command, values.profile, values);
|
|
325
|
-
const commands = await import("./commands-
|
|
354
|
+
const commands = await import("./commands-B_cAs8nG.js");
|
|
326
355
|
const ctx = {
|
|
327
356
|
config,
|
|
328
357
|
flags: values,
|
|
@@ -336,14 +365,14 @@ async function run(argv) {
|
|
|
336
365
|
case "checkout": return commands.checkoutCommand(ctx, filters);
|
|
337
366
|
case "sync": return commands.syncCommand(ctx, filters);
|
|
338
367
|
case "query": {
|
|
339
|
-
const { queryCommand } = await import("./query-
|
|
368
|
+
const { queryCommand } = await import("./query-BXV6pRyI.js");
|
|
340
369
|
return queryCommand({
|
|
341
370
|
...ctx,
|
|
342
371
|
err: (s) => console.error(dim(s))
|
|
343
372
|
}, filters);
|
|
344
373
|
}
|
|
345
374
|
case "analyze": {
|
|
346
|
-
const { analyzeCommand } = await import("./command-
|
|
375
|
+
const { analyzeCommand } = await import("./command-CeygdoVe.js");
|
|
347
376
|
return analyzeCommand({
|
|
348
377
|
...ctx,
|
|
349
378
|
err: (s) => console.error(dim(s))
|
|
@@ -354,7 +383,7 @@ async function run(argv) {
|
|
|
354
383
|
if (command === "clean") return cleanCommand(values, configPath);
|
|
355
384
|
if (command === "attach") return attachCommand(values, filters[0], configPath);
|
|
356
385
|
if (command === "bundle") {
|
|
357
|
-
const { bundleCommand } = await import("./bundle-
|
|
386
|
+
const { bundleCommand } = await import("./bundle-yEgI3RsI.js");
|
|
358
387
|
return bundleCommand(values, filters, configPath, argv.slice(1), (s) => console.log(s));
|
|
359
388
|
}
|
|
360
389
|
if (command !== "run") throw new UsageError(`Unknown command "${command}". Run reeval --help.`);
|
|
@@ -374,12 +403,12 @@ async function bundleRun(flags, filters) {
|
|
|
374
403
|
"config",
|
|
375
404
|
"resume",
|
|
376
405
|
"retry-errors",
|
|
377
|
-
"
|
|
406
|
+
"cloud"
|
|
378
407
|
].filter((f) => flags[f] !== void 0).map((f) => `--${f}`);
|
|
379
408
|
if (filters.length || planning.length) throw new UsageError(`--bundle runs the bundle with the filters, profile, tags, traits and runs it was made with: leave out ${[...filters.length ? ["filters"] : [], ...planning].join(", ")}.`);
|
|
380
409
|
const file = flags.bundle;
|
|
381
410
|
const log = (s) => flags.json ? console.error(s) : console.log(s);
|
|
382
|
-
const { bundledGit, openBundle } = await import("./bundle-
|
|
411
|
+
const { bundledGit, openBundle } = await import("./bundle-yEgI3RsI.js");
|
|
383
412
|
const opened = await openBundle(file, log);
|
|
384
413
|
if (opened.exit !== void 0) return opened.exit;
|
|
385
414
|
const { args, author } = opened.manifest;
|
|
@@ -424,12 +453,12 @@ async function historyConfig(configPath, command, flag, values = {}) {
|
|
|
424
453
|
}
|
|
425
454
|
/** The dry run's prices, fetched only when a planned attempt or the judge has anything to price. */
|
|
426
455
|
async function dryRunPrices(planned, judgeModel) {
|
|
427
|
-
const { needsPrices } = await import("./cost-
|
|
456
|
+
const { needsPrices } = await import("./cost-a_rUSdsf.js");
|
|
428
457
|
if (!needsPrices(planned.filter((p) => !p.attempt.plan.skip).map((p) => p.attempt.harness), judgeModel)) return {
|
|
429
458
|
table: null,
|
|
430
459
|
why: "nothing to price"
|
|
431
460
|
};
|
|
432
|
-
const { loadPrices } = await import("./prices-
|
|
461
|
+
const { loadPrices } = await import("./prices-C_mbZa5a.js");
|
|
433
462
|
return loadPrices();
|
|
434
463
|
}
|
|
435
464
|
/** Asks a yes/no question on the terminal; anything but y or yes is no. */
|
|
@@ -457,7 +486,7 @@ async function cleanCommand(flags, configPath) {
|
|
|
457
486
|
keep = Number(flags.keep);
|
|
458
487
|
if (!(Number.isInteger(keep) && keep >= 0)) throw new UsageError(`--keep must be a whole number (got ${flags.keep})`);
|
|
459
488
|
}
|
|
460
|
-
const { debugRoot, pruneDebug } = await import("./files-
|
|
489
|
+
const { debugRoot, pruneDebug } = await import("./files-DvDUSrWL.js");
|
|
461
490
|
const { formatBytes } = await import("./debug-CF4p4Lp_.js");
|
|
462
491
|
const { runs, bytes } = await pruneDebug(config.root, keep);
|
|
463
492
|
const where = fromCwd(debugRoot(config.root)) || ".";
|
|
@@ -469,23 +498,23 @@ async function cleanCommand(flags, configPath) {
|
|
|
469
498
|
const streams = await pruneEvents(config.root, keep);
|
|
470
499
|
if (streams.length) console.log(`Removed the event streams of ${streams.length} finished run${streams.length === 1 ? "" : "s"} from .reeval/events`);
|
|
471
500
|
if (flags.bundles) {
|
|
472
|
-
const { removeExtractedBundles } = await import("./bundle-
|
|
501
|
+
const { removeExtractedBundles } = await import("./bundle-yEgI3RsI.js");
|
|
473
502
|
const removed = await removeExtractedBundles();
|
|
474
503
|
console.log(removed.length ? `Removed ${removed.length} extracted bundle${removed.length === 1 ? "" : "s"}: ${removed.join(", ")}` : "No extracted bundles to remove");
|
|
475
504
|
}
|
|
476
505
|
if (flags.images) {
|
|
477
|
-
const { dockerAvailable, pruneImages } = await import("./src-
|
|
478
|
-
const { requireDocker } = await import("./providers-
|
|
506
|
+
const { dockerAvailable, pruneImages } = await import("./src-DB0vml0O.js");
|
|
507
|
+
const { requireDocker } = await import("./providers-N4HDMeeo.js");
|
|
479
508
|
const engines = [];
|
|
480
509
|
for (const engine of ["docker", "podman"]) if (await dockerAvailable(engine)) engines.push(engine);
|
|
481
|
-
const { tartCli } = await import("./tart-cli-
|
|
510
|
+
const { tartCli } = await import("./tart-cli-C4d5FXG1.js");
|
|
482
511
|
const tart = await tartCli(["--version"]).then((r) => r.exitCode === 0, () => false);
|
|
483
512
|
if (!engines.length && !tart) await requireDocker();
|
|
484
513
|
let removed = 0;
|
|
485
514
|
for (const engine of engines) removed += await pruneImages(engine);
|
|
486
515
|
if (engines.length) console.log(removed ? `Removed ${removed} image${removed === 1 ? "" : "s"} reeval built that nothing uses` : "No leftover images to remove");
|
|
487
516
|
if (tart) {
|
|
488
|
-
const { deleteBakedImages } = await import("./tart-bake-
|
|
517
|
+
const { deleteBakedImages } = await import("./tart-bake-d9UvIfe3.js");
|
|
489
518
|
const baked = await deleteBakedImages();
|
|
490
519
|
console.log(baked.length ? `Deleted ${baked.length} Tart image${baked.length === 1 ? "" : "s"} with a harness baked in (reeval image build bakes them again): ${baked.join(", ")}` : "No Tart images with a harness baked in to delete");
|
|
491
520
|
}
|
|
@@ -504,8 +533,8 @@ function verbosityOf(flags) {
|
|
|
504
533
|
* image.
|
|
505
534
|
*/
|
|
506
535
|
async function imageBuildCommand(flags, configPath, filters) {
|
|
507
|
-
const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-
|
|
508
|
-
const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-
|
|
536
|
+
const { buildImages, imagePlanLines, imageTargets, plannedImageUses, pullTartImages, tartPlanLines, tartTargets } = await import("./images-SRE4f3SM.js");
|
|
537
|
+
const { buildVmImages, vmImageTargets, vmPlanLines } = await import("./vm-images-CHutQVml.js");
|
|
509
538
|
const { setup, root, uses } = await imageUses(flags, configPath, filters, plannedImageUses);
|
|
510
539
|
const targets = imageTargets(uses);
|
|
511
540
|
const vms = tartTargets(uses);
|
|
@@ -599,7 +628,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
599
628
|
if (!(error instanceof PrepareError)) throw error;
|
|
600
629
|
if (error.failure.usage) throw new UsageError(error.message);
|
|
601
630
|
if (error.failure.cause === "enospc") invocation.machineState = true;
|
|
602
|
-
const { PreflightInfraError } = await import("./preflight-
|
|
631
|
+
const { PreflightInfraError } = await import("./preflight-xa8_eGOW.js");
|
|
603
632
|
throw new PreflightInfraError(error.message);
|
|
604
633
|
}
|
|
605
634
|
for (const o of outcomes) {
|
|
@@ -622,7 +651,7 @@ async function imageBuildCommand(flags, configPath, filters) {
|
|
|
622
651
|
}
|
|
623
652
|
/** What `reeval image` plans for: the harness and sandbox of each attempt, collected as `--dry-run` does. */
|
|
624
653
|
async function imageUses(flags, configPath, filters, planned) {
|
|
625
|
-
const plannedImageUses = planned ?? (await import("./images-
|
|
654
|
+
const plannedImageUses = planned ?? (await import("./images-SRE4f3SM.js")).plannedImageUses;
|
|
626
655
|
const setup = await prepareRun({
|
|
627
656
|
...flags,
|
|
628
657
|
"dry-run": true
|
|
@@ -648,8 +677,8 @@ async function imageUses(flags, configPath, filters, planned) {
|
|
|
648
677
|
* the evals use, with the environments that start from each.
|
|
649
678
|
*/
|
|
650
679
|
async function imageListCommand(flags, configPath, filters) {
|
|
651
|
-
const vm = await import("./vm-images-
|
|
652
|
-
const { formatSize } = await import("./tart-images-
|
|
680
|
+
const vm = await import("./vm-images-CHutQVml.js");
|
|
681
|
+
const { formatSize } = await import("./tart-images-De0-ib7R.js");
|
|
653
682
|
const { root, uses } = await imageUses(flags, configPath, filters);
|
|
654
683
|
const accounts = vm.vmAccounts(uses);
|
|
655
684
|
if (!accounts.length) {
|
|
@@ -702,8 +731,8 @@ async function imageListCommand(flags, configPath, filters) {
|
|
|
702
731
|
* last hour or one still being saved.
|
|
703
732
|
*/
|
|
704
733
|
async function imageCleanCommand(flags, configPath) {
|
|
705
|
-
const vm = await import("./vm-images-
|
|
706
|
-
const { formatSize } = await import("./tart-images-
|
|
734
|
+
const vm = await import("./vm-images-CHutQVml.js");
|
|
735
|
+
const { formatSize } = await import("./tart-images-De0-ib7R.js");
|
|
707
736
|
const provider = flags.provider;
|
|
708
737
|
if (provider !== void 0 && provider !== "boat" && provider !== "daytona") throw new UsageError(`--provider is boat or daytona (got "${provider}")`);
|
|
709
738
|
const olderThanMs = flags["older-than"] !== void 0 ? vm.parseAge(flags["older-than"]) : flags.all ? void 0 : vm.DEFAULT_OLDER_THAN_MS;
|
|
@@ -775,17 +804,61 @@ async function attachCommand(flags, target, configPath) {
|
|
|
775
804
|
root = dirname(requireConfig(configPath));
|
|
776
805
|
source = (await resolveAttach(root, target)).file;
|
|
777
806
|
}
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
|
|
807
|
+
const cloud = await import("./cloud-run-C08P_Uap.js");
|
|
808
|
+
if (flags.profile !== void 0 && !flags.download) throw new UsageError("--profile picks the history folder --download puts a recorded cloud run in: pass it with --download");
|
|
809
|
+
if (flags.download || isAttachUrl(source)) loadEnvFiles(configPath);
|
|
810
|
+
const download = flags.download ? await cloudDownload(source, configPath, flags.profile) : void 0;
|
|
811
|
+
const follow = isAttachUrl(source) ? await cloud.cloudFollow(source) : void 0;
|
|
812
|
+
let detached = false;
|
|
813
|
+
const code = await attachHere(flags, {
|
|
781
814
|
source,
|
|
782
815
|
...root === void 0 ? {} : { root },
|
|
783
|
-
...follow ? { follow } : {}
|
|
816
|
+
...follow ? { follow } : {},
|
|
817
|
+
onDetach: () => {
|
|
818
|
+
detached = true;
|
|
819
|
+
}
|
|
784
820
|
});
|
|
821
|
+
if (download && detached) console.log(dim(`Not downloading the files of cloud run ${download.runId} after detaching: reeval attach --download${download.profile === void 0 ? "" : ` --profile ${download.profile}`} ${displayUrl(source)} downloads them once it has ended`));
|
|
822
|
+
else if (download) {
|
|
823
|
+
const { downloadAfter } = await import("./cloud-files-BjinrTTe.js");
|
|
824
|
+
for (const line of await downloadAfter(code, download.runId, download.run)) console.log(dim(line));
|
|
825
|
+
}
|
|
826
|
+
return code;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* `reeval attach --download`: what downloads the files of the cloud run whose event stream is
|
|
830
|
+
* `source` into this project, as a run here leaves them, a recorded run's into the history folder
|
|
831
|
+
* of the profile `profile`, `REEVAL_PROFILE` or `defaultProfile` picks; exit 2 for any other
|
|
832
|
+
* stream, or with no project.
|
|
833
|
+
*/
|
|
834
|
+
async function cloudDownload(source, configPath, profile) {
|
|
835
|
+
const cloud = await import("./cloud-run-C08P_Uap.js");
|
|
836
|
+
const { cloudRunOf, downloadCloudFiles } = await import("./cloud-files-BjinrTTe.js");
|
|
837
|
+
loadEnvFiles(configPath);
|
|
838
|
+
const base = cloud.cloudUrl();
|
|
839
|
+
const run = isAttachUrl(source) ? cloudRunOf(source, base) : null;
|
|
840
|
+
if (!run) throw new UsageError(`--download takes a cloud run's event stream URL (${base.href}api/runs/<run>/events), not ${displayUrl(source)}: a run on this machine has its files in .reeval/ already`);
|
|
841
|
+
const path = requireConfig(configPath);
|
|
842
|
+
const named = profile ?? (process.env.REEVAL_PROFILE || void 0);
|
|
843
|
+
const loaded = await loadConfig(path, "run", named);
|
|
844
|
+
const picked = selectProfile(loaded, profile);
|
|
845
|
+
const { root, history } = withProfileHistory(loaded, picked);
|
|
846
|
+
const auth = await cloud.cloudAuth(base);
|
|
847
|
+
return {
|
|
848
|
+
runId: run.runId,
|
|
849
|
+
...picked ? { profile: picked.name } : {},
|
|
850
|
+
run: () => downloadCloudFiles({
|
|
851
|
+
cloudRunId: run.runId,
|
|
852
|
+
url: run.files,
|
|
853
|
+
auth,
|
|
854
|
+
root,
|
|
855
|
+
history
|
|
856
|
+
})
|
|
857
|
+
};
|
|
785
858
|
}
|
|
786
859
|
/** `reeval attach`'s viewer on this terminal, drawn with the attach flags. */
|
|
787
860
|
async function attachHere(flags, options) {
|
|
788
|
-
const { attach } = await import("./attach-
|
|
861
|
+
const { attach } = await import("./attach-DvYiMu6w.js");
|
|
789
862
|
return attach({
|
|
790
863
|
...options,
|
|
791
864
|
out: process.stdout,
|
|
@@ -811,14 +884,17 @@ async function attachHere(flags, options) {
|
|
|
811
884
|
});
|
|
812
885
|
}
|
|
813
886
|
/**
|
|
814
|
-
* Where a run that asked for the
|
|
887
|
+
* Where a run that asked for the cloud platform goes, from the bundle made for it: there, or
|
|
815
888
|
* here with why. A real run there is created, uploaded, started and followed, and its exit code is
|
|
816
|
-
* `exit`. Undefined when the run didn't ask
|
|
889
|
+
* `exit`. Undefined when the run didn't ask to run in the cloud.
|
|
817
890
|
*/
|
|
818
|
-
async function
|
|
819
|
-
const
|
|
820
|
-
if (!
|
|
821
|
-
|
|
891
|
+
async function cloudTarget(flags, setup, filters, configPath) {
|
|
892
|
+
const cloud = await import("./cloud-run-C08P_Uap.js");
|
|
893
|
+
if (!cloud.wantsCloud(flags, setup.config, setup.profile)) {
|
|
894
|
+
if (flags.download) throw new UsageError("--download downloads a cloud run's files, and this run is on this machine: its files are in .reeval/ already. Leave it out, or pass --cloud");
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
const { makeBundle } = await import("./bundle-yEgI3RsI.js");
|
|
822
898
|
const picked = setup.profile ? { profile: setup.profile.name } : {};
|
|
823
899
|
const bundle = async (env) => {
|
|
824
900
|
try {
|
|
@@ -830,7 +906,7 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
830
906
|
prices: true
|
|
831
907
|
});
|
|
832
908
|
if ("code" in made) return made;
|
|
833
|
-
const blocked = made.plan.
|
|
909
|
+
const blocked = made.plan.notCloud ?? [];
|
|
834
910
|
return blocked.length ? { why: blocked.join("; ") } : { made };
|
|
835
911
|
} catch (error) {
|
|
836
912
|
if (!(error instanceof UsageError)) throw error;
|
|
@@ -840,10 +916,11 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
840
916
|
let result = await bundle({});
|
|
841
917
|
let base = null;
|
|
842
918
|
if ("made" in result) {
|
|
843
|
-
|
|
919
|
+
cloud.refuseLocalFlags(flags);
|
|
920
|
+
const url = cloud.cloudUrl();
|
|
844
921
|
if (!setup.dryRun) {
|
|
845
|
-
base =
|
|
846
|
-
const env = await
|
|
922
|
+
base = url;
|
|
923
|
+
const env = await cloud.cloudPlanEnv(base);
|
|
847
924
|
if (Object.entries(env).some(([k, v]) => process.env[k] !== v)) result = await bundle(env);
|
|
848
925
|
}
|
|
849
926
|
}
|
|
@@ -851,7 +928,7 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
851
928
|
if ("why" in result) {
|
|
852
929
|
const why = result.why.replace(/^[A-Z](?=[a-z])/, (c) => c.toLowerCase());
|
|
853
930
|
if (!setup.dryRun) {
|
|
854
|
-
console.log(dim(`Running here, not
|
|
931
|
+
console.log(dim(`Running here, not in the cloud: ${why}`));
|
|
855
932
|
if (setup.recording) storeCredentials(setup.config.history);
|
|
856
933
|
}
|
|
857
934
|
return {
|
|
@@ -859,24 +936,26 @@ async function hostedTarget(flags, setup, filters, configPath) {
|
|
|
859
936
|
kind: "local",
|
|
860
937
|
why
|
|
861
938
|
},
|
|
862
|
-
detail: `target here, not
|
|
939
|
+
detail: `target here, not in the cloud: ${why.split("\n")[0]}`
|
|
863
940
|
};
|
|
864
941
|
}
|
|
865
942
|
const { made } = result;
|
|
866
|
-
if (!base) {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
console.log(await hosted.hostedLine(made.plan));
|
|
874
|
-
if (setup.recording) console.log(dim("record: a hosted run isn't recorded into this machine's history"));
|
|
875
|
-
return { exit: await hosted.runHosted({
|
|
943
|
+
if (!base) return {
|
|
944
|
+
target: { kind: "cloud" },
|
|
945
|
+
detail: await cloud.cloudLine(made.plan, "target cloud")
|
|
946
|
+
};
|
|
947
|
+
console.log(await cloud.cloudLine(made.plan));
|
|
948
|
+
if (setup.recording) console.log(dim("record: a cloud run isn't recorded into this machine's history"));
|
|
949
|
+
return { exit: await cloud.runCloud({
|
|
876
950
|
base,
|
|
877
951
|
bundle: made,
|
|
878
952
|
log: (line) => console.log(dim(line)),
|
|
879
|
-
follow: (options) => attachHere(flags, options)
|
|
953
|
+
follow: (options) => attachHere(flags, options),
|
|
954
|
+
...flags.download && { download: {
|
|
955
|
+
root: setup.config.root,
|
|
956
|
+
history: setup.config.history,
|
|
957
|
+
...setup.profile ? { profile: setup.profile.name } : {}
|
|
958
|
+
} }
|
|
880
959
|
}) };
|
|
881
960
|
}
|
|
882
961
|
/** `reeval run`: check, plan, run the engine, then write the run and pick the exit code. */
|
|
@@ -900,7 +979,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
900
979
|
const outcome = runOutcome(record);
|
|
901
980
|
if (flags.json) {
|
|
902
981
|
console.error(nothing);
|
|
903
|
-
const { suiteResult } = await import("./suite-
|
|
982
|
+
const { suiteResult } = await import("./suite-CIsyPqPA.js");
|
|
904
983
|
process.stdout.write(`${JSON.stringify({
|
|
905
984
|
...suiteResult(record),
|
|
906
985
|
outcome
|
|
@@ -917,8 +996,8 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
917
996
|
noProfile: !!resumed?.saved && resumed.saved.profile === void 0,
|
|
918
997
|
...resumed?.profileOf ? { profileOf: resumed.profileOf } : {}
|
|
919
998
|
});
|
|
920
|
-
const
|
|
921
|
-
if (
|
|
999
|
+
const cloud = bundled ? void 0 : await cloudTarget(runFlags, setup, filters, configPath);
|
|
1000
|
+
if (cloud && "exit" in cloud) return cloud.exit;
|
|
922
1001
|
const explicit = runFlags.concurrency ?? (process.env.REEVAL_CONCURRENCY || void 0);
|
|
923
1002
|
const ctx = await startRun(setup, bundled);
|
|
924
1003
|
const startedWith = resumed ? resumed.saved ?? void 0 : {
|
|
@@ -934,7 +1013,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
934
1013
|
if (githubOut) await appendFile(githubOut, `run-id=${ctx.runId}\n`).catch(() => {});
|
|
935
1014
|
const stepStart = process.env.GITHUB_STEP_SUMMARY;
|
|
936
1015
|
if (stepStart) await appendFile(stepStart, `run ${ctx.runId}\n`).catch(() => {});
|
|
937
|
-
const { engineVersions } = await import("./node-
|
|
1016
|
+
const { engineVersions } = await import("./node-Bl2CtSjB.js");
|
|
938
1017
|
const terminal = setup.json && !setup.dryRun ? process.stderr : process.stdout;
|
|
939
1018
|
const harness = setup.config.harness[0]?.kind ?? "agent";
|
|
940
1019
|
const drawn = createRenderer({
|
|
@@ -981,9 +1060,9 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
981
1060
|
notes: resumed?.notes ?? [],
|
|
982
1061
|
narrowed: !!resumed && (given.length > 0 || !!flags.tag?.length || !!flags.trait?.length),
|
|
983
1062
|
...savedEvents ? { events: savedEvents } : {},
|
|
984
|
-
...
|
|
985
|
-
target:
|
|
986
|
-
targetDetail:
|
|
1063
|
+
...cloud ? {
|
|
1064
|
+
target: cloud.target,
|
|
1065
|
+
targetDetail: cloud.detail
|
|
987
1066
|
} : {}
|
|
988
1067
|
});
|
|
989
1068
|
} catch (error) {
|
|
@@ -1005,7 +1084,7 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1005
1084
|
return EXIT.ok;
|
|
1006
1085
|
}
|
|
1007
1086
|
if (ctx.retry && ctx.previous && retried.size) {
|
|
1008
|
-
const { retryEnvironmentChanges } = await import("./retry-
|
|
1087
|
+
const { retryEnvironmentChanges } = await import("./retry-C15f5yyy.js");
|
|
1009
1088
|
const changes = retryEnvironmentChanges(ctx.previous, ctx.stagingDir, retried);
|
|
1010
1089
|
if (changes.length) {
|
|
1011
1090
|
questions?.cancel();
|
|
@@ -1024,8 +1103,8 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1024
1103
|
}
|
|
1025
1104
|
finishing = true;
|
|
1026
1105
|
live?.phase("finishing");
|
|
1027
|
-
const { lockfiles } = await import("./state-
|
|
1028
|
-
const { writeScratchRun } = await import("./results-
|
|
1106
|
+
const { lockfiles } = await import("./state-CltRWlCu.js");
|
|
1107
|
+
const { writeScratchRun } = await import("./results-Df910ONm.js");
|
|
1029
1108
|
const run = await writeScratchRun({
|
|
1030
1109
|
ctx,
|
|
1031
1110
|
author: ctx.author,
|
|
@@ -1059,55 +1138,76 @@ async function runCommand(flags, configPath, given, bundled) {
|
|
|
1059
1138
|
status: "complete"
|
|
1060
1139
|
}) : outcome;
|
|
1061
1140
|
let code = stopped ? stopCode : ran === "fail" ? EXIT.failed : ran === "infra_error" ? EXIT.infra : EXIT.ok;
|
|
1062
|
-
const { pruneDebug } = await import("./files-
|
|
1141
|
+
const { pruneDebug } = await import("./files-DvDUSrWL.js");
|
|
1063
1142
|
await pruneDebug(ctx.config.root, ctx.config.debug.keep).catch(() => {});
|
|
1064
1143
|
const summary = run.artifactDir ? join(run.artifactDir, "summary.md") : run.recordPath;
|
|
1065
|
-
renderer.onEvent({
|
|
1066
|
-
type: "run-end",
|
|
1067
|
-
at: Date.now(),
|
|
1068
|
-
record,
|
|
1069
|
-
summaryPath: fromCwd(summary),
|
|
1070
|
-
results: engineRun.evals,
|
|
1071
|
-
remarks: run.remarks,
|
|
1072
|
-
...notRun > 0 && !stopped ? { notRun } : {}
|
|
1073
|
-
});
|
|
1074
|
-
renderer.close();
|
|
1075
|
-
if (retried.size) {
|
|
1076
|
-
const { retryCounts, retryLine } = await import("./retry-CAhpW1hH.js");
|
|
1077
|
-
const line = retryLine(retryCounts(record, retried, ctx.previous));
|
|
1078
|
-
if (setup.json) console.error(line);
|
|
1079
|
-
else console.log(line);
|
|
1080
|
-
}
|
|
1081
|
-
const stepSummary = process.env.GITHUB_STEP_SUMMARY;
|
|
1082
|
-
if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
|
|
1083
1144
|
const { config } = ctx;
|
|
1084
1145
|
const mode = setup.record;
|
|
1085
|
-
const { readRecord, recordFile } = await import("./files-
|
|
1146
|
+
const { readRecord, recordFile } = await import("./files-DNgQwgA0.js");
|
|
1086
1147
|
const rerecord = (setup.retry !== void 0 || setup.resume !== void 0) && record.status === "complete" && existsSync(recordFile(config.history.dir, record.runId));
|
|
1087
1148
|
const autoRecord = flags.record || mode === "always" || mode === "ci" && inCI() || rerecord;
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1149
|
+
const recording = autoRecord && record.status !== "interrupted";
|
|
1150
|
+
let ended = false;
|
|
1151
|
+
const endRun = async (recorded) => {
|
|
1152
|
+
if (ended) return;
|
|
1153
|
+
ended = true;
|
|
1154
|
+
renderer.onEvent({
|
|
1155
|
+
type: "run-end",
|
|
1156
|
+
at: Date.now(),
|
|
1157
|
+
record,
|
|
1158
|
+
summaryPath: fromCwd(summary),
|
|
1159
|
+
results: engineRun.evals,
|
|
1160
|
+
remarks: run.remarks,
|
|
1161
|
+
...notRun > 0 && !stopped ? { notRun } : {},
|
|
1162
|
+
...recorded ? { recorded } : {}
|
|
1101
1163
|
});
|
|
1102
|
-
|
|
1103
|
-
|
|
1164
|
+
renderer.close();
|
|
1165
|
+
if (retried.size) {
|
|
1166
|
+
const { retryCounts, retryLine } = await import("./retry-C15f5yyy.js");
|
|
1167
|
+
const line = retryLine(retryCounts(record, retried, ctx.previous));
|
|
1168
|
+
if (setup.json) console.error(line);
|
|
1169
|
+
else console.log(line);
|
|
1170
|
+
}
|
|
1171
|
+
const stepSummary = process.env.GITHUB_STEP_SUMMARY;
|
|
1172
|
+
if (stepSummary && run.artifactDir) await appendFile(stepSummary, await readFile(summary)).catch(() => {});
|
|
1173
|
+
};
|
|
1174
|
+
let recordLine;
|
|
1175
|
+
let recordError;
|
|
1176
|
+
if (recording) {
|
|
1177
|
+
const { record: recordCmd } = await import("./commands-B_cAs8nG.js");
|
|
1178
|
+
const allow = record.status === "budget" ? { "allow-incomplete": true } : {};
|
|
1179
|
+
try {
|
|
1180
|
+
const level = rerecord ? { artifacts: (await readRecord(recordFile(config.history.dir, record.runId))).artifacts } : {};
|
|
1181
|
+
recordLine = await recordCmd(config, record.runId, {
|
|
1182
|
+
...flags,
|
|
1183
|
+
...allow,
|
|
1184
|
+
...level
|
|
1185
|
+
}, (landed) => endRun({
|
|
1186
|
+
record: fromCwd(landed.recordPath),
|
|
1187
|
+
files: landed.artifactDir ? fromCwd(landed.artifactDir) : null,
|
|
1188
|
+
...landed.archive ? { archive: fromCwd(landed.archive.path) } : {}
|
|
1189
|
+
})).catch((error) => {
|
|
1190
|
+
if (error.name !== "StoreError") throw error;
|
|
1191
|
+
if (code !== EXIT.interrupted && code !== EXIT.terminated) code = EXIT.infra;
|
|
1192
|
+
invocation.machineState = true;
|
|
1193
|
+
return red(`reeval: ${redactSecrets(error.message)}`);
|
|
1194
|
+
});
|
|
1195
|
+
} catch (error) {
|
|
1196
|
+
recordError = error;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
await endRun();
|
|
1200
|
+
if (recordError !== void 0) throw recordError;
|
|
1201
|
+
if (recordLine !== void 0) {
|
|
1202
|
+
if (setup.json) console.error(recordLine);
|
|
1203
|
+
else console.log(recordLine);
|
|
1104
1204
|
} else if (autoRecord && notRun > 0 && !stopped) {
|
|
1105
1205
|
const line = `Not recorded: run ${record.runId} is incomplete. reeval run --resume ${record.runId}${flags.record ? " --record" : ""} runs the rest and records it.`;
|
|
1106
1206
|
if (setup.json) console.error(line);
|
|
1107
1207
|
else console.log(line);
|
|
1108
1208
|
}
|
|
1109
1209
|
if (setup.json) {
|
|
1110
|
-
const { suiteResult } = await import("./suite-
|
|
1210
|
+
const { suiteResult } = await import("./suite-CIsyPqPA.js");
|
|
1111
1211
|
process.stdout.write(`${JSON.stringify({
|
|
1112
1212
|
...suiteResult(record),
|
|
1113
1213
|
outcome: ran
|
|
@@ -1187,7 +1287,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1187
1287
|
stdinTTY: !!process.stdin.isTTY && !flags.json && !flags["dry-run"]
|
|
1188
1288
|
});
|
|
1189
1289
|
const path = requireConfig(configPath);
|
|
1190
|
-
const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-
|
|
1290
|
+
const tracked = !!(flags["dry-run"] && flags.json) ? (await import("./inputs-load-D4IsEjq3.js")).trackLoad(dirname(path)) : void 0;
|
|
1191
1291
|
let configInputs = [];
|
|
1192
1292
|
let loaded;
|
|
1193
1293
|
const named = noProfile ? void 0 : flags.profile ?? (process.env.REEVAL_PROFILE || void 0);
|
|
@@ -1201,7 +1301,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1201
1301
|
const profile = noProfile ? null : selectProfile(loaded, flags.profile);
|
|
1202
1302
|
const config = withProfileHistory(loaded, profile);
|
|
1203
1303
|
const recording = flags.record || (profile?.record ?? config.record) === "always" || (profile?.record ?? config.record) === "ci" && inCI();
|
|
1204
|
-
if (recording && !flags["dry-run"] && !
|
|
1304
|
+
if (recording && !flags["dry-run"] && !wantsCloud(flags, config, profile)) storeCredentials(config.history);
|
|
1205
1305
|
let runs;
|
|
1206
1306
|
if (flags.runs !== void 0) {
|
|
1207
1307
|
runs = Number(flags.runs);
|
|
@@ -1250,7 +1350,7 @@ async function prepareRun(flags, configPath, { noProfile = false, profileOf } =
|
|
|
1250
1350
|
async function registryFlag(flags) {
|
|
1251
1351
|
if (flags.push && flags.registry === void 0) throw new UsageError("--push needs --registry, the registry to push to, e.g. --registry ghcr.io/acme/reeval");
|
|
1252
1352
|
if (flags.registry === void 0) return null;
|
|
1253
|
-
const { registryProblem } = await import("./src-
|
|
1353
|
+
const { registryProblem } = await import("./src-DB0vml0O.js");
|
|
1254
1354
|
const problem = registryProblem(flags.registry);
|
|
1255
1355
|
if (problem) throw new UsageError(problem);
|
|
1256
1356
|
return flags.registry.replace(/\/+$/, "");
|
|
@@ -1261,11 +1361,11 @@ const retryVerb = (retry, runId) => retry.resume ? `--resume finishes run ${runI
|
|
|
1261
1361
|
async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRun, verbosity, configFile, resume, retry, dryRun }, bundled) {
|
|
1262
1362
|
const startedAt = /* @__PURE__ */ new Date();
|
|
1263
1363
|
const git = bundled ? bundled.git : await gitInfo(config.root, [config.history.dir]);
|
|
1264
|
-
const { worktreePatch } = await import("./state-
|
|
1364
|
+
const { worktreePatch } = await import("./state-CltRWlCu.js");
|
|
1265
1365
|
const patch = git?.dirty && !bundled ? await worktreePatch(config.root, [config.history.dir]) : null;
|
|
1266
1366
|
const who = bundled?.author ?? await author(config.root);
|
|
1267
|
-
const { stagingDir } = await import("./results-
|
|
1268
|
-
const { scratchDir } = await import("./files-
|
|
1367
|
+
const { stagingDir } = await import("./results-Df910ONm.js");
|
|
1368
|
+
const { scratchDir } = await import("./files-DNgQwgA0.js");
|
|
1269
1369
|
const scratch = scratchDir(config.root);
|
|
1270
1370
|
if (resume !== void 0 || retry !== void 0) {
|
|
1271
1371
|
const target = await continuedRun(config.root, {
|
|
@@ -1286,7 +1386,7 @@ async function startRun({ config, profile, runs, tags, traits, sandboxes, sizeRu
|
|
|
1286
1386
|
if (scoped.length) await cleanupRun(target.runId, scoped).catch(() => {});
|
|
1287
1387
|
}
|
|
1288
1388
|
const concurrency = await sizeRun();
|
|
1289
|
-
const { unfoldCases } = await import("./cases-
|
|
1389
|
+
const { unfoldCases } = await import("./cases-CA7gxxdr.js");
|
|
1290
1390
|
const previous = aside.record ?? target.previous;
|
|
1291
1391
|
return {
|
|
1292
1392
|
runId: target.runId,
|
|
@@ -1380,12 +1480,12 @@ function namesDeclaredSecret(evals) {
|
|
|
1380
1480
|
*/
|
|
1381
1481
|
async function planEfforts(planned) {
|
|
1382
1482
|
const live = planned.filter((p) => !p.attempt.plan.skip);
|
|
1383
|
-
const { effortNotes, withDefaultEffort } = await import("./default-effort-
|
|
1483
|
+
const { effortNotes, withDefaultEffort } = await import("./default-effort-Ck6ViSaI.js");
|
|
1384
1484
|
let cursor;
|
|
1385
1485
|
let unchecked = "CURSOR_API_KEY isn't set";
|
|
1386
1486
|
const key = process.env.CURSOR_API_KEY;
|
|
1387
1487
|
if (key && live.some((p) => p.attempt.harness.kind === "cursor")) {
|
|
1388
|
-
const { checkCursorPlan } = await import("./cursor-catalog-
|
|
1488
|
+
const { checkCursorPlan } = await import("./cursor-catalog-BYIDSsLn.js");
|
|
1389
1489
|
const checked = await checkCursorPlan(key, live);
|
|
1390
1490
|
if (checked instanceof Error) unchecked = `its request failed: ${checked.message}`;
|
|
1391
1491
|
else {
|
|
@@ -1423,8 +1523,8 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1423
1523
|
completed: [],
|
|
1424
1524
|
...setup.dryRun && setup.json ? { inputs: true } : {}
|
|
1425
1525
|
}));
|
|
1426
|
-
const { runEngine } = await import("./node-
|
|
1427
|
-
const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-
|
|
1526
|
+
const { runEngine } = await import("./node-Bl2CtSjB.js");
|
|
1527
|
+
const { buildPlan, checkAttemptBudget, planDocument, planInputs, planLine, planTable, runHeader } = await import("./plan-CC0bKbm9.js");
|
|
1428
1528
|
let plan;
|
|
1429
1529
|
let sandboxVersions = { images: [] };
|
|
1430
1530
|
let preflightStop;
|
|
@@ -1469,9 +1569,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1469
1569
|
if (ctx.retry && ctx.previous) {
|
|
1470
1570
|
const ranOn = ctx.previous.stack?.reeval;
|
|
1471
1571
|
if (ranOn && ranOn !== version) throw new UsageError(`run ${runId} ran on reeval ${ranOn}, and this is ${version}. ${retryVerb(ctx.retry, runId)} only on the reeval they ran on: install reeval ${ranOn}, or start a new run with reeval run.`);
|
|
1472
|
-
const { retryChanges } = await import("./retry-
|
|
1473
|
-
const { judgePart } = await import("./assemble-
|
|
1474
|
-
const { engineVersions } = await import("./node-
|
|
1572
|
+
const { retryChanges } = await import("./retry-C15f5yyy.js");
|
|
1573
|
+
const { judgePart } = await import("./assemble-DUtbByvj.js");
|
|
1574
|
+
const { engineVersions } = await import("./node-Bl2CtSjB.js");
|
|
1475
1575
|
const judged = judgePart(config, profile, version, engineVersions);
|
|
1476
1576
|
const runs = new Set(planned.map((p) => p.key).filter((key) => !completed.has(key)));
|
|
1477
1577
|
const changes = await retryChanges(ctx.previous, planned, runs, config.root, judged);
|
|
@@ -1484,7 +1584,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1484
1584
|
}
|
|
1485
1585
|
}
|
|
1486
1586
|
retried = continuing && !setup.dryRun ? noteRetries(planned, stagingDir, ctx.previous, true).errored : errored;
|
|
1487
|
-
const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-
|
|
1587
|
+
const models = skipped.some((p) => !p.attempt.plan.skip && p.attempt.plan.questions?.length) ? await import("./model-Rmv-L9Jb.js") : void 0;
|
|
1488
1588
|
const judge = runJudgeModel(config, profile);
|
|
1489
1589
|
const judgeModel = judge === void 0 ? null : judgeModelName(judge);
|
|
1490
1590
|
plan = await buildPlan({
|
|
@@ -1504,7 +1604,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1504
1604
|
const direct = cloud ? [...new Set(skipped.filter((p) => !p.attempt.plan.skip && capabilitiesOf(p.attempt.sandbox).isolated).filter((p) => isDirect(p.attempt.egress.policy) || isDirect(setupEgress(p.attempt.egress).policy)).map((p) => p.id))] : [];
|
|
1505
1605
|
if (cloud && direct.length) plan.warnings.push(`${directOnCloud(cloud)}. Under it: ${direct.join(", ")}. Keep 'allow-all' to the evals that need raw TCP or UDP; the default, 'proxy', sends everything through the gateway`);
|
|
1506
1606
|
const switching = concurrency > 1 ? [...new Set(skipped.filter(({ attempt }) => !attempt.plan.skip && !!attempt.egress.setup && attempt.sandbox.kind === "docker" && attempt.sandbox.engine === "podman").map((p) => p.id))] : [];
|
|
1507
|
-
const { podmanRootless } = await import("./providers-
|
|
1607
|
+
const { podmanRootless } = await import("./providers-N4HDMeeo.js");
|
|
1508
1608
|
if (switching.length && await podmanRootless()) plan.warnings.push(rootlessPodmanSwitch(switching));
|
|
1509
1609
|
plan.warnings.push(...started.notes);
|
|
1510
1610
|
if (started.narrowed) {
|
|
@@ -1520,7 +1620,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1520
1620
|
run.completed = [...completed];
|
|
1521
1621
|
const done = leftOut.filter((l) => l.done).map((l) => l.key);
|
|
1522
1622
|
kept = keptAttempts([...completed, ...done], stagingDir, ctx.previous);
|
|
1523
|
-
const { imageStages, imageTargets } = await import("./images-
|
|
1623
|
+
const { imageStages, imageTargets } = await import("./images-SRE4f3SM.js");
|
|
1524
1624
|
const targets = imageTargets(skipped.filter((p) => !p.attempt.plan.skip).map((p) => ({
|
|
1525
1625
|
id: p.attempt.family?.id ?? p.id,
|
|
1526
1626
|
harness: p.attempt.harness,
|
|
@@ -1534,7 +1634,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1534
1634
|
evals: t.evals,
|
|
1535
1635
|
stages: await imageStages(t, config.root)
|
|
1536
1636
|
})));
|
|
1537
|
-
const { lockfiles } = await import("./state-
|
|
1637
|
+
const { lockfiles } = await import("./state-CltRWlCu.js");
|
|
1538
1638
|
const locks = (await lockfiles(config.root)).map(({ path }) => ({
|
|
1539
1639
|
path: join(config.root, path),
|
|
1540
1640
|
kind: "lockfile"
|
|
@@ -1549,24 +1649,24 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1549
1649
|
judges: running.flatMap((p) => p.attempt.judge ? [p.attempt.judge] : [])
|
|
1550
1650
|
});
|
|
1551
1651
|
for (const { names } of needed) for (const name of names) secrets.add(name);
|
|
1552
|
-
const {
|
|
1553
|
-
const blocked =
|
|
1652
|
+
const { notCloud } = await import("./cloud-run-C08P_Uap.js");
|
|
1653
|
+
const blocked = notCloud(skipped);
|
|
1554
1654
|
const doc = {
|
|
1555
1655
|
...planDocument(plan, skipped, excluded, images, inputs, [...secrets].sort()),
|
|
1556
|
-
...blocked.length ? {
|
|
1656
|
+
...blocked.length ? { notCloud: blocked } : {},
|
|
1557
1657
|
...started.target ? { target: started.target } : {}
|
|
1558
1658
|
};
|
|
1559
1659
|
process.stdout.write(`${JSON.stringify(doc, null, 2)}\n`);
|
|
1560
1660
|
return false;
|
|
1561
1661
|
}
|
|
1562
1662
|
const elsewhere = setup.configElsewhere ? configFile : void 0;
|
|
1563
|
-
const { scratchDir } = await import("./files-
|
|
1663
|
+
const { scratchDir } = await import("./files-DNgQwgA0.js");
|
|
1564
1664
|
const lines = [];
|
|
1565
1665
|
if (setup.dryRun) {
|
|
1566
1666
|
const todos = excluded.filter((e) => e.mode === "todo").map((e) => e.id);
|
|
1567
1667
|
lines.push(...planTable(plan, todos));
|
|
1568
|
-
const { imageStatusLines } = await import("./images-
|
|
1569
|
-
const { dockerAvailable, engineSpec } = await import("./src-
|
|
1668
|
+
const { imageStatusLines } = await import("./images-SRE4f3SM.js");
|
|
1669
|
+
const { dockerAvailable, engineSpec } = await import("./src-DB0vml0O.js");
|
|
1570
1670
|
const engines = [...new Set(targets.map((t) => t.sandbox.engine ?? "docker"))];
|
|
1571
1671
|
const down = [];
|
|
1572
1672
|
for (const engine of engines) if (!await dockerAvailable(engine)) down.push(engine);
|
|
@@ -1575,7 +1675,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1575
1675
|
const names = down.map((e) => engineSpec(e).name).join(" and ");
|
|
1576
1676
|
lines.push(`images not checked: ${names} ${down.length === 1 ? "is" : "are"} not running`);
|
|
1577
1677
|
}
|
|
1578
|
-
const { costLine } = await import("./cost-
|
|
1678
|
+
const { costLine } = await import("./cost-a_rUSdsf.js");
|
|
1579
1679
|
const cost = plan.cost && costLine(plan.cost);
|
|
1580
1680
|
if (cost) lines.push(cost);
|
|
1581
1681
|
if (started.targetDetail) lines.push(started.targetDetail);
|
|
@@ -1660,7 +1760,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1660
1760
|
});
|
|
1661
1761
|
if (malformed.length) throw new UsageError(`Credentials with whitespace or a line break in them: ${malformed.join(", ")}. A key copied from a wrapped terminal line picks these up; set it again as one line.`);
|
|
1662
1762
|
if (asked.length) {
|
|
1663
|
-
const { questionRunner } = await import("./questions-
|
|
1763
|
+
const { questionRunner } = await import("./questions-DnqkJga0.js");
|
|
1664
1764
|
const warned = /* @__PURE__ */ new Set();
|
|
1665
1765
|
questions = questionRunner({
|
|
1666
1766
|
evals: asked,
|
|
@@ -1702,7 +1802,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1702
1802
|
}
|
|
1703
1803
|
});
|
|
1704
1804
|
}
|
|
1705
|
-
const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-
|
|
1805
|
+
const { prepareWorkspaces, sameTreeArms, workspaceKey } = await import("./workspace-BKcNJAPb.js");
|
|
1706
1806
|
const live = skipped.filter((p) => !p.attempt.plan.skip);
|
|
1707
1807
|
const outcomes = await prepareWorkspaces(live.flatMap(({ attempt: a }) => a.workspace ? [{
|
|
1708
1808
|
workspace: a.workspace,
|
|
@@ -1795,7 +1895,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1795
1895
|
};
|
|
1796
1896
|
let engineRun;
|
|
1797
1897
|
let cutShort = false;
|
|
1798
|
-
const { MACHINES, MachineService } = await import("./machine-service-
|
|
1898
|
+
const { MACHINES, MachineService } = await import("./machine-service-DpJScNtA.js");
|
|
1799
1899
|
const machines = new MachineService();
|
|
1800
1900
|
try {
|
|
1801
1901
|
engineRun = await runEngine({
|
|
@@ -1803,7 +1903,7 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1803
1903
|
filters,
|
|
1804
1904
|
onPlan,
|
|
1805
1905
|
services: {
|
|
1806
|
-
call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
|
|
1906
|
+
call: (owner, service, body) => service === MACHINES ? machines.call(owner, body) : service === "secrets" ? Promise.resolve(heldSecrets()) : Promise.reject(/* @__PURE__ */ new Error(`This run has no ${service} service`)),
|
|
1807
1907
|
released: (owner) => machines.released(owner)
|
|
1808
1908
|
},
|
|
1809
1909
|
onRunStart: (files) => {
|
|
@@ -1839,6 +1939,15 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1839
1939
|
questions?.onEvalEnd(e.result);
|
|
1840
1940
|
}
|
|
1841
1941
|
if (interrupted && e.type === "eval-end" && e.result.state === "skipped") return;
|
|
1942
|
+
if (e.type === "eval-progress" && e.progress.kind === "secret-warning") {
|
|
1943
|
+
const { kind: _, at, ...warning } = e.progress;
|
|
1944
|
+
return renderer.onEvent({
|
|
1945
|
+
type: "secret-warning",
|
|
1946
|
+
at,
|
|
1947
|
+
attemptId: e.key,
|
|
1948
|
+
...warning
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1842
1951
|
renderer.onEvent(e);
|
|
1843
1952
|
},
|
|
1844
1953
|
onCancelable: (cancel) => {
|
|
@@ -1901,9 +2010,9 @@ async function executeRun(ctx, setup, filters, renderer, started) {
|
|
|
1901
2010
|
} finally {
|
|
1902
2011
|
clearTimeout(budgetTimer);
|
|
1903
2012
|
await machines.close();
|
|
1904
|
-
const { removePrepared } = await import("./preflight-
|
|
2013
|
+
const { removePrepared } = await import("./preflight-DEV_vrdB.js");
|
|
1905
2014
|
removePrepared(config.root, runId);
|
|
1906
|
-
const { removePreparedWorkspaces } = await import("./workspace-
|
|
2015
|
+
const { removePreparedWorkspaces } = await import("./workspace-BKcNJAPb.js");
|
|
1907
2016
|
removePreparedWorkspaces(config.root, runId);
|
|
1908
2017
|
}
|
|
1909
2018
|
if (preflightStop) throw preflightStop;
|
|
@@ -1991,4 +2100,4 @@ run(process.argv.slice(2)).finally(() => {
|
|
|
1991
2100
|
});
|
|
1992
2101
|
export {};
|
|
1993
2102
|
|
|
1994
|
-
//# sourceMappingURL=cli-
|
|
2103
|
+
//# sourceMappingURL=cli-Z7aw8k25.js.map
|