Skip to main content

Module path

Module path 

Source

Enums§

PathSecurityError
Security error for path validation

Functions§

configured_allowed_roots
Effective operator-configured roots outside the workspace. Exposed for diagnostics so doctor reports the same once-read policy the file tools use.
ensure_directory_exists
Ensures a directory exists, creating it if necessary
expand_user
Expands a path that starts with ~ to the user’s home directory
glob_matches
Match a glob against a workspace-relative path. */? do NOT cross / (so src/*.ts matches only direct children — ** is the recursive form, matching find/bash semantics); a bare pattern (e.g. *.rs) also matches the file name at any depth, giving the intuitive “all .rs files”.
is_symlink
Check if a path is a symlink without following it
resolve_in_workspace
Resolve a user-supplied path string (possibly empty, relative, or ~) into a workspace-confined absolute path. Empty input resolves to the workspace root. Used by the read-only search/glob tools to scope and confine their root.
validate_path_in_workspace
Validates that a path is within the workspace root (or an extra root allowed via WINX_ALLOW_PATHS). Returns the canonicalized path if valid.