(timeoutMs: number)
| 83 | |
| 84 | /** Derive a heartbeat cadence that emits several beats inside the timeout window. */ |
| 85 | export function deriveCheckIntervalMs(timeoutMs: number): number { |
| 86 | return Math.min(2000, Math.max(50, Math.round(timeoutMs / 5))); |
| 87 | } |
| 88 | |
| 89 | /** Arming/teardown diagnostics, gated on the existing MCP debug switch. */ |
| 90 | function debug(msg: string): void { |
no outgoing calls
no test coverage detected