@hasna/projects
Version:
High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents
15 lines • 624 B
TypeScript
/**
* Event-loop watchdog for the Projects TUI.
*
* Mirrors apps/emails/src/cli/tui/watchdog.ts: a self-unreferenced interval
* that measures how far the event loop has drifted behind the expected tick
* cadence and reports any lag over the threshold, so a blocked renderer or a
* runaway store call shows up instead of freezing the UI silently.
*/
export interface EventLoopWatchdogOptions {
intervalMs?: number;
thresholdMs?: number;
onLag?: (lagMs: number) => void;
}
export declare function startEventLoopWatchdog(options?: EventLoopWatchdogOptions): () => void;
//# sourceMappingURL=watchdog.d.ts.map