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.
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
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: "cmu7jytii000firyyhkbjh9od" },
|
|
});
|
|
console.log("Run for seq 136:", {
|
|
id: run?.id,
|
|
status: run?.status,
|
|
createdAt: run?.createdAt,
|
|
completedAt: run?.completedAt,
|
|
error: run?.error,
|
|
});
|
|
|
|
const events = await prisma.event.findMany({
|
|
where: { runId: "cmu7jytii000firyyhkbjh9od" },
|
|
orderBy: { createdAt: "asc" },
|
|
});
|
|
console.log("Events count:", events.length);
|
|
for (const e of events) {
|
|
console.log(
|
|
`[${e.createdAt.toISOString()}] ${e.type} (payload: ${e.payload ? JSON.stringify(e.payload).slice(0, 100) : "none"})`,
|
|
);
|
|
}
|
|
|
|
const latestMsg = await prisma.message.findFirst({
|
|
where: { threadId: "cmu6ydgme0001ywyy269411bb" },
|
|
orderBy: { seq: "desc" },
|
|
});
|
|
console.log("Latest msg in thread:", {
|
|
seq: latestMsg?.seq,
|
|
role: latestMsg?.role,
|
|
blocks: latestMsg?.blocks,
|
|
});
|
|
}
|
|
|
|
run()
|
|
.catch(console.error)
|
|
.finally(() => process.exit(0));
|