Onboarding: emoji-first flow with shape/color selection, user preferences, language setup (9 locales), and bot creation with avatarValue persistence. executor.ts: split 4928→4159 lines into 8 modules (completion, computer, effects, model, utils, tools, attachments, types). pi-runtime.ts: split 1726→561 lines into 2 modules (model-config, tool-utils). E2E: new onboarding-emoji-first tests + updated completeOnboarding helper.
29 lines
920 B
TypeScript
29 lines
920 B
TypeScript
import { createDb } from "./src/client";
|
|
|
|
process.env.DATABASE_URL = "postgres://rakazo:rakazodev@127.0.0.1:5433/rakazo";
|
|
const { prisma: db } = createDb(process.env.DATABASE_URL, { applicationName: "check-users" });
|
|
|
|
const allUsers = await db.user.findMany({
|
|
select: { id: true, email: true, name: true, createdAt: true, emailVerified: true },
|
|
orderBy: { createdAt: 'desc' },
|
|
});
|
|
|
|
console.log("All users:", JSON.stringify(allUsers, null, 2));
|
|
|
|
// Check spaces
|
|
const allSpaces = await db.space.findMany({
|
|
select: { id: true, name: true, ownerId: true, createdAt: true },
|
|
orderBy: { createdAt: 'desc' },
|
|
});
|
|
|
|
console.log("\nAll spaces:", JSON.stringify(allSpaces, null, 2));
|
|
|
|
// Check space members
|
|
const allMembers = await db.spaceMember.findMany({
|
|
select: { id: true, spaceId: true, userId: true, role: true },
|
|
});
|
|
|
|
console.log("\nAll members:", JSON.stringify(allMembers, null, 2));
|
|
|
|
await db.$disconnect();
|