Update features and dependencies

This commit is contained in:
Arnaud
2026-07-01 11:10:37 +02:00
parent 9d9dfb46c6
commit 8b57a3fd87
107 changed files with 14654 additions and 458 deletions
+14
View File
@@ -0,0 +1,14 @@
import { db, users, eq } from "@epicure/db";
export async function getUserPrivateBio(userId: string): Promise<string | null> {
const row = await db.query.users.findFirst({
where: eq(users.id, userId),
columns: { privateBio: true },
});
return row?.privateBio ?? null;
}
export function buildUserBioContext(privateBio: string | null): string {
if (!privateBio?.trim()) return "";
return `\n\nUser preferences and context:\n${privateBio.trim()}`;
}