mcp-subagents
Version:
Multi-Agent AI Orchestration via Model Context Protocol - Access specialized CLI AI agents (Aider, Qwen, Gemini, Goose, etc.) with intelligent fallback and configuration
35 lines • 1.63 kB
TypeScript
import { z } from 'zod';
import type { AgentName } from './types/index.js';
export declare abstract class AgentOrchestratorError extends Error {
readonly details?: unknown | undefined;
abstract readonly code: string;
abstract readonly category: 'validation' | 'execution' | 'configuration' | 'system';
constructor(message: string, details?: unknown | undefined);
}
export declare class ConfigValidationError extends AgentOrchestratorError {
readonly zodErrors?: z.ZodIssue[] | undefined;
readonly code = "CONFIG_VALIDATION_ERROR";
readonly category = "validation";
constructor(message: string, zodErrors?: z.ZodIssue[] | undefined);
}
export declare class AgentNotFoundError extends AgentOrchestratorError {
readonly details?: unknown | undefined;
readonly code = "AGENT_NOT_FOUND";
readonly category = "configuration";
constructor(message: string, details?: unknown | undefined);
}
export declare class AgentExecutionError extends AgentOrchestratorError {
readonly agent: AgentName;
readonly exitCode?: number | undefined;
readonly stderr?: string | undefined;
readonly code = "AGENT_EXECUTION_ERROR";
readonly category = "execution";
constructor(message: string, agent: AgentName, exitCode?: number | undefined, stderr?: string | undefined);
}
export declare class MCPValidationError extends AgentOrchestratorError {
readonly zodErrors?: z.ZodIssue[] | undefined;
readonly code = "MCP_VALIDATION_ERROR";
readonly category = "validation";
constructor(message: string, zodErrors?: z.ZodIssue[] | undefined);
}
//# sourceMappingURL=errors.d.ts.map