UNPKG

supa-seed

Version:

A constraint-aware, framework-agnostic database seeding framework with deep PostgreSQL business logic discovery and MakerKit integration support

114 lines 3.52 kB
/** * Detection Reporting System for Epic 2: Smart Platform Detection Engine * Provides CLI-friendly reporting of detection results and auto-configuration * Part of Task 2.3.3: Create detection reporting and CLI integration */ import type { UnifiedDetectionResult } from './detection-integration'; import type { AutoConfigurationResult } from './auto-configurator'; /** * Detection report options */ export interface DetectionReportOptions { /** Show detailed detection information */ showDetails: boolean; /** Show configuration recommendations */ showRecommendations: boolean; /** Show warnings and issues */ showWarnings: boolean; /** Show confidence scores */ showConfidenceScores: boolean; /** Show generated configuration */ showConfiguration: boolean; /** Output format */ format: 'cli' | 'json' | 'summary'; /** Use colors in CLI output */ useColors: boolean; } /** * Detection summary for quick overview */ export interface DetectionSummary { architecture: { type: string; confidence: number; features: string[]; }; domain: { primary: string; confidence: number; features: string[]; }; integration: { overallConfidence: number; detectionAgreement: number; recommendations: string[]; }; configuration: { strategy: string; confidence: number; keySettings: Record<string, any>; }; } /** * Main Detection Reporter class */ export declare class DetectionReporter { /** * Generate a comprehensive detection report */ static generateReport(detectionResults: UnifiedDetectionResult, autoConfiguration?: AutoConfigurationResult | undefined, options?: Partial<DetectionReportOptions>): string; /** * Generate CLI-friendly report */ private static generateCLIReport; /** * Generate JSON report for programmatic use */ private static generateJSONReport; /** * Generate summary report for quick overview */ private static generateSummaryReport; /** * Generate detection summary object */ static generateSummary(detectionResults: UnifiedDetectionResult, autoConfiguration?: AutoConfigurationResult | undefined): DetectionSummary; /** * Print detection results to console with formatting */ static printDetectionResults(detectionResults: UnifiedDetectionResult, autoConfiguration?: AutoConfigurationResult | undefined, options?: Partial<DetectionReportOptions>): void; /** * Print quick summary to console */ static printSummary(detectionResults: UnifiedDetectionResult, autoConfiguration?: AutoConfigurationResult | undefined): void; /** * Format confidence score with colors */ private static formatConfidence; /** * Merge options with defaults */ private static mergeWithDefaults; } /** * CLI Command Integration for detection reporting */ export declare class DetectionCLI { /** * Handle CLI command for detection analysis */ static handleDetectionCommand(args: string[]): Promise<void>; /** * Parse detection command arguments */ private static parseDetectionArgs; /** * Print CLI help for detection commands */ static printHelp(): void; } /** * Default detection report options */ export declare const DEFAULT_DETECTION_REPORT_OPTIONS: DetectionReportOptions; //# sourceMappingURL=detection-reporter.d.ts.map