@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
21 lines • 994 B
TypeScript
import type { ServerConnection } from "./connection.ts";
import type { McpLogger } from "./log.ts";
export declare const MCP_RECONNECT_BACKOFF_MS: readonly [500, 1000, 2000, 4000, 8000];
export declare const MCP_RECONNECT_BREAKER_WINDOW_MS = 30000;
export declare const MCP_RECONNECT_BREAKER_ATTEMPTS = 5;
interface McpReconnectOptions {
readonly connection: ServerConnection;
readonly logger: McpLogger;
readonly reconnect: () => Promise<void>;
readonly shouldReconnect?: () => boolean;
readonly random?: () => number;
}
export declare function configureMcpReconnect(options: McpReconnectOptions): void;
export declare function disposeMcpReconnect(connection: ServerConnection): void;
export declare function reconnectMcpNow(connection: ServerConnection): Promise<void>;
export declare function getMcpReconnectDebugSnapshot(connection: ServerConnection): {
attemptsInWindow: number;
timerHasRef: boolean | null;
};
export {};
//# sourceMappingURL=reconnect.d.ts.map