@agentv/core 4.15.6-next.1 → 4.15.7-next.1
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/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -21022,17 +21022,22 @@ async function runEvaluation(options) {
|
|
|
21022
21022
|
if (cliWorkspacePath && workspaceMode && workspaceMode !== "static") {
|
|
21023
21023
|
throw new Error("--workspace-path requires --workspace-mode static when both are provided");
|
|
21024
21024
|
}
|
|
21025
|
-
|
|
21025
|
+
let configuredMode = cliWorkspacePath ? "static" : workspaceMode ?? suiteWorkspace?.mode ?? (yamlWorkspacePath ? "static" : "pooled");
|
|
21026
21026
|
const configuredStaticPath = cliWorkspacePath ?? yamlWorkspacePath;
|
|
21027
|
+
if (configuredMode === "static" && !configuredStaticPath) {
|
|
21028
|
+
if (!suiteWorkspace?.repos?.length) {
|
|
21029
|
+
setupLog("workspace.mode=static with no path and no repos \u2014 falling back to temp mode");
|
|
21030
|
+
configuredMode = "temp";
|
|
21031
|
+
} else {
|
|
21032
|
+
throw new Error("workspace.mode=static requires workspace.path or --workspace-path");
|
|
21033
|
+
}
|
|
21034
|
+
}
|
|
21027
21035
|
const useStaticWorkspace = configuredMode === "static";
|
|
21028
21036
|
if (useStaticWorkspace && isPerTestIsolation) {
|
|
21029
21037
|
throw new Error(
|
|
21030
21038
|
"static workspace mode is incompatible with isolation: per_test. Use isolation: shared (default)."
|
|
21031
21039
|
);
|
|
21032
21040
|
}
|
|
21033
|
-
if (configuredMode === "static" && !configuredStaticPath) {
|
|
21034
|
-
throw new Error("workspace.mode=static requires workspace.path or --workspace-path");
|
|
21035
|
-
}
|
|
21036
21041
|
if (configuredMode !== "static" && configuredStaticPath) {
|
|
21037
21042
|
throw new Error("workspace.path requires workspace.mode=static");
|
|
21038
21043
|
}
|