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

Function getKnownRootLabel

src/index.ts:237–239  ·  view source on GitHub ↗
(rootPath: string)

Source from the content-addressed store, hash-verified

235}
236
237function getKnownRootLabel(rootPath: string): string | undefined {
238 return knownRoots.get(normalizeRootKey(rootPath))?.label;
239}
240
241function getContainingKnownRoot(rootPath: string): string | undefined {
242 const orderedRoots = getKnownRootPaths().sort((a, b) => b.length - a.length);

Callers 2

formatProjectLabelFunction · 0.85
listProjectDescriptorsFunction · 0.85

Calls 2

normalizeRootKeyFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected