@agentv/core 4.15.0 → 4.15.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 CHANGED
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.bun/tsup@8.3.5+19811ebab77a7b1c/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.bun/tsup@8.3.5+4bce52b3b8cd939d/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.bun/tsup@8.3.5+19811ebab77a7b1c/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.bun/tsup@8.3.5+4bce52b3b8cd939d/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -21019,7 +21019,7 @@ async function runEvaluation(options) {
21019
21019
  if (configuredMode !== "static" && configuredStaticPath) {
21020
21020
  throw new Error("workspace.path requires workspace.mode=static");
21021
21021
  }
21022
- const hasSharedWorkspace = !!(useStaticWorkspace || workspaceTemplate || suiteWorkspace?.hooks || suiteWorkspace?.repos?.length && !isPerTestIsolation);
21022
+ const hasSharedWorkspace = !!(useStaticWorkspace || !isPerTestIsolation && (workspaceTemplate || suiteWorkspace?.hooks || suiteWorkspace?.repos?.length));
21023
21023
  const poolEnabled = configuredMode === "pooled";
21024
21024
  const usePool = poolEnabled !== false && !!suiteWorkspace?.repos?.length && !isPerTestIsolation && !useStaticWorkspace;
21025
21025
  const resolvedRetainOnSuccess = retainOnSuccess ?? (keepWorkspaces ? "keep" : "cleanup");
@@ -21074,7 +21074,7 @@ async function runEvaluation(options) {
21074
21074
  setupLog(`reusing existing static workspace: ${configuredStaticPath}`);
21075
21075
  }
21076
21076
  sharedWorkspacePath = configuredStaticPath;
21077
- } else if (usePool && suiteWorkspace?.repos) {
21077
+ } else if (!isPerTestIsolation && usePool && suiteWorkspace?.repos) {
21078
21078
  const slotsNeeded = workers;
21079
21079
  setupLog(`acquiring ${slotsNeeded} workspace pool slot(s) (pool capacity: ${poolMaxSlots})`);
21080
21080
  poolManager = new WorkspacePoolManager(getWorkspacePoolRoot());
@@ -21096,7 +21096,7 @@ async function runEvaluation(options) {
21096
21096
  } else {
21097
21097
  availablePoolSlots.push(...poolSlots);
21098
21098
  }
21099
- } else if (workspaceTemplate) {
21099
+ } else if (!isPerTestIsolation && workspaceTemplate) {
21100
21100
  setupLog(`creating shared workspace from template: ${workspaceTemplate}`);
21101
21101
  try {
21102
21102
  sharedWorkspacePath = await createTempWorkspace(workspaceTemplate, evalRunId, "shared");
@@ -21105,7 +21105,7 @@ async function runEvaluation(options) {
21105
21105
  const message = error instanceof Error ? error.message : String(error);
21106
21106
  throw new Error(`Failed to create shared workspace: ${message}`);
21107
21107
  }
21108
- } else if (suiteWorkspace?.hooks || suiteWorkspace?.repos?.length && !isPerTestIsolation) {
21108
+ } else if (!isPerTestIsolation && (suiteWorkspace?.hooks || suiteWorkspace?.repos?.length)) {
21109
21109
  sharedWorkspacePath = getWorkspacePath(evalRunId, "shared");
21110
21110
  await (0, import_promises36.mkdir)(sharedWorkspacePath, { recursive: true });
21111
21111
  setupLog(`created empty shared workspace at: ${sharedWorkspacePath}`);