import { randomUUID } from "node:crypto";
export function createId(prefix) {
    return `${prefix}_${randomUUID().replaceAll("-", "").slice(0, 16)}`;
}
export function createRunId(date = new Date()) {
    const stamp = date.toISOString().replace(/[-:.TZ]/g, "").slice(0, 14);
    return `seed_${stamp}_${randomUUID().slice(0, 8)}`;
}
export function normalizeId(value) {
    return value.trim().replace(/[^a-zA-Z0-9_.-]/g, "_").slice(0, 120);
}
//# sourceMappingURL=ids.js.map