Extract fixpath core logic into dazzle-filekit
Problem
dz fixpath (in dazzlecmd) has path normalization and search logic that would be useful as a shared library. Currently it's a CLI-only tool -- other tools like dazzlelink can't reuse its path resolution capabilities.
Proposed solution
Extract core functions from dazzlecmd/fixpath.py into dazzle_filekit/pathfix.py:
fix_path_string() -- normalize slashes, encoding, platform quirks
probe_alt_platform() -- try MSYS, WSL, UNC path variants
search_by_filename() -- fuzzy file search as last resort
dazzlecmd/fixpath.py becomes a thin CLI wrapper over dazzle_filekit.pathfix.
dazzlelink can then import the path normalization for the "both paths broken" rebase case.
Acceptance criteria
Related issues
Extract fixpath core logic into dazzle-filekit
Problem
dz fixpath(in dazzlecmd) has path normalization and search logic that would be useful as a shared library. Currently it's a CLI-only tool -- other tools like dazzlelink can't reuse its path resolution capabilities.Proposed solution
Extract core functions from
dazzlecmd/fixpath.pyintodazzle_filekit/pathfix.py:fix_path_string()-- normalize slashes, encoding, platform quirksprobe_alt_platform()-- try MSYS, WSL, UNC path variantssearch_by_filename()-- fuzzy file search as last resortdazzlecmd/fixpath.pybecomes a thin CLI wrapper overdazzle_filekit.pathfix.dazzlelinkcan then import the path normalization for the "both paths broken" rebase case.Acceptance criteria
dazzle_filekit/pathfix.pycreated with extracted functionsdazzlecmd/fixpath.pyrefactored to use the librarydazzlelink rebaseuses pathfix as Case 4 fallbackRelated issues