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