MCPcopy Index your code
hub / github.com/arctic-cli/interface / parseInterval

Function parseInterval

packages/arctic/src/auth/codex.ts:92–103  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

90 }
91
92 function parseInterval(value: unknown): number {
93 if (typeof value === "number" && Number.isFinite(value)) {
94 return value
95 }
96 if (typeof value === "string") {
97 const parsed = parseInt(value.trim(), 10)
98 if (!Number.isNaN(parsed)) {
99 return parsed
100 }
101 }
102 return 5
103 }
104
105 function resolveCodexHome(): string {
106 const envPath = process.env.CODEX_HOME?.trim()

Callers 1

requestUserCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected