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

Function normalizedPath

graph-ui/src/galaxy/reader-graph-focus.ts:7–7  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

5
6export interface SourceFocusRange { startLine: number; endLine: number }
7const normalizedPath = (path: string) => (path.startsWith('file:') ? workspacePathOf(path) : path).replace(/\\/g, '/').replace(/^\.\//, '');
8
9/** Cursor movement alone is not an explicit graph selection. */
10export function markedSourceRange(selection: Omit<ReaderSelection, 'sourceVersion'> | undefined, filePath: string): SourceFocusRange | undefined {

Callers 3

markedSourceRangeFunction · 0.70
symbolMatchesReaderFunction · 0.70
readerGraphFocusFunction · 0.70

Calls 1

workspacePathOfFunction · 0.90

Tested by

no test coverage detected