Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.
TypeScript agent-harnessagent-harness-engineeringai-engineeringai-observabilityamd-gpuclaude-codeclickhousecodexcoding-agentcoding-agentscursorgenaigpu-monitoringllm-observabilityllmopsnvidia-smiobservabilityopen-sourceopenaiopentelemetry
chore: opt-in PR validation workflow for coding agents (#1898)
Aman Agarwalec2639f8c2ff
diff --git a/.claude/skills/pr-validation/SKILL.md b/.claude/skills/pr-validation/SKILL.mdnew file mode 100644index 00000000..1c8d116b--- /dev/null+++ b/.claude/skills/pr-validation/SKILL.md@@ -0,0 +1,18 @@+---+name: pr-validation+description: Full validation workflow for an OpenLIT pull request (security and auth testing across organisations, projects, connectors, and environments; functionality and shortcomings; scale testing with mock data; hard-coded strings; CE/EE docs and code separation; reusable components; design principles; cross-agent verification). Run it only when the user explicitly asks to validate a PR or run the validation workflow, or types /pr-validation. Never start it on your own - when you open or update a PR, finish and push work on a branch, or the user says their PR is ready, ask once "Your PR looks ready. Should I run the validation workflow?" and wait for a yes.+---++# PR review and validation++Follow the canonical workflow in `agent-guides/pr-validation.md`. Read it in full first; this file only adds how to run it in Claude Code.++Only run it on an explicit request (see "When to run" in the guide). If you loaded this skill because a PR looks ready, ask "Your PR looks ready. Should I run the validation workflow?" and stop until the user says yes.++1. **Scope** (section 0): identify the PR and its paired CE or enterprise PR, then build the inventory of changed files, routes, models, migrations, extension points, and strings. Pass that inventory to every lane.+2. **Fan out:** run lanes D to G as parallel subagents with the Agent tool, one per lane, and run lanes A, B, and C one at a time because they start the app (see "Run the app" in the guide). Give each subagent the lane's section of the guide, the inventory, both repo paths, and the report columns. If the Workflow tool is available, run the lanes as a workflow instead, with the same ordering.+3. **Cross-agent verification** (lane H): send each reported finding to a fresh subagent whose only job is to disprove it by reading the code path and reproducing it. Keep confirmed findings; mark the rest Unconfirmed with the reason.+4. **Required checks** (section 2): run them yourself in each affected repo and quote the results.+5. **Report** (section 3): lead with the verdict, then the findings table, what was verified, scale results, and accepted shortcomings. Don't change code unless the requester asks for fixes.++Use each lane's own throwaway database and port for every running app and scale test, and stop the processes you start before you finish.diff --git a/.cursor/rules/pr-validation.mdc b/.cursor/rules/pr-validation.mdcnew file mode 100644index 00000000..96eb8e57--- /dev/null+++ b/.cursor/rules/pr-validation.mdc@@ -0,0 +1,6 @@+---+description: PR validation workflow (security, functionality and shortcomings, scale testing with mock data, hard-coded strings, CE/EE docs and code separation, reusable components, design principles, cross-agent verification). Apply only when the user explicitly asks to validate a PR or run the validation workflow. When a PR looks ready, ask "Your PR looks ready. Should I run the validation workflow?" instead of starting it.+alwaysApply: false+---++@agent-guides/pr-validation.mddiff --git a/AGENTS.md b/AGENTS.mdindex 79564e47..f80197ab 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -43,6 +43,7 @@ Read the relevant canonical guide in `agent-guides/` before changing these areas- `coding-agents-hook.md` for hook adapters and `coding-agents-convention.md` for their telemetry schema.- `controller-design.md` for controller and agent-discovery work.- `js-sdk-genai-instrumentation.md` or `js-sdk-genai-framework-instrumentation.md` for TypeScript SDK instrumentation.+- `pr-validation.md` for the PR validation workflow. Run it only when someone explicitly asks to validate a PR or run the workflow. When you open or update a PR, or someone says their PR is ready, ask "Your PR looks ready. Should I run the validation workflow?" and start only after a yes. For a plain code review, do a normal review and mention that the workflow is available.## Validationdiff --git a/agent-guides/pr-validation.md b/agent-guides/pr-validation.mdnew file mode 100644index 00000000..dbb48025--- /dev/null+++ b/agent-guides/pr-validation.md@@ -0,0 +1,190 @@+# OpenLIT PR Review and Validation Workflow++This workflow validates a pull request end to end, in either repository. It applies to Claude Code, Cursor, Codex, and any other agent that reads `AGENTS.md`.++The goal is a verified report of what is wrong, what is missing, and what was proven to work. Every finding must be reproduced or traced to a specific line before it is reported.++## When to run++The workflow is long and starts apps, databases, and parallel agents, so it runs **only when someone asks for it**:++- **Run it** when the request explicitly asks to validate a PR or run this workflow, for example "validate this PR", "run the validation workflow", "run PR validation", or `/pr-validation` in Claude Code.+- **Offer it, don't run it,** when a PR looks ready:+ - you opened or updated a PR;+ - you finished the work on a branch and pushed it;+ - someone says their PR is ready, or asks for a quick review.++ Ask exactly once: "Your PR looks ready. Should I run the validation workflow?" Start only after a clear yes. If they decline, don't ask again for the same changes.+- A plain request to review code ("review this", "look over my changes") gets a normal code review. Mention that the full validation workflow is available.++## 0. Scope the change++1. Identify the PR: number or URL if given, otherwise the current branch against `main`.+2. List the changed files with `gh pr diff <number> --name-only` or `git diff --name-only origin/main...HEAD`.+3. Find the paired PR. CE (`openlit/openlit`) and enterprise (`openlit/openlit-enterprise`) changes usually ship together on the same branch name. Review both, and treat any drift between shared files as a finding.+4. Classify every changed file:+ - **Shared:** identical in both repos.+ - **CE-only:** fallbacks and OSS-safe stubs.+ - **EE-only:** `src/client/src/ee/**` and thin `app/**` wrappers.+ - **Docs, migrations, tests, config.**+5. List every route, page, Prisma model, migration, extension point, and user-facing string the change touches. Every lane below works from this inventory.++## 1. Run the lanes in parallel++Each lane is independent. Run lanes D to G in parallel when the agent supports subagents. Lanes A, B, and C start the app, and `next dev` writes to the shared `.next` directory, so run those three one at a time, each with its own database and port from [Run the app](#run-the-app). Without subagents, run all the lanes in order. Each lane produces findings in the [report format](#3-report).++### Lane A: Security++Follow `agent-guides/security-testing.md` and the checklist in `.claude/commands/security-validation.md`, then go further.++- **Authorization:** every touched route enforces authentication and authorization on the server. Check the signed-out, wrong-role, wrong-organisation, wrong-project, API-key, and stale-session cases. UI checks don't count.+- **Input:** malformed JSON returns `400`. Validate identifiers, enforce size limits, reject unknown keys, and block path traversal and header injection.+- **Secrets:** no passwords, tokens, cookies, API keys, license keys, or authorization headers in responses, logs, or audit metadata.+- **Outbound requests:** any URL or host an admin or user can set must be checked for SSRF, including IP literals, bracketed IPv6, IPv4-mapped IPv6, DNS that resolves to private addresses, redirects, and DNS rebinding.+- **Authentication flows:** check account linking, email verification, session claims, CSRF on mutations, and privilege escalation (for example becoming an organisation owner or instance admin).+- **Live attack test:** run the app (see [Run the app](#run-the-app)) and attack each new route with `curl` as signed-out, member, admin, and a forged token. Record the status codes.+- **Existing architecture:** check the change against `Organisation -> Project -> Database configuration`, connectors, and environments:+ - Cross-organisation and cross-project access is denied.+ - Switching organisation or project refreshes the dependent state.+ - Database config reads and writes are scoped to the current project.+ - Connector bindings and environments keep working.++### Lane B: Functional validation and shortcomings++- Run every user flow the PR adds or changes in the running app, in both CE and enterprise when both are affected. Take screenshots in light and dark mode.+- **Shortcomings:** list what the feature doesn't handle, then try each item. For example:+ - Empty, loading, error, disabled, and locked states.+ - Unlicensed and expired-license cases.+ - The first-run and upgrade paths.+ - Concurrent edits and stale sessions.+ - Very long values, and how it renders at narrow widths.+ - The behaviour when a dependency (ClickHouse, the license server, an identity provider) is down.+ - Migrations on an existing database.+- Report each shortcoming as a finding (a bug or a gap), or as **Verified** with how you proved it works.++### Lane C: Scale testing with mock data++1. Create a throwaway database and seed it at volume:++ ```bash+ cd src/client+ export SQLITE_DATABASE_URL="file:/tmp/openlit-scale.db"+ rm -f /tmp/openlit-scale.db+ npx prisma migrate deploy --schema prisma/schema.prisma+ node prisma/seed.js+ node scripts/pr-validation/seed-scale-data.js --throwaway+ ```++ Tune the volume with `SCALE_USERS`, `SCALE_ORGS`, `SCALE_MEMBERS_PER_ORG`, `SCALE_PROJECTS_PER_ORG`, `SCALE_ENVIRONMENTS_PER_PROJECT`, `SCALE_INVITES_PER_ORG`, and `SCALE_INSTANCE_ADMINS`. Mock users sign in with the password `openlituser`.++ The seeder refuses to run unless the database is a SQLite file in the system temp directory that holds no accounts other than `[email protected]` and earlier mock users.+2. Start the app on the lane C port from [Run the app](#run-the-app), against the database you just seeded, and time every touched route and page, using `curl -w '%{time_total}'` or a browser trace.+3. Look for:+ - Unbounded queries and missing pagination.+ - N+1 queries and missing indexes (`EXPLAIN QUERY PLAN` in SQLite).+ - Per-request work in middleware or the session callbacks.+ - UI that renders every row.+4. Report the measured timings next to the volumes used.++### Lane D: Hard-coded strings++- No user-facing text in components, toasts, errors, `aria-label`s, placeholders, or API error bodies. CE strings belong in `src/client/src/constants/messages/en.ts`; enterprise-only strings belong in `src/client/src/ee/constants/messages/en.ts`.+- Scan the changed files for JSX text and string literals passed to `toast`, `title`, `placeholder`, `aria-label`, `label`, and `Response.json({ error: ... })`, then review each match. Existing patterns outside the diff aren't findings for this PR, but list them separately as follow-ups.+- Enterprise-only copy must not appear in the CE message file.++### Lane E: Documentation and CE/EE separation++- Every new feature, setting, environment variable, route, and permission is documented under `docs/latest/`, following `agent-guides/documentation.md`.+- Enterprise features are tagged:+ - `tag: 'Enterprise'` in the page front matter, plus the `EnterpriseFeature` snippet.+ - An availability table showing Community versus Enterprise.+ - A row in the feature table on `docs/latest/openlit/enterprise.mdx`.+- New environment variables are listed in `docs/latest/openlit/configuration.mdx`.+- New audit actions are listed in `docs/latest/openlit/audit-logs.mdx`.+- New pages are added to `docs/docs.json`.+- Docs are identical in both repos, apart from the intentional enterprise-only pages.+- Run `npx mint broken-links` in `docs/` and report every broken link the PR introduces.+- **Code separation:** no enterprise implementation in CE.+ - Shared files use neutral import paths. `@/ee/**` imports appear only under `src/client/src/ee/**`, in tests, and in thin enterprise `app/**` wrappers.+ - CE fallbacks are OSS-safe no-ops or upgrade-required responses.+ - No RBAC permission literals in shared files.+ - Run the leakage scans from `AGENTS.md`.++### Lane F: Reusable components++- Look for new components, hooks, helpers, and API wrappers that duplicate existing ones (for example `FeaturePageHeader`, `ConfirmationModal`, `useFetchWrapper`, the `components/ui/*` primitives, sidebar and shell components, and validation helpers in `utils/validation.ts`).+- Look for logic repeated across CE and enterprise that belongs in a shared module behind an extension point.+- Report anything that should be extracted, and anything that reimplements an existing helper.++### Lane G: Design principles++- **UI:** follow the `agent-guides/frontend.md` checklist:+ - Light and dark themes, no one-off colours, no cards inside cards.+ - Header switchers with breadcrumbs below.+ - Every state covered: loading, empty, disabled, error, and locked.+ - Narrow widths don't scroll horizontally.+ - Keyboard and screen-reader access: labels, focus, roles, and `aria-*`.+- **Code:**+ - CE first, then synced into enterprise; thin route wrappers.+ - Neutral extension points, each with a CE fallback.+ - Organisation and project scoping.+ - Server-side authorization; no secrets in logs.+ - Match the surrounding code: naming, comment density, and idioms.+- **Data:** check migrations against the schema with `prisma migrate diff` on a freshly migrated database. Look for indexes on new lookups, and for backward-compatible changes for existing installs.++### Lane H: Cross-agent testing++- **Independent verification:** hand every finding from lanes A to G to a separate agent (or a fresh pass) that tries to **disprove** it by reading the code path and reproducing it. Keep only findings it confirms. Mark the rest **Unconfirmed**, with the reason.+- **Coding agent integrations:** if the PR touches coding-agent hooks, telemetry conventions, or the coding agents pages (`cli/internal/coding/**`, `agent-guides/coding-agents-*.md`, coding agents dashboards), test the change with every supported coding agent, not only one, and compare the spans each produces.+- **Agent instructions:** if the PR changes `AGENTS.md`, `agent-guides/`, `.cursor/rules/`, or `.claude/`, check that each tool's wrapper still points to the same canonical guide.++## 2. Required checks++Run these in `src/client` of **each** affected repo, and quote the result lines in the report:++```bash+npx tsc --noEmit -p .+npm test -- --runInBand+npm run lint+npx prisma validate --schema prisma/schema.prisma+```++Then return to the repository root and run the CE/EE leakage scans from `AGENTS.md`.++## 3. Report++Lead with a verdict: **Ready to merge**, **Ready after fixes**, or **Not ready**. Then:++| Severity | Lane | File:line | Finding | Evidence | Fix |+| --- | --- | --- | --- | --- | --- |++- **Severity:** Critical (exploitable or data loss), High (broken feature or security weakness), Medium (gap or wrong edge case), Low (cleanup).+- **Evidence:** the command, request, test, or screenshot that proves it.+- After the table, list what was verified to work, the scale results, the required check results, and the shortcomings that are acceptable as-is, with reasons.+- Don't apply fixes unless the requester asks. When asked, fix CE first, sync shared files to enterprise, add a test for each security fix, and re-run section 2.++## Run the app++Run against throwaway databases only. Each lane that runs the app has its own database and port:++| Lane | `REVIEW_DB` | `REVIEW_PORT` |+| --- | --- | --- |+| A | `/tmp/openlit-review-a.db` | `3005` |+| B | `/tmp/openlit-review-b.db` | `3006` |+| C | `/tmp/openlit-scale.db` | `3007` |++- **Enterprise:** `OPENLIT_EDITION=enterprise`, plus `OPENLIT_LICENSE_SERVER_URL` and `OPENLIT_LICENSE_PUBLIC_KEY` when testing licensed features against a local license server.+- **CE:** the same command without the edition variable.++```bash+cd src/client+export REVIEW_DB=/tmp/openlit-review-a.db REVIEW_PORT=3005+export SQLITE_DATABASE_URL="file:$REVIEW_DB" NEXTAUTH_SECRET=review-only NEXTAUTH_URL="http://localhost:$REVIEW_PORT/"+rm -f "$REVIEW_DB"+npx prisma migrate deploy --schema prisma/schema.prisma && node prisma/seed.js+npx next dev -p "$REVIEW_PORT"+```++For lane C, skip the `rm` line and the migrate and seed line, since the database is already seeded. Stop the app before the next lane starts, and recreate the database when you switch between CE and enterprise, because their migrations differ.++The seeded account is `[email protected]` with password `openlituser`, and it is the instance admin.diff --git a/src/client/scripts/pr-validation/seed-scale-data.js b/src/client/scripts/pr-validation/seed-scale-data.jsnew file mode 100644index 00000000..286edb5a--- /dev/null+++ b/src/client/scripts/pr-validation/seed-scale-data.js@@ -0,0 +1,221 @@+#!/usr/bin/env node+/**+ * Seeds a throwaway OpenLIT database with mock data for PR scale testing.+ *+ * Creates users, organisations, memberships, projects, environments, database+ * configs, ClickHouse connectors, invitations, and (when the schema has the+ * table) instance admins, so routes can be exercised at realistic volume.+ *+ * Usage (from src/client):+ * SQLITE_DATABASE_URL="file:/tmp/openlit-scale.db" npx prisma migrate deploy+ * SQLITE_DATABASE_URL="file:/tmp/openlit-scale.db" node scripts/pr-validation/seed-scale-data.js --throwaway+ *+ * Sizes (environment variables, defaults in brackets):+ * SCALE_USERS [2000] SCALE_ORGS [50] SCALE_MEMBERS_PER_ORG [40]+ * SCALE_PROJECTS_PER_ORG [20] SCALE_ENVIRONMENTS_PER_PROJECT [3]+ * SCALE_INVITES_PER_ORG [10] SCALE_INSTANCE_ADMINS [5]+ *+ * Every mock user signs in with the password `openlituser`, and some are+ * instance admins, so this refuses to run unless the database is a SQLite file+ * in the system temp directory holding only the seeded account and mock users.+ */+const fs = require("fs");+const os = require("os");+const path = require("path");+const { PrismaClient } = require("@prisma/client");++// bcrypt hash of "openlituser", the same hash prisma/seed.js uses.+const PASSWORD_HASH = "$2a$10$gh6Odw7fhLRrE1A1OxaHfeWOWKiZEEQpkOAhhCQ.RHx8VWOngwlHO";+const ENVIRONMENTS = ["production", "staging", "development", "qa", "sandbox"];+const BATCH = 500;+const SEEDED_ACCOUNT = "[email protected]";+const MOCK_EMAIL_SUFFIX = "@scale.test";++function size(name, fallback) {+ const value = Number.parseInt(process.env[name] || "", 10);+ return Number.isFinite(value) && value >= 0 ? value : fallback;+}++const config = {+ users: size("SCALE_USERS", 2000),+ orgs: size("SCALE_ORGS", 50),+ membersPerOrg: size("SCALE_MEMBERS_PER_ORG", 40),+ projectsPerOrg: size("SCALE_PROJECTS_PER_ORG", 20),+ environmentsPerProject: Math.min(size("SCALE_ENVIRONMENTS_PER_PROJECT", 3), ENVIRONMENTS.length),+ invitesPerOrg: size("SCALE_INVITES_PER_ORG", 10),+ instanceAdmins: size("SCALE_INSTANCE_ADMINS", 5),+};++async function insertInBatches(model, rows) {+ for (let index = 0; index < rows.length; index += BATCH) {+ await model.createMany({ data: rows.slice(index, index + BATCH) });+ }+ return rows.length;+}++// Symlinks are resolved, so a link in the temp directory can't reach a real database.+function isTemporaryDatabase(databaseUrl) {+ const [, file] = /^file:([^?]+)/.exec(databaseUrl) || [];+ if (!file || !path.isAbsolute(file) || !fs.existsSync(file)) return false;+ const database = fs.realpathSync(file);+ return ["/tmp", os.tmpdir()]+ .filter((root) => fs.existsSync(root))+ .some((root) => database.startsWith(fs.realpathSync(root) + path.sep));+}++function refuse(reason) {+ console.error(`Refusing to run: ${reason}`);+ process.exitCode = 1;+}++async function main() {+ const databaseUrl = process.env.SQLITE_DATABASE_URL || "";+ if (!process.argv.includes("--throwaway")) {+ refuse("pass --throwaway.");+ return;+ }+ if (!isTemporaryDatabase(databaseUrl)) {+ refuse("point SQLITE_DATABASE_URL at a migrated SQLite file in the system temp directory.");+ return;+ }++ const prisma = new PrismaClient();+ const started = Date.now();+ const run = Date.now().toString(36);++ try {+ const otherAccounts = await prisma.user.count({+ where: {+ email: { not: SEEDED_ACCOUNT },+ NOT: { email: { endsWith: MOCK_EMAIL_SUFFIX } },+ },+ });+ if (otherAccounts > 0) {+ refuse(`the database has ${otherAccounts} account(s) that aren't seeded or mock users.`);+ return;+ }++ console.log(`Seeding mock data into ${databaseUrl}`, config);++ // The earliest account stays the primary instance admin, so mock users+ // are created after any account that already exists.+ const users = Array.from({ length: config.users }, (_, index) => ({+ id: `scale-user-${run}-${index}`,+ email: `scale-${run}-${index}${MOCK_EMAIL_SUFFIX}`,+ name: `Scale User ${index}`,+ password: PASSWORD_HASH,+ hasCompletedOnboarding: true,+ }));+ await insertInBatches(prisma.user, users);++ const orgs = [];+ const memberships = [];+ const projects = [];+ const projectUsers = [];+ const environments = [];+ const databaseConfigs = [];+ const databaseConfigUsers = [];+ const connectors = [];+ const invites = [];++ for (let o = 0; o < config.orgs; o += 1) {+ const orgId = `scale-org-${run}-${o}`;+ const owner = users[o % Math.max(users.length, 1)];+ if (!owner) break;+ orgs.push({ id: orgId, name: `Scale Org ${o}`, slug: `scale-${run}-${o}`, createdByUserId: owner.id });++ const memberIds = new Set([owner.id]);+ for (let m = 1; memberIds.size < Math.min(config.membersPerOrg, users.length); m += 1) {+ memberIds.add(users[(o * config.membersPerOrg + m) % users.length].id);+ }+ const orgMembers = Array.from(memberIds).map((userId, index) => ({+ id: `scale-ou-${run}-${o}-${index}`,+ organisationId: orgId,+ userId,+ role: index === 0 ? "owner" : index % 10 === 0 ? "admin" : "member",+ isCurrent: true,+ }));+ memberships.push(...orgMembers);++ for (let p = 0; p < config.projectsPerOrg; p += 1) {+ const projectId = `scale-project-${run}-${o}-${p}`;+ projects.push({ id: projectId, organisationId: orgId, name: `Project ${p}`, slug: `project-${p}`, isDefault: p === 0 });+ for (const member of orgMembers.slice(0, 5)) {+ projectUsers.push({ projectId, organisationUserId: member.id, userId: member.userId });+ }+ for (const environment of ENVIRONMENTS.slice(0, config.environmentsPerProject)) {+ environments.push({ projectId, name: environment });+ const configId = `scale-db-${run}-${o}-${p}-${environment}`;+ databaseConfigs.push({+ id: configId,+ name: `ClickHouse ${environment}`,+ environment,+ username: "default",+ password: "",+ host: "127.0.0.1",+ port: "8123",+ database: `scale_${o}_${p}`,+ createdByUserId: owner.id,+ projectId,+ });+ databaseConfigUsers.push({+ databaseConfigId: configId,+ userId: owner.id,+ isCurrent: environment === "production" && p === 0,+ canEdit: true,+ canDelete: true,+ canShare: true,+ });+ connectors.push({+ id: `database:${configId}`,+ category: "datasource",+ type: "clickhouse",+ name: `ClickHouse ${environment}`,+ environment,+ projectId,+ settings: JSON.stringify({ host: "127.0.0.1", port: "8123", database: `scale_${o}_${p}` }),+ status: "active",+ });+ }+ }++ for (let i = 0; i < config.invitesPerOrg; i += 1) {+ invites.push({ organisationId: orgId, email: `invite-${run}-${o}-${i}${MOCK_EMAIL_SUFFIX}`, invitedByUserId: owner.id });+ }+ }++ const counts = {+ users: users.length,+ organisations: await insertInBatches(prisma.organisation, orgs),+ memberships: await insertInBatches(prisma.organisationUser, memberships),+ projects: await insertInBatches(prisma.project, projects),+ projectMembers: await insertInBatches(prisma.projectUser, projectUsers),+ environments: await insertInBatches(prisma.projectEnvironment, environments),+ databaseConfigs: await insertInBatches(prisma.databaseConfig, databaseConfigs),+ databaseConfigUsers: await insertInBatches(prisma.databaseConfigUser, databaseConfigUsers),+ connectors: prisma.connectorInstance ? await insertInBatches(prisma.connectorInstance, connectors) : 0,+ invitations: prisma.organisationInvitedUser+ ? await insertInBatches(prisma.organisationInvitedUser, invites)+ : 0,+ instanceAdmins: 0,+ };++ // Enterprise schemas store additional instance admins.+ if (prisma.instanceAdmin) {+ counts.instanceAdmins = await insertInBatches(+ prisma.instanceAdmin,+ users.slice(0, config.instanceAdmins).map((user) => ({ userId: user.id }))+ );+ }++ console.log("Seeded", counts, `in ${((Date.now() - started) / 1000).toFixed(1)}s`);+ console.log(`Sign in as ${users[0]?.email ?? "(no users)"} with password openlituser.`);+ } finally {+ await prisma.$disconnect();+ }+}++main().catch((error) => {+ console.error(error);+ process.exitCode = 1;+});