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§
- Path
Override Error - 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_HOMEestablishes 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_HOMEcompatibility override, if configured. - user_
home - Resolve the user’s platform home, preferring
HOMEbeforeUSERPROFILE. - validate_
absolute_ path - Expand a leading
~and reject a path that is not absolute.