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.
- package/README.md +11 -9
- package/dist/extensions/mega-pipeline/compact.js +2 -1
- package/dist/src/dedup/raptor/tree.js +11 -0
- package/dist/src/memory.test.js +29 -0
- package/dist/src/memoryOps.js +4 -19
- package/dist/src/memoryRecall.test.js +27 -0
- package/dist/src/memoryRoundtrip.test.js +137 -0
- package/dist/src/raptor-inject-summaries.test.js +10 -3
- package/dist/src/recall.js +29 -13
- package/dist/src/sprint4x-rag-verification.test.js +93 -0
- package/dist/src/store/repoKey.js +45 -0
- package/dist/src/store/sqlite/turns.js +1 -3
- package/dist/src/store/vectorIndex.test.js +25 -1
- package/dist/src/vector-search.js +11 -5
- package/dist/src/vectorStore.js +4 -1
- package/extensions/mega-pipeline/compact.ts +2 -1
- package/package.json +1 -1
- package/src/dedup/raptor/tree.ts +11 -0
- package/src/memory.test.ts +47 -1
- package/src/memoryOps.ts +4 -19
- package/src/memoryRecall.test.ts +36 -0
- package/src/memoryRoundtrip.test.ts +155 -0
- package/src/raptor-inject-summaries.test.ts +22 -6
- package/src/recall.ts +439 -368
- package/src/sprint4x-rag-verification.test.ts +119 -0
- package/src/store/repoKey.ts +50 -0
- package/src/store/sqlite/turns.ts +177 -167
- package/src/store/vectorIndex.test.ts +25 -1
- package/src/vector-search.ts +10 -5
- package/src/vectorStore.ts +4 -1
package/src/vectorStore.ts
CHANGED
|
@@ -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
|
-
|
|
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`.
|