evOo-local/scripts/check-chief-group-finish.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

32 lines
794 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 group = await prisma.chatGroup.findFirst({
where: { name: "Executive Board" },
include: {
thread: {
include: {
messages: {
orderBy: { seq: "desc" },
take: 2,
},
},
},
},
});
const latestMsg = group?.thread?.messages[0];
console.log("Chief Message in Executive Board:");
console.log(JSON.stringify(latestMsg?.blocks, null, 2));
const run = await prisma.run.findUnique({
where: { id: "cmu7k3m4x000qiryyt59ju2n0" },
});
console.log("Run status:", run?.status);
}
run()
.catch(console.error)
.finally(() => process.exit(0));