Initial commit — ClawChat v1.0.0

This commit is contained in:
Nicolas Varrot
2026-02-11 00:48:43 +00:00
commit 1f8ff9ae0a
30 changed files with 7862 additions and 0 deletions

15
src/lib/utils.ts Normal file
View File

@@ -0,0 +1,15 @@
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
let counter = 0;
export function genId(prefix = 'req') {
return `${prefix}-${++counter}-${Date.now()}`;
}
export function genIdempotencyKey() {
return `${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
}