(raw: string | undefined)
| 16 | const PRODUCTION_SANDBOX_TIMEOUT_MS = 5 * 60_000; |
| 17 | |
| 18 | const positiveMilliseconds = (raw: string | undefined): number | undefined => { |
| 19 | if (!raw) return undefined; |
| 20 | const parsed = Number(raw); |
| 21 | if (!Number.isFinite(parsed) || parsed <= 0) return undefined; |
| 22 | return Math.floor(parsed); |
| 23 | }; |
| 24 | |
| 25 | /** The sandbox budget the current target enforces: the harness override when |
| 26 | * the target was booted with one, else the production default. */ |
no outgoing calls
no test coverage detected