MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / compactWorkspaceKey

Function compactWorkspaceKey

src/daemon/socket-path.ts:16–19  ·  view source on GitHub ↗
(workspaceKey: string)

Source from the content-addressed store, hash-verified

14let daemonRunDirOverrideForTests: string | null = null;
15
16function compactWorkspaceKey(workspaceKey: string): string {
17 const hashSuffix = workspaceKey.match(/-([a-f0-9]{12})$/u)?.[1];
18 return hashSuffix ?? shortWorkspaceHash(workspaceKey);
19}
20
21export function daemonRunDir(): string {
22 return daemonRunDirOverrideForTests ?? tmpdir();

Callers 1

daemonDirForWorkspaceKeyFunction · 0.85

Calls 1

shortWorkspaceHashFunction · 0.90

Tested by

no test coverage detected