MCPcopy Create free account
hub / github.com/callstack/agent-device / resolveCallerScopeRoot

Function resolveCallerScopeRoot

src/daemon/session-routing.ts:70–74  ·  view source on GitHub ↗
(rawCwd: string | undefined)

Source from the content-addressed store, hash-verified

68}
69
70function resolveCallerScopeRoot(rawCwd: string | undefined): string | undefined {
71 if (!rawCwd || rawCwd.trim().length === 0) return undefined;
72 const cwd = resolveExistingPath(rawCwd);
73 return findGitWorktreeRoot(cwd) ?? cwd;
74}
75
76function resolveExistingPath(rawPath: string): string {
77 const resolved = path.resolve(rawPath);

Callers 1

Calls 2

resolveExistingPathFunction · 0.85
findGitWorktreeRootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…