Expand description
Shared defaults, low-level constants, and configuration loading for the SysKnife workspace.
Modules§
- action_
family - Canonical mapping of action names to the distro family they require.
- config
~/.config/sysknife/config.toml— optional user configuration file.- distro
- Distro detection — Phase 2a.
Enums§
- Audit
Store Choice - Which audit store a CLI-side reader (
sysknife audit verify, MCP doctor) should open.
Constants§
- PRODUCTION_
DATABASE_ PATH - Production SQLite path written by the systemd unit (
sysknife-daemon.service).
Functions§
- choose_
audit_ store - Pure selection rule behind
resolve_audit_store, split out so the precedence is testable without touching the filesystem or the environment. - choose_
audit_ store_ with_ paths - Apply the audit-store precedence when the system store path is supplied by
the caller. The production resolver uses
PRODUCTION_DATABASE_PATH; the explicit path parameter also lets tests model that fallback without writing under/var/lib. - default_
database_ path - Resolve the daemon SQLite database path for the current process.
- default_
listen_ uri - Resolve the daemon listen URI for the current process.
- path_
is_ present - Whether an audit-store path should count as present for selection.
- resolve_
audit_ store - Resolve the audit store for this process against the real environment and filesystem.
- resolve_
audit_ store_ from - Resolve the audit store with an explicit system path. The production entry
point supplies
PRODUCTION_DATABASE_PATH; tests can supply a temporary file to exercise the packaged-install fallback without writing under/var/lib.