MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / positiveMilliseconds

Function positiveMilliseconds

e2e/setup/sandbox-timeout.ts:18–23  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

16const PRODUCTION_SANDBOX_TIMEOUT_MS = 5 * 60_000;
17
18const 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. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected