use std::path::PathBuf;
pub mod cgfs;
pub mod effector;
pub mod history;
pub mod journal;
pub mod lock;
pub mod policy;
pub mod report;
pub mod resolve;
pub mod sampler;
pub mod service;
pub mod systemd;
pub mod types;
pub use effector::Effector;
pub use journal::Journal;
pub use policy::PolicyEngine;
pub use sampler::Sampler;
pub use systemd::SystemdUser;
pub use types::{Action, Intervention, Level, ProcInfo, PsiSource, Sample, Target};
pub fn journal_path() -> PathBuf {
dirs::state_dir()
.unwrap_or_else(|| PathBuf::from("/tmp"))
.join("rlm")
.join("guard-journal.jsonl")
}
pub fn lock_path() -> PathBuf {
journal_path().with_file_name("rlm-guard.lock")
}