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