sync: auto-sync from GURU-5070 at 2026-06-15 12:15:54

Author: Mike Swanson
Machine: GURU-5070
Timestamp: 2026-06-15 12:15:54
This commit is contained in:
2026-06-15 12:16:10 -07:00
parent 813d4cfa35
commit d9c710be31
3 changed files with 138 additions and 2 deletions

View File

@@ -47,8 +47,13 @@ for f in "${FILES[@]}"; do
esac
fi
# Referenced in a session log → clearly load-bearing.
if grep -rqlF "$f" session-logs/ clients/ projects/ 2>/dev/null; then
# Referenced in a session log / doc → clearly load-bearing.
# Scope to markdown only and skip heavy build/dep/vcs trees — a bare `grep -r`
# over projects/ (Rust target/, node_modules/, .git) hangs for minutes per file.
if grep -rqlF "$f" --include='*.md' \
--exclude-dir=.git --exclude-dir=node_modules --exclude-dir=target \
--exclude-dir=dist --exclude-dir=build --exclude-dir=.next --exclude-dir=vendor \
session-logs/ clients/ projects/ 2>/dev/null; then
reason="${reason:+$reason, }referenced"
fi