@hivetechs/hive-ai
Version:
Real-time streaming AI consensus platform with HTTP+SSE MCP integration for Claude Code, VS Code, Cursor, and Windsurf - powered by OpenRouter's unified API
56 lines • 1.74 kB
TypeScript
/**
* Logging utility for Hive.AI
*
* Provides a consistent logging interface with support for different verbosity levels
* and command execution tracking
*/
export declare enum LogLevel {
QUIET = 0,// Only show final results and critical errors
ERROR = 1,// Show errors plus final results
WARN = 2,// Show warnings and errors
INFO = 3,// Show general information
DEBUG = 4,// Show detailed debugging info
TRACE = 5
}
/**
* Start tracking a command execution
*/
export declare function startCommand(commandName: string): void;
/**
* End tracking a command execution and show completion message
*/
export declare function endCommand(success?: boolean): void;
/**
* Set the global log level
*/
export declare function setLogLevel(level: LogLevel): void;
/**
* Set whether to show detailed provider errors
*/
export declare function setShowProviderErrors(show: boolean): void;
/**
* Log a message if the current log level is sufficient
*/
export declare function log(level: LogLevel, message: string, error?: any): void;
/**
* Display a result message that will always be shown regardless of log level
*/
export declare function showResult(message: string): void;
/**
* Shorthand logging methods
*/
export declare const logger: {
error: (message: string, error?: any) => void;
warn: (message: string) => void;
info: (message: string) => void;
debug: (message: string) => void;
trace: (message: string) => void;
result: (message: string) => void;
startCommand: typeof startCommand;
endCommand: typeof endCommand;
};
/**
* Format a list of topics for display
*/
export declare function formatTopicList(topics: string[]): string;
//# sourceMappingURL=logging.d.ts.map