Expand description
Workspace-relative paths.
Every path the domain layer touches is expressed as a RelPath: a
normalised, always /-separated path rooted at the workspace. Adapters are
responsible for turning these into native paths.
This buys us three things that matter a lot for a tool whose entire job is creating links on three operating systems:
- No separator bugs.
.agents/skillsand.agents\skillscompare equal because only one spelling can ever exist. - No path traversal.
.., absolute paths, drive letters and UNC prefixes are rejected at construction. A provider manifest — which is community contributed data — therefore cannot address anything outside the workspace. - Trivially testable planning. The domain never needs a real filesystem or a temp directory to reason about paths.
Structs§
- RelPath
- A normalised,
/-separated path relative to the workspace root.
Enums§
- Path
Error - Reasons a string cannot be a workspace-relative path.