MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getParseTimeoutMs

Function getParseTimeoutMs

source code/utils/powershell/parser.ts:210–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208// top-level, per CLAUDE.md (globalSettings.env ordering).
209const DEFAULT_PARSE_TIMEOUT_MS = 5_000
210function getParseTimeoutMs(): number {
211 const env = process.env.CLAUDE_CODE_PWSH_PARSE_TIMEOUT_MS
212 if (env) {
213 const parsed = parseInt(env, 10)
214 if (!isNaN(parsed) && parsed > 0) return parsed
215 }
216 return DEFAULT_PARSE_TIMEOUT_MS
217}
218// MAX_COMMAND_LENGTH is derived from PARSE_SCRIPT_BODY.length below (after the
219// script body is defined) so it cannot go stale as the script grows.
220

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected