MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / normalizeRelativePath

Function normalizeRelativePath

src/tools/semantic-identifiers.ts:141–143  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

139}
140
141function normalizeRelativePath(path: string): string {
142 return path.replace(/\\/g, "/");
143}
144
145function removeFileScopedCacheEntries(cache: EmbeddingCache, relativePath: string): void {
146 const definitionPrefix = `id:${relativePath}:`;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected