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

Function getMaxOutputLength

source code/utils/shell/outputLimits.ts:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 3

getPromptFunction · 0.85
formatOutputFunction · 0.85
#readStdoutFromFileMethod · 0.85

Calls 1

validateBoundedIntEnvVarFunction · 0.85

Tested by

no test coverage detected