@agentv/core 2.17.2 → 2.17.3

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.d.cts CHANGED
@@ -3011,9 +3011,11 @@ interface PoolSlot {
3011
3011
  }
3012
3012
  /**
3013
3013
  * Compute a deterministic SHA-256 fingerprint for a workspace configuration.
3014
- * The fingerprint captures template path and all repo configs in a canonical order.
3014
+ * The fingerprint captures only repo materialization inputs (source, checkout, clone options)
3015
+ * in a canonical order. Template path is excluded because template files are re-copied on
3016
+ * every pool reuse and don't affect the cloned checkout state.
3015
3017
  */
3016
- declare function computeWorkspaceFingerprint(templatePath: string | undefined | null, repos: readonly RepoConfig[]): string;
3018
+ declare function computeWorkspaceFingerprint(repos: readonly RepoConfig[]): string;
3017
3019
  /**
3018
3020
  * Pools entire workspaces (template files + git repos) for reuse across eval runs.
3019
3021
  *
package/dist/index.d.ts CHANGED
@@ -3011,9 +3011,11 @@ interface PoolSlot {
3011
3011
  }
3012
3012
  /**
3013
3013
  * Compute a deterministic SHA-256 fingerprint for a workspace configuration.
3014
- * The fingerprint captures template path and all repo configs in a canonical order.
3014
+ * The fingerprint captures only repo materialization inputs (source, checkout, clone options)
3015
+ * in a canonical order. Template path is excluded because template files are re-copied on
3016
+ * every pool reuse and don't affect the cloned checkout state.
3015
3017
  */
3016
- declare function computeWorkspaceFingerprint(templatePath: string | undefined | null, repos: readonly RepoConfig[]): string;
3018
+ declare function computeWorkspaceFingerprint(repos: readonly RepoConfig[]): string;
3017
3019
  /**
3018
3020
  * Pools entire workspaces (template files + git repos) for reuse across eval runs.
3019
3021
  *
package/dist/index.js CHANGED
@@ -12940,9 +12940,8 @@ function normalizeRepoForFingerprint(repo) {
12940
12940
  }
12941
12941
  return result;
12942
12942
  }
12943
- function computeWorkspaceFingerprint(templatePath, repos) {
12943
+ function computeWorkspaceFingerprint(repos) {
12944
12944
  const canonical = {
12945
- templatePath: templatePath ?? null,
12946
12945
  repos: [...repos].sort((a, b) => a.path.localeCompare(b.path)).map(normalizeRepoForFingerprint)
12947
12946
  };
12948
12947
  return createHash("sha256").update(JSON.stringify(canonical)).digest("hex");
@@ -12984,7 +12983,7 @@ var WorkspacePoolManager = class {
12984
12983
  */
12985
12984
  async acquireWorkspace(options) {
12986
12985
  const { templatePath, repos, maxSlots, repoManager, poolReset } = options;
12987
- const fingerprint = computeWorkspaceFingerprint(templatePath, repos);
12986
+ const fingerprint = computeWorkspaceFingerprint(repos);
12988
12987
  const poolDir = path36.join(this.poolRoot, fingerprint);
12989
12988
  await mkdir11(poolDir, { recursive: true });
12990
12989
  const drifted = await this.checkDrift(poolDir, fingerprint);