claude-memory-layer 2.4.5 → 2.4.7

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.
@@ -262,7 +262,7 @@ function emptyLatencyAggregate() {
262
262
  return { count: 0, failedCount: 0, totalMs: 0, maxMs: 0 };
263
263
  }
264
264
  function runtimeVersion() {
265
- const value = "2.4.5"?.trim();
265
+ const value = "2.4.7"?.trim();
266
266
  return sanitizeRuntimeVersion(value || "development");
267
267
  }
268
268
  function sanitizeRuntimeVersion(value) {
@@ -274,7 +274,7 @@ function emptyLatencyAggregate() {
274
274
  return { count: 0, failedCount: 0, totalMs: 0, maxMs: 0 };
275
275
  }
276
276
  function runtimeVersion() {
277
- const value = "2.4.5"?.trim();
277
+ const value = "2.4.7"?.trim();
278
278
  return sanitizeRuntimeVersion(value || "development");
279
279
  }
280
280
  function sanitizeRuntimeVersion(value) {
@@ -35,7 +35,7 @@ function emptyLatencyAggregate() {
35
35
  return { count: 0, failedCount: 0, totalMs: 0, maxMs: 0 };
36
36
  }
37
37
  function runtimeVersion() {
38
- const value = "2.4.5"?.trim();
38
+ const value = "2.4.7"?.trim();
39
39
  return sanitizeRuntimeVersion(value || "development");
40
40
  }
41
41
  function sanitizeRuntimeVersion(value) {
@@ -654,7 +654,7 @@ function scoreLessonEvidence(query, lesson) {
654
654
  const queryTerms = lessonTerms(query);
655
655
  const contentTerms = new Set(lessonTerms(content));
656
656
  const overlap = queryTerms.filter((term) => contentTerms.has(term)).length;
657
- if (!exactSubject && overlap < Math.min(3, queryTerms.length)) return null;
657
+ if (!exactSubject && (queryTerms.length === 0 || overlap < Math.min(3, queryTerms.length))) return null;
658
658
  const coverage = exactSubject ? 1 : overlap / Math.max(1, Math.min(queryTerms.length, 8));
659
659
  const anchors = identifierAnchors(query);
660
660
  const lowered = content.toLowerCase();