claude-memory-layer 2.4.2 → 2.4.3

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/index.js CHANGED
@@ -3928,7 +3928,7 @@ function emptyLatencyAggregate() {
3928
3928
  return { count: 0, failedCount: 0, totalMs: 0, maxMs: 0 };
3929
3929
  }
3930
3930
  function runtimeVersion() {
3931
- const value = "2.4.2"?.trim();
3931
+ const value = "2.4.3"?.trim();
3932
3932
  return sanitizeRuntimeVersion(value || "development");
3933
3933
  }
3934
3934
  function sanitizeRuntimeVersion(value) {
package/dist/mcp/index.js CHANGED
@@ -10743,7 +10743,7 @@ function emptyLatencyAggregate() {
10743
10743
  return { count: 0, failedCount: 0, totalMs: 0, maxMs: 0 };
10744
10744
  }
10745
10745
  function runtimeVersion() {
10746
- const value = "2.4.2"?.trim();
10746
+ const value = "2.4.3"?.trim();
10747
10747
  return sanitizeRuntimeVersion(value || "development");
10748
10748
  }
10749
10749
  function sanitizeRuntimeVersion(value) {
@@ -34734,6 +34734,14 @@ var LOW_SIGNAL_QUERY_TERMS = /* @__PURE__ */ new Set([
34734
34734
  function isExplicitlyProhibitedLessonQuery(query) {
34735
34735
  return /\b(?:do[ -]+not|don't|never)\b|(?:^|[.!?;]\s*)(?:please\s+)?(?:skip|omit|ignore)\b|(?:사용|적용|실행|호출|설치|활성화|재시도)(?:\s*금지|하지\s*(?:않|말))|건너뛰|무시(?:해|하|할)|지\s*마(?:라|세요|십시오)?(?:[.!?\s]|$)/iu.test(query);
34736
34736
  }
34737
+ function lessonScoringQuery(query) {
34738
+ const korean = /^(?:도구\s*호출|파일\s*(?:수정|변경))(?:(?:\s*[/·,]\s*|\s*(?:및|와|과)\s*)(?:도구\s*호출|파일\s*(?:수정|변경)))*(?:은|는|을|를)?\s*(?:하지\s*마(?:세요|십시오|라)|금지)$/u;
34739
+ const english = /^(?:please\s+)?(?:do[ -]+not|don't|never)\s+(?:(?:call|use|invoke)\s+tools|(?:edit|modify|change)\s+files)(?:\s+(?:or|and)\s+(?:(?:call|use|invoke)\s+tools|(?:edit|modify|change)\s+files))*$/iu;
34740
+ return query.split(/(?<=[.!?;])(?=\s)|[\r\n]+/u).filter((clause) => {
34741
+ const statement = clause.trim().replace(/[.!?;]$/, "").trim();
34742
+ return !korean.test(statement) && !english.test(statement);
34743
+ }).join(" ");
34744
+ }
34737
34745
  var lessonSymbolTokens = (value) => value.match(/\b[A-Za-z][A-Za-z0-9_$]*(?:[./:-][A-Za-z0-9_$]+)*/g) ?? [];
34738
34746
  function hasExactLessonSubject(query, lesson) {
34739
34747
  const anchors = [...new Set(lessonSymbolTokens(query).filter((token) => /[a-z][A-Z]|[_$./:-]|\d/.test(token)))];
@@ -34742,7 +34750,8 @@ function hasExactLessonSubject(query, lesson) {
34742
34750
  return lessonSymbolTokens([lesson.name, lesson.trigger ?? ""].join(" ")).includes(anchors[0]);
34743
34751
  }
34744
34752
  function scoreLessonEvidence(query, lesson) {
34745
- if (isExplicitlyProhibitedLessonQuery(query)) return null;
34753
+ query = lessonScoringQuery(query);
34754
+ if (!query.trim() || isExplicitlyProhibitedLessonQuery(query)) return null;
34746
34755
  const content = formatLessonContent(lesson);
34747
34756
  const queriedSymbols = lessonSymbolTokens(query).filter((token) => /[a-z][A-Z]/.test(token));
34748
34757
  const contentSymbols = new Set(lessonSymbolTokens(content));
@@ -39377,7 +39386,7 @@ function createMcpProcessLifecycle(options) {
39377
39386
  var server = new Server(
39378
39387
  {
39379
39388
  name: "claude-memory-layer-mcp",
39380
- version: "2.4.2"
39389
+ version: "2.4.3"
39381
39390
  },
39382
39391
  {
39383
39392
  capabilities: {