Skip to main content

Crate codewhale_paths

Crate codewhale_paths 

Source
Expand description

Canonical user-scoped runtime path resolution for Codewhale.

This leaf crate owns only the environment and platform-home decision. File migration and per-subsystem fallback remain with the crate that owns those files.

Structs§

PathOverrideError
An environment-provided runtime path was not safe to use as a global path.

Constants§

CODEWHALE_APP_DIR
Canonical Codewhale app directory name under the user home.
LEGACY_APP_DIR
Legacy DeepSeek-branded directory retained for compatibility reads.

Functions§

absolute_path_env
Read an optional path environment variable and require a global path.
codewhale_home
Resolve the canonical Codewhale runtime home.
codewhale_home_is_explicit
Whether CODEWHALE_HOME establishes an explicit isolation boundary.
codewhale_home_override
Return the explicit Codewhale home override, if one is configured.
config_path_override
Return the explicit config-file override, preferring the Codewhale name.
legacy_deepseek_home
Resolve the ambient legacy DeepSeek home used for compatibility reads.
legacy_deepseek_home_override
Return the legacy DEEPSEEK_HOME compatibility override, if configured.
user_home
Resolve the user’s platform home, preferring HOME before USERPROFILE.
validate_absolute_path
Expand a leading ~ and reject a path that is not absolute.