@edihasaj/recall 0.9.2 → 0.9.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/{chunk-CYQPEGXG.js → chunk-AVK3HSTI.js} +22 -9
- package/dist/{chunk-CYQPEGXG.js.map → chunk-AVK3HSTI.js.map} +1 -1
- package/dist/{chunk-57OKXD4B.js → chunk-D4LBCVUU.js} +4 -4
- package/dist/{chunk-QLAFLCY4.js → chunk-FHEH6QDU.js} +3 -1
- package/dist/{chunk-QLAFLCY4.js.map → chunk-FHEH6QDU.js.map} +1 -1
- package/dist/{chunk-OGZO2WKA.js → chunk-GRASHRKW.js} +5 -5
- package/dist/{chunk-IBNDQXUB.js → chunk-HJIUBQOH.js} +2 -2
- package/dist/{chunk-UPSMHCTY.js → chunk-R7Z6GISJ.js} +2 -2
- package/dist/{chunk-PLOL3UCO.js → chunk-WZ7P5EFR.js} +2 -2
- package/dist/{cleanup-62AZROOV.js → cleanup-665SJZKN.js} +3 -3
- package/dist/cli.js +14 -14
- package/dist/daemon.js +7 -7
- package/dist/{dispatcher-GJNTZX2I.js → dispatcher-XAFET3PC.js} +3 -3
- package/dist/mcp.js +5 -5
- package/dist/{memory-value-B3AQW4IE.js → memory-value-5626VN6X.js} +3 -3
- package/dist/{quality-MIDMOC3L.js → quality-SIPIGROF.js} +4 -4
- package/dist/{tasks-6CDIKOIR.js → tasks-QH4HRHPR.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-57OKXD4B.js.map → chunk-D4LBCVUU.js.map} +0 -0
- /package/dist/{chunk-OGZO2WKA.js.map → chunk-GRASHRKW.js.map} +0 -0
- /package/dist/{chunk-IBNDQXUB.js.map → chunk-HJIUBQOH.js.map} +0 -0
- /package/dist/{chunk-UPSMHCTY.js.map → chunk-R7Z6GISJ.js.map} +0 -0
- /package/dist/{chunk-PLOL3UCO.js.map → chunk-WZ7P5EFR.js.map} +0 -0
- /package/dist/{cleanup-62AZROOV.js.map → cleanup-665SJZKN.js.map} +0 -0
- /package/dist/{dispatcher-GJNTZX2I.js.map → dispatcher-XAFET3PC.js.map} +0 -0
- /package/dist/{memory-value-B3AQW4IE.js.map → memory-value-5626VN6X.js.map} +0 -0
- /package/dist/{quality-MIDMOC3L.js.map → quality-SIPIGROF.js.map} +0 -0
- /package/dist/{tasks-6CDIKOIR.js.map → tasks-QH4HRHPR.js.map} +0 -0
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
recordAudit,
|
|
7
7
|
redactSensitiveValue,
|
|
8
8
|
seedScannedConfidence
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HJIUBQOH.js";
|
|
10
10
|
import {
|
|
11
11
|
recordInjectionValueEvents,
|
|
12
12
|
recordMemoryInjections,
|
|
13
13
|
recordOutcomeValueEvent,
|
|
14
14
|
resolveMemoryInjectionOutcome
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WZ7P5EFR.js";
|
|
16
16
|
import {
|
|
17
17
|
textMatchScore
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FHEH6QDU.js";
|
|
19
19
|
import {
|
|
20
20
|
asc,
|
|
21
21
|
desc
|
|
@@ -5190,13 +5190,26 @@ function dedupeMemoriesForInjection(memories4) {
|
|
|
5190
5190
|
}
|
|
5191
5191
|
function dedupeRankedMemoriesForInjection(ranked) {
|
|
5192
5192
|
const seen = /* @__PURE__ */ new Set();
|
|
5193
|
-
|
|
5193
|
+
const selected = [];
|
|
5194
|
+
for (const item of ranked) {
|
|
5194
5195
|
const key = canonicalInjectionText(item.memory);
|
|
5195
|
-
if (!key)
|
|
5196
|
-
|
|
5196
|
+
if (!key || seen.has(key)) continue;
|
|
5197
|
+
const scopedOverrideIndex = selected.findIndex(
|
|
5198
|
+
(existing) => existing.memory.scope === "global" && item.memory.scope !== "global" && existing.memory.type === item.memory.type && textMatchScore(existing.memory.text, item.memory.text).score >= 0.6
|
|
5199
|
+
);
|
|
5200
|
+
if (scopedOverrideIndex >= 0) {
|
|
5201
|
+
seen.add(key);
|
|
5202
|
+
selected[scopedOverrideIndex] = item;
|
|
5203
|
+
continue;
|
|
5204
|
+
}
|
|
5205
|
+
const hasNarrowerEquivalent = selected.some(
|
|
5206
|
+
(existing) => existing.memory.scope !== "global" && item.memory.scope === "global" && existing.memory.type === item.memory.type && textMatchScore(existing.memory.text, item.memory.text).score >= 0.6
|
|
5207
|
+
);
|
|
5208
|
+
if (hasNarrowerEquivalent) continue;
|
|
5197
5209
|
seen.add(key);
|
|
5198
|
-
|
|
5199
|
-
}
|
|
5210
|
+
selected.push(item);
|
|
5211
|
+
}
|
|
5212
|
+
return selected;
|
|
5200
5213
|
}
|
|
5201
5214
|
function canonicalInjectionText(memory) {
|
|
5202
5215
|
return renderMemoryText(memory).toLowerCase().replace(/[`*_]/g, "").replace(/\s+/g, " ").trim();
|
|
@@ -6522,4 +6535,4 @@ export {
|
|
|
6522
6535
|
pruneMemories,
|
|
6523
6536
|
formatPruneReport
|
|
6524
6537
|
};
|
|
6525
|
-
//# sourceMappingURL=chunk-
|
|
6538
|
+
//# sourceMappingURL=chunk-AVK3HSTI.js.map
|