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
387 B
JavaScript
14 lines
387 B
JavaScript
import { createPool, createDb } from "./src/client.js";
|
|
|
|
const pool = createPool(process.env.DATABASE_URL, { applicationName: "query-users" });
|
|
const db = createDb(pool);
|
|
|
|
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));
|
|
await db.$disconnect();
|