use crate::cmd::session::AgentKind;
pub(super) struct AgentStatus {
pub(super) kind: AgentKind,
pub(super) detected: bool,
pub(super) sessions: Option<SessionInfo>,
pub(super) hooks: HookStatus,
pub(super) rules: Option<RulesInfo>,
}
pub(super) struct SessionInfo {
pub(super) path: String,
pub(super) detail: String, }
#[derive(Debug)]
pub(super) enum HookStatus {
Installed {
version: Option<String>,
integrity: &'static str,
},
NotInstalled,
NotSupported {
note: &'static str,
},
}
pub(super) struct RulesInfo {
pub(super) path: String,
pub(super) exists: bool,
}