Memory: move dreaming trail to dreams.md (#61537)

* Memory: move dreaming trail to dreams.md

* docs(changelog): add dreams.md entry

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
This commit is contained in:
Dave Morin
2026-04-05 12:19:31 -10:00
committed by GitHub
parent 48611ec40a
commit 2ed2dbba00
10 changed files with 115 additions and 13 deletions

View File

@@ -6,6 +6,7 @@ import {
buildMultimodalChunkForIndexing,
buildFileEntry,
chunkMarkdown,
isMemoryPath,
listMemoryFiles,
normalizeExtraMemoryPaths,
remapChunkLines,
@@ -157,6 +158,12 @@ describe("listMemoryFiles", () => {
});
});
describe("isMemoryPath", () => {
it("allows explicit access to top-level dreams.md", () => {
expect(isMemoryPath("dreams.md")).toBe(true);
});
});
describe("buildFileEntry", () => {
const getTmpDir = setupTempDirLifecycle("memory-build-entry-");
const multimodal: MemoryMultimodalSettings = {

View File

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