MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / getTrackedRootPathByKey

Function getTrackedRootPathByKey

src/index.ts:293–302  ·  view source on GitHub ↗
(rootKey: string)

Source from the content-addressed store, hash-verified

291}
292
293function getTrackedRootPathByKey(rootKey: string): string | undefined {
294 if (knownRoots.has(rootKey)) {
295 return knownRoots.get(rootKey)?.rootPath;
296 }
297
298 const project = Array.from(getAllProjects()).find(
299 (entry) => normalizeRootKey(entry.rootPath) === rootKey
300 );
301 return project?.rootPath;
302}
303
304function forgetProjectPath(rootPath: string): void {
305 const rootKey = normalizeRootKey(rootPath);

Callers 4

syncKnownRootsFunction · 0.85
resolveProjectForToolFunction · 0.85

Calls 4

getAllProjectsFunction · 0.85
normalizeRootKeyFunction · 0.85
hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected