import { randomUUID } from "node:crypto";
export function generateId() {
    return randomUUID().replace(/-/g, "");
}
export function createId(prefix) {
    return `${prefix}_${randomUUID().replace(/-/g, "")}`;
}
export function toNameFromPath(input) {
    const normalized = input.replace(/\\/g, "/");
    const parts = normalized.split("/").filter(Boolean);
    return parts[parts.length - 1] ?? input;
}
