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

Function hashScopeRoot

src/daemon/session-routing.ts:66–68  ·  view source on GitHub ↗
(scopeRoot: string)

Source from the content-addressed store, hash-verified

64}
65
66function hashScopeRoot(scopeRoot: string): string {
67 return crypto.createHash('sha256').update(scopeRoot).digest('hex').slice(0, 16);
68}
69
70function resolveCallerScopeRoot(rawCwd: string | undefined): string | undefined {
71 if (!rawCwd || rawCwd.trim().length === 0) return undefined;

Callers 1

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…