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

Function getMaxOutputLength

src/utils/shell/outputLimits.ts:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4export const BASH_MAX_OUTPUT_DEFAULT = 30_000
5
6export function getMaxOutputLength(): number {
7 const result = validateBoundedIntEnvVar(
8 'BASH_MAX_OUTPUT_LENGTH',
9 process.env.BASH_MAX_OUTPUT_LENGTH,
10 BASH_MAX_OUTPUT_DEFAULT,
11 BASH_MAX_OUTPUT_UPPER_LIMIT,
12 )
13 return result.effective
14}
15

Callers 3

getPromptFunction · 0.85
formatOutputFunction · 0.85
#readStdoutFromFileMethod · 0.85

Calls 1

validateBoundedIntEnvVarFunction · 0.85

Tested by

no test coverage detected