You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: consolidate normalize_project_path into shared utils module
Extract normalize_project_path() from 3 duplicate locations into
basic_memory/utils.py to eliminate code duplication and improve
maintainability.
Changes:
- Add normalize_project_path() to utils.py with comprehensive docstring
- Remove duplicate implementations from:
- api/routers/project_router.py
- cli/commands/project.py
- cli/commands/cloud/rclone_commands.py (inline version)
- Update all imports to use shared function from basic_memory.utils
Benefits:
- Single source of truth for path normalization logic
- Easier to maintain and test
- Consistent behavior across API and CLI layers
Addresses code review feedback for PR #405.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
0 commit comments