import { createDb } from "../packages/db/src/index.js"; async function run() { const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo"); const runs = await prisma.run.findMany({ orderBy: { createdAt: "desc" }, take: 6, include: { bot: true }, }); console.log("Recent runs:"); for (const r of runs) { console.log( `Bot: ${r.bot?.name.padEnd(25)} | Status: ${r.status.padEnd(10)} | Error: ${r.error} | RunId: ${r.id}`, ); } } run() .catch(console.error) .finally(() => process.exit(0));