// Canonical lowercase-or-uppercase UUID regex. The same shape appears in
// several places across the codebase (e.g. ui/server/routes/admin/files.ts).
// introduced this shared export so newly-added env validation in
// conversation-archive-ingest.mjs references one constant rather than
// inlining the pattern again. Other historical sites stay as-is —
// refactoring all callers is a separate cleanup; this file is the
// canonical home for new readers.
export const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
export function isUuid(value) {
    return typeof value === "string" && UUID_REGEX.test(value);
}
//# sourceMappingURL=uuid.js.map