MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / parseOptionalSeconds

Function parseOptionalSeconds

packages/codex-native-api/src/cli_options.ts:76–79  ·  view source on GitHub ↗
(value: string | null | undefined)

Source from the content-addressed store, hash-verified

74}
75
76export function parseOptionalSeconds(value: string | null | undefined): number | null {
77 const parsed = Number.parseFloat(String(value ?? '').trim());
78 return Number.isFinite(parsed) && parsed >= 0 ? parsed : null;
79}
80
81export function parseOptionalBoolean(value: unknown, fallback = false): boolean {
82 if (typeof value === 'boolean') {

Callers 2

buildDaemonInstallPlanFunction · 0.85
parseDaemonCommandArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected