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

Function registerDiscoveredProjectPath

src/index.ts:280–287  ·  view source on GitHub ↗
(
  rootPath: string,
  source: ProjectDescriptor['source'] = 'subdirectory'
)

Source from the content-addressed store, hash-verified

278}
279
280function registerDiscoveredProjectPath(
281 rootPath: string,
282 source: ProjectDescriptor['source'] = 'subdirectory'
283): void {
284 const resolvedRootPath = path.resolve(rootPath);
285 discoveredProjectPaths.set(normalizeRootKey(resolvedRootPath), resolvedRootPath);
286 rememberProjectPath(resolvedRootPath, source, { touch: false });
287}
288
289function clearDiscoveredProjectPaths(): void {
290 discoveredProjectPaths.clear();

Calls 3

normalizeRootKeyFunction · 0.85
rememberProjectPathFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected