@vedtechsolutions/engram-mcp 1.0.15 → 1.0.16
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 +1 -0
- package/package.json +1 -1
package/dist/hook.js
CHANGED
|
@@ -6472,6 +6472,7 @@ ${distillLines}`
|
|
|
6472
6472
|
if (m.memory.tags.includes("pre-compact")) continue;
|
|
6473
6473
|
if (m.memory.tags.includes("session-narrative")) continue;
|
|
6474
6474
|
if (m.memory.tags.includes("milestone") || m.memory.content.startsWith("Session milestone")) continue;
|
|
6475
|
+
if (state.active_project && m.memory.encoding_context?.project && m.memory.encoding_context.project !== state.active_project && (m.memory.type === "episodic" || m.memory.type === "semantic" && m.memory.domains.length > 0)) continue;
|
|
6475
6476
|
const isFailure = m.memory.type === "episodic" && isEpisodicData(m.memory.type_data) && m.memory.type_data.outcome === "negative";
|
|
6476
6477
|
const prefix = m.somatic_marker ? "[ENGRAM GUT]" : isFailure ? "[ENGRAM CAUTION]" : "[ENGRAM CONTEXT]";
|
|
6477
6478
|
const outcomeHint = m.memory.type === "episodic" && (m.somatic_marker || isFailure) ? getEpisodicOutcomeHint(m.memory) : "";
|