MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getProjectPathLookupKeys

Function getProjectPathLookupKeys

sdk/src/tools/path-utils.ts:33–41  ·  view source on GitHub ↗
(
  projectRoot: string,
  filePath: string,
)

Source from the content-addressed store, hash-verified

31}
32
33export function getProjectPathLookupKeys(
34 projectRoot: string,
35 filePath: string,
36): string[] {
37 const resolvedPath = resolveFilePathWithinProject(projectRoot, filePath)
38 const keys = resolvedPath ? [resolvedPath.relativePath, filePath] : [filePath]
39
40 return [...new Set(keys)]
41}

Callers 2

runOnceFunction · 0.90
path-utils.test.tsFile · 0.90

Calls 1

Tested by

no test coverage detected