refactor(ux): consolidate BMAD skills, update design system, and clean up Prisma generated client

This commit is contained in:
Sepehr Ramezani
2026-04-19 19:21:27 +02:00
parent 5296c4da2c
commit 25529a24b8
2476 changed files with 127934 additions and 101962 deletions

View File

@@ -0,0 +1,26 @@
import { prisma } from './lib/prisma';
import { getSystemConfig } from './lib/config';
import { getAIProvider } from './lib/ai/factory';
async function run() {
const config = await getSystemConfig();
const provider = getAIProvider(config);
const currentMessages = [
{ role: 'user', content: 'hello' },
{ role: 'assistant', content: 'Hi there' },
{ role: 'user', content: 'help me' }
];
const systemPrompt = "Tu es l'assistant de Keep Notes.";
try {
const aiResponse = await provider.chat(currentMessages, systemPrompt);
console.log("SUCCESS:", aiResponse.text.substring(0, 100));
} catch (err: any) {
console.error("FAILURE:", err.message);
if (err.cause) console.error("CAUSE:", err.cause);
if (err.data) console.error("DATA:", err.data);
}
}
run();