Skip to main content

Module path_class

Module path_class 

Source
Expand description

Which paths hold secrets or must not be touched by the file tools.

Structs§

DaemonPaths
How the daemon classifies paths: the SDK’s patterns, its own config and env files (fixed at startup), and any env file its environment names.
PathClassifier
Classifies paths for the file tools: secrets a read refuses, and the wider set of sensitive paths a write refuses. Beyond the built-in patterns, an app adds its own files (its config, its env file) as protected; they count as both.

Constants§

SECRET_READ_PATTERNS
Entries that hold secrets; a file read refuses these. Narrower than SENSITIVE_PATTERNS, which also guards non-secret writes such as .git. Multi-component entries name token stores whose file names do not look secret (a CLI’s login file, a shell’s history).
SENSITIVE_PATTERNS
Sensitive path patterns that should not be exposed through file tools.

Functions§

is_persistence_path
Whether writing path plants something that runs or is obeyed later without anyone asking: a shell start-up file, a login item, launch agent, service unit, cron entry or git hook, or instructions the daemon loads into every later prompt (~/.aidaemon/AGENTS.md, specialists, skills). daemon_dirs are the daemon’s own folders (where its config lives) besides the default ~/.aidaemon.
same_file
Whether two paths name the same file, directly or after resolving symlinks.