MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isValidSessionId

Function isValidSessionId

apps/cli/src/lib/utils/session-id.ts:3–5  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1const SESSION_ID_UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
2
3export function isValidSessionId(value: string): boolean {
4 return SESSION_ID_UUID_PATTERN.test(value)
5}

Callers 2

runFunction · 0.85
parseStdinStreamCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected