UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

26 lines • 1.17 kB
export type McpLogLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency"; export type McpLogChannel = "client" | "server" | "stderr" | "file"; export interface McpLogLevelMapping { level: McpLogLevel; severity: number; } export interface McpLogger { readonly filePath: string; debug(message: string, data?: unknown): void; info(message: string, data?: unknown): void; warn(message: string, data?: unknown): void; error(message: string, data?: unknown): void; stderr(message: string, data?: unknown): void; log(level: string, message: string, data?: unknown, channel?: McpLogChannel): void; getRingBuffer(): string[]; } export interface McpLoggerOptions { logDir?: string; maxFileBytes?: number; } export declare function createMcpLogger(server: string, options?: McpLoggerOptions): McpLogger; export declare function getMcpLogDir(): string; export declare function fingerprintSecret(secret: string): string; export declare function redactMcpLogText(text: string): string; export declare function mapMcpLogLevel(level: string): McpLogLevelMapping; //# sourceMappingURL=log.d.ts.map