/** * Standard CLI output format for machine-readable communication * Used by MCP Server to parse CLI results */ export interface CLIOutput { success: boolean; data?: T; error?: CLIError; } export interface CLIError { code: string; message: string; details?: any; } /** * Progress information output to stderr */ export interface ProgressMessage { type: 'progress'; message: string; timestamp: string; current?: number; total?: number; percentage?: number; } /** * Crawl result data structure */ export interface CrawlResult { source: { url: string; crawledAt: string; pageCount: number; depth: number; }; pages: PageResult[]; metadata: { technology?: string; version?: string; documentType?: string; categories: string[]; }; statistics: { totalPages: number; maxDepthReached: number; errors: number; linkDiscovery?: { totalLinksFound: number; linksQueued: number; pagesDiscovered: number; }; }; skill?: { skillMd: string; quality: number; }; savedFiles?: { skillDir: string; skillMdPath: string; referenceFiles: Array<{ name: string; path: string; }>; }; } export interface PageResult { url: string; title: string; content: string; category?: string; wordCount: number; codeBlocks: number; headings: string[]; } /** * Error detection result */ export interface ErrorDetectionResult { file: string; errors: Array<{ type: string; severity: 'error' | 'warning' | 'info'; message: string; line?: number; column?: number; code?: string; }>; summary: { total: number; errors: number; warnings: number; info: number; }; } /** * Code validation result */ export interface ValidationResult { file: string; valid: boolean; issues: Array<{ type: string; message: string; fix?: string; }>; fixed?: string; } //# sourceMappingURL=cli-output.d.ts.map