MCPcopy Create free account
hub / github.com/cursor/cookbook / shortenValue

Function shortenValue

sdk/coding-agent-cli/src/agent.ts:596–602  ·  view source on GitHub ↗
(value: string, maxLength = 80)

Source from the content-addressed store, hash-verified

594}
595
596function shortenValue(value: string, maxLength = 80) {
597 if (value.length <= maxLength) {
598 return value
599 }
600
601 return `${value.slice(0, maxLength - 3)}...`
602}

Callers 1

formatArgValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected