pub fn state_dir() -> Result<PathBuf>Expand description
Get the state directory for persistent cuenv data.
State data includes:
- Hook execution state (
state/) - Approval records (
approved.json)
Resolution order:
CUENV_STATE_DIRenvironment variable- Platform state directory +
/cuenv
ยงErrors
Returns an error if the home directory cannot be determined.