pi-mega-compact 0.8.25 → 0.9.0

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.
@@ -17,6 +17,7 @@ import {
17
17
  type DedupTier,
18
18
  } from "./config/dedup.js";
19
19
  import { logDecision } from "./monitoring.js";
20
+ import { repoKey } from "./store/repoKey.js";
20
21
  import type { StoredCheckpoint } from "./store.js";
21
22
  import { getStateDir, normalizeSessionId, compressSmart } from "./store.js";
22
23
  import { computeContentDigest } from "./dedup/digest.js";
@@ -149,7 +150,9 @@ export class VectorStore {
149
150
  ) {
150
151
  this.embedder = opts.embedder ?? defaultEmbedder();
151
152
  this.stateDir = opts.stateDir ?? getStateDir();
152
- this.repoId = opts.repoId ?? this.stateDir;
153
+ // S25: single repo-scope key shared with the memory index (git-root
154
+ // scoped; falls back to stateDir outside git).
155
+ this.repoId = opts.repoId ?? repoKey(this.stateDir);
153
156
  // Sprint 14: all tier flags/thresholds flow from the single config source
154
157
  // (DedupConfig). The legacy opts.dedupSim / opts.l2Enabled remain accepted
155
158
  // for backward-compat callers but flags are authoritative via `cfg`.