MAESTRO: Prevent nested duplicate directory creation in CLAUDE.md paths (PR #836 concept)

Add hasConsecutiveDuplicateSegments() check to isValidPathForClaudeMd() to reject paths
like frontend/frontend/ or src/src/ that occur when cwd already includes the directory name.
3 new tests added (46 total for claude-md-utils). Fixes #814. Credit to @Glucksberg.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alex Newman
2026-02-06 00:03:03 -05:00
parent 15e9473533
commit e5a133b3da
4 changed files with 126 additions and 48 deletions
File diff suppressed because one or more lines are too long