MCPcopy Index your code
hub / github.com/codeaashu/claude-code / validateUuid

Function validateUuid

src/utils/uuid.ts:12–17  ·  view source on GitHub ↗
(maybeUuid: unknown)

Source from the content-addressed store, hash-verified

10 * @returns string as UUID or null if it is not valid
11 */
12export function validateUuid(maybeUuid: unknown): UUID | null {
13 // UUID format: 8-4-4-4-12 hex digits
14 if (typeof maybeUuid !== 'string') return null
15
16 return uuidRegex.test(maybeUuid) ? (maybeUuid as UUID) : null
17}
18
19/**
20 * Generate a new agent ID with prefix for consistency with task IDs.

Callers 8

getSessionFilesWithMtimeFunction · 0.70
listCandidatesFunction · 0.70
parseSessionIdentifierFunction · 0.70
runFunction · 0.50
validateLogIdFunction · 0.50
handleSelectFunction · 0.50
callFunction · 0.50
runHeadlessFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected