@puberty-labs/clits
Version:
CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for AI-controlled Chrome browser automation, testing, and inspection. Features enhanced CSS selector support (:contains(), XPath), dry-run mode, element discovery tools, and co
22 lines (21 loc) • 551 B
TypeScript
export interface ExtractorOptions {
sourcePath: string;
patterns: string[];
maxFileSize?: number;
maxFiles?: number;
}
export interface ExtractedLog {
filePath: string;
content: string;
size: number;
lastModified: Date;
}
export declare class LogExtractor {
private options;
private static readonly DEFAULT_MAX_FILE_SIZE;
private static readonly DEFAULT_MAX_FILES;
constructor(options: ExtractorOptions);
extract(): Promise<ExtractedLog[]>;
private findLogFiles;
private extractSingleLog;
}