@vedtechsolutions/engram-mcp 1.0.16 → 1.0.18

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.
Files changed (2) hide show
  1. package/dist/hook.js +3 -1
  2. package/package.json +1 -1
package/dist/hook.js CHANGED
@@ -5976,6 +5976,7 @@ function handlePromptCheck(stdinJson, argFallback) {
5976
5976
  if (!rawContent || typeof rawContent !== "string" || rawContent.length < 3) return;
5977
5977
  const content = rawContent.length > INPUT.MAX_CONTENT_LENGTH ? rawContent.slice(0, INPUT.MAX_CONTENT_LENGTH) : rawContent;
5978
5978
  const state = loadWatcherState();
5979
+ sanitizeCognitiveState(state);
5979
5980
  const budget = new OutputBudget();
5980
5981
  if (!state.active_project) {
5981
5982
  const inferred = inferProjectFromCwd();
@@ -6323,7 +6324,8 @@ ${distillLines}`
6323
6324
  }
6324
6325
  if (content.length >= 30 && content.length <= 500 && !content.startsWith("<")) {
6325
6326
  const firstSentence = content.split(/[.!?\n]/)[0]?.trim();
6326
- if (firstSentence && firstSentence.length >= 15 && firstSentence.length <= 200 && !firstSentence.startsWith("<")) {
6327
+ 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);
6328
+ if (isTaskLike && firstSentence.length >= 15 && firstSentence.length <= 200) {
6327
6329
  state.active_task = firstSentence;
6328
6330
  }
6329
6331
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vedtechsolutions/engram-mcp",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "Cognitive memory system for AI — persistent, cross-session learning via MCP",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",