@vedtechsolutions/engram-mcp 1.0.30 → 1.0.31

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.
@@ -11426,7 +11426,20 @@ function formatBridgeMarkdown(content) {
11426
11426
  if (content.warnings.length > 0) {
11427
11427
  lines.push("## Watch Out For");
11428
11428
  for (const w of content.warnings) {
11429
- const fixHint = w.fix ? ` \u2192 ${w.fix}` : "";
11429
+ const getSignificantWords = (s) => {
11430
+ const stopWords = /* @__PURE__ */ new Set(["the", "a", "an", "is", "are", "was", "to", "of", "in", "for", "and", "or", "this", "that", "it"]);
11431
+ return new Set(s.toLowerCase().split(/\W+/).filter((w2) => w2.length > 3 && !stopWords.has(w2)));
11432
+ };
11433
+ let fixHint = "";
11434
+ if (w.fix) {
11435
+ const textWords = getSignificantWords(w.text);
11436
+ const fixWords = getSignificantWords(w.fix);
11437
+ const shared = [...textWords].filter((w2) => fixWords.has(w2)).length;
11438
+ const overlapRatio = textWords.size > 0 ? shared / textWords.size : 0;
11439
+ if (overlapRatio < 0.5) {
11440
+ fixHint = ` \u2192 ${w.fix}`;
11441
+ }
11442
+ }
11430
11443
  lines.push(`- **[${w.severity.toUpperCase()}]** ${w.text}${fixHint}`);
11431
11444
  }
11432
11445
  lines.push("");
@@ -12706,4 +12719,4 @@ export {
12706
12719
  composeProjectUnderstanding,
12707
12720
  formatMentalModelInjection
12708
12721
  };
12709
- //# sourceMappingURL=chunk-RCPTLHMM.js.map
12722
+ //# sourceMappingURL=chunk-WJAX5KZA.js.map
package/dist/hook.js CHANGED
@@ -174,7 +174,7 @@ import {
174
174
  updateReasoningChain,
175
175
  updateSelfModelFromSession,
176
176
  updateTask
177
- } from "./chunk-RCPTLHMM.js";
177
+ } from "./chunk-WJAX5KZA.js";
178
178
 
179
179
  // src/hook.ts
180
180
  import { readFileSync, writeFileSync, existsSync, renameSync, statSync, readdirSync, unlinkSync, openSync, readSync, closeSync } from "fs";
package/dist/index.js CHANGED
@@ -154,7 +154,7 @@ import {
154
154
  vaccinate,
155
155
  vacuumDatabase,
156
156
  validateMultiPerspective
157
- } from "./chunk-RCPTLHMM.js";
157
+ } from "./chunk-WJAX5KZA.js";
158
158
 
159
159
  // src/index.ts
160
160
  import { McpServer, ResourceTemplate } from "@modelcontextprotocol/sdk/server/mcp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vedtechsolutions/engram-mcp",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Cognitive memory system for AI — persistent, cross-session learning via MCP",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",