Exempt hidden dirs that conventionally hold UI source from the skip rule

Greptile's review correctly flagged a regression in the blanket
hidden-dir skip: .vitepress/theme/*.vue and .storybook/ preview files are
real UI source that the walker scanned before this branch. Both the
walker and the scan-target filter now carry a two-entry allowlist
(HIDDEN_SOURCE_DIRS) for those conventional locations; every other
hidden dir keeps being skipped.

Prepared with AI assistance (Claude Code), directed by @pbakaus.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
Paul Bakaus
2026-07-25 18:04:55 -07:00
co-authored by Claude Code
parent 9f008ebf82
commit a1a6441ba1
4 changed files with 38 additions and 4 deletions
+3 -1
View File
@@ -167,7 +167,9 @@ const SOURCE_DIRS = ['src', 'app', 'components', 'pages', 'public'];
function isVendoredPath(rel) {
const dirSegments = rel.split(/[\\/]/).slice(0, -1);
return dirSegments.some(
(seg) => seg.startsWith('.') || seg === 'node_modules' || seg === 'dist' || seg === 'build' || seg === '__pycache__',
(seg) =>
(seg.startsWith('.') && seg !== '.vitepress' && seg !== '.storybook') ||
seg === 'node_modules' || seg === 'dist' || seg === 'build' || seg === '__pycache__',
);
}