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

Function getMaxTaskOutputLength

src/utils/task/outputFormatting.ts:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5export const TASK_MAX_OUTPUT_DEFAULT = 32_000
6
7export function getMaxTaskOutputLength(): number {
8 const result = validateBoundedIntEnvVar(
9 'TASK_MAX_OUTPUT_LENGTH',
10 process.env.TASK_MAX_OUTPUT_LENGTH,
11 TASK_MAX_OUTPUT_DEFAULT,
12 TASK_MAX_OUTPUT_UPPER_LIMIT,
13 )
14 return result.effective
15}
16
17/**
18 * Format task output for API consumption, truncating if too large.

Callers 1

formatTaskOutputFunction · 0.85

Calls 1

validateBoundedIntEnvVarFunction · 0.85

Tested by

no test coverage detected