MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAttributionRepoRoot

Function getAttributionRepoRoot

src/utils/commitAttribution.ts:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 * Falls back to getOriginalCwd() if git root can't be determined.
35 */
36export function getAttributionRepoRoot(): string {
37 const cwd = getCwd()
38 return findGitRoot(cwd) ?? getOriginalCwd()
39}
40
41// Cache for repo classification result. Primed once per process.
42// 'internal' = remote matches INTERNAL_MODEL_REPOS allowlist

Callers 8

normalizeFilePathFunction · 0.85
expandFilePathFunction · 0.85
getGitDiffSizeFunction · 0.85
isFileDeletedFunction · 0.85
getStagedFilesFunction · 0.85
isGitTransientStateFunction · 0.85

Calls 2

getCwdFunction · 0.85
getOriginalCwdFunction · 0.85

Tested by

no test coverage detected