@agentv/core 2.17.1-next.1 → 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.cjs CHANGED
@@ -15807,9 +15807,8 @@ function normalizeRepoForFingerprint(repo) {
15807
15807
  }
15808
15808
  return result;
15809
15809
  }
15810
- function computeWorkspaceFingerprint(templatePath, repos) {
15810
+ function computeWorkspaceFingerprint(repos) {
15811
15811
  const canonical = {
15812
- templatePath: templatePath ?? null,
15813
15812
  repos: [...repos].sort((a, b) => a.path.localeCompare(b.path)).map(normalizeRepoForFingerprint)
15814
15813
  };
15815
15814
  return (0, import_node_crypto8.createHash)("sha256").update(JSON.stringify(canonical)).digest("hex");
@@ -15851,7 +15850,7 @@ var WorkspacePoolManager = class {
15851
15850
  */
15852
15851
  async acquireWorkspace(options) {
15853
15852
  const { templatePath, repos, maxSlots, repoManager, poolReset } = options;
15854
- const fingerprint = computeWorkspaceFingerprint(templatePath, repos);
15853
+ const fingerprint = computeWorkspaceFingerprint(repos);
15855
15854
  const poolDir = import_node_path39.default.join(this.poolRoot, fingerprint);
15856
15855
  await (0, import_promises27.mkdir)(poolDir, { recursive: true });
15857
15856
  const drifted = await this.checkDrift(poolDir, fingerprint);