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

Function indexedHashInput

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

Source from the content-addressed store, hash-verified

35 * over the limit reads as drifted. `content` is only read within the limit.
36 */
37export function indexedHashInput(size: number, content: () => string): string {
38 return size > MAX_SOURCE_FILE_SIZE_BYTES ? oversizeStamp(size) : content();
39}
40
41/**
42 * 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