fix(gsd): add missing directories to codebase generator exclude list

.agents/, .bg-shell/, .idea/, venv/, target/, .cache/, and tmp/ were
missing from DEFAULT_EXCLUDES. This caused /gsd-new-project to scan
skill and agent definition files as project code, confusing researcher
agents during project initialization.

Aligns the exclude list with the gitignore patterns in gitignore.ts.
This commit is contained in:
Jeremy 2026-04-10 13:40:45 -05:00
parent 9016ac362f
commit 099a7723a3

View file

@ -71,13 +71,23 @@ interface EnumeratedFiles {
// ─── Defaults ────────────────────────────────────────────────────────────────
const DEFAULT_EXCLUDES = [
// ── AI / tooling meta ──
".agents/",
".gsd/",
".planning/",
".plans/",
".claude/",
".cursor/",
".bg-shell/",
// ── Editor / IDE ──
".vscode/",
".idea/",
// ── VCS ──
".git/",
// ── Dependencies & build artifacts ──
"node_modules/",
"dist/",
"build/",
@ -85,7 +95,13 @@ const DEFAULT_EXCLUDES = [
"coverage/",
"__pycache__/",
".venv/",
"venv/",
"vendor/",
"target/",
// ── Misc ──
".cache/",
"tmp/",
];
const DEFAULT_MAX_FILES = 500;