UNPKG

vibe-coder-mcp

Version:

Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.

115 lines 4.09 kB
import { AppError, ErrorContext } from '../../../utils/errors.js'; export type ErrorSeverity = 'low' | 'medium' | 'high' | 'critical'; export type ErrorCategory = 'configuration' | 'validation' | 'network' | 'timeout' | 'resource' | 'permission' | 'dependency' | 'agent' | 'task' | 'system'; export interface RecoveryAction { action: string; description: string; automated: boolean; priority: number; } export interface EnhancedErrorContext extends ErrorContext { component: string; operation: string; taskId?: string; agentId?: string; projectId?: string; sessionId?: string; timestamp: Date; metadata?: Record<string, unknown>; } export declare class EnhancedError extends AppError { readonly category: ErrorCategory; readonly severity: ErrorSeverity; readonly context: EnhancedErrorContext; readonly recoveryActions: RecoveryAction[]; readonly retryable: boolean; readonly userFriendly: boolean; constructor(message: string, category: ErrorCategory, severity: ErrorSeverity, context: EnhancedErrorContext, options?: { cause?: Error; recoveryActions?: RecoveryAction[]; retryable?: boolean; userFriendly?: boolean; }); getUserFriendlyMessage(): string; getRecoverySuggestions(): string[]; logError(): void; } export declare class ConfigurationError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; configKey?: string; expectedValue?: string; actualValue?: string; userFriendly?: boolean; }); } export declare class TaskExecutionError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; taskType?: string; agentCapabilities?: string[]; retryable?: boolean; userFriendly?: boolean; }); } export declare class AgentError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; agentType?: string; agentStatus?: string; capabilities?: string[]; userFriendly?: boolean; }); } export declare class TimeoutError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; operation?: string; timeoutMs?: number; actualDurationMs?: number; userFriendly?: boolean; }); } export declare class ResourceError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; resourceType?: string; availableAmount?: number; requiredAmount?: number; userFriendly?: boolean; }); } export declare class ValidationError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; field?: string; expectedFormat?: string; actualValue?: unknown; userFriendly?: boolean; }); } export declare class NetworkError extends EnhancedError { constructor(message: string, context: EnhancedErrorContext, options?: { cause?: Error; endpoint?: string; statusCode?: number; retryAfter?: number; userFriendly?: boolean; }); } export declare class ErrorFactory { static createError(type: ErrorCategory, message: string, context: EnhancedErrorContext, options?: Record<string, unknown>): EnhancedError; } export declare class ErrorContextBuilder { private context; component(component: string): this; operation(operation: string): this; taskId(taskId: string): this; agentId(agentId: string): this; projectId(projectId: string): this; sessionId(sessionId: string): this; metadata(metadata: Record<string, unknown>): this; build(): EnhancedErrorContext; } export declare function createErrorContext(component: string, operation: string): ErrorContextBuilder; //# sourceMappingURL=enhanced-errors.d.ts.map