fold hive-c0re module tree into the daemon binary + drop dead pub items surfaced by bin-only (#2513)

This commit is contained in:
damocles 2026-07-15 23:54:43 +02:00 committed by mara
commit 673aea4e50
15 changed files with 95 additions and 250 deletions

View file

@ -305,15 +305,15 @@ mod serve_config_tests {
#[derive(Clone, Debug)]
pub struct AgentPaths {
/// Runtime socket dir (tmpfs, recreated per boot).
pub agent_dir: PathBuf,
pub agent: PathBuf,
/// Manager-editable proposed config repo.
pub proposed_dir: PathBuf,
pub proposed: PathBuf,
/// Hive-c0re-authoritative applied config repo.
pub applied_dir: PathBuf,
pub applied: PathBuf,
/// Claude OAuth credentials (survives purge boundary).
pub claude_dir: PathBuf,
pub claude: PathBuf,
/// Agent durable notes + forge token (survives purge boundary).
pub notes_dir: PathBuf,
pub notes: PathBuf,
}
/// Per-agent in-progress state that the dashboard surfaces between approve
@ -377,7 +377,7 @@ pub enum TransientKind {
Starting,
/// `lifecycle::kill` is running.
Stopping,
/// `lifecycle::restart` is running.
/// A restart (`lifecycle::kill` then `lifecycle::start`) is running.
Restarting,
/// `lifecycle::rebuild` is running (nixos-container update).
Rebuilding,
@ -542,11 +542,11 @@ impl Coordinator {
#[must_use]
pub fn agent_paths(name: &str, agent_dir: PathBuf) -> AgentPaths {
AgentPaths {
agent_dir,
proposed_dir: Self::agent_proposed_dir(name),
applied_dir: crate::paths::applied_dir(name),
claude_dir: Self::agent_claude_dir(name),
notes_dir: Self::agent_notes_dir(name),
agent: agent_dir,
proposed: Self::agent_proposed_dir(name),
applied: crate::paths::applied_dir(name),
claude: Self::agent_claude_dir(name),
notes: Self::agent_notes_dir(name),
}
}