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.
28 lines
781 B
TypeScript
28 lines
781 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 steve = await prisma.bot.findFirst({ where: { name: "Steve Jobs" } });
|
|
const allBots = await prisma.bot.findMany({
|
|
select: {
|
|
id: true,
|
|
name: true,
|
|
userId: true,
|
|
spaceId: true,
|
|
archivedAt: true,
|
|
thread: { select: { id: true } },
|
|
},
|
|
});
|
|
console.log("Steve userId:", steve?.userId, "spaceId:", steve?.spaceId);
|
|
console.log("All bots:");
|
|
for (const b of allBots) {
|
|
console.log(
|
|
`Bot: ${b.name} (${b.id}) | userId: ${b.userId} | spaceId: ${b.spaceId} | thread: ${b.thread?.id}`,
|
|
);
|
|
}
|
|
}
|
|
|
|
run()
|
|
.catch(console.error)
|
|
.finally(() => process.exit(0));
|