Expand description
Path canonicalization and resolution utilities for Project root handling
Implements the path handling strategy from PROJECT_ROOT_SPEC.md and 02_DESIGN.md [H1].
All file paths are canonicalized before root resolution to ensure the invariant
“at most one Project per index_root” holds regardless of how paths are accessed.
Constants§
- DEFAULT_
IGNORED_ DIRS - Default directories to skip during repository detection.
Functions§
- absolutize_
without_ resolution - Absolutize a path without touching the filesystem.
- canonicalize_
path - Canonicalize a path, resolving symlinks where possible.
- is_
ignored_ dir - Check if a directory entry should be ignored during repository detection.
- is_
ignored_ dir_ with_ config - Check if a directory entry should be ignored, using a custom ignore list.
- normalize_
path_ components - Normalize path components lexically (without filesystem access).