evOo-local/scripts/check-specialists-output.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

57 lines
1.5 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 runs = await prisma.run.findMany({
where: {
id: {
in: [
"cmu7k4dc50016iryyrv036xze",
"cmu7k4db10012iryyuhfoukpt",
"cmu7k4d9n000yiryy0zz4obmq",
"cmu7k4d8k000uiryy086x000a",
],
},
},
include: {
bot: true,
thread: {
include: {
messages: {
orderBy: { seq: "desc" },
take: 1,
},
},
},
},
});
console.log("SPECIALIST BOT OUTPUTS:");
for (const r of runs) {
console.log(`\n=== ${r.bot?.name} [Status: ${r.status}] ===`);
const msg = r.thread?.messages[0];
if (msg && msg.role === "bot") {
console.log(JSON.stringify(msg.blocks, null, 2));
} else {
console.log("No completed bot message yet (still streaming/executing)");
}
}
const toolEvents = await prisma.event.findMany({
where: {
createdAt: { gte: new Date(Date.now() - 30_000) },
type: { in: ["tool.started", "tool.completed", "thread.progress"] },
},
orderBy: { createdAt: "desc" },
take: 10,
});
console.log(`\nRecent events count: ${toolEvents.length}`);
for (const e of toolEvents) {
console.log(`[${e.createdAt.toISOString()}] ${e.type} (Bot: ${e.botId})`);
}
}
run()
.catch(console.error)
.finally(() => process.exit(0));