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.

97 lines 3.59 kB
import { ZodIssue } from 'zod'; export type ContextCuratorErrorContext = Record<string, unknown>; export declare class ContextCuratorError extends Error { readonly context?: ContextCuratorErrorContext; readonly recoverable: boolean; readonly severity: 'low' | 'medium' | 'high' | 'critical'; readonly operation?: string; readonly timestamp: Date; readonly cause?: Error; constructor(message: string, options?: { context?: ContextCuratorErrorContext; recoverable?: boolean; severity?: 'low' | 'medium' | 'high' | 'critical'; operation?: string; cause?: Error; }); getRecoveryHints(): string[]; toStructured(): Record<string, unknown>; } export declare class ContextCuratorLLMError extends ContextCuratorError { readonly task: string; readonly model?: string; readonly tokenCount?: number; constructor(message: string, context: { task: string; model?: string; tokenCount?: number; cause?: Error; [key: string]: unknown; }); getRecoveryHints(): string[]; } export declare class ContextCuratorConfigError extends ContextCuratorError { readonly configKey?: string; readonly expectedType?: string; constructor(message: string, context?: { configKey?: string; expectedType?: string; actualValue?: unknown; [key: string]: unknown; }); getRecoveryHints(): string[]; } export declare class ContextCuratorFileError extends ContextCuratorError { readonly filePath: string; readonly fileOperation: 'read' | 'write' | 'access' | 'stat' | 'glob'; constructor(message: string, context: { filePath: string; fileOperation: 'read' | 'write' | 'access' | 'stat' | 'glob'; cause?: Error; [key: string]: unknown; }); getRecoveryHints(): string[]; } export declare class ContextCuratorValidationError extends ContextCuratorError { readonly validationIssues?: ZodIssue[]; readonly schemaName?: string; constructor(message: string, context?: { validationIssues?: ZodIssue[]; schemaName?: string; invalidData?: unknown; [key: string]: unknown; }); getRecoveryHints(): string[]; } export declare class ContextCuratorTokenBudgetError extends ContextCuratorError { readonly currentTokens: number; readonly maxTokens: number; readonly overagePercentage: number; constructor(message: string, context: { currentTokens: number; maxTokens: number; operation?: string; [key: string]: unknown; }); getRecoveryHints(): string[]; } export declare class ContextCuratorTimeoutError extends ContextCuratorError { readonly timeoutMs: number; readonly actualDurationMs?: number; constructor(message: string, context: { timeoutMs: number; actualDurationMs?: number; operation?: string; [key: string]: unknown; }); getRecoveryHints(): string[]; } export declare class ErrorHandler { static withErrorContext<T>(operation: string, fn: () => Promise<T>, context?: ContextCuratorErrorContext): Promise<T>; static isRecoverable(error: unknown): boolean; static getSeverity(error: unknown): 'low' | 'medium' | 'high' | 'critical'; static formatForLogging(error: unknown): Record<string, unknown>; private static validateFileOperation; static createError(message: string, operation: string, cause?: Error, context?: ContextCuratorErrorContext): ContextCuratorError; } //# sourceMappingURL=error-handling.d.ts.map