Skip to main content

Module path

Module path 

Source
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:

  1. No separator bugs. .agents/skills and .agents\skills compare equal because only one spelling can ever exist.
  2. 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.
  3. 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§

PathError
Reasons a string cannot be a workspace-relative path.