claude-memory-layer 2.4.5 → 2.4.6

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.
@@ -260,7 +260,7 @@ function emptyLatencyAggregate() {
260
260
  return { count: 0, failedCount: 0, totalMs: 0, maxMs: 0 };
261
261
  }
262
262
  function runtimeVersion() {
263
- const value = "2.4.5"?.trim();
263
+ const value = "2.4.6"?.trim();
264
264
  return sanitizeRuntimeVersion(value || "development");
265
265
  }
266
266
  function sanitizeRuntimeVersion(value) {
@@ -20200,7 +20200,7 @@ function scoreLessonEvidence(query, lesson) {
20200
20200
  const queryTerms2 = lessonTerms(query);
20201
20201
  const contentTerms = new Set(lessonTerms(content));
20202
20202
  const overlap = queryTerms2.filter((term) => contentTerms.has(term)).length;
20203
- if (!exactSubject && overlap < Math.min(3, queryTerms2.length)) return null;
20203
+ if (!exactSubject && (queryTerms2.length === 0 || overlap < Math.min(3, queryTerms2.length))) return null;
20204
20204
  const coverage = exactSubject ? 1 : overlap / Math.max(1, Math.min(queryTerms2.length, 8));
20205
20205
  const anchors = identifierAnchors(query);
20206
20206
  const lowered = content.toLowerCase();
@@ -20929,7 +20929,7 @@ async function main(options = {}) {
20929
20929
  triggerType: "user_prompt",
20930
20930
  deliveryClient,
20931
20931
  requestId: retrievalRequestId,
20932
- runtimeVersion: "2.4.5",
20932
+ runtimeVersion: "2.4.6",
20933
20933
  outcomeDiagnostics
20934
20934
  });
20935
20935
  } catch {