()
| 206 | // top-level, per CLAUDE.md (globalSettings.env ordering). |
| 207 | const DEFAULT_PARSE_TIMEOUT_MS = 5_000 |
| 208 | function 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 |
no outgoing calls
no test coverage detected