feat(#1014): rename manager agent root→ruth across all crates + frontend
This commit is contained in:
parent
0c5760b0da
commit
89665b94de
19 changed files with 71 additions and 166 deletions
|
|
@ -314,13 +314,9 @@ async fn container_run(args: &[&str]) -> Result<(String, String)> {
|
|||
}
|
||||
|
||||
/// Return the system container name for a logical agent name.
|
||||
/// Manager (`MANAGER_NAME`) passes through; sub-agents get `h-` prefix.
|
||||
/// All agents (including the manager) use the `h-` prefix.
|
||||
fn container_system_name(name: &str) -> String {
|
||||
if name == MANAGER_NAME {
|
||||
name.to_owned()
|
||||
} else {
|
||||
format!("{AGENT_PREFIX}{name}")
|
||||
}
|
||||
format!("{AGENT_PREFIX}{name}")
|
||||
}
|
||||
|
||||
/// Path of the per-agent unix-socket dir on the host.
|
||||
|
|
@ -351,11 +347,8 @@ fn validate_container_name(name: &str) -> Result<()> {
|
|||
}
|
||||
|
||||
/// Validate a system-level container name (already has `h-` prefix for
|
||||
/// sub-agents, or is the manager name / sibling service name).
|
||||
/// all agents including the manager, or is a sibling service name).
|
||||
fn validate_container_system_name(name: &str) -> Result<()> {
|
||||
if name == MANAGER_NAME {
|
||||
return Ok(());
|
||||
}
|
||||
if SIBLING_CONTAINERS.contains(&name) {
|
||||
return Ok(());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue