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.
14 lines
458 B
TypeScript
14 lines
458 B
TypeScript
import { createDb } from "./src/client";
|
|
|
|
// Override to port 5433 (Docker published port)
|
|
process.env.DATABASE_URL = "postgres://rakazo:rakazodev@127.0.0.1:5433/rakazo";
|
|
const { prisma: db } = createDb(process.env.DATABASE_URL, { applicationName: "query-users" });
|
|
|
|
const users = await db.user.findMany({
|
|
orderBy: { createdAt: 'desc' },
|
|
take: 10,
|
|
select: { email: true, name: true, createdAt: true },
|
|
});
|
|
|
|
console.log(JSON.stringify(users, null, 2));
|