import { createDb } from "../packages/db/src/index.js"; async function run() { const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo"); const events = await prisma.event.findMany({ where: { runId: "cmu7jw8dr000biryyrethbore" }, orderBy: { createdAt: "desc" }, take: 10, }); console.log("Run cmu7jw8dr000biryyrethbore events count:", events.length); for (const e of events.reverse()) { console.log(`[${e.createdAt.toISOString()}] ${e.type}: ${JSON.stringify(e.data)}`); } const run = await prisma.run.findUnique({ where: { id: "cmu7jw8dr000biryyrethbore" }, }); console.log("Status:", run?.status, "completedAt:", run?.completedAt, "error:", run?.error); } run() .catch(console.error) .finally(() => process.exit(0));