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

Function normalizeWorkspaceKey

src/utils/log-paths.ts:39–48  ·  view source on GitHub ↗
(workspaceKey: string)

Source from the content-addressed store, hash-verified

37}
38
39function normalizeWorkspaceKey(workspaceKey: string): string {
40 const normalized = workspaceKey.trim();
41 if (!normalized) {
42 throw new Error('Workspace key cannot be empty');
43 }
44 if (normalized.includes('/') || normalized.includes('\\')) {
45 throw new Error(`Workspace key cannot contain path separators: ${workspaceKey}`);
46 }
47 return normalized;
48}
49
50export function getWorkspaceFilesystemLayout(workspaceKey: string): WorkspaceFilesystemLayout {
51 const normalizedWorkspaceKey = normalizeWorkspaceKey(workspaceKey);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected