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