@vedtechsolutions/engram-mcp 1.0.15 → 1.0.17
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 +3 -1
- package/package.json +1 -1
package/dist/hook.js
CHANGED
|
@@ -6323,7 +6323,8 @@ ${distillLines}`
|
|
|
6323
6323
|
}
|
|
6324
6324
|
if (content.length >= 30 && content.length <= 500 && !content.startsWith("<")) {
|
|
6325
6325
|
const firstSentence = content.split(/[.!?\n]/)[0]?.trim();
|
|
6326
|
-
|
|
6326
|
+
const isTaskLike = firstSentence && /^(fix|add|create|update|implement|remove|refactor|build|change|move|write|make|set|run|deploy|test|commit|push|install|configure|debug|solve|close|merge|release)/i.test(firstSentence);
|
|
6327
|
+
if (isTaskLike && firstSentence.length >= 15 && firstSentence.length <= 200) {
|
|
6327
6328
|
state.active_task = firstSentence;
|
|
6328
6329
|
}
|
|
6329
6330
|
}
|
|
@@ -6472,6 +6473,7 @@ ${distillLines}`
|
|
|
6472
6473
|
if (m.memory.tags.includes("pre-compact")) continue;
|
|
6473
6474
|
if (m.memory.tags.includes("session-narrative")) continue;
|
|
6474
6475
|
if (m.memory.tags.includes("milestone") || m.memory.content.startsWith("Session milestone")) continue;
|
|
6476
|
+
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
6477
|
const isFailure = m.memory.type === "episodic" && isEpisodicData(m.memory.type_data) && m.memory.type_data.outcome === "negative";
|
|
6476
6478
|
const prefix = m.somatic_marker ? "[ENGRAM GUT]" : isFailure ? "[ENGRAM CAUTION]" : "[ENGRAM CONTEXT]";
|
|
6477
6479
|
const outcomeHint = m.memory.type === "episodic" && (m.somatic_marker || isFailure) ? getEpisodicOutcomeHint(m.memory) : "";
|