Normalize an agent registry name into a slug: lowercase, first hyphen segment (e.g. `"Claude-Code" -> "claude"`). Mirrors the *shape* of `atomic_agent::identity::normalize_agent_name`, implemented locally so this crate does not depend on `atomic-agent`.
(agent_name: &str)
| 115 | /// `atomic_agent::identity::normalize_agent_name`, implemented locally so this |
| 116 | /// crate does not depend on `atomic-agent`. |
| 117 | pub fn normalize_agent_slug(agent_name: &str) -> String { |
| 118 | agent_name |
| 119 | .split('-') |
| 120 | .next() |
| 121 | .unwrap_or(agent_name) |
| 122 | .to_lowercase() |
| 123 | } |
| 124 | |
| 125 | /// Project a turn's provenance into the named-subgraph JSON-LD. |
| 126 | /// |
no test coverage detected