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
|
|
@ -55,7 +55,6 @@ pub enum SocketReply {
|
|||
ReminderRollup(hive_sh4re::ReminderStats),
|
||||
AgentMeta {
|
||||
name: String,
|
||||
role: String,
|
||||
running: bool,
|
||||
hyperhive_rev: Option<String>,
|
||||
status_text: Option<String>,
|
||||
|
|
@ -84,7 +83,6 @@ impl From<hive_sh4re::Response> for SocketReply {
|
|||
hive_sh4re::Response::Schedules { schedules } => Self::Schedules(schedules),
|
||||
hive_sh4re::Response::AgentMeta {
|
||||
name,
|
||||
role,
|
||||
running,
|
||||
hyperhive_rev,
|
||||
status_text,
|
||||
|
|
@ -93,7 +91,6 @@ impl From<hive_sh4re::Response> for SocketReply {
|
|||
swarm_name,
|
||||
} => Self::AgentMeta {
|
||||
name,
|
||||
role,
|
||||
running,
|
||||
hyperhive_rev,
|
||||
status_text,
|
||||
|
|
@ -269,7 +266,6 @@ pub fn format_agent_meta(resp: Result<SocketReply, anyhow::Error>) -> String {
|
|||
match resp {
|
||||
Ok(SocketReply::AgentMeta {
|
||||
name,
|
||||
role,
|
||||
running,
|
||||
hyperhive_rev,
|
||||
status_text,
|
||||
|
|
@ -279,8 +275,7 @@ pub fn format_agent_meta(resp: Result<SocketReply, anyhow::Error>) -> String {
|
|||
}) => {
|
||||
let rev = hyperhive_rev.as_deref().unwrap_or("<unknown>");
|
||||
let run = if running { "yes" } else { "no" };
|
||||
let mut out =
|
||||
format!("name: {name}\nrole: {role}\nhyperhive_rev: {rev}\nrunning: {run}");
|
||||
let mut out = format!("name: {name}\nhyperhive_rev: {rev}\nrunning: {run}");
|
||||
// Surface hive + swarm display names only when set, so
|
||||
// single-hive deployments don't see noisy `<none>` lines.
|
||||
if let Some(hn) = hive_name.as_deref() {
|
||||
|
|
@ -713,7 +708,7 @@ impl AgentServer {
|
|||
|
||||
#[tool(
|
||||
description = "Fetch identity + status metadata for an agent. Returns canonical \
|
||||
`name`, `role` (`agent` / `manager`), the current `hyperhive_rev` hive-c0re is \
|
||||
`name`, the current `hyperhive_rev` hive-c0re is \
|
||||
running against, and the target's self-reported `status` text (set via \
|
||||
`set_status`) plus how long ago it was set. Pass `name` to query a peer (e.g. \
|
||||
check whether iris is idle before pinging them); omit `name` to get your own \
|
||||
|
|
@ -1782,7 +1777,7 @@ impl ManagerServer {
|
|||
|
||||
#[tool(
|
||||
description = "Fetch identity + status metadata for an agent. Returns canonical \
|
||||
`name`, `role` (`agent` / `manager`), the current `hyperhive_rev` hive-c0re is \
|
||||
`name`, the current `hyperhive_rev` hive-c0re is \
|
||||
running against, and the target's self-reported `status` text (set via \
|
||||
`set_status`) plus how long ago it was set. Pass `name` to query a sub-agent or \
|
||||
peer manager; omit `name` for the manager's own identity stamp — useful for \
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ shared closer
|
|||
let rendered = render(
|
||||
&PRODUCTION_TEMPLATE,
|
||||
Flavor::Manager,
|
||||
"root",
|
||||
"ruth",
|
||||
"she/her",
|
||||
None,
|
||||
None,
|
||||
|
|
@ -346,7 +346,7 @@ shared closer
|
|||
let manager = render(
|
||||
&PRODUCTION_TEMPLATE,
|
||||
Flavor::Manager,
|
||||
"root",
|
||||
"ruth",
|
||||
"she/her",
|
||||
None,
|
||||
None,
|
||||
|
|
@ -390,7 +390,7 @@ You are hyperhive agent `{label}` (qualified: `{qualified_label}`){hive_identity
|
|||
let rendered = render(
|
||||
IDENTITY_FIXTURE,
|
||||
Flavor::Manager,
|
||||
"root",
|
||||
"ruth",
|
||||
"she/her",
|
||||
None,
|
||||
Some("constellat1on"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue