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.
- package/dist/cli/index.js +2 -2
- package/dist/core/index.js +1 -1
- package/dist/hooks/codex-session-import-worker.js +1 -1
- package/dist/hooks/codex-session-start.js +4 -4
- package/dist/hooks/codex-session-start.js.map +2 -2
- package/dist/hooks/codex-user-prompt-submit.js +3 -3
- package/dist/hooks/codex-user-prompt-submit.js.map +2 -2
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/semantic-daemon.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +4 -4
- package/dist/hooks/session-start.js.map +2 -2
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +3 -3
- package/dist/hooks/user-prompt-submit.js.map +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/mcp/index.js.map +2 -2
- package/dist/server/api/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/services/lesson-host-service.js +2 -2
- package/dist/services/lesson-host-service.js.map +2 -2
- package/dist/services/memory-service.js +1 -1
- package/package.json +1 -1
package/dist/server/api/index.js
CHANGED
|
@@ -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.
|
|
265
|
+
const value = "2.4.6"?.trim();
|
|
266
266
|
return sanitizeRuntimeVersion(value || "development");
|
|
267
267
|
}
|
|
268
268
|
function sanitizeRuntimeVersion(value) {
|
package/dist/server/index.js
CHANGED
|
@@ -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.
|
|
277
|
+
const value = "2.4.6"?.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.
|
|
38
|
+
const value = "2.4.6"?.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();
|