Watch
0
0
Fork
You've already forked hyperhive
0

agents: define the work dir name once and test its creation

This commit is contained in:
atlas 2026-10-05 13:10:18 +02:00
commit 6ff348d88b
5 changed files with 18 additions and 3 deletions

View file

@ -30,6 +30,10 @@ use std::path::{Path, PathBuf};
// its own callsites.
pub use hive_host_sock::{AGENTS_ROOT, GATEWAY_HTPASSWD, HOST_SOCKET, agent_state_dir};
/// Name of the per-agent working dir under `agents/<name>/`, a sibling of
/// `state/`. Bound RW into the container at `/agents/<name>/work`.
pub const WORK_SUBDIR: &str = "work";
/// Root of all hive-c0re persistent state.
// nix: the same literal is written in `nix/host-modules/hive-c0re/default.nix` — must match.
// Not option-driven: there is no `statePath` option, the path is hardcoded both sides.