MCPcopy
hub / github.com/claude-code-best/claude-code / getParseTimeoutMs

Function getParseTimeoutMs

src/utils/powershell/parser.ts:208–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected