@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.js CHANGED
@@ -17045,17 +17045,22 @@ async function runEvaluation(options) {
17045
17045
  if (cliWorkspacePath && workspaceMode && workspaceMode !== "static") {
17046
17046
  throw new Error("--workspace-path requires --workspace-mode static when both are provided");
17047
17047
  }
17048
- const configuredMode = cliWorkspacePath ? "static" : workspaceMode ?? suiteWorkspace?.mode ?? (yamlWorkspacePath ? "static" : "pooled");
17048
+ let configuredMode = cliWorkspacePath ? "static" : workspaceMode ?? suiteWorkspace?.mode ?? (yamlWorkspacePath ? "static" : "pooled");
17049
17049
  const configuredStaticPath = cliWorkspacePath ?? yamlWorkspacePath;
17050
+ if (configuredMode === "static" && !configuredStaticPath) {
17051
+ if (!suiteWorkspace?.repos?.length) {
17052
+ setupLog("workspace.mode=static with no path and no repos \u2014 falling back to temp mode");
17053
+ configuredMode = "temp";
17054
+ } else {
17055
+ throw new Error("workspace.mode=static requires workspace.path or --workspace-path");
17056
+ }
17057
+ }
17050
17058
  const useStaticWorkspace = configuredMode === "static";
17051
17059
  if (useStaticWorkspace && isPerTestIsolation) {
17052
17060
  throw new Error(
17053
17061
  "static workspace mode is incompatible with isolation: per_test. Use isolation: shared (default)."
17054
17062
  );
17055
17063
  }
17056
- if (configuredMode === "static" && !configuredStaticPath) {
17057
- throw new Error("workspace.mode=static requires workspace.path or --workspace-path");
17058
- }
17059
17064
  if (configuredMode !== "static" && configuredStaticPath) {
17060
17065
  throw new Error("workspace.path requires workspace.mode=static");
17061
17066
  }