UNPKG

codecrucible-synth

Version:

Production-Ready AI Development Platform with Multi-Voice Synthesis, Smithery MCP Integration, Enterprise Security, and Zero-Timeout Reliability

96 lines 3.28 kB
#!/usr/bin/env node import { ProjectIndex } from './enhanced-startup-indexer.js'; export interface FormattedSection { title: string; content: string; type: 'header' | 'info' | 'warning' | 'error' | 'success' | 'table' | 'list' | 'code' | 'markdown'; priority: number; } export interface AnalysisResponse { summary: string; sections: FormattedSection[]; recommendations: string[]; actionItems: string[]; metadata: { confidence: number; processingTime: number; dataQuality: 'high' | 'medium' | 'low'; completeness: number; }; } export declare class StructuredResponseFormatter { private maxWidth; private useColors; constructor(options?: { maxWidth?: number; useColors?: boolean; }); formatProjectAnalysis(projectIndex: ProjectIndex): AnalysisResponse; formatCodeAnalysis(code: string, language: string): AnalysisResponse; renderResponse(response: AnalysisResponse): string; private createProjectOverviewSection; private createArchitectureSection; private createQualityMetricsSection; private createDocumentationSection; private createDependencyAnalysisSection; private createRecommendationsSection; private createCodeOverviewSection; private createCodeQualitySection; private createCodePatternsSection; private createCodeSuggestionsSection; private renderHeader; private renderSummaryBox; private renderSection; private renderRecommendations; private renderActionItems; private renderFooter; private generateProjectSummary; private generateCodeSummary; private generateRecommendations; private generateCodeRecommendations; private generateActionItems; private generateCodeActionItems; private generateCodeSuggestions; private calculateConfidence; private assessDataQuality; private calculateCompleteness; private getStatusIcon; private formatBytes; } export declare function createStructuredResponse(projectIndex?: ProjectIndex, code?: string, language?: string, options?: { maxWidth?: number; useColors?: boolean; }): AnalysisResponse; export declare const cliOutput: { outputError: (message: string, exitCode?: any) => void; configure: (options: { verbose?: boolean; quiet?: boolean; format?: string; }) => void; outputInfo: (message: string) => void; outputDebug: (message: string) => void; outputProgress: (message: string) => void; }; export declare const ResponseFactory: { createExecutionResponse: (content: string, metadata?: any) => any; createSynthesisResponse: (content: string, synthesis?: any[], metadata?: any) => any; createErrorResponse: (message: string, code?: string) => { success: boolean; error: string; code: string | undefined; timestamp: string; }; }; export declare class ExecutionError extends Error { code: string; context: Record<string, any>; constructor(message: string, code: string, context?: Record<string, any>); } export interface ExecutionResult { success: boolean; data?: any; error?: string; metadata?: Record<string, any>; } //# sourceMappingURL=structured-response-formatter.d.ts.map