MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getDefaultBashTimeoutMs

Function getDefaultBashTimeoutMs

src/utils/timeouts.ts:12–21  ·  view source on GitHub ↗
(env: EnvLike = process.env)

Source from the content-addressed store, hash-verified

10 * @param env Environment variables to check (defaults to process.env for production use)
11 */
12export function getDefaultBashTimeoutMs(env: EnvLike = process.env): number {
13 const envValue = env.BASH_DEFAULT_TIMEOUT_MS
14 if (envValue) {
15 const parsed = parseInt(envValue, 10)
16 if (!isNaN(parsed) && parsed > 0) {
17 return parsed
18 }
19 }
20 return DEFAULT_TIMEOUT_MS
21}
22
23/**
24 * Get the maximum timeout for bash operations in milliseconds

Callers 3

getDefaultTimeoutMsFunction · 0.85
getDefaultTimeoutMsFunction · 0.85
getMaxBashTimeoutMsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected