/** * Logger Module * * Logs agentblame operations to ~/.agentblame/logs/YYYY-MM-DD.log * Each day gets a new log file. */ export type LogLevel = "debug" | "info" | "warn" | "error"; /** * Write a log entry to today's log file. * Only logs if setup has been run (logs directory exists). */ export declare function log(level: LogLevel, command: string, message: string, context?: Record): void; /** * Log an info message */ export declare function logInfo(command: string, message: string, context?: Record): void; /** * Log a debug message */ export declare function logDebug(command: string, message: string, context?: Record): void; /** * Log a warning message */ export declare function logWarn(command: string, message: string, context?: Record): void; /** * Log an error message */ export declare function logError(command: string, message: string, context?: Record): void; /** * Log command start */ export declare function logCommandStart(command: string, context?: Record): void; /** * Log command success */ export declare function logCommandSuccess(command: string, context?: Record): void; /** * Log command failure */ export declare function logCommandError(command: string, error: unknown, context?: Record): void; /** * Get recent log entries (for debugging) */ export declare function getRecentLogs(lines?: number): string[]; /** * Get all log files */ export declare function getLogFiles(): string[];