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

Function displayFile

graph-ui/src/ir/semantic-ir-builder.ts:128–132  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

126
127/** Last path segment of a URI or path, for the purpose sentence. */
128export function displayFile(uri: string): string {
129 const path = uri.split('?')[0].split('#')[0];
130 const segments = path.split('/');
131 return decodeURIComponent(segments[segments.length - 1] || path);
132}
133
134/**
135 * The one sentence the twin leads with.

Callers 1

purposeSentenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected