@presidio-dev/factifai-agent
Version:
An AI powered browser automation testing agent powered by LLMs.
71 lines • 2.08 kB
TypeScript
/**
* A service for managing console output with track action display always at the bottom
*/
export declare class ConsoleDisplayService {
private static instance;
private trackActionContent;
private trackActionActive;
private lastTrackActionLines;
private isUpdating;
private readonly originalConsoleLog;
private readonly originalConsoleWarn;
private readonly originalConsoleError;
private terminalWidth;
private isResizing;
private resizeTimeout;
private constructor();
/**
* Get the singleton instance
*/
static getInstance(): ConsoleDisplayService;
/**
* Calculate how many terminal lines a string will take due to wrapping
*/
private calculateLines;
/**
* Calculate total lines required for all content
*/
private calculateTotalLines;
/**
* Override console methods to ensure track action display stays at bottom
*/
private setupConsoleOverrides;
/**
* Standard log function
*/
log(message: string, type?: "info" | "warn" | "error" | "success"): void;
/**
* Safely move cursor up with a maximum limit
*/
private safeCursorUp;
/**
* Clear the track action display area
*/
private clearTrackActionDisplay;
/**
* Redraw the track action display
*/
private redrawTrackActionDisplay;
/**
* Update the track action display with new content
* @param content Array of lines to display in the track action area
*/
updateTrackActionDisplay(content: string[]): void;
/**
* Clean up the track action display and restore original console methods
*/
cleanup(): void;
}
export declare const enhancedLogger: {
service: ConsoleDisplayService;
info(message: string): void;
warn(message: string): void;
error(message: string): void;
success(message: string): void;
trackAction(content: string[]): void;
/**
* Clean up the track action display
*/
cleanup(): void;
};
//# sourceMappingURL=console-display-service.d.ts.map