Fix monorepo subdirectory detection with smart path resolution
Claude's path encoding is lossy (/ becomes -), so we can't tell if
"taper-calculator-apps-web" means a project with dashes or nested
directories.
New approach:
- Try interpretations from right to left (literal dashes first)
- Probe filesystem to find which path actually exists
- Use git root as canonical project name for monorepo subdirs
This correctly handles both:
- drink-reminder-native → keeps dashes (project name has dashes)
- taper-calculator/apps/web → merges to taper-calculator (monorepo)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>