UNPKG

bugger-mcp

Version:

MCP Server for managing bugs, feature requests, and improvements

58 lines 1.97 kB
export interface StackTraceFrame { functionName?: string | undefined; filePath?: string | undefined; lineNumber?: number | undefined; columnNumber?: number | undefined; className?: string | undefined; methodName?: string | undefined; language: string; rawLine: string; } export interface ParsedStackTrace { language: string; errorType?: string | undefined; errorMessage?: string | undefined; frames: StackTraceFrame[]; isValid: boolean; confidence: number; } export interface StackTraceContext { filePath: string; functionName?: string | undefined; lineNumber: number; contextLines: number; priority: 'high' | 'medium' | 'low'; } /** * Enhanced stack trace parser that can handle multiple programming languages * and extract code context information for automated bug analysis */ export declare class StackTraceParser { private static readonly LANGUAGE_PATTERNS; /** * Parse a stack trace from text and extract structured information */ static parseStackTrace(stackTraceText: string): ParsedStackTrace; /** * Extract context information from parsed stack trace for code collection */ static extractStackTraceContexts(parsedTrace: ParsedStackTrace): StackTraceContext[]; /** * Check if the given text contains a potential stack trace */ static containsStackTrace(text: string): boolean; /** * Extract all stack traces from a larger text block */ static extractStackTraces(text: string): ParsedStackTrace[]; private static parseWithLanguageConfig; private static createFrameFromMatch; private static extractFallbackFrames; private static looksLikeStackTraceLine; private static findErrorContext; private static looksLikeRegularCode; private static isSystemFile; private static determinePriority; private static determineContextLines; } //# sourceMappingURL=stack-trace-parser.d.ts.map