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

Function readerUnavailableNote

graph-ui/src/app/coverage-strings.ts:116–136  ·  view source on GitHub ↗
(path: string, state: CoverageState, reason = '')

Source from the content-addressed store, hash-verified

114 * heutige Server-Flaeche und nicht ueber die Datei.
115 */
116export function readerUnavailableNote(path: string, state: CoverageState, reason = ''): string {
117 const trimmed = reason.trim();
118 const why =
119 state === 'skipped'
120 ? trimmed.length > 0
121 ? `the indexer skipped it (${trimmed})`
122 : 'the indexer skipped it and named no reason'
123 : state === 'ignored'
124 ? trimmed.length > 0
125 ? `the coverage store lists it as ignored (${trimmed})`
126 : 'the coverage store lists it as ignored'
127 : trimmed.length > 0
128 ? `it is excluded by design (${trimmed})`
129 : 'it is excluded by design and the server named no rule';
130 return (
131 `${path} has no content here: ${why}, so the index holds no module node for it. `
132 + 'This server delivers file content only through get_code_snippet on an indexed symbol, '
133 + 'so there is nothing to read until a file endpoint exists (Upstream-Ask 1). '
134 + 'The file itself is on disk; this surface simply cannot show it.'
135 );
136}
137
138/** Die Notiz ueber dem Editor, wenn nur Teile der Datei im Graphen stehen. */
139export function partialFileNote(path: string, reason = ''): string {

Callers 2

ProjectWindowViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected