diff --git a/workflows/repo-assist.md b/workflows/repo-assist.md index 0b17a98..8b964f3 100644 --- a/workflows/repo-assist.md +++ b/workflows/repo-assist.md @@ -96,7 +96,8 @@ tools: const path = require("node:path"); const fail = message => { throw new Error(`notes.json: ${message}`); }; const notesPath = path.join(memoryRoot, "notes.json"); - const memoryEntries = fs.readdirSync(memoryRoot, { withFileTypes: true }); + const memoryEntries = fs.readdirSync(memoryRoot, { withFileTypes: true }) + .filter(entry => entry.name !== ".git"); if (memoryEntries.length !== 1 || !memoryEntries[0].isFile() || memoryEntries[0].name !== "notes.json") { fail(`must be the only file in repo memory; found: ${memoryEntries.map(entry => entry.name).join(", ") || "(none)"}`); }