MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / truncationNoteFor

Function truncationNoteFor

graph-ui/src/reader/file-source.ts:156–164  ·  view source on GitHub ↗
(lastLine: number, fileLastLine: number | undefined, cap: number | undefined)

Source from the content-addressed store, hash-verified

154 * bevor er einen Schluss daraus zieht, dass dort nichts steht.
155 */
156export function truncationNoteFor(lastLine: number, fileLastLine: number | undefined, cap: number | undefined): string {
157 const capPart = cap === undefined
158 ? 'server snippet cap'
159 : `server snippet cap of ${cap} lines`;
160 if (fileLastLine === undefined) {
161 return `lines after ${lastLine} not loaded: ${capPart} (get_code_snippet). The index did not record the file length.`;
162 }
163 return `lines ${lastLine + 1}-${fileLastLine} not loaded: ${capPart} (get_code_snippet). The window arguments are ignored by this server, so there is nothing to load them with.`;
164}
165
166/**
167 * Eine Datei laden: Namen ableiten, gegen den Graphen halten, Quelltext holen,

Callers 2

loadFileDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected