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

Function applyTruncation

src/utils/processUserInput/processUserInput.ts:274–279  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

272const MAX_HOOK_OUTPUT_LENGTH = 10000
273
274function applyTruncation(content: string): string {
275 if (content.length > MAX_HOOK_OUTPUT_LENGTH) {
276 return `${content.substring(0, MAX_HOOK_OUTPUT_LENGTH)}… [output truncated - exceeded ${MAX_HOOK_OUTPUT_LENGTH} characters]`
277 }
278 return content
279}
280
281async function processUserInputBase(
282 input: string | Array<ContentBlockParam>,

Callers 1

processUserInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected