UNPKG

@invisiblecities/sidequest-cqo

Version:

Configuration-agnostic TypeScript and ESLint orchestrator with real-time watch mode, SQLite persistence, and intelligent terminal detection

89 lines 2.89 kB
/** * Clean Watch Mode Display - Developer-Focused Metrics * Shows current state, trends, and actionable insights */ import { type Violation as OrchestratorViolation } from "../utils/violation-types.js"; import type { UnifiedOrchestrator } from "../services/unified-orchestrator.js"; import type { ViolationSummary } from "../shared/types.js"; export declare class DeveloperWatchDisplay { private state; private colors; private consoleBackup; constructor(); private colorModeOverride; private createColorScheme; /** * Toggle between light and dark color schemes */ private toggleColorScheme; private captureOutput; private restoreOutput; /** * Set up keyboard input handling for view mode toggle */ private setupKeyboardHandling; /** * Render the current view based on state.viewMode */ private renderCurrentView; /** * Render a clean diagnostic view showing only actual issues */ private renderTidyView; /** * Render the full dashboard view (original view) */ private renderDashboardView; /** * Render the burndown progress view for active fixing sessions */ private renderBurndownView; /** * Create a burndown progress bar showing reduction from baseline */ private createBurndownBar; /** * Filter violations to show only actionable issues (errors + warnings) * Info-level items are just noise in watch mode */ private filterActionableViolations; /** * Get display name for category keys */ private getCategoryDisplayName; updateDisplay(violations: OrchestratorViolation[], checksCount: number, orchestrator?: UnifiedOrchestrator): Promise<void>; private processViolations; private render; /** * Render enhanced Zod analysis section with coverage metrics */ private renderZodAnalysisSection; private getSeverity; /** * Restore display state from a previous session */ restoreFromSession(sessionData: { sessionStart: number; baseline: ViolationSummary | undefined; current: ViolationSummary; viewMode: string; }): void; /** * Wait for initial analysis to complete before allowing display updates * This prevents race conditions where display shows before analysis finishes */ waitForInitialAnalysis(): Promise<void>; /** * Check if display is ready for updates */ isReady(): boolean; /** * Reset baseline to force refresh on next update * Used when resuming sessions to prevent stale delta calculations */ resetBaseline(): void; shutdown(): void; } export declare function getDeveloperWatchDisplay(): DeveloperWatchDisplay; export declare function resetDeveloperWatchDisplay(): void; //# sourceMappingURL=watch-display-v2.d.ts.map