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.
35 lines
855 B
TypeScript
35 lines
855 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 msgs = await prisma.message.findMany({
|
|
where: {
|
|
thread: {
|
|
bot: {
|
|
name: {
|
|
in: ["Apex Quant", "Code Architect", "DevOps Engineer", "Security & QA Auditor"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
orderBy: { createdAt: "desc" },
|
|
include: {
|
|
thread: {
|
|
include: { bot: true },
|
|
},
|
|
},
|
|
});
|
|
|
|
console.log(`Total messages across the 4 bots: ${msgs.length}`);
|
|
for (const m of msgs) {
|
|
console.log(
|
|
`[${m.createdAt.toISOString()}] Bot: ${m.thread?.bot?.name} | Role: ${m.role} | Seq: ${m.seq}`,
|
|
);
|
|
console.log(JSON.stringify(m.blocks));
|
|
}
|
|
}
|
|
|
|
run()
|
|
.catch(console.error)
|
|
.finally(() => process.exit(0));
|