fix(memory): standardize DREAMS trail path

This commit is contained in:
Vincent Koc
2026-04-05 23:34:31 +01:00
parent 367f52f483
commit a9dbaa1124
9 changed files with 18 additions and 92 deletions

View File

@@ -162,10 +162,6 @@ describe("isMemoryPath", () => {
it("allows explicit access to top-level DREAMS.md", () => {
expect(isMemoryPath("DREAMS.md")).toBe(true);
});
it("keeps explicit access compatible with legacy dreams.md", () => {
expect(isMemoryPath("dreams.md")).toBe(true);
});
});
describe("buildFileEntry", () => {

View File

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