Expand description
Centralized path management for cuenv data directories.
This module provides platform-appropriate paths following OS conventions:
| Platform | State Dir | Cache Dir | Runtime Dir |
|---|---|---|---|
| macOS | ~/Library/Application Support/cuenv | ~/Library/Caches/cuenv | $TMPDIR |
| Linux | ~/.local/state/cuenv (XDG_STATE_HOME) | ~/.cache/cuenv (XDG_CACHE_HOME) | /run/user/$UID (XDG_RUNTIME_DIR) |
| Windows | %APPDATA%\cuenv | %LOCALAPPDATA%\cuenv | %TEMP% |
All functions support environment variable overrides for testing and CI:
CUENV_STATE_DIR- Override state directoryCUENV_CACHE_DIR- Override cache directoryCUENV_RUNTIME_DIR- Override runtime directory
Functionsยง
- approvals_
file - Get the path to the approvals file.
- cache_
dir - Get the cache directory for cuenv.
- coordinator_
lock - Get the path to the coordinator lock file.
- coordinator_
pid - Get the path to the coordinator PID file.
- coordinator_
socket - Get the path to the coordinator socket.
- hook_
state_ dir - Get the path to the hook state directory.
- runtime_
dir - Get the runtime directory for ephemeral cuenv data.
- state_
dir - Get the state directory for persistent cuenv data.
- task_
cache_ dir - Get the path to the task cache directory.