Something went wrong. Try again.
Personal fork of prime agent. Mirror of: https://mnemosyne.sigilzero.dev/sigilzero/prime-agent
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233//! The staged-activation update flow (spec §4): the invoking CLI plans,//! downloads, and stages the candidate (states `Acquire`..`Staged`), then//! spawns the detached coordinator - the NEW binary - which adopts the//! status file and owns the FSM to a terminal state.
pub mod coordinator;pub mod intent;mod legacy_admission;mod legacy_restart;mod legacy_roster;pub mod phases;pub mod plan;pub mod report;pub mod status;pub mod successor;pub mod swap;pub mod update_command;
use std::path::PathBuf;
use anyhow::{anyhow, Result};
/// This process's install root (the coordinator runs the NEW binary, the/// invoking CLI the old one - both derive it from `current_exe`).////// # Errors/// Returns an error when the executable path cannot be resolved or the binary/// does not run from a managed install root.pub fn activation_root() -> Result<PathBuf> { pa_core::update::install::install_root_of(&std::env::current_exe()?) .ok_or_else(|| anyhow!("the current binary does not run from a managed install root"))}