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