AppDeps Stateless capabilities bundle for fuz_app backends.
Injectable and swappable per environment (production vs test). Does not contain config (static values) or runtime state (mutable refs).
stat
Get file/directory stats, or null if path doesn't exist.
(path: string) => Promise<StatResult | null>read_file
Read a file as text.
(path: string) => Promise<string>delete_file
Delete a file.
(path: string) => Promise<void>keyring
HMAC-SHA256 cookie signing keyring.
password
Password hashing operations. Use argon2_password_deps in production.
db
Database instance.
log
Structured logger instance.
Loggeron_audit_event
Called after each audit log INSERT succeeds.
Use to broadcast audit events via SSE. Flows automatically to all
route factories that receive deps or RouteFactoryDeps.
Defaults to a noop when not wired to SSE.
(event: AuditLogEvent) => void