//! The first Windows reboot capability is deliberately a fixed, separately //! enabled SYSTEM action. Existing Linux Reboot payload bytes are unchanged. use crate::jobs::{Action, JobPayload}; pub const CAPABILITY: &str = "windows.reboot/1"; pub const RECONNECT_SECONDS: u32 = 180; pub const RUNTIME_SECONDS: u32 = 60; pub const ANNOUNCEMENT_SECONDS: u32 = 5; pub fn supported(job: &JobPayload) -> bool { job.execution_identity == "system" && job.max_runtime_seconds == RUNTIME_SECONDS && (1..=65536).contains(&job.max_output_bytes) && job.action.validate() && matches!( job.action, Action::Reboot { reconnect_timeout_seconds: RECONNECT_SECONDS, .. } ) }