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

Function idPart

graph-ui/src/architecture/container-topology.ts:60–60  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

58const tidy = (value: string): string => value.replace(/[\u0000-\u001f\u007f]/g, '').slice(0, 180);
59const unique = <T>(values: T[]): T[] => [...new Set(values)];
60const idPart = (value: string): string => encodeURIComponent(value);
61
62function normal(path: string): string {
63 const absolute = path.startsWith('/') || /^[A-Za-z]:[\\/]/.test(path);

Callers 1

parseServicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected