Skip to main content

data_dir

Function data_dir 

Source
pub fn data_dir() -> Option<PathBuf>
Expand description

Leviath’s data root: <home>/.leviath.

Every persistent thing Leviath owns lives under here - config.toml, mcp-auth.json, runs/, agents/, providers/, tools/, the control socket. Having one function say so is the point: there were seven separate resolvers with three incompatible readings of LEVIATH_HOME, so with the override set the MCP OAuth token store landed in a different directory from the config that names those servers, and lev serve could not see agents lev add had just installed.