MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / approxLineCount

Function approxLineCount

src/agent/read-cache.ts:84–87  ·  view source on GitHub ↗
(content: string | null)

Source from the content-addressed store, hash-verified

82}
83
84function approxLineCount(content: string | null): number | null {
85 if (!content) return null;
86 return (content.match(/\n/g)?.length ?? 0) + 1;
87}
88
89function supersededStub(path: string): string {
90 return `${STUB_MARK} Full content of ${path} elided to save context — this same file is read again later in the conversation (use that copy), or call read_file again if you need it now.`;

Callers 1

agedStubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected