UNPKG

@toponextech/smartembed-mcp-server

Version:

MCP server for intelligent embedded development with PlatformIO - AI-powered project creation, error diagnosis, and device detection

56 lines 1.39 kB
/** * Error Parser for SmartEmbed * Parses compilation errors and extracts structured information */ export interface ParsedError { type: ErrorType; file?: string; line?: number; column?: number; message: string; rawError: string; category: ErrorCategory; severity: ErrorSeverity; } export declare enum ErrorType { COMPILATION = "compilation", LINKING = "linking", SYNTAX = "syntax", DECLARATION = "declaration", LIBRARY = "library", BOARD = "board", MEMORY = "memory", PERMISSION = "permission", UNKNOWN = "unknown" } export declare enum ErrorCategory { BUILD = "build", UPLOAD = "upload", LIBRARY = "library", CONFIGURATION = "configuration", HARDWARE = "hardware" } export declare enum ErrorSeverity { ERROR = "error", WARNING = "warning", FATAL = "fatal" } export declare class ErrorParser { /** * Parse error output into structured format */ parse(errorOutput: string): ParsedError[]; /** * Categorize error type into broader categories */ private categorizeError; /** * Clean error message by removing file location and prefixes */ private cleanErrorMessage; /** * Aggregate similar errors */ aggregateErrors(errors: ParsedError[]): Map<string, ParsedError[]>; } //# sourceMappingURL=error-parser.d.ts.map