Module paths
Expand description
Shared path helpers used by both schema-tier validation and the scoped file browser. Single source of truth for “lexically normalize a path” and “resolve a relative input under a fixed root with no escape”.
Structs§
Constants§
- MEMORY_
SNAPSHOT_ FILE - The memory snapshot at the workspace root: a human-readable export of the agent’s core memories, which an agent re-hydrates its store from.
Functions§
- normalize_
lexical - Resolve
.and..components lexically — never touches the filesystem. Sufficient for “stays inside<root>” reasoning where the path may not yet exist. - resolve_
under - Resolve
raw(interpreted as relative-to-root unless absolute) and assert the result stays underrootafter lexical normalization. Returns the normalized absolute path on success.