(workspaceKey: string)
| 37 | } |
| 38 | |
| 39 | function 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 | |
| 50 | export function getWorkspaceFilesystemLayout(workspaceKey: string): WorkspaceFilesystemLayout { |
| 51 | const normalizedWorkspaceKey = normalizeWorkspaceKey(workspaceKey); |
no outgoing calls
no test coverage detected