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

Function missingLabel

graph-ui/src/twin/selected-code-context.ts:13–19  ·  view source on GitHub ↗
(error: unknown, label: string)

Source from the content-addressed store, hash-verified

11] as const satisfies readonly (readonly [string, CodeAtlasSymbolKind])[];
12
13function missingLabel(error: unknown, label: string): boolean {
14 if (!(error instanceof EngineError)) return false;
15 // Only an explicit absent-label answer is benign. Permissions, a missing
16 // project and transport failures must remain partial/error results.
17 return new RegExp(`(?:unknown|unrecognized|missing|no such) (?:node )?label[ :'"]+${label}\\b|(?:node )?label[ :'"]+${label}['"]? (?:not found|does not exist)`, 'i')
18 .test(error.message);
19}
20
21export interface FileSymbolResult {
22 /** Declaration navigation targets; ranges are not complete symbol spans. */

Callers 1

loadFileSymbolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected