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

Function relativeSource

graph-ui/src/architecture/ContainerMap.tsx:28–31  ·  view source on GitHub ↗
(absolute: string, selection: ContainerSelection)

Source from the content-addressed store, hash-verified

26}
27const evidenceLabel = (kind: string) => kind === 'startup' ? 'Startup dependency' : kind === 'configuration' ? 'Configured destination' : 'Call found in source';
28const relativeSource = (absolute: string, selection: ContainerSelection) => {
29 const prefix = selection.inventory.rootPath.replaceAll('\\', '/').replace(/\/$/, '') + '/';
30 return absolute.startsWith(prefix) ? absolute.slice(prefix.length) : undefined;
31};
32
33export default function ContainerMap({ project, generation, active, filter, onNavigate, onClearSelection, onSelectionEvidence, onShowEndpoints, navigation }: Props) {
34 const [available, setAvailable] = useState<ProjectEntry[]>([]);

Callers 1

ContainerMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected