MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / isValidInstanceId

Function isValidInstanceId

packages/worker-utils/src/instance-id.ts:16–18  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

14
15/** Validate that a string is a lowercase UUID with dashes. */
16export function isValidInstanceId(id: string): boolean {
17 return UUID_RE.test(id);
18}
19
20/**
21 * Derive a sandboxId from an instanceId (the DB row UUID).

Callers 6

index.tsFile · 0.90
resolveSandboxIdFunction · 0.90
redeemCodeAndSetCookieFunction · 0.90
access-gateway.tsFile · 0.90
sandboxIdFromInstanceIdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected