pub fn resolve_agent_spec( catalog: &AgentCatalog, agent_name: Option<&str>, ) -> Result<AgentSpec, CliError>