fix(memory): preserve dreams path bridge behavior

This commit is contained in:
Peter Steinberger
2026-04-29 13:25:34 +01:00
parent bea75406bb
commit bf1a8eebba
5 changed files with 65 additions and 6 deletions

View File

@@ -78,9 +78,9 @@ describe("memory host SDK package internals", () => {
]);
});
it("keeps package-specific dreams path casing", () => {
it("allows top-level dreams path casing variants", () => {
expect(isMemoryPath("dreams.md")).toBe(true);
expect(isMemoryPath("DREAMS.md")).toBe(false);
expect(isMemoryPath("DREAMS.md")).toBe(true);
});
it("builds markdown and multimodal file entries", async () => {

View File

@@ -88,7 +88,7 @@ export function isMemoryPath(relPath: string): boolean {
if (!normalized) {
return false;
}
if (normalized === CANONICAL_ROOT_MEMORY_FILENAME || normalized === "dreams.md") {
if (normalized === CANONICAL_ROOT_MEMORY_FILENAME || normalized.toLowerCase() === "dreams.md") {
return true;
}
return normalized.startsWith("memory/");