Skip to main content

Module paths

Module paths 

Source
Expand description

Path containment, and the one definition of where Leviath’s data lives.

Functions§

agents_dir
The directory installed agents are unpacked into.
data_dir
Leviath’s data root: <home>/.leviath.
home_dir
The user’s home directory, honoring the LEVIATH_HOME override.
is_safe_path_component
Whether name is safe to use as a single path component.
providers_dir
The directory holding drop-in Rhai provider scripts.
resolves_within
Whether path still lands inside root once symlinks are followed.
tools_dir
The directory scanned for global drop-in Rhai tool scripts.