(raw: string | undefined)
| 7 | export const MCP_PAUSED_SESSION_IDLE_TIMEOUT_ENV = "MCP_PAUSED_SESSION_IDLE_TIMEOUT_MS"; |
| 8 | |
| 9 | const positiveMilliseconds = (raw: string | undefined): number | undefined => { |
| 10 | if (!raw) return undefined; |
| 11 | const parsed = Number(raw); |
| 12 | if (!Number.isFinite(parsed) || parsed <= 0) return undefined; |
| 13 | return Math.floor(parsed); |
| 14 | }; |
| 15 | |
| 16 | export const ensureE2eMcpSessionTimeoutEnv = (): { |
| 17 | readonly sessionTimeoutMs: number; |
no outgoing calls
no test coverage detected