evOo-local/scripts/check-seq136-run.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

26 lines
696 B
TypeScript

import { createDb } from "../packages/db/src/index.js";
async function run() {
const { prisma } = createDb("postgres://ingowagner@127.0.0.1:5432/evoo");
const msg136 = await prisma.message.findFirst({
where: { seq: 136, threadId: "cmu6ydgme0001ywyy269411bb" },
});
console.log("Msg 136:", msg136);
const runs = await prisma.run.findMany({
where: { sourceMessageId: msg136?.id },
include: { events: true },
});
console.log("Runs for msg 136:", runs);
const latestRuns = await prisma.run.findMany({
orderBy: { createdAt: "desc" },
take: 3,
});
console.log("Latest 3 runs:", latestRuns);
}
run()
.catch(console.error)
.finally(() => process.exit(0));