MCPcopy Index your code
hub / github.com/devploit/debugHunter / truncateForStorage

Function truncateForStorage

background.js:554–556  ·  view source on GitHub ↗
(text, max = 5000)

Source from the content-addressed store, hash-verified

552}
553
554function truncateForStorage(text, max = 5000) {
555 return text.length <= max ? text : text.substring(0, max) + '\n... [truncated]';
556}
557
558// ============================================================================
559// BASELINE CACHE FOR PARAMS/HEADERS (avoid duplicate requests)

Callers 3

checkParamsFunction · 0.85
checkHeadersFunction · 0.85
checkPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected