MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / indexedHashInput

Function indexedHashInput

src/file-limits.ts:30–32  ·  view source on GitHub ↗
(size: number, content: () => string)

Source from the content-addressed store, hash-verified

28 * over the limit reads as drifted. `content` is only read within the limit.
29 */
30export function indexedHashInput(size: number, content: () => string): string {
31 return size > MAX_SOURCE_FILE_SIZE_BYTES ? oversizeStamp(size) : content();
32}
33
34/**
35 * A source file's text, or null for what extraction wouldn't take: anything but

Callers 4

hasDriftedOnDiskFunction · 0.90
readFileShapeFunction · 0.90
buildSourceFunction · 0.90
fileDriftFunction · 0.90

Calls 2

oversizeStampFunction · 0.85
contentFunction · 0.50

Tested by

no test coverage detected