Activate agent mesh with honest live status and working animations.
Souls now aggregate aliased events (e.g. halal_engine), KPIs reflect 6h activity, active agents animate, and morning scheduler/scripts target cockpit :8610.
This commit is contained in:
@@ -9,9 +9,15 @@ AGENT_NAME_MAP: dict[str, str] = {
|
||||
"rss_feeds": "marketing",
|
||||
"wholesale_scraper": "sourcing",
|
||||
"halal_registry": "halal",
|
||||
"halal_engine": "halal",
|
||||
"halal_reco": "halal",
|
||||
"branch_scraper": "sourcing",
|
||||
"hermes": "herman",
|
||||
"herman_delegate": "herman",
|
||||
"ops": "sysops",
|
||||
"sysop": "sysops",
|
||||
"web_builder": "webbuilder",
|
||||
"packaging_agent": "packaging",
|
||||
}
|
||||
|
||||
|
||||
@@ -20,3 +26,15 @@ def normalize_agent_key(name: str | None) -> str:
|
||||
if not key:
|
||||
return ""
|
||||
return AGENT_NAME_MAP.get(key, key)
|
||||
|
||||
|
||||
def aliases_for_key(canonical: str) -> list[str]:
|
||||
"""All raw agent_name values that map to this soul key (including the key itself)."""
|
||||
key = (canonical or "").strip().lower()
|
||||
if not key:
|
||||
return []
|
||||
names = {key}
|
||||
for raw, canon in AGENT_NAME_MAP.items():
|
||||
if canon == key:
|
||||
names.add(raw)
|
||||
return sorted(names)
|
||||
|
||||
Reference in New Issue
Block a user