Expand description
Which paths hold secrets or must not be touched by the file tools.
Structs§
- Daemon
Paths - 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.
- Path
Classifier - 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
pathplants 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_dirsare 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.