@vedtechsolutions/engram-mcp 1.0.8 → 1.0.9
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/hook.js +2 -2
- package/package.json +1 -1
package/dist/hook.js
CHANGED
|
@@ -6305,7 +6305,7 @@ ${distillLines}`
|
|
|
6305
6305
|
}
|
|
6306
6306
|
const rawCandidates = getTopDomainMemories(surfaceDomain, MEMORY_SURFACE.CANDIDATE_POOL_SIZE, excludeIds, state.active_project ?? void 0);
|
|
6307
6307
|
const candidates = rawCandidates.filter(
|
|
6308
|
-
(m) => m.confidence >= MEMORY_SURFACE.MIN_SURFACE_CONFIDENCE && m.reinforcement >= MEMORY_SURFACE.MIN_SURFACE_REINFORCEMENT && !isRecallNoise(m.content, m.type, m.tags) && !m.tags.includes("
|
|
6308
|
+
(m) => m.confidence >= MEMORY_SURFACE.MIN_SURFACE_CONFIDENCE && m.reinforcement >= MEMORY_SURFACE.MIN_SURFACE_REINFORCEMENT && !isRecallNoise(m.content, m.type, m.tags) && !m.tags.includes("session-narrative")
|
|
6309
6309
|
// narratives are for model composition, not surfacing
|
|
6310
6310
|
);
|
|
6311
6311
|
const surfaced = selectDiverseSurface(candidates, MEMORY_SURFACE.MAX_SURFACE_ITEMS);
|
|
@@ -6394,7 +6394,7 @@ ${distillLines}`
|
|
|
6394
6394
|
if (surfacedIds.has(m.memory.id)) continue;
|
|
6395
6395
|
if (isRecallNoise(m.memory.content, m.memory.type, m.memory.tags)) continue;
|
|
6396
6396
|
if (m.memory.tags.includes("pre-compact")) continue;
|
|
6397
|
-
if (m.memory.tags.includes("
|
|
6397
|
+
if (m.memory.tags.includes("session-narrative")) continue;
|
|
6398
6398
|
const isFailure = m.memory.type === "episodic" && isEpisodicData(m.memory.type_data) && m.memory.type_data.outcome === "negative";
|
|
6399
6399
|
const prefix = m.somatic_marker ? "[ENGRAM GUT]" : isFailure ? "[ENGRAM CAUTION]" : "[ENGRAM CONTEXT]";
|
|
6400
6400
|
const outcomeHint = m.memory.type === "episodic" && (m.somatic_marker || isFailure) ? getEpisodicOutcomeHint(m.memory) : "";
|