diff --git a/.env.example b/.env.example index d2cdeaa..740ec05 100644 --- a/.env.example +++ b/.env.example @@ -1,24 +1,57 @@ ## Local development Postgres connection string ## Works with the Docker setup and a native PostgreSQL server using these credentials. ## See README "Local Postgres". -DATABASE_URL=postgres://postgres:postgres@localhost:5432/rr7_test +DATABASE_URL=postgres://postgres:postgres@localhost:5432/rocket -## For Google auth, also set (example placeholders): +## Dedicated database for integration tests. Required by `bun run test:integration`, +## and so by `bun run check`, which runs it. The suite truncates and re-migrates +## whatever it connects to, so it must differ from DATABASE_URL and its name must +## contain "test" — the harness refuses otherwise. `bun run db:up` creates this one. +TEST_DATABASE_URL=postgres://postgres:postgres@localhost:5432/rocket_test + +## Session signing. Both are REQUIRED in production and optional in development. +# BETTER_AUTH_SECRET=generate-with-openssl-rand-base64-32 +# BETTER_AUTH_URL=https://example.com + +## The single header your proxy sets to the real client IP, used to bucket auth +## rate limits per caller. Without it Better Auth cannot tell callers apart and +## puts everyone in one shared bucket per path, so a few failed sign-ins from +## any one person lock out every user. +## +## Pick a header your proxy ALWAYS overwrites; anything a client can forge +## defeats the limit. Common values: x-real-ip (nginx, Caddy, most proxies), +## cf-connecting-ip (Cloudflare), fly-client-ip (Fly.io), x-vercel-forwarded-for +## (Vercel). +# AUTH_IP_ADDRESS_HEADER=x-real-ip + +## Set automatically by Vercel — leave unset elsewhere. Vercel Web Analytics +## only has somewhere to report to when Vercel is serving the app, so this +## decides whether its client script loads at all. +# VERCEL=1 + +## --------------------------------------------------------------------------- +## Optional capabilities +## +## Absent configuration is valid and means the capability is unavailable. +## PARTIAL configuration is a startup error, never a degraded state. +## --------------------------------------------------------------------------- + +## Google sign-in — set BOTH or NEITHER. # GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com # GOOGLE_CLIENT_SECRET=your-google-client-secret -## Azure OpenAI (required for /dashboard/ai) +## Azure AI Chat (experimental) — set BOTH the resource name and the API key. +## See docs/capabilities/ai-chat.md # AZURE_OPENAI_RESOURCE_NAME=your-resource-name # AZURE_OPENAI_API_KEY=your-api-key # AZURE_OPENAI_DEPLOYMENT_NAME=gpt-5-chat -## Polar payments (see https://www.better-auth.com/docs/plugins/polar) -## Billing is OFF unless POLAR_ACCESS_TOKEN is set. When off, the Polar plugin is -## not mounted at all: sign-up works normally and the billing page shows a notice. -## Set POLAR_ENABLED=false to force it off even when a token is present. -# POLAR_ENABLED=false +## Polar billing — see docs/capabilities/billing.md +## Billing becomes available as soon as POLAR_ACCESS_TOKEN is set. # POLAR_ACCESS_TOKEN=... -# POLAR_SERVER=sandbox # or production -# POLAR_WEBHOOK_SECRET=... # if using webhooks plugin -# Map your Polar product for the Pro plan (from Polar dashboard) +# POLAR_SERVER=sandbox # POLAR_PRODUCT_PRO_ID=... +## Requires POLAR_ACCESS_TOKEN; setting it alone is a startup error. +# POLAR_WEBHOOK_SECRET=... +## Operational kill switch for a fully configured integration. +# POLAR_ENABLED=false diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d8b2c3d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,41 @@ +version: 2 + +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 10 + groups: + # One PR per ecosystem cluster keeps review cost proportional to risk. + react-router: + patterns: + - "react-router*" + - "@react-router/*" + radix: + patterns: + - "@radix-ui/*" + - "radix-ui" + dev-tooling: + dependency-type: development + patterns: + - "*" + ignore: + # Better Auth carries the session and organization contract; its upgrades + # get a deliberate, tested pass rather than an automated bump. Minor is + # ignored too, not just major: the 1.3 -> 1.6 upgrade renamed + # auth.api.forgetPassword and changed the generated schema, so its minors + # are breaking in practice. + - dependency-name: better-auth + update-types: + - version-update:semver-major + - version-update:semver-minor + # The Polar plugin peers on a narrow better-auth range, so it can only + # move as part of that same deliberate pass. + - dependency-name: "@polar-sh/better-auth" + - dependency-name: "@polar-sh/sdk" + + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eaf9752 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,165 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + # Every job runs with all optional capabilities unconfigured: that is the + # configuration a fresh clone must survive. + BETTER_AUTH_SECRET: ci-secret-not-for-production + +jobs: + static: + name: Static + runs-on: ubuntu-latest + # A fast subset of `bun run check` that fails before the database jobs + # finish spinning up. The `test` job runs the whole gate. + steps: + - uses: actions/checkout@v5 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - run: bun install --frozen-lockfile + + - name: Format + run: bun run format:check + + - name: Lint + run: bun run lint + + - name: Typecheck + run: bun run typecheck + + - name: .env.example matches the schema + run: bun run env:check + + test: + name: Test + runs-on: ubuntu-latest + services: + postgres: + image: postgres:16-alpine + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: rocket + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 5s + --health-timeout 3s + --health-retries 20 + env: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/rocket + TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/rocket_test + steps: + - uses: actions/checkout@v5 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - run: bun install --frozen-lockfile + + - name: Create the test database + run: bun run db:test:setup + + - name: Migrate a fresh database from zero + run: bun run db:migrate + env: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/rocket_test + + - name: The full gate + # The same single command developers run locally. + run: bun run check + + e2e: + name: E2E and build + runs-on: ubuntu-latest + services: + postgres: + image: postgres:16-alpine + env: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: rocket + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 5s + --health-timeout 3s + --health-retries 20 + env: + DATABASE_URL: postgres://postgres:postgres@localhost:5432/rocket + TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/rocket_test + steps: + - uses: actions/checkout@v5 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - run: bun install --frozen-lockfile + + - name: Build production assets + run: bun run build + + - name: Create and migrate the test database + run: | + bun run db:test:setup + DATABASE_URL="$TEST_DATABASE_URL" bun run db:migrate + + - name: Install Playwright browsers + run: bun run test:e2e:install + + - name: Smoke journey + run: bun run test:e2e + + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: playwright-report + path: playwright-report/ + retention-days: 7 + + security: + name: Security + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - uses: actions/checkout@v5 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - run: bun install --frozen-lockfile + + - name: Audit dependencies + run: bun audit --audit-level=high + continue-on-error: true + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: javascript-typescript + queries: security-extended + + - name: Analyze + uses: github/codeql-action/analyze@v4 + with: + category: /language:javascript-typescript diff --git a/.gitignore b/.gitignore index 3d5d456..d716e35 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,6 @@ node_modules # generated files /app/components/ui/icons -.react-router/ \ No newline at end of file +.react-router/ +# Local dev server logs +.openlogs/ diff --git a/.openlogs/.latest.2026-07-28T09-21-41Z.raw.log b/.openlogs/.latest.2026-07-28T09-21-41Z.raw.log deleted file mode 100644 index 74459ea..0000000 --- a/.openlogs/.latest.2026-07-28T09-21-41Z.raw.log +++ /dev/null @@ -1,468 +0,0 @@ -$ react-router dev -12:21:42 PM [vite] (client) Re-optimizing dependencies because lockfile has changed - ➜ Local: http://localhost:5173/ - ➜ Network: use --host to expose - ➜ press h + enter to show help -2026-07-28T09:21:43.572Z WARN [Better Auth]: Social provider google is missing clientId or clientSecret -12:21:44 PM [vite] (client) ✨ new dependencies optimized: @vercel/analytics/react, @radix-ui/react-slot, class-variance-authority, lucide-react, radix-ui, clsx, tailwind-merge, @radix-ui/react-dialog, better-auth, better-auth/adapters/drizzle, @polar-sh/better-auth, @polar-sh/sdk, @radix-ui/react-label, @radix-ui/react-avatar, drizzle-orm/node-postgres, pg, drizzle-orm/pg-core, better-auth/react -12:21:44 PM [vite] (client) ✨ optimized dependencies changed. reloading -2026-07-28T09:21:56.690Z ERROR [Better Auth]: User not found { email: 'chat-smoke-20260728@example.com' } -12:23:00 PM [vite] (client) ✨ new dependencies optimized: recharts, @tanstack/react-table -12:23:00 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -12:23:02 PM [vite] (client) ✨ new dependencies optimized: @ai-sdk/react, ai, @streamdown/cjk, @streamdown/code, @streamdown/math, @streamdown/mermaid, streamdown, @shadcn/react/message-scroller, @radix-ui/react-use-controllable-state, nanoid, motion/react, cmdk, shiki -12:23:02 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [react-router] Config saved - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/lib/lazy-client.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (ssr) page reload app/components/centered-loader.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [react-router] Config saved -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "/app/lib/lazy-client.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/lib/lazy-client.tsx" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" diff --git a/.openlogs/latest.2026-07-28T09-21-41Z.raw.log b/.openlogs/latest.2026-07-28T09-21-41Z.raw.log deleted file mode 100644 index 74459ea..0000000 --- a/.openlogs/latest.2026-07-28T09-21-41Z.raw.log +++ /dev/null @@ -1,468 +0,0 @@ -$ react-router dev -12:21:42 PM [vite] (client) Re-optimizing dependencies because lockfile has changed - ➜ Local: http://localhost:5173/ - ➜ Network: use --host to expose - ➜ press h + enter to show help -2026-07-28T09:21:43.572Z WARN [Better Auth]: Social provider google is missing clientId or clientSecret -12:21:44 PM [vite] (client) ✨ new dependencies optimized: @vercel/analytics/react, @radix-ui/react-slot, class-variance-authority, lucide-react, radix-ui, clsx, tailwind-merge, @radix-ui/react-dialog, better-auth, better-auth/adapters/drizzle, @polar-sh/better-auth, @polar-sh/sdk, @radix-ui/react-label, @radix-ui/react-avatar, drizzle-orm/node-postgres, pg, drizzle-orm/pg-core, better-auth/react -12:21:44 PM [vite] (client) ✨ optimized dependencies changed. reloading -2026-07-28T09:21:56.690Z ERROR [Better Auth]: User not found { email: 'chat-smoke-20260728@example.com' } -12:23:00 PM [vite] (client) ✨ new dependencies optimized: recharts, @tanstack/react-table -12:23:00 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -12:23:02 PM [vite] (client) ✨ new dependencies optimized: @ai-sdk/react, ai, @streamdown/cjk, @streamdown/code, @streamdown/math, @streamdown/mermaid, streamdown, @shadcn/react/message-scroller, @radix-ui/react-use-controllable-state, nanoid, motion/react, cmdk, shiki -12:23:02 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [react-router] Config saved - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/lib/lazy-client.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (ssr) page reload app/components/centered-loader.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [react-router] Config saved -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "/app/lib/lazy-client.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/lib/lazy-client.tsx" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" diff --git a/.openlogs/latest.2026-07-28T09-21-41Z.txt b/.openlogs/latest.2026-07-28T09-21-41Z.txt deleted file mode 100644 index 5f3709b..0000000 --- a/.openlogs/latest.2026-07-28T09-21-41Z.txt +++ /dev/null @@ -1,468 +0,0 @@ -$ react-router dev -12:21:42 PM [vite] (client) Re-optimizing dependencies because lockfile has changed - ➜ Local: http://localhost:5173/ - ➜ Network: use --host to expose - ➜ press h + enter to show help -2026-07-28T09:21:43.572Z WARN [Better Auth]: Social provider google is missing clientId or clientSecret -12:21:44 PM [vite] (client) ✨ new dependencies optimized: @vercel/analytics/react, @radix-ui/react-slot, class-variance-authority, lucide-react, radix-ui, clsx, tailwind-merge, @radix-ui/react-dialog, better-auth, better-auth/adapters/drizzle, @polar-sh/better-auth, @polar-sh/sdk, @radix-ui/react-label, @radix-ui/react-avatar, drizzle-orm/node-postgres, pg, drizzle-orm/pg-core, better-auth/react -12:21:44 PM [vite] (client) ✨ optimized dependencies changed. reloading -2026-07-28T09:21:56.690Z ERROR [Better Auth]: User not found { email: 'chat-smoke-20260728@example.com' } -12:23:00 PM [vite] (client) ✨ new dependencies optimized: recharts, @tanstack/react-table -12:23:00 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -12:23:02 PM [vite] (client) ✨ new dependencies optimized: @ai-sdk/react, ai, @streamdown/cjk, @streamdown/code, @streamdown/math, @streamdown/mermaid, streamdown, @shadcn/react/message-scroller, @radix-ui/react-use-controllable-state, nanoid, motion/react, cmdk, shiki -12:23:02 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [react-router] Config saved - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/lib/lazy-client.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (ssr) page reload app/components/centered-loader.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [react-router] Config saved -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "/app/lib/lazy-client.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/lib/lazy-client.tsx" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" diff --git a/.openlogs/latest.raw.log b/.openlogs/latest.raw.log deleted file mode 100644 index 74459ea..0000000 --- a/.openlogs/latest.raw.log +++ /dev/null @@ -1,468 +0,0 @@ -$ react-router dev -12:21:42 PM [vite] (client) Re-optimizing dependencies because lockfile has changed - ➜ Local: http://localhost:5173/ - ➜ Network: use --host to expose - ➜ press h + enter to show help -2026-07-28T09:21:43.572Z WARN [Better Auth]: Social provider google is missing clientId or clientSecret -12:21:44 PM [vite] (client) ✨ new dependencies optimized: @vercel/analytics/react, @radix-ui/react-slot, class-variance-authority, lucide-react, radix-ui, clsx, tailwind-merge, @radix-ui/react-dialog, better-auth, better-auth/adapters/drizzle, @polar-sh/better-auth, @polar-sh/sdk, @radix-ui/react-label, @radix-ui/react-avatar, drizzle-orm/node-postgres, pg, drizzle-orm/pg-core, better-auth/react -12:21:44 PM [vite] (client) ✨ optimized dependencies changed. reloading -2026-07-28T09:21:56.690Z ERROR [Better Auth]: User not found { email: 'chat-smoke-20260728@example.com' } -12:23:00 PM [vite] (client) ✨ new dependencies optimized: recharts, @tanstack/react-table -12:23:00 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -12:23:02 PM [vite] (client) ✨ new dependencies optimized: @ai-sdk/react, ai, @streamdown/cjk, @streamdown/code, @streamdown/math, @streamdown/mermaid, streamdown, @shadcn/react/message-scroller, @radix-ui/react-use-controllable-state, nanoid, motion/react, cmdk, shiki -12:23:02 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [react-router] Config saved - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/lib/lazy-client.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (ssr) page reload app/components/centered-loader.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [react-router] Config saved -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "/app/lib/lazy-client.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/lib/lazy-client.tsx" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" diff --git a/.openlogs/latest.txt b/.openlogs/latest.txt deleted file mode 100644 index 5f3709b..0000000 --- a/.openlogs/latest.txt +++ /dev/null @@ -1,468 +0,0 @@ -$ react-router dev -12:21:42 PM [vite] (client) Re-optimizing dependencies because lockfile has changed - ➜ Local: http://localhost:5173/ - ➜ Network: use --host to expose - ➜ press h + enter to show help -2026-07-28T09:21:43.572Z WARN [Better Auth]: Social provider google is missing clientId or clientSecret -12:21:44 PM [vite] (client) ✨ new dependencies optimized: @vercel/analytics/react, @radix-ui/react-slot, class-variance-authority, lucide-react, radix-ui, clsx, tailwind-merge, @radix-ui/react-dialog, better-auth, better-auth/adapters/drizzle, @polar-sh/better-auth, @polar-sh/sdk, @radix-ui/react-label, @radix-ui/react-avatar, drizzle-orm/node-postgres, pg, drizzle-orm/pg-core, better-auth/react -12:21:44 PM [vite] (client) ✨ optimized dependencies changed. reloading -2026-07-28T09:21:56.690Z ERROR [Better Auth]: User not found { email: 'chat-smoke-20260728@example.com' } -12:23:00 PM [vite] (client) ✨ new dependencies optimized: recharts, @tanstack/react-table -12:23:00 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -12:23:02 PM [vite] (client) ✨ new dependencies optimized: @ai-sdk/react, ai, @streamdown/cjk, @streamdown/code, @streamdown/math, @streamdown/mermaid, streamdown, @shadcn/react/message-scroller, @radix-ui/react-use-controllable-state, nanoid, motion/react, cmdk, shiki -12:23:02 PM [vite] (client) ✨ optimized dependencies changed. reloading -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [react-router] Config saved - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/app.css, /app/routes/ai/chat.tsx (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/lib/lazy-client.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (client) hmr update /app/routes/ai/chat.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:48 PM [vite] (ssr) page reload app/routes/ai/chat.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x2) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (client) hmr update /app/components/centered-loader.tsx, /app/app.css (x3) - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [vite] (ssr) page reload app/components/centered-loader.tsx - - - - - - - - - - - - - - - - - - - - - - - -12:23:54 PM [react-router] Config saved -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634506" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx?t=1785230634505" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" -Error: No route matches URL "/app/lib/lazy-client.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/lib/lazy-client.tsx" -Error: No route matches URL "/app/components/centered-loader.tsx" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "/app/components/centered-loader.tsx" -Error: No route matches URL "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/avatars/shadcn.jpg" - at getInternalRouterError (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:4678:5) - at Object.query (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-ZYFC6VSF.mjs:2755:19) - at handleDocumentRequest (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1321:38) - at requestHandler (file:///Users/martinsolev/Developer/Projects/rocket/node_modules/react-router/dist/development/chunk-HZX6U7MI.mjs:1236:24) - at processTicksAndRejections (node:internal/process/task_queues:103:5) - at nodeHandler (/Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3396:30) - at /Users/martinsolev/Developer/Projects/rocket/node_modules/@react-router/dev/dist/vite.js:3402:17 -No routes matched location "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/avatars/shadcn.jpg" diff --git a/CONTEXT.md b/CONTEXT.md index cf9ee41..957a14d 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -56,3 +56,15 @@ _Avoid_: Always-on capability **Invoked service capability**: A capability whose behavior occurs only when application code explicitly calls it and which must report missing configuration clearly when called while inactive. _Avoid_: Utility integration + +**Capability seam**: +A Core-owned interface that a deferred capability would implement, letting Core flows depend on the interface rather than on any provider. +_Avoid_: Adapter, shim, stub + +**Availability check**: +The side-effect-free question of whether a capability's behavior can be invoked, which never fails merely because configuration is absent. +_Avoid_: Health check, feature flag + +**Safe fact**: +A boolean or other non-secret value derived from configuration on the server and passed to the browser in place of the configuration itself. +_Avoid_: Public config, client env diff --git a/README.md b/README.md index 7ea6865..95ae4a3 100644 --- a/README.md +++ b/README.md @@ -1,196 +1,162 @@ -# Welcome to React Router +# Rocket -A modern, production-ready template for building full-stack React applications using React Router. +A foundation for **authenticated interactive web applications** — B2B tools, internal applications, SaaS products, and portals. -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/remix-run/react-router-templates/tree/main/default) +Rocket applications start by cloning or forking. There is no generator and no upgrade automation: what Rocket promises is a Core that works, a capability contract, and documented manual removal. -## Features +- **Stack** — React Router 7 (SSR), PostgreSQL, Drizzle ORM, Better Auth, Tailwind CSS 4, shadcn/ui, Bun +- **Roadmap and decisions** — [`docs/roadmap.md`](docs/roadmap.md) +- **Glossary** — [`CONTEXT.md`](CONTEXT.md) -- 🚀 Server-side rendering -- ⚡️ Hot Module Replacement (HMR) -- 📦 Asset bundling and optimization -- 🔄 Data loading and mutations -- 🔒 TypeScript by default -- 🎉 TailwindCSS for styling -- 📖 [React Router docs](https://reactrouter.com/) - -## Getting Started - -### Installation - -Install the dependencies: +## Quick start ```bash -npm install +bun install +cp .env.example .env # then set DATABASE_URL and BETTER_AUTH_SECRET +bun run db:up # postgres:16-alpine on localhost:5432 +bun run db:migrate +bun run dev # http://localhost:5173 ``` -### Development +Rocket runs with **every optional capability unconfigured**. Billing, AI chat, Google sign-in, and email are all absent by default, and the application is fully usable in that state. -Start the development server with HMR: +## What is in Core -```bash -npm run dev -``` +Present in every Rocket application: -Your application will be available at `http://localhost:5173`. +- personal accounts, email/password authentication, and password reset +- protected route and API boundaries +- account settings and a neutral authenticated dashboard shell +- organization-aware data ownership, running in single-organization mode +- the Quality foundation below -### Local Postgres +## Capabilities -#### Option A: Docker (recommended) +| Capability | Tier | Guide | +| --- | --- | --- | +| Polar Billing | Production-supported | [`docs/capabilities/billing.md`](docs/capabilities/billing.md) | +| Azure AI Chat | Experimental | [`docs/capabilities/ai-chat.md`](docs/capabilities/ai-chat.md) | +| Transactional email | Deferred — seam only | [`docs/capabilities/email.md`](docs/capabilities/email.md) | -Docker Compose is the default because it provides the same Postgres 16 setup on -macOS, Linux and Windows without changing the host machine. +Absent configuration is valid and means **unavailable**. Partial configuration **fails at startup** rather than producing a half-working integration. Invoking unavailable behavior throws `CapabilityUnavailableError`, naming the capability and linking its guide without exposing secrets. -```bash -npm run db:up # start postgres:16-alpine on localhost:5432 -npm run db:migrate # apply migrations from drizzle/ -npm run db:psql # open psql inside the container -npm run db:logs # follow container logs -npm run db:down # stop the stack -``` +Pages and navigation are application-owned: capabilities report availability and protect their endpoints, but never auto-register or hide UI. -The explicit `db:docker:*` variants are aliases for the same commands. +## Environment -#### Option B: Native PostgreSQL +`app/lib/env/schema.ts` is the single source of truth. It is validated once at startup with `@t3-oss/env-core` and Zod. -If Docker is unavailable, install PostgreSQL 16 and start its service using the -native tools for your operating system: +- empty strings are treated as absent, so there are no silent `|| ""` fallbacks +- capability variables are validated as all-or-nothing groups +- `BETTER_AUTH_SECRET` and `BETTER_AUTH_URL` are required in production +- `bun run env:check` fails if `.env.example` and the schema disagree -| Platform | Install | Start / stop | -| --- | --- | --- | -| macOS (Homebrew) | `brew install postgresql@16` | `brew services start postgresql@16` / `brew services stop postgresql@16` | -| Ubuntu / Debian | `sudo apt install postgresql-16` | `sudo systemctl start postgresql` / `sudo systemctl stop postgresql` | -| Windows | Install PostgreSQL 16 from postgresql.org | Use the PostgreSQL service in Windows Services or `Start-Service postgresql-x64-16` in an elevated PowerShell | - -Once the server is running, create the project database: +### Set `AUTH_IP_ADDRESS_HEADER` before you deploy -```bash -npm run db:local:create -npm run db:migrate -npm run db:local:psql -``` +Auth rate limits are keyed on the caller's IP, and Better Auth will only take +that from a single header you name — it will not trust a forwarded chain, +because behind an appending proxy the client controls the first entry. -Those scripts only use PostgreSQL's cross-platform `createdb` and `psql` -clients; they do not assume Homebrew, systemd or Windows Services. If the -`postgres` role does not exist, create it with your platform's admin account: +Leave it unset and it cannot tell callers apart, so everyone shares one bucket +per path. Sign-in allows three attempts per ten seconds, so three failed +sign-ins from any one person would lock out every user. -```sql -CREATE ROLE postgres WITH LOGIN SUPERUSER PASSWORD 'postgres'; -CREATE DATABASE rr7_test OWNER postgres; -``` +Set it to a header your proxy **always overwrites** — `x-real-ip` for most +reverse proxies, `cf-connecting-ip` behind Cloudflare, `fly-client-ip` on Fly. +A header a client can forge is worse than none. -Run the SQL through pgAdmin, a platform-provided SQL shell, or `psql` connected -as the existing administrator. If `rr7_test` already exists, skip -`db:local:create`. +## Quality foundation -Connection details: +`bun run check` is the single gate, locally and in CI: -```text -host: localhost -port: 5432 -user: postgres -password: postgres -database: rr7_test +```bash +bun run check # format:check, lint, typecheck, env:check, test, test:integration, db:drift, build ``` -Ensure `.env` contains the matching `DATABASE_URL` (see `.env.example`). +`check` includes the integration suite, so it needs `TEST_DATABASE_URL` set — see +[Integration and end-to-end tests](#integration-and-end-to-end-tests). Without it the +run stops partway with a message about the missing variable, which reads like a broken +test rather than an unset environment. + +| Command | Purpose | +| --- | --- | +| `bun run format` / `format:check` | Biome formatting | +| `bun run lint` / `lint:fix` | Biome linting | +| `bun run typecheck` | React Router typegen, then `tsc` | +| `bun run test` | Vitest unit and DOM projects | +| `bun run test:integration` | Vitest against a real PostgreSQL database | +| `bun run test:e2e` | Playwright smoke journey | +| `bun run db:drift` | Fails when the schema and migrations disagree | -### Billing (Polar) — optional +CI runs the same work in four parallel jobs — static, test, e2e/build, and security (CodeQL) — in [`.github/workflows/ci.yml`](.github/workflows/ci.yml). -Polar billing is **opt-in**. It turns on as soon as `POLAR_ACCESS_TOKEN` is set; -`POLAR_ENABLED=false` forces it off even when a token is present. +### Integration and end-to-end tests -| `POLAR_ACCESS_TOKEN` | `POLAR_ENABLED` | Result | -| -------------------- | --------------- | ----------------------------------------- | -| unset | anything | disabled (default for local dev) | -| set | unset / `true` | enabled | -| set | `false` | disabled (kill switch) | +Both need a database that is **not** your development one. `TEST_DATABASE_URL` is guarded: the suite refuses to run if it is absent, equal to `DATABASE_URL`, or names a database without `test` in it. -When disabled, the Better Auth Polar plugin is not mounted at all: +```bash +bun run db:test:setup # creates the database named by TEST_DATABASE_URL +DATABASE_URL="$TEST_DATABASE_URL" bun run db:migrate +bun run test:integration +bun run test:e2e +``` -- sign-up and sign-in work normally, -- `/dashboard/billing` renders a "Billing is not configured" notice and the - checkout / customer-portal buttons are disabled, -- `withAuthLoader` injects `customerState: null` instead of calling the Polar API, -- `/polar/webhooks` responds `503`. +`bun run db:up` provisions both `rocket` and `rocket_test` on first start. -This matters locally: with the plugin mounted but no valid token, Polar rejects -customer creation with a 401 and sign-up fails *after* the user row is written, -leaving an account that can never log in. +The Playwright journey covers the public page, the protected redirect, signup, dashboard render, logout, login, and one capability's disabled state — all with nothing configured. -> **Homebrew troubleshooting — service shows `error` and nothing listens on -> 5432.** Check `$(brew --prefix)/var/log/postgresql@16.log`. If it reports a -> stale `postmaster.pid`, confirm the referenced PID is not actually Postgres -> (`ps -p `) before removing the lock and restarting: -> -> ```bash -> rm "$(brew --prefix)/var/postgresql@16/postmaster.pid" -> brew services restart postgresql@16 -> ``` +It runs against the **production build**, not the dev server: that is the artifact you deploy, and the dev server's dependency optimizer reloads the page the first time it meets a new import, which silently wiped half-filled forms. It also asserts the pages hydrate without browser errors, since a page whose hydration threw still screenshots perfectly while its buttons do nothing. -### AI chat (Azure OpenAI) +## Local PostgreSQL -The `/dashboard/ai` route uses AI SDK 7 with the latest AI Elements components. -Configure an Azure OpenAI deployment in `.env`: +### Docker (recommended) ```bash -AZURE_OPENAI_RESOURCE_NAME=your-resource-name -AZURE_OPENAI_API_KEY=your-api-key -AZURE_OPENAI_DEPLOYMENT_NAME=gpt-5-chat +bun run db:up # start +bun run db:psql # psql inside the container +bun run db:logs # follow logs +bun run db:down # stop ``` -`AZURE_OPENAI_DEPLOYMENT_NAME` defaults to `gpt-5-chat`. The page remains -available without these values, but disables its composer and shows the missing -configuration. +### Native -## Building for Production +Install PostgreSQL 16, start its service, then create the databases: -Create a production build: - -```bash -npm run build +```sql +CREATE ROLE postgres WITH LOGIN SUPERUSER PASSWORD 'postgres'; +CREATE DATABASE rocket OWNER postgres; +CREATE DATABASE rocket_test OWNER postgres; ``` -## Deployment +| Platform | Install | Start | +| --- | --- | --- | +| macOS (Homebrew) | `brew install postgresql@16` | `brew services start postgresql@16` | +| Ubuntu / Debian | `sudo apt install postgresql-16` | `sudo systemctl start postgresql` | +| Windows | postgresql.org installer | `Start-Service postgresql-x64-16` | -### Docker Deployment +## Migrations -To build and run using Docker: +Rocket keeps one normal chronological migration history. Migrations are never conditional, and schema lives with the capability that owns it. ```bash -docker build -t my-app . - -# Run the container -docker run -p 3000:3000 my-app +bun run db:generate # after editing app/db/schema.ts +bun run db:migrate +bun run db:drift # verifies no ungenerated schema changes remain ``` -The containerized application can be deployed to any platform that supports Docker, including: - -- AWS ECS -- Google Cloud Run -- Azure Container Apps -- Digital Ocean App Platform -- Fly.io -- Railway +A migration that drops a table or column is destructive and gets explicit human review before it merges. -### DIY Deployment +Run `bun run db:migrate` after pulling or switching to a branch that adds migrations. An unmigrated database fails at the point the missing table is first queried, which surfaces as an unrelated-looking runtime error rather than a startup failure — a missing `organization` table, for example, shows up as a failed signup. -If you're familiar with deploying Node applications, the built-in app server is production-ready. +## Building for production -Make sure to deploy the output of `npm run build` - -```text -├── package.json -├── package-lock.json (or pnpm-lock.yaml, or bun.lockb) -├── build/ -│ ├── client/ # Static assets -│ └── server/ # Server-side code +```bash +bun run build +bun run start ``` -## Styling - -This template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever CSS framework you prefer. +The server build is a standard Node application (`build/server/index.js`) with static assets in `build/client/`. A `Dockerfile` is included; the image runs anywhere containers do. ---- +## Contributing back -Built with ❤️ using React Router. +Functionality first built in a Rocket application that proves generally useful is promoted into Rocket as a capability or Core code. The process is in [`docs/agents/upstreaming.md`](docs/agents/upstreaming.md). diff --git a/app/capabilities/ai-chat/ai-chat.server.ts b/app/capabilities/ai-chat/ai-chat.server.ts new file mode 100644 index 0000000..6c83212 --- /dev/null +++ b/app/capabilities/ai-chat/ai-chat.server.ts @@ -0,0 +1,44 @@ +import { createAzure } from "@ai-sdk/azure"; + +import { CapabilityUnavailableError } from "~/lib/capability"; +import { env } from "~/lib/env/env.server"; + +import { + AI_CHAT_CAPABILITY, + AI_CHAT_GUIDE, + type AiChatConfig, + isAiChatAvailable as isAvailable, + resolveDeploymentName, +} from "./config"; + +export const aiChatConfig: AiChatConfig = { + resourceName: env.AZURE_OPENAI_RESOURCE_NAME, + apiKey: env.AZURE_OPENAI_API_KEY, + deploymentName: env.AZURE_OPENAI_DEPLOYMENT_NAME, +}; + +/** Side-effect-free availability check; safe to call from a loader. */ +export function isAiChatAvailable(): boolean { + return isAvailable(aiChatConfig); +} + +/** + * The configured Azure chat model. + * + * AI SDK 6+ defaults to Azure's Responses API; `.chat()` keeps the existing + * Chat Completions behavior so current deployments continue to work. + * + * @throws {CapabilityUnavailableError} when Azure AI Chat is not configured. + */ +export function getChatModel() { + if (!isAiChatAvailable()) { + throw new CapabilityUnavailableError(AI_CHAT_CAPABILITY, AI_CHAT_GUIDE); + } + + const azure = createAzure({ + resourceName: aiChatConfig.resourceName, + apiKey: aiChatConfig.apiKey, + }); + + return azure.chat(resolveDeploymentName(aiChatConfig)); +} diff --git a/app/capabilities/ai-chat/config.ts b/app/capabilities/ai-chat/config.ts new file mode 100644 index 0000000..f02ab66 --- /dev/null +++ b/app/capabilities/ai-chat/config.ts @@ -0,0 +1,31 @@ +/** + * Pure configuration logic for the Azure AI Chat capability. + * + * Experimental: this capability is outside Rocket's production-support + * guarantee. See `docs/capabilities/ai-chat.md` for its coverage gaps. + */ + +export const AI_CHAT_CAPABILITY = "Azure AI Chat"; +export const AI_CHAT_GUIDE = "docs/capabilities/ai-chat.md"; + +export const DEFAULT_DEPLOYMENT_NAME = "gpt-5-chat"; + +export interface AiChatConfig { + resourceName?: string; + apiKey?: string; + deploymentName?: string; +} + +/** + * Available only when both the resource name and the API key are present. + * Partial configuration never reaches this check: it fails env validation at + * startup instead. + */ +export function isAiChatAvailable(config: AiChatConfig): boolean { + return Boolean(config.resourceName) && Boolean(config.apiKey); +} + +/** The deployment to call, falling back to Rocket's default model name. */ +export function resolveDeploymentName(config: AiChatConfig): string { + return config.deploymentName ?? DEFAULT_DEPLOYMENT_NAME; +} diff --git a/app/capabilities/billing/billing.server.ts b/app/capabilities/billing/billing.server.ts new file mode 100644 index 0000000..18d01f8 --- /dev/null +++ b/app/capabilities/billing/billing.server.ts @@ -0,0 +1,122 @@ +import { Polar } from "@polar-sh/sdk"; +import { + checkout, + polar, + portal, + usage, + webhooks, +} from "@polar-sh/better-auth"; + +import { CapabilityUnavailableError } from "~/lib/capability"; +import { env } from "~/lib/env/env.server"; + +import { + BILLING_CAPABILITY, + BILLING_GUIDE, + type BillingConfig, + areWebhooksAvailable, + isBillingAvailable as isAvailable, + isProCheckoutAvailable, +} from "./config"; + +export const billingConfig: BillingConfig = { + accessToken: env.POLAR_ACCESS_TOKEN, + server: env.POLAR_SERVER ?? "sandbox", + enabled: env.POLAR_ENABLED, + proProductId: env.POLAR_PRODUCT_PRO_ID, + webhookSecret: env.POLAR_WEBHOOK_SECRET, +}; + +/** + * Side-effect-free availability check. Never throws merely because billing is + * unconfigured, so loaders may call it to derive a safe `isBillingAvailable` + * fact for the browser. + */ +export function isBillingAvailable(): boolean { + return isAvailable(billingConfig); +} + +/** + * Whether webhook delivery is configured. Separate from `isBillingAvailable` + * because a webhook payload cannot be verified without the secret, so the + * endpoint must refuse even when billing itself is on. + */ +export function isBillingWebhookAvailable(): boolean { + return areWebhooksAvailable(billingConfig); +} + +export type PolarCustomerState = Awaited< + ReturnType +>; + +let cachedClient: Polar | null = null; + +/** + * The Polar SDK client. + * + * @throws {CapabilityUnavailableError} when billing is not configured. + */ +export function getPolarClient(): Polar { + if (!isBillingAvailable()) { + throw new CapabilityUnavailableError(BILLING_CAPABILITY, BILLING_GUIDE); + } + + cachedClient ??= new Polar({ + accessToken: billingConfig.accessToken, + server: billingConfig.server, + }); + + return cachedClient; +} + +/** + * Resolves the caller's subscription state, or `null` when billing is + * unavailable so callers can render a neutral state without branching on + * configuration themselves. + */ +export async function getCustomerState( + userId: string, +): Promise { + if (!isBillingAvailable()) return null; + + return getPolarClient().customers.getStateExternal({ externalId: userId }); +} + +/** + * The Better Auth plugin, or `null` when billing is unavailable. + * + * Returning `null` keeps the plugin unmounted entirely, so Polar's routes are + * absent rather than present and failing. + */ +export function createBillingPlugin() { + if (!isBillingAvailable()) return null; + + return polar({ + client: getPolarClient(), + createCustomerOnSignUp: true, + use: [ + checkout({ + products: isProCheckoutAvailable(billingConfig) + ? [{ productId: billingConfig.proProductId as string, slug: "pro" }] + : undefined, + successUrl: "/dashboard?checkout_id={CHECKOUT_ID}", + authenticatedUsersOnly: true, + }), + portal(), + usage(), + ...(areWebhooksAvailable(billingConfig) + ? [ + webhooks({ + secret: billingConfig.webhookSecret as string, + onOrderPaid: async () => { + // Grant product entitlements here. + }, + onCustomerStateChanged: async () => { + // Sync subscription state into application tables here. + }, + }), + ] + : []), + ], + }); +} diff --git a/app/capabilities/billing/config.ts b/app/capabilities/billing/config.ts new file mode 100644 index 0000000..e2c6fa2 --- /dev/null +++ b/app/capabilities/billing/config.ts @@ -0,0 +1,36 @@ +/** + * Pure configuration logic for the Polar billing capability. + * + * Kept free of environment access and side effects so the availability + * contract can be tested directly, without a live process environment. + */ + +export const BILLING_CAPABILITY = "Polar billing"; +export const BILLING_GUIDE = "docs/capabilities/billing.md"; + +export interface BillingConfig { + accessToken?: string; + server: "sandbox" | "production"; + /** Operational kill switch: false disables a fully configured integration. */ + enabled: boolean; + proProductId?: string; + webhookSecret?: string; +} + +/** + * Billing is available when an access token is present and the kill switch has + * not been thrown. Absent configuration is valid and simply means unavailable. + */ +export function isBillingAvailable(config: BillingConfig): boolean { + return Boolean(config.accessToken) && config.enabled; +} + +/** Whether webhook delivery is configured on top of an available integration. */ +export function areWebhooksAvailable(config: BillingConfig): boolean { + return isBillingAvailable(config) && Boolean(config.webhookSecret); +} + +/** Whether a purchasable product is mapped to the `pro` checkout slug. */ +export function isProCheckoutAvailable(config: BillingConfig): boolean { + return isBillingAvailable(config) && Boolean(config.proProductId); +} diff --git a/app/components/ai-elements/code-block.tsx b/app/components/ai-elements/code-block.tsx index f98d290..e7e0dff 100644 --- a/app/components/ai-elements/code-block.tsx +++ b/app/components/ai-elements/code-block.tsx @@ -87,7 +87,7 @@ const LINE_NUMBER_CLASSES = cn( "before:text-right", "before:text-muted-foreground/50", "before:font-mono", - "before:select-none" + "before:select-none", ); // Line rendering component @@ -148,7 +148,7 @@ const getTokensCacheKey = (code: string, language: BundledLanguage) => { }; const getHighlighter = ( - language: BundledLanguage + language: BundledLanguage, ): Promise> => { const cached = highlighterCache.get(language); if (cached) { @@ -176,7 +176,7 @@ const createRawTokens = (code: string): TokenizedCode => ({ color: "inherit", content: line, } as ThemedToken, - ] + ], ), }); @@ -185,7 +185,7 @@ export const highlightCode = ( code: string, language: BundledLanguage, // oxlint-disable-next-line eslint-plugin-promise(prefer-await-to-callbacks) - callback?: (result: TokenizedCode) => void + callback?: (result: TokenizedCode) => void, ): TokenizedCode | null => { const tokensCacheKey = getTokensCacheKey(code, language); @@ -260,26 +260,27 @@ const CodeBlockBody = memo( backgroundColor: tokenized.bg, color: tokenized.fg, }), - [tokenized.bg, tokenized.fg] + [tokenized.bg, tokenized.fg], ); const keyedLines = useMemo( () => addKeysToTokens(tokenized.tokens), - [tokenized.tokens] + [tokenized.tokens], ); return (
         
           {keyedLines.map((keyedLine) => (
@@ -296,7 +297,7 @@ const CodeBlockBody = memo(
   (prevProps, nextProps) =>
     prevProps.tokenized === nextProps.tokenized &&
     prevProps.showLineNumbers === nextProps.showLineNumbers &&
-    prevProps.className === nextProps.className
+    prevProps.className === nextProps.className,
 );
 
 CodeBlockBody.displayName = "CodeBlockBody";
@@ -310,7 +311,7 @@ export const CodeBlockContainer = ({
   
@@ -386,7 +387,7 @@ export const CodeBlockContent = ({ // Synchronous cache lookup — avoids setState in effect for cached results const syncTokens = useMemo( () => highlightCode(code, language) ?? rawTokens, - [code, language, rawTokens] + [code, language, rawTokens], ); // Async highlighting result (populated after shiki loads) @@ -480,7 +481,7 @@ export const CodeBlockCopyButton = ({ onCopy?.(); timeoutRef.current = window.setTimeout( () => setIsCopied(false), - timeout + timeout, ); } } catch (error) { @@ -492,7 +493,7 @@ export const CodeBlockCopyButton = ({ () => () => { window.clearTimeout(timeoutRef.current); }, - [] + [], ); const Icon = isCopied ? CheckIcon : CopyIcon; @@ -513,7 +514,7 @@ export const CodeBlockCopyButton = ({ export type CodeBlockLanguageSelectorProps = ComponentProps; export const CodeBlockLanguageSelector = ( - props: CodeBlockLanguageSelectorProps + props: CodeBlockLanguageSelectorProps, ) => setState((s) => ({ ...s, email: e.target.value }))} />
- setState((s) => ({ ...s, password: e.target.value }))} - /> +
- -
- Or create with email -
+ setState({ loading: true })} + onError={(message) => + setState({ loading: false, error: message }) + } + />
setState((s) => ({ ...s, name: e.target.value }))} />
setState((s) => ({ ...s, email: e.target.value }))} />
setState((s) => ({ ...s, password: e.target.value }))} />
-
+
Product Preview Placeholder
@@ -233,8 +268,8 @@ function LogoCloud() { return (
- {Array.from({ length: 6 }).map((_, i) => ( -
+ {logoPlaceholders.map((placeholderId) => ( +
))}
@@ -266,11 +301,11 @@ function Features() { title="Features" subtitle="Each block removes a week of boilerplate." /> -
+
{list.map((f, i) => (
@@ -295,14 +330,20 @@ function Features() { } function OutcomesStats() { - const stats = ["55%", "55%", "55%", "55%", "55%"]; + const stats = [ + { id: "stat-1", value: "55%", label: "Data 1" }, + { id: "stat-2", value: "55%", label: "Data 2" }, + { id: "stat-3", value: "55%", label: "Data 3" }, + { id: "stat-4", value: "55%", label: "Data 4" }, + { id: "stat-5", value: "55%", label: "Data 5" }, + ]; return (
-
- {stats.map((s, i) => ( -
-
{s}
-

Data {i + 1}

+
+ {stats.map((stat) => ( +
+
{stat.value}
+

{stat.label}

))}
@@ -331,11 +372,11 @@ function HowItWorks() { title="How It Works" subtitle="Three steps—production ready from day one." /> -
    +
      {steps.map((s, i) => (
    1. {i + 1} @@ -355,18 +396,26 @@ function HowItWorks() { } function WhyChoose() { - const points = ["Title", "Title", "Title", "Title"]; + const points = [ + { id: "point-1", title: "Title" }, + { id: "point-2", title: "Title" }, + { id: "point-3", title: "Title" }, + { id: "point-4", title: "Title" }, + ]; return (
      -
      - {points.map((p, i) => ( -
      +
      + {points.map((point) => ( +
      -

      {p}

      +

      {point.title}

      Short supporting explanation of the win.

      @@ -385,8 +434,11 @@ function Integrations() { subtitle="It plays nice with your stack." />
      - {Array.from({ length: 6 }).map((_, i) => ( -
      + {integrationPlaceholders.map((placeholderId) => ( +
      ))}
      @@ -401,11 +453,17 @@ function Testimonials() { subtitle="Users can sell your product better than you." />
      - {Array.from({ length: 5 }).map((_, i) => ( -
      + {testimonialCards.map((testimonialId) => ( +
      - {Array.from({ length: 5 }).map((_, r) => ( -
      + {testimonialStars.map((starId) => ( +
      ))}

      @@ -478,6 +536,7 @@ function Pricing() { Monthly

      -

      - © {new Date().getFullYear()} Your Company. All rights reserved. -

      +

      © {new Date().getFullYear()} Your Company. All rights reserved.

      - - Privacy Policy - - - Terms - + Privacy Policy + Terms
      diff --git a/app/routes/ai/chat.tsx b/app/routes/ai/chat.tsx index d60a1f6..74f2c7b 100644 --- a/app/routes/ai/chat.tsx +++ b/app/routes/ai/chat.tsx @@ -1,13 +1,11 @@ import type { Route } from "./+types/chat"; +import { isAiChatAvailable } from "~/capabilities/ai-chat/ai-chat.server"; import Chat from "./components/chat"; export async function loader({ request }: Route.LoaderArgs) { const { searchParams } = new URL(request.url); - const isAiConfigured = Boolean( - process.env.AZURE_OPENAI_RESOURCE_NAME && - process.env.AZURE_OPENAI_API_KEY - ); - return { isAiConfigured, searchParams }; + // Only a safe boolean crosses to the browser, never the configuration. + return { isAiConfigured: isAiChatAvailable(), searchParams }; } export default function ChatBotDemo({ loaderData }: Route.ComponentProps) { diff --git a/app/routes/ai/components/chat.tsx b/app/routes/ai/components/chat.tsx index eec34f1..c83076e 100644 --- a/app/routes/ai/components/chat.tsx +++ b/app/routes/ai/components/chat.tsx @@ -46,11 +46,7 @@ import { ToolInput, ToolOutput, } from "~/components/ai-elements/tool"; -import { - Alert, - AlertDescription, - AlertTitle, -} from "~/components/ui/alert"; +import { Alert, AlertDescription, AlertTitle } from "~/components/ui/alert"; import { Button } from "~/components/ui/button"; import { Empty, @@ -59,11 +55,7 @@ import { EmptyMedia, EmptyTitle, } from "~/components/ui/empty"; -import { - Marker, - MarkerContent, - MarkerIcon, -} from "~/components/ui/marker"; +import { Marker, MarkerContent, MarkerIcon } from "~/components/ui/marker"; import { MessageScroller, MessageScrollerButton, @@ -81,8 +73,7 @@ const chatTransport = new DefaultChatTransport({ function downloadConversation(messages: UIMessage[]) { const markdown = messages .map((message) => { - const role = - message.role.charAt(0).toUpperCase() + message.role.slice(1); + const role = message.role.charAt(0).toUpperCase() + message.role.slice(1); const text = message.parts .filter((part) => part.type === "text") .map((part) => part.text) @@ -91,7 +82,7 @@ function downloadConversation(messages: UIMessage[]) { }) .join("\n\n"); const url = URL.createObjectURL( - new Blob([markdown], { type: "text/markdown" }) + new Blob([markdown], { type: "text/markdown" }), ); const link = document.createElement("a"); link.href = url; @@ -114,16 +105,14 @@ function MessageParts({ isStreaming, }: MessagePartsProps) { const sourceParts = message.parts.filter( - (part) => part.type === "source-url" + (part) => part.type === "source-url", ); const reasoningParts = message.parts.filter( - (part) => part.type === "reasoning" + (part) => part.type === "reasoning", ); const reasoningText = reasoningParts.map((part) => part.text).join("\n\n"); const isReasoningStreaming = - isLastMessage && - isStreaming && - message.parts.at(-1)?.type === "reasoning"; + isLastMessage && isStreaming && message.parts.at(-1)?.type === "reasoning"; return ( <> @@ -131,10 +120,10 @@ function MessageParts({ - {sourceParts.map((part, index) => ( + {sourceParts.map((part) => ( ))} @@ -193,14 +182,7 @@ interface ChatProps { export default function Chat({ isConfigured }: ChatProps) { const [input, setInput] = useState(""); - const { - error, - messages, - regenerate, - sendMessage, - status, - stop, - } = useChat({ + const { error, messages, regenerate, sendMessage, status, stop } = useChat({ transport: chatTransport, }); @@ -231,10 +213,9 @@ export default function Chat({ isConfigured }: ChatProps) { Connect Azure OpenAI - Add AZURE_OPENAI_RESOURCE_NAME, - AZURE_OPENAI_API_KEY and your optional - AZURE_OPENAI_DEPLOYMENT_NAME to .env, then restart the - development server. + Add AZURE_OPENAI_RESOURCE_NAME, AZURE_OPENAI_API_KEY and + your optional AZURE_OPENAI_DEPLOYMENT_NAME to .env, then + restart the development server. @@ -259,8 +240,7 @@ export default function Chat({ isConfigured }: ChatProps) { ) : ( messages.map((message, messageIndex) => { - const isLastMessage = - messageIndex === messages.length - 1; + const isLastMessage = messageIndex === messages.length - 1; const responseText = message.parts .filter((part) => part.type === "text") .map((part) => part.text) @@ -350,10 +330,7 @@ export default function Chat({ isConfigured }: ChatProps) {
      - + diff --git a/app/routes/api/chat.tsx b/app/routes/api/chat.tsx index 5e3780a..1ef51e1 100644 --- a/app/routes/api/chat.tsx +++ b/app/routes/api/chat.tsx @@ -7,24 +7,30 @@ import { } from "ai"; import { z } from "zod"; -import { getModel, isAiConfigured } from "~/lib/ai/providers"; +import { + AI_CHAT_CAPABILITY, + AI_CHAT_GUIDE, +} from "~/capabilities/ai-chat/config"; +import { + getChatModel, + isAiChatAvailable, +} from "~/capabilities/ai-chat/ai-chat.server"; import { withAuthAction } from "~/utils/guard.server"; export const action = withAuthAction(async ({ request }) => { - if (!isAiConfigured()) { + if (!isAiChatAvailable()) { return Response.json( { - error: - "Azure OpenAI is not configured. Set AZURE_OPENAI_RESOURCE_NAME and AZURE_OPENAI_API_KEY.", + error: `The "${AI_CHAT_CAPABILITY}" capability is not configured. See ${AI_CHAT_GUIDE}.`, }, - { status: 503 } + { status: 503 }, ); } const { messages }: { messages: UIMessage[] } = await request.json(); const result = streamText({ - model: getModel(), + model: getChatModel(), messages: await convertToModelMessages(messages), stopWhen: isStepCount(5), tools: { diff --git a/app/routes/dashboard/dashboard.billing.tsx b/app/routes/dashboard/dashboard.billing.tsx index 9eeb71a..9d22a2c 100644 --- a/app/routes/dashboard/dashboard.billing.tsx +++ b/app/routes/dashboard/dashboard.billing.tsx @@ -11,7 +11,7 @@ import { } from "~/components/ui/card"; import { Button } from "~/components/ui/button"; import { withAuthLoader } from "~/utils/guard.server"; -import { isPolarEnabled } from "~/lib/auth/auth.server"; +import { isBillingAvailable } from "~/capabilities/billing/billing.server"; type BillingClientData = { active: boolean; @@ -21,7 +21,7 @@ type BillingClientData = { export const loader = withAuthLoader( async ({ customerState }): Promise => { - if (!isPolarEnabled || !customerState) { + if (!isBillingAvailable() || !customerState) { return { active: false, billingEnabled: false }; } @@ -29,7 +29,7 @@ export const loader = withAuthLoader( active: Boolean(customerState.activeSubscriptions?.length), billingEnabled: true, }; - } + }, ); export default function DashboardBilling({ diff --git a/app/routes/dashboard/dashboard.index.tsx b/app/routes/dashboard/dashboard.index.tsx index 39e3788..3923041 100644 --- a/app/routes/dashboard/dashboard.index.tsx +++ b/app/routes/dashboard/dashboard.index.tsx @@ -1,8 +1,26 @@ -import * as React from "react"; import type { ShouldRevalidateFunctionArgs } from "react-router"; -import { ChartContainer, ChartTooltip, ChartTooltipContent } from "~/components/ui/chart"; -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "~/components/ui/card"; -import { Area, AreaChart, CartesianGrid, XAxis, ResponsiveContainer, BarChart, Bar, Line, LineChart } from "recharts"; +import { + ChartContainer, + ChartTooltip, + ChartTooltipContent, +} from "~/components/ui/chart"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "~/components/ui/card"; +import { + Area, + AreaChart, + CartesianGrid, + XAxis, + ResponsiveContainer, + BarChart, + Bar, + Line, +} from "recharts"; import { DataTable } from "~/components/dashboard/data-table"; import { columns } from "~/components/dashboard/table-columns"; @@ -39,14 +57,39 @@ export default function DashboardHome() {

      Overview

      -

      Key product & revenue metrics at a glance.

      +

      + Key product & revenue metrics at a glance. +

      - - - - + + + +
      @@ -55,28 +98,62 @@ export default function DashboardHome() { Revenue & Signups Trailing 6 months performance - - - - - - - - - - - - - } /> - - - - - - + + + + + + + + + + + + + } + /> + + + + + + @@ -85,15 +162,27 @@ export default function DashboardHome() { - + - } /> - + } + /> + @@ -119,7 +208,19 @@ export function shouldRevalidate({ formMethod }: ShouldRevalidateFunctionArgs) { return !!formMethod && formMethod.toUpperCase() !== "GET"; } -function MetricCard({ title, value, change, sub, positive }: { title: string; value: string; change: string; sub: string; positive?: boolean }) { +function MetricCard({ + title, + value, + change, + sub, + positive, +}: { + title: string; + value: string; + change: string; + sub: string; + positive?: boolean; +}) { return ( @@ -127,10 +228,17 @@ function MetricCard({ title, value, change, sub, positive }: { title: string; va {value} - {change} + + {change} + {sub} ); } - diff --git a/app/routes/dashboard/dashboard.settings.tsx b/app/routes/dashboard/dashboard.settings.tsx index c32de97..ba86ecd 100644 --- a/app/routes/dashboard/dashboard.settings.tsx +++ b/app/routes/dashboard/dashboard.settings.tsx @@ -1,12 +1,10 @@ -import React, { useState, type FormEvent } from "react"; +import { useState } from "react"; import type { ShouldRevalidateFunctionArgs } from "react-router"; -import type { LoaderFunctionArgs, ActionFunctionArgs } from "react-router"; import { useLoaderData, useNavigation, useActionData, Form, - useFormAction, } from "react-router"; import { loadGeneralSettings, @@ -50,17 +48,21 @@ export const action = withAuthAction(async ({ request, user }) => { openaiApiKey: (data.openaiApiKey as string) || undefined, anthropicApiKey: (data.anthropicApiKey as string) || undefined, }); - return { ok: true, settings: updated }; - } catch (e: any) { - return { ok: false, error: e.message }; + return { ok: true, settings: updated } as const; + } catch (error) { + return { + ok: false, + error: error instanceof Error ? error.message : undefined, + } as const; } }); export default function DashboardSettings() { - const data = useLoaderData() as Awaited>; - const settings = data?.settings as any; - const actionData = useActionData() as any; + const { settings } = useLoaderData(); + const actionData = useActionData(); const nav = useNavigation(); + const actionError = + actionData && "error" in actionData ? actionData.error : undefined; const initial: GeneralSettingsState = { orgName: settings?.orgName || "", contactEmail: settings?.contactEmail || "", @@ -75,7 +77,7 @@ export default function DashboardSettings() { function handleChange( key: K, - value: GeneralSettingsState[K] + value: GeneralSettingsState[K], ) { setForm((f) => ({ ...f, [key]: value })); } @@ -243,8 +245,8 @@ export default function DashboardSettings() { {saved && ( Settings updated. )} - {actionData?.error && ( - {actionData.error} + {actionError && ( + {actionError} )}
      diff --git a/app/routes/forgot-password.tsx b/app/routes/forgot-password.tsx new file mode 100644 index 0000000..287f51f --- /dev/null +++ b/app/routes/forgot-password.tsx @@ -0,0 +1,128 @@ +import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router"; +import { Form, Link, redirect, useNavigation } from "react-router"; + +import { Button } from "~/components/ui/button"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "~/components/ui/card"; +import { Input } from "~/components/ui/input"; +import { Label } from "~/components/ui/label"; +import { auth } from "~/lib/auth/auth.server"; +import { getUser } from "~/lib/auth/require-auth.server"; + +import type { Route } from "./+types/forgot-password"; + +/** + * The response is deliberately identical whether or not the address is + * registered. Better Auth's own endpoint varies its body between the two + * cases, which leaks account existence, so this action discards the upstream + * result and always answers the same way. + */ +const ACKNOWLEDGEMENT = + "If an account exists for that address, a reset link is on its way."; + +export async function loader({ request }: LoaderFunctionArgs) { + const user = await getUser(request); + if (user) throw redirect("/dashboard"); + return null; +} + +export async function action({ request }: ActionFunctionArgs) { + const formData = await request.formData(); + const email = String(formData.get("email") ?? "").trim(); + + if (!email) { + return { error: "Enter the email address you signed up with." }; + } + + try { + await auth.api.requestPasswordReset({ + body: { email, redirectTo: "/reset-password" }, + }); + } catch (error) { + // A delivery failure must not become an account-existence oracle either. + // It is logged for the operator and hidden from the visitor. + console.error("Password reset request failed", error); + } + + return { sent: ACKNOWLEDGEMENT }; +} + +export default function ForgotPasswordPage({ + actionData, +}: Route.ComponentProps) { + const navigation = useNavigation(); + const isSubmitting = navigation.state === "submitting"; + + return ( +
      +
      + + Rocket + + Rocket + + + + + + Reset your password + + We'll email you a link to choose a new one. + + + + {actionData && "sent" in actionData ? ( +

      + {actionData.sent} +

      + ) : ( + +
      + + +
      + + {actionData && "error" in actionData && ( +

      + {actionData.error} +

      + )} + + )} +
      + + Back to login + +
      +
      +
      +
      +
      + ); +} diff --git a/app/routes/login.tsx b/app/routes/login.tsx index 75c9a5a..cecb00f 100644 --- a/app/routes/login.tsx +++ b/app/routes/login.tsx @@ -1,22 +1,39 @@ import { Link, redirect, type LoaderFunctionArgs } from "react-router"; import { LoginForm } from "~/components/login-form"; +import { isGoogleSignInAvailable } from "~/lib/auth/auth.server"; import { getUser } from "~/lib/auth/require-auth.server"; +import type { Route } from "./+types/login"; + export async function loader({ request }: LoaderFunctionArgs) { const user = await getUser(request); if (user) throw redirect("/dashboard"); - return null; + // Capability availability is resolved on the server so the client never + // renders a provider button that cannot work. + return { isGoogleSignInAvailable }; } -export default function LoginPage() { +export default function LoginPage({ loaderData }: Route.ComponentProps) { return (
      - - Rocket - Rocket + + Rocket + + Rocket + - +
      ); diff --git a/app/routes/logout.tsx b/app/routes/logout.tsx index 45072ea..c47ee81 100644 --- a/app/routes/logout.tsx +++ b/app/routes/logout.tsx @@ -1,15 +1,28 @@ import { redirect } from "react-router"; import { auth } from "~/lib/auth/auth.server"; +/** + * Signing out must both delete the server-side session and clear the browser's + * cookies. Better Auth returns the clearing `Set-Cookie` headers on its own + * response, so they are forwarded onto the redirect — dropping them would + * leave the signed session cookie in place, and with the session cookie cache + * enabled the visitor would stay authenticated until the cache expired. + */ export async function action({ request }: { request: Request }) { - // Use Better Auth API to sign out so session + cookies are cleared properly - await auth.api.signOut({ + const signOutResponse = await auth.api.signOut({ headers: request.headers, + asResponse: true, }); - throw redirect("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/login"); + + const headers = new Headers(); + for (const cookie of signOutResponse.headers.getSetCookie()) { + headers.append("set-cookie", cookie); + } + + return redirect("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/login", { headers }); } export async function loader() { - // Avoid GET usage; send to dashboard. + // Sign-out is a state change, so it must not be reachable by GET. throw redirect("/dashboard"); -} \ No newline at end of file +} diff --git a/app/routes/polar.webhooks.tsx b/app/routes/polar.webhooks.tsx index be77193..e115d5b 100644 --- a/app/routes/polar.webhooks.tsx +++ b/app/routes/polar.webhooks.tsx @@ -1,17 +1,24 @@ import type { ActionFunctionArgs } from "react-router"; -import { auth, isPolarEnabled } from "~/lib/auth/auth.server"; +import { isBillingWebhookAvailable } from "~/capabilities/billing/billing.server"; +import { auth } from "~/lib/auth/auth.server"; + +/** + * Polar's webhook handler is registered by the Better Auth plugin, so this + * route forwards to it. Without a webhook secret the payload signature cannot + * be verified, and an unverifiable payload must be refused rather than + * forwarded. + */ +const UNAVAILABLE = "Polar webhooks are not configured"; -// This route is hit by Polar webhooks; the Better Auth webhooks plugin registers a handler. export async function action({ request }: ActionFunctionArgs) { - if (!isPolarEnabled) { - return new Response("Polar billing is disabled", { status: 503 }); + if (!isBillingWebhookAvailable()) { + return new Response(UNAVAILABLE, { status: 503 }); } - // Forward to Better Auth handler; plugin is mounted by the Better Auth handler return auth.handler(request); } export async function loader() { - return isPolarEnabled + return isBillingWebhookAvailable() ? new Response("OK") - : new Response("Polar billing is disabled", { status: 503 }); + : new Response(UNAVAILABLE, { status: 503 }); } diff --git a/app/routes/reset-password.tsx b/app/routes/reset-password.tsx new file mode 100644 index 0000000..9578e49 --- /dev/null +++ b/app/routes/reset-password.tsx @@ -0,0 +1,138 @@ +import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router"; +import { Form, Link, redirect, useNavigation } from "react-router"; + +import { Button } from "~/components/ui/button"; +import { + Card, + CardContent, + CardDescription, + CardHeader, + CardTitle, +} from "~/components/ui/card"; +import { Input } from "~/components/ui/input"; +import { Label } from "~/components/ui/label"; +import { auth } from "~/lib/auth/auth.server"; +import { getUser } from "~/lib/auth/require-auth.server"; + +import type { Route } from "./+types/reset-password"; + +/** + * Better Auth issues the reset token as a path segment, so the token arrives + * as a route param rather than a query string. + */ + +const MIN_PASSWORD_LENGTH = 8; + +export async function loader({ request }: LoaderFunctionArgs) { + const user = await getUser(request); + if (user) throw redirect("/dashboard"); + return null; +} + +export async function action({ request, params }: ActionFunctionArgs) { + const formData = await request.formData(); + const password = String(formData.get("password") ?? ""); + const confirmation = String(formData.get("confirmPassword") ?? ""); + const token = params.token; + + if (!token) { + return { error: "This reset link is missing its token." }; + } + if (password.length < MIN_PASSWORD_LENGTH) { + return { + error: `Use at least ${MIN_PASSWORD_LENGTH} characters.`, + }; + } + if (password !== confirmation) { + return { error: "The two passwords do not match." }; + } + + try { + await auth.api.resetPassword({ body: { newPassword: password, token } }); + } catch { + return { + error: "That reset link is invalid or has expired. Request a new one.", + }; + } + + throw redirect("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/login?reset=1"); +} + +export default function ResetPasswordPage({ + actionData, +}: Route.ComponentProps) { + const navigation = useNavigation(); + const isSubmitting = navigation.state === "submitting"; + + return ( +
      +
      + + Rocket + + Rocket + + + + + + Choose a new password + + At least {MIN_PASSWORD_LENGTH} characters. + + + +
      +
      + + +
      +
      + + +
      + + {actionData?.error && ( +

      + {actionData.error} +

      + )} +
      +
      + + Request a new link + +
      +
      +
      +
      +
      + ); +} diff --git a/app/routes/signup.tsx b/app/routes/signup.tsx index c9dd170..eb4c74d 100644 --- a/app/routes/signup.tsx +++ b/app/routes/signup.tsx @@ -1,22 +1,39 @@ import { Link, redirect, type LoaderFunctionArgs } from "react-router"; import { SignupForm } from "~/components/signup-form"; +import { isGoogleSignInAvailable } from "~/lib/auth/auth.server"; import { getUser } from "~/lib/auth/require-auth.server"; +import type { Route } from "./+types/signup"; + export async function loader({ request }: LoaderFunctionArgs) { const user = await getUser(request); if (user) throw redirect("/dashboard"); - return null; + // Capability availability is resolved on the server so the client never + // renders a provider button that cannot work. + return { isGoogleSignInAvailable }; } -export default function SignupPage() { +export default function SignupPage({ loaderData }: Route.ComponentProps) { return (
      - - Rocket - Rocket + + Rocket + + Rocket + - +
      ); diff --git a/app/services/settings.service.ts b/app/services/settings.service.ts index 123d8f4..d99ddd8 100644 --- a/app/services/settings.service.ts +++ b/app/services/settings.service.ts @@ -1,14 +1,20 @@ -import { upsertUserSettings, getUserSettingsByUserId } from "~/db/queries/settings.queries"; +import { + upsertUserSettings, + getUserSettingsByUserId, +} from "~/db/queries/settings.queries"; // Business logic service layer (validation, orchestration, x-domain rules) -export async function saveGeneralSettings(userId: string, input: { - orgName?: string; - contactEmail?: string; - defaultModel?: string; - webhookUrl?: string; - openaiApiKey?: string; - anthropicApiKey?: string; -}) { +export async function saveGeneralSettings( + userId: string, + input: { + orgName?: string; + contactEmail?: string; + defaultModel?: string; + webhookUrl?: string; + openaiApiKey?: string; + anthropicApiKey?: string; + }, +) { if (input.contactEmail && !/^[^@]+@[^@]+\.[^@]+$/.test(input.contactEmail)) { throw new Error("Invalid contact email"); } diff --git a/app/utils/guard.server.ts b/app/utils/guard.server.ts index d0adb24..cfa5b3a 100644 --- a/app/utils/guard.server.ts +++ b/app/utils/guard.server.ts @@ -5,15 +5,16 @@ import type { ActionFunctionArgs, LoaderFunctionArgs } from "react-router"; // 2) Application-specific auth helpers +import { + type PolarCustomerState, + getCustomerState, +} from "~/capabilities/billing/billing.server"; import { getUser, requireAuth } from "~/lib/auth/require-auth.server"; -import { isPolarEnabled, polarClient } from "~/lib/auth/auth.server"; // Type helpers derived from our auth helpers (no `any`) export type RequireUser = Awaited>; export type OptionalUser = Awaited>; -export type PolarCustomerState = Awaited< - ReturnType ->; +export type { PolarCustomerState }; /** * withAuthLoader: wraps a loader so it runs only for authenticated users @@ -25,20 +26,19 @@ export function withAuthLoader< user: RequireUser; /** * Resolved Polar customer state for the authenticated user, - * or `null` when Polar billing is disabled (see `isPolarEnabled`). + * or `null` when billing is unavailable. */ customerState: PolarCustomerState | null; - } - ) => unknown + }, + ) => unknown, >(fn: L): (args: LoaderFunctionArgs) => Promise>> { return async (args: LoaderFunctionArgs): Promise>> => { - // Authenticate first to get the user id to query Polar with + // Authenticate first to get the user id to query billing with const user = await requireAuth(args.request); - // Fetch Polar state now so it's available to downstream loaders without awaiting - const customerState = isPolarEnabled - ? await polarClient.customers.getStateExternal({ externalId: user.id }) - : null; + // Resolves to null when billing is unavailable, so downstream loaders + // never branch on configuration themselves. + const customerState = await getCustomerState(user.id); return (await fn({ ...args, @@ -53,13 +53,13 @@ export function withAuthLoader< * Useful for public pages that are user-aware (e.g., navbar state). */ export function withOptionalUserLoader< - L extends (args: LoaderFunctionArgs & { user: OptionalUser }) => unknown ->( - fn: L -): (args: LoaderFunctionArgs) => Promise>> { + L extends (args: LoaderFunctionArgs & { user: OptionalUser }) => unknown, +>(fn: L): (args: LoaderFunctionArgs) => Promise>> { return async (args: LoaderFunctionArgs): Promise>> => { const user = await getUser(args.request); - return (await fn({ ...args, user } as Parameters[0])) as Awaited>; + return (await fn({ ...args, user } as Parameters[0])) as Awaited< + ReturnType + >; }; } @@ -68,12 +68,12 @@ export function withOptionalUserLoader< * and injects a guaranteed `user` property. */ export function withAuthAction< - A extends (args: ActionFunctionArgs & { user: RequireUser }) => unknown ->( - fn: A -): (args: ActionFunctionArgs) => Promise>> { + A extends (args: ActionFunctionArgs & { user: RequireUser }) => unknown, +>(fn: A): (args: ActionFunctionArgs) => Promise>> { return async (args: ActionFunctionArgs): Promise>> => { const user = await requireAuth(args.request); - return (await fn({ ...args, user } as Parameters[0])) as Awaited>; + return (await fn({ ...args, user } as Parameters[0])) as Awaited< + ReturnType + >; }; } diff --git a/app/welcome/logo-dark.svg b/app/welcome/logo-dark.svg deleted file mode 100644 index dd82028..0000000 --- a/app/welcome/logo-dark.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/welcome/logo-light.svg b/app/welcome/logo-light.svg deleted file mode 100644 index 7328492..0000000 --- a/app/welcome/logo-light.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/welcome/welcome.tsx b/app/welcome/welcome.tsx deleted file mode 100644 index 8ac6e1d..0000000 --- a/app/welcome/welcome.tsx +++ /dev/null @@ -1,89 +0,0 @@ -import logoDark from "./logo-dark.svg"; -import logoLight from "./logo-light.svg"; - -export function Welcome() { - return ( -
      - -
      - ); -} - -const resources = [ - { - href: "https://reactrouter.com/docs", - text: "React Router Docs", - icon: ( - - - - ), - }, - { - href: "https://rmx.as/discord", - text: "Join Discord", - icon: ( - - - - ), - }, -]; diff --git a/auth-schema.ts b/auth-schema.ts deleted file mode 100644 index d36ff5e..0000000 --- a/auth-schema.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { - pgTable, - text, - timestamp, - boolean, - integer, -} from "drizzle-orm/pg-core"; - -export const user = pgTable("user", { - id: text("id").primaryKey(), - name: text("name").notNull(), - email: text("email").notNull().unique(), - emailVerified: boolean("email_verified") - .$defaultFn(() => false) - .notNull(), - image: text("image"), - createdAt: timestamp("created_at") - .$defaultFn(() => /* @__PURE__ */ new Date()) - .notNull(), - updatedAt: timestamp("updated_at") - .$defaultFn(() => /* @__PURE__ */ new Date()) - .notNull(), -}); - -export const session = pgTable("session", { - id: text("id").primaryKey(), - expiresAt: timestamp("expires_at").notNull(), - token: text("token").notNull().unique(), - createdAt: timestamp("created_at").notNull(), - updatedAt: timestamp("updated_at").notNull(), - ipAddress: text("ip_address"), - userAgent: text("user_agent"), - userId: text("user_id") - .notNull() - .references(() => user.id, { onDelete: "cascade" }), -}); - -export const account = pgTable("account", { - id: text("id").primaryKey(), - accountId: text("account_id").notNull(), - providerId: text("provider_id").notNull(), - userId: text("user_id") - .notNull() - .references(() => user.id, { onDelete: "cascade" }), - accessToken: text("access_token"), - refreshToken: text("refresh_token"), - idToken: text("id_token"), - accessTokenExpiresAt: timestamp("access_token_expires_at"), - refreshTokenExpiresAt: timestamp("refresh_token_expires_at"), - scope: text("scope"), - password: text("password"), - createdAt: timestamp("created_at").notNull(), - updatedAt: timestamp("updated_at").notNull(), -}); - -export const verification = pgTable("verification", { - id: text("id").primaryKey(), - identifier: text("identifier").notNull(), - value: text("value").notNull(), - expiresAt: timestamp("expires_at").notNull(), - createdAt: timestamp("created_at").$defaultFn( - () => /* @__PURE__ */ new Date(), - ), - updatedAt: timestamp("updated_at").$defaultFn( - () => /* @__PURE__ */ new Date(), - ), -}); diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..44a6e7b --- /dev/null +++ b/biome.json @@ -0,0 +1,59 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.5.8/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "includes": [ + "**", + "!build", + "!drizzle", + "!.react-router", + "!node_modules", + "!playwright-report", + "!test-results", + "!app/components/ui", + "!bun.lock", + "!**/*.css" + ] + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2, + "lineWidth": 80 + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "suspicious": { + "noExplicitAny": "error" + }, + "style": { + "useConst": "error", + "noNonNullAssertion": "warn" + }, + "correctness": { + "noUnusedVariables": "error", + "noUnusedImports": "error" + } + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double", + "semicolons": "always", + "trailingCommas": "all" + } + }, + "assist": { + "actions": { + "source": { + "organizeImports": "on" + } + } + } +} diff --git a/bun.lock b/bun.lock index e64ed5e..102c19b 100644 --- a/bun.lock +++ b/bun.lock @@ -9,8 +9,8 @@ "@ai-sdk/react": "^4.0.43", "@hookform/resolvers": "^5.2.1", "@icons-pack/react-simple-icons": "^13.7.0", - "@polar-sh/better-auth": "^1.1.0", - "@polar-sh/sdk": "^0.34.11", + "@polar-sh/better-auth": "1.8.4", + "@polar-sh/sdk": "0.47.0", "@radix-ui/react-accordion": "^1.2.12", "@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -45,11 +45,12 @@ "@streamdown/code": "^1.1.1", "@streamdown/math": "^1.0.2", "@streamdown/mermaid": "^1.0.2", + "@t3-oss/env-core": "^0.13.11", "@tanstack/react-table": "^8.21.3", "@vercel/analytics": "^1.5.0", "@vercel/react-router": "^1.2.2", "ai": "^7.0.40", - "better-auth": "^1.3.7", + "better-auth": "1.6.29", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.1.1", @@ -81,24 +82,36 @@ "zod": "^4.4.3", }, "devDependencies": { + "@biomejs/biome": "^2.5.8", + "@playwright/test": "^1.62.1", "@react-router/dev": "^7.7.1", "@tailwindcss/vite": "^4.1.4", + "@testing-library/dom": "^10.4.1", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.2", "@types/node": "^24", "@types/nprogress": "latest", "@types/pg": "^8.15.5", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.5", + "@vitest/coverage-v8": "^4.1.10", + "dotenv": "^17.4.2", "dotenv-cli": "^10.0.0", "drizzle-kit": "^0.31.4", + "jsdom": "^30.0.1", "tailwindcss": "^4.1.4", "tw-animate-css": "^1.3.6", "typescript": "^5.8.3", "vite": "^6.3.3", - "vite-tsconfig-paths": "^5.1.4", + "vite-tsconfig-paths": "^6.1.1", + "vitest": "^4.1.10", }, }, }, "packages": { + "@adobe/css-tools": ["@adobe/css-tools@4.5.0", "", {}, "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q=="], + "@ai-sdk/azure": ["@ai-sdk/azure@4.0.23", "", { "dependencies": { "@ai-sdk/deepseek": "3.0.15", "@ai-sdk/openai": "4.0.22", "@ai-sdk/provider": "4.0.4", "@ai-sdk/provider-utils": "5.0.14" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-cGNyOM8h3pbtSoVtqnWIxzTsum0LIIc1rUI8VLQJcptmYm7F71RZtclnOZKu150iiADINkZA3sJjS8Bt4kocKQ=="], "@ai-sdk/deepseek": ["@ai-sdk/deepseek@3.0.15", "", { "dependencies": { "@ai-sdk/provider": "4.0.4", "@ai-sdk/provider-utils": "5.0.14" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-ajZySPn1s/CXYrxdCWiwrX0x1dl7KbhKmxgdavxw5Cc853NczRhgi1BcQX6aZqA4w6jEF/E2zGniSqtFFAeXWA=="], @@ -121,6 +134,10 @@ "@antfu/utils": ["@antfu/utils@9.3.0", "", {}, "sha512-9hFT4RauhcUzqOE4f1+frMKLZrgNog5b06I7VmZQV1BkvwvqrbC8EBZf3L1eEL2AKb6rNKjER0sEvJiSP1FXEA=="], + "@asamuzakjp/css-color": ["@asamuzakjp/css-color@6.0.7", "", { "dependencies": { "@csstools/css-calc": "^3.3.0", "@csstools/css-color-parser": "^4.1.10", "@csstools/css-parser-algorithms": "^4.0.0", "@csstools/css-tokenizer": "^4.0.0", "lru-cache": "^11.5.2" } }, "sha512-vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw=="], + + "@asamuzakjp/dom-selector": ["@asamuzakjp/dom-selector@8.3.2", "", { "dependencies": { "bidi-js": "^1.0.3", "css-tree": "^3.2.1", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.5.2" } }, "sha512-93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q=="], + "@babel/code-frame": ["@babel/code-frame@7.27.1", "", { "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", "js-tokens": "^4.0.0", "picocolors": "^1.1.1" } }, "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg=="], "@babel/compat-data": ["@babel/compat-data@7.28.0", "", {}, "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw=="], @@ -183,14 +200,62 @@ "@babel/types": ["@babel/types@7.28.2", "", { "dependencies": { "@babel/helper-string-parser": "^7.27.1", "@babel/helper-validator-identifier": "^7.27.1" } }, "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ=="], - "@better-auth/utils": ["@better-auth/utils@0.2.6", "", { "dependencies": { "uncrypto": "^0.1.3" } }, "sha512-3y/vaL5Ox33dBwgJ6ub3OPkVqr6B5xL2kgxNHG8eHZuryLyG/4JSPGqjbdRSgjuy9kALUZYDFl+ORIAxlWMSuA=="], + "@bcoe/v8-coverage": ["@bcoe/v8-coverage@1.0.2", "", {}, "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA=="], + + "@better-auth/core": ["@better-auth/core@1.6.29", "", { "dependencies": { "@opentelemetry/semantic-conventions": "^1.39.0", "@standard-schema/spec": "^1.1.0", "zod": "^4.3.6" }, "peerDependencies": { "@better-auth/utils": "0.4.2", "@better-fetch/fetch": "1.3.1", "@cloudflare/workers-types": ">=4", "@opentelemetry/api": "^1.9.0", "better-call": "1.4.0", "jose": "^6.1.0", "kysely": "^0.28.5 || ^0.29.0", "nanostores": "^1.0.1" }, "optionalPeers": ["@cloudflare/workers-types", "@opentelemetry/api"] }, "sha512-hkUxePo548G0Y247had36TcfsH7E+cofcTc2UivMAbjkdLPKn1ZUk6Pjkc/kvk9xTbWYCUDX6JA9emJc0Gnufg=="], + + "@better-auth/drizzle-adapter": ["@better-auth/drizzle-adapter@1.6.29", "", { "peerDependencies": { "@better-auth/core": "^1.6.29", "@better-auth/utils": "0.4.2", "drizzle-orm": "^0.45.2" }, "optionalPeers": ["drizzle-orm"] }, "sha512-IdvrqHnnRNKqz6KOSII3rZNiTzv1pmVmx5xGRGZdVm8W3OYi98an5kIovao/b3GZh2nHGTzdeTfMSSZNCyGXBg=="], + + "@better-auth/kysely-adapter": ["@better-auth/kysely-adapter@1.6.29", "", { "peerDependencies": { "@better-auth/core": "^1.6.29", "@better-auth/utils": "0.4.2", "kysely": "^0.28.17 || ^0.29.0" }, "optionalPeers": ["kysely"] }, "sha512-n87hHC/miSaUaKdnQygz+2wlj2KI2rsGazDPaKF0wbH8i87um9HPDWyz3VdbkqPN79e0qbVfMR9pY7GZQm/X8w=="], + + "@better-auth/memory-adapter": ["@better-auth/memory-adapter@1.6.29", "", { "peerDependencies": { "@better-auth/core": "^1.6.29", "@better-auth/utils": "0.4.2" } }, "sha512-F1yLUbNTc/pikEaTlgWOgYlT2RDSi2dV1ysWxacRmQhYtLGYAun1JgU7TDdcEjts+wrLcm+JzRzt5F+ZgNfz9A=="], + + "@better-auth/mongo-adapter": ["@better-auth/mongo-adapter@1.6.29", "", { "peerDependencies": { "@better-auth/core": "^1.6.29", "@better-auth/utils": "0.4.2", "mongodb": "^6.0.0 || ^7.0.0" }, "optionalPeers": ["mongodb"] }, "sha512-gyOpfBBCpe2wDnv9CY2T0jirC4oTqk3i5svWYBGkGTAFrKsfJA516NMOs001PiHsEDf/JttZapQv5dkoPD0x2w=="], + + "@better-auth/prisma-adapter": ["@better-auth/prisma-adapter@1.6.29", "", { "peerDependencies": { "@better-auth/core": "^1.6.29", "@better-auth/utils": "0.4.2", "@prisma/client": "^5.0.0 || ^6.0.0 || ^7.0.0", "prisma": "^5.0.0 || ^6.0.0 || ^7.0.0" }, "optionalPeers": ["@prisma/client", "prisma"] }, "sha512-W5lr8AYXwa68qhS7PEpEsisF7ASs9rWJyczoZr8+vYypPBmGMq1Yf8bYJ9ig95zj1wdaQGim2ZSYs8hxZeaKVQ=="], + + "@better-auth/telemetry": ["@better-auth/telemetry@1.6.29", "", { "peerDependencies": { "@better-auth/core": "^1.6.29", "@better-auth/utils": "0.4.2", "@better-fetch/fetch": "1.3.1" } }, "sha512-zW1GRIBR/sn83siG+xK4ll/gzfTRxVh6rcpzzjYkR2W9/DkDMwEotl/Mz8OW0Gr2KpuhEkfwiVGH9zp/cyK4Pg=="], + + "@better-auth/utils": ["@better-auth/utils@0.4.2", "", { "dependencies": { "@noble/hashes": "^2.0.1" } }, "sha512-AUxrvu+HaaODsUyzDxFgwd/8RZ1yZaYo42LXKSrU2oGgR38pS1ij8nqQKNgtTWoYGpNevNXtCfgTy6loHveW9A=="], - "@better-fetch/fetch": ["@better-fetch/fetch@1.1.18", "", {}, "sha512-rEFOE1MYIsBmoMJtQbl32PGHHXuG2hDxvEd7rUHE0vCBoFQVSDqaVs9hkZEtHCxRoY+CljXKFCOuJ8uxqw1LcA=="], + "@better-fetch/fetch": ["@better-fetch/fetch@1.3.1", "", {}, "sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g=="], + + "@biomejs/biome": ["@biomejs/biome@2.5.8", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.5.8", "@biomejs/cli-darwin-x64": "2.5.8", "@biomejs/cli-linux-arm64": "2.5.8", "@biomejs/cli-linux-arm64-musl": "2.5.8", "@biomejs/cli-linux-x64": "2.5.8", "@biomejs/cli-linux-x64-musl": "2.5.8", "@biomejs/cli-win32-arm64": "2.5.8", "@biomejs/cli-win32-x64": "2.5.8" }, "bin": { "biome": "bin/biome" } }, "sha512-aeAeeJB9fSDc7Gq+2GqpQxA0qBj6gj1k2R6L1cYqGePKP/baIq1WX8y6B+D+nRsO5ViQL22K/8IwbqERW0q1nw=="], + + "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.5.8", "", { "os": "darwin", "cpu": "arm64" }, "sha512-mk1QON9PHllvvLN5gU3f4rMxeh4syK5p9OvKyWH6/W8ueh04uaC8TUXXByhGufWf/y5mQc03ZLM45zU+cmqMjA=="], + + "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.5.8", "", { "os": "darwin", "cpu": "x64" }, "sha512-bsGwFMBNyHPyiLSsQcZJxdoRrg1V4JL+d7wEsvUBczlP9U9lwM+7mzQHxI4o1mhBsTmdOBbAb6fHU3Z3snN45w=="], + + "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.5.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-XmFiA0WPYFC+uiUDC8WRFzAIH9bo7vwQLav38Uoq4ETC+T/+uBi0TsYGJECkugY3r8USl3jc+Ae2/irAF6F2lQ=="], + + "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.5.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-VcJNbstduTHx83NGAdhp78/JOcP45BZHXL7yNsfI1uGzdUgegAz2s+mSoT7wK6PBNzLoqG0zDOXaz/RQYVtSiw=="], + + "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.5.8", "", { "os": "linux", "cpu": "x64" }, "sha512-S5wcm9OBDvLHodD4PUaN488hCpco9QD/9ZxuYJiw4euWtr/oQvLR72z2ixItH8Wd5BCm6FZaeb+YNvOoM1xHtQ=="], + + "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.5.8", "", { "os": "linux", "cpu": "x64" }, "sha512-kKmiyokeISRGq2FLwvr+TzsgBusfxaZ0FZNLcOYOpCK/78tRrEjeEBLvq3xLZMpqbANgJdRPI7vZX8ZL37u9/w=="], + + "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.5.8", "", { "os": "win32", "cpu": "arm64" }, "sha512-nILH0mzm3Hi3iEdd7o7GpB8kBR/mSQwfQG/tyBqyNrY2GFtcgwfV9nV8xLmbtUpMNY/Oi0Ml1XgfR4flOdq+AA=="], + + "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.5.8", "", { "os": "win32", "cpu": "x64" }, "sha512-I2czzXTY61f3nFJxXoMDq80t7MivxDEnCjE+8sDKoFfcKMaoQdkqhIFQ3KyY0XLzeSpUBYeNAXgD+iOV/BU0VA=="], "@braintree/sanitize-url": ["@braintree/sanitize-url@7.1.2", "", {}, "sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA=="], + "@bramus/specificity": ["@bramus/specificity@2.4.2", "", { "dependencies": { "css-tree": "^3.0.0" }, "bin": { "specificity": "bin/cli.js" } }, "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw=="], + "@chevrotain/types": ["@chevrotain/types@11.1.2", "", {}, "sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw=="], + "@csstools/color-helpers": ["@csstools/color-helpers@6.1.1", "", {}, "sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w=="], + + "@csstools/css-calc": ["@csstools/css-calc@3.3.0", "", { "peerDependencies": { "@csstools/css-parser-algorithms": "^4.0.0", "@csstools/css-tokenizer": "^4.0.0" } }, "sha512-c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ=="], + + "@csstools/css-color-parser": ["@csstools/css-color-parser@4.2.0", "", { "dependencies": { "@csstools/color-helpers": "^6.1.1", "@csstools/css-calc": "^3.3.0" }, "peerDependencies": { "@csstools/css-parser-algorithms": "^4.0.0", "@csstools/css-tokenizer": "^4.0.0" } }, "sha512-5+5LEmFuY1AjXdYhmgjTJogtQnP1evJ1zrBZGUNZ0thkpwnnmKxcHdAMn/OtFjAb25zA+jKDVYVRl+5G7rjv1A=="], + + "@csstools/css-parser-algorithms": ["@csstools/css-parser-algorithms@4.0.0", "", { "peerDependencies": { "@csstools/css-tokenizer": "^4.0.0" } }, "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w=="], + + "@csstools/css-syntax-patches-for-csstree": ["@csstools/css-syntax-patches-for-csstree@1.1.8", "", { "peerDependencies": { "css-tree": "^3.2.1" }, "optionalPeers": ["css-tree"] }, "sha512-CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg=="], + + "@csstools/css-tokenizer": ["@csstools/css-tokenizer@4.0.0", "", {}, "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA=="], + "@date-fns/tz": ["@date-fns/tz@1.4.1", "", {}, "sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA=="], "@dotenvx/dotenvx": ["@dotenvx/dotenvx@1.75.1", "", { "dependencies": { "@dotenvx/primitives": "^0.8.0", "commander": "^11.1.0", "conf": "^10.2.0", "dotenv": "^17.2.1", "enquirer": "^2.4.1", "env-paths": "^2.2.1", "execa": "^5.1.1", "fdir": "^6.2.0", "ignore": "^5.3.0", "object-treeify": "1.1.33", "open": "^8.4.2", "picomatch": "^4.0.4", "systeminformation": "^5.22.11", "undici": "^7.11.0", "which": "^4.0.0", "yocto-spinner": "^1.1.0" }, "bin": { "dotenvx": "src/cli/dotenvx.js" } }, "sha512-/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ=="], @@ -255,6 +320,8 @@ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.25.8", "", { "os": "win32", "cpu": "x64" }, "sha512-cn3Yr7+OaaZq1c+2pe+8yxC8E144SReCQjN6/2ynubzYjvyqZjTXfQJpAcQpsdJq3My7XADANiYGHoFC69pLQw=="], + "@exodus/bytes": ["@exodus/bytes@1.15.1", "", { "peerDependencies": { "@noble/hashes": "^1.8.0 || ^2.0.0" }, "optionalPeers": ["@noble/hashes"] }, "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q=="], + "@floating-ui/core": ["@floating-ui/core@1.7.3", "", { "dependencies": { "@floating-ui/utils": "^0.2.10" } }, "sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w=="], "@floating-ui/dom": ["@floating-ui/dom@1.7.3", "", { "dependencies": { "@floating-ui/core": "^1.7.3", "@floating-ui/utils": "^0.2.10" } }, "sha512-uZA413QEpNuhtb3/iIKoYMSK07keHPYeXF02Zhd6e213j+d1NamLix/mCLxBUDW/Gx52sPH2m+chlUsyaBs/Ag=="], @@ -263,8 +330,6 @@ "@floating-ui/utils": ["@floating-ui/utils@0.2.10", "", {}, "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ=="], - "@hexagon/base64": ["@hexagon/base64@1.1.28", "", {}, "sha512-lhqDEAvWixy3bZ+UOYbPwUbBkwBq5C1LAJ/xPC8Oi+lL54oyakv/npbA0aU2hgCsx/1NUd4IBvV03+aUBWxerw=="], - "@hono/node-server": ["@hono/node-server@2.0.12", "", { "peerDependencies": { "hono": "^4" } }, "sha512-eWpQYr67tqJLeaSUl0Q+TquuYfUdTibpOJlUMV2FfUP7+KqCC5TufnwnlXL6mobZBJbGAYRd7ZvEBDCbLInjhg=="], "@hookform/resolvers": ["@hookform/resolvers@5.2.1", "", { "dependencies": { "@standard-schema/utils": "^0.3.0" }, "peerDependencies": { "react-hook-form": "^7.55.0" } }, "sha512-u0+6X58gkjMcxur1wRWokA7XsiiBJ6aK17aPZxhkoYiK5J+HcTx0Vhu9ovXe6H+dVpO6cjrn2FkJTryXEMlryQ=="], @@ -283,21 +348,19 @@ "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], - "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.4", "", {}, "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw=="], + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.29", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ=="], - "@levischuck/tiny-cbor": ["@levischuck/tiny-cbor@0.2.11", "", {}, "sha512-llBRm4dT4Z89aRsm6u2oEZ8tfwL/2l6BwpZ7JcyieouniDECM5AqNgr/y08zalEIvW3RSK4upYyybDcmjXqAow=="], - "@mermaid-js/parser": ["@mermaid-js/parser@1.2.0", "", { "dependencies": { "@chevrotain/types": "~11.1.2" } }, "sha512-oYPyv8A4As1yH5Bx+04iQEQxXuIQDe0GKCNSRgao6z8AM9jixXIfP0vsppRLvGf+nKIOb9/LdpWA4YuJiVvESA=="], "@mjackson/node-fetch-server": ["@mjackson/node-fetch-server@0.2.0", "", {}, "sha512-EMlH1e30yzmTpGLQjlFmaDAjyOeZhng1/XCd7DExR8PNAnG/G1tyruZxEoUe11ClnwGhGrtsdnyyUx1frSzjng=="], "@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.30.0", "", { "dependencies": { "@hono/node-server": "^1.19.9 || ^2.0.5", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.2.1", "express-rate-limit": "^8.2.1", "hono": "^4.11.4", "jose": "^6.1.3", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25.1" }, "peerDependencies": { "@cfworker/json-schema": "^4.1.1" }, "optionalPeers": ["@cfworker/json-schema"] }, "sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA=="], - "@noble/ciphers": ["@noble/ciphers@0.6.0", "", {}, "sha512-mIbq/R9QXk5/cTfESb1OKtyFnk7oc1Om/8onA1158K9/OZUQFDEVy55jVTato+xmp3XX6F6Qh0zz0Nc1AxAlRQ=="], + "@noble/ciphers": ["@noble/ciphers@2.3.0", "", {}, "sha512-Clu/xdfgVTf9o7ngLOURaxePwR0j8sjclKEtVij10/jGulwFsPWCvvRgG/XjUVf8Nei+jLG6uwyXzUTGY1DQrw=="], - "@noble/hashes": ["@noble/hashes@1.8.0", "", {}, "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A=="], + "@noble/hashes": ["@noble/hashes@2.3.0", "", {}, "sha512-oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ=="], "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="], @@ -313,21 +376,17 @@ "@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="], - "@peculiar/asn1-android": ["@peculiar/asn1-android@2.4.0", "", { "dependencies": { "@peculiar/asn1-schema": "^2.4.0", "asn1js": "^3.0.6", "tslib": "^2.8.1" } }, "sha512-YFueREq97CLslZZBI8dKzis7jMfEHSLxM+nr0Zdx1POiXFLjqqwoY5s0F1UimdBiEw/iKlHey2m56MRDv7Jtyg=="], - - "@peculiar/asn1-ecc": ["@peculiar/asn1-ecc@2.4.0", "", { "dependencies": { "@peculiar/asn1-schema": "^2.4.0", "@peculiar/asn1-x509": "^2.4.0", "asn1js": "^3.0.6", "tslib": "^2.8.1" } }, "sha512-fJiYUBCJBDkjh347zZe5H81BdJ0+OGIg0X9z06v8xXUoql3MFeENUX0JsjCaVaU9A0L85PefLPGYkIoGpTnXLQ=="], + "@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.43.0", "", {}, "sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg=="], - "@peculiar/asn1-rsa": ["@peculiar/asn1-rsa@2.4.0", "", { "dependencies": { "@peculiar/asn1-schema": "^2.4.0", "@peculiar/asn1-x509": "^2.4.0", "asn1js": "^3.0.6", "tslib": "^2.8.1" } }, "sha512-6PP75voaEnOSlWR9sD25iCQyLgFZHXbmxvUfnnDcfL6Zh5h2iHW38+bve4LfH7a60x7fkhZZNmiYqAlAff9Img=="], - - "@peculiar/asn1-schema": ["@peculiar/asn1-schema@2.4.0", "", { "dependencies": { "asn1js": "^3.0.6", "pvtsutils": "^1.3.6", "tslib": "^2.8.1" } }, "sha512-umbembjIWOrPSOzEGG5vxFLkeM8kzIhLkgigtsOrfLKnuzxWxejAcUX+q/SoZCdemlODOcr5WiYa7+dIEzBXZQ=="], + "@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="], - "@peculiar/asn1-x509": ["@peculiar/asn1-x509@2.4.0", "", { "dependencies": { "@peculiar/asn1-schema": "^2.4.0", "asn1js": "^3.0.6", "pvtsutils": "^1.3.6", "tslib": "^2.8.1" } }, "sha512-F7mIZY2Eao2TaoVqigGMLv+NDdpwuBKU1fucHPONfzaBS4JXXCNCmfO0Z3dsy7JzKGqtDcYC1mr9JjaZQZNiuw=="], + "@playwright/test": ["@playwright/test@1.62.1", "", { "dependencies": { "playwright": "1.62.1" }, "bin": { "playwright": "cli.js" } }, "sha512-DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ=="], - "@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="], + "@polar-sh/better-auth": ["@polar-sh/better-auth@1.8.4", "", { "dependencies": { "@polar-sh/checkout": "^0.2.0" }, "peerDependencies": { "@polar-sh/sdk": "^0.47.0", "better-auth": "^1.4.12", "zod": "^3.25.0 || ^4.0.0" } }, "sha512-BgWCcBQDRYwQn2NEYYzGSEfnrmBJHaDTvYBXGE2V3mmGPKspUDS8+p1LzbNY0Sw681LT8HB5w5Q81Ysc46CVSQ=="], - "@polar-sh/better-auth": ["@polar-sh/better-auth@1.1.0", "", { "dependencies": { "zod": "^3.24.2" }, "peerDependencies": { "@polar-sh/sdk": "^0.34.8", "better-auth": "^1.2.7" } }, "sha512-oyFtL92aXTRumG9G9jyENkrKTMOGieUSb8L7aKM7Rvq8bHOEZaZ4PZcR+S+jJ7XznTBwbbCRUEqr1Tk4yvo4VQ=="], + "@polar-sh/checkout": ["@polar-sh/checkout@0.2.1", "", { "dependencies": { "date-fns": "^4.1.0" }, "peerDependencies": { "@stripe/react-stripe-js": "^3.6.0 || ^4.0.2", "@stripe/stripe-js": "^7.1.0", "react": "^18 || ^19" } }, "sha512-AEKKw3o4ykApECA4bU6a2YC0+aQKTFUasca4ZgCDIjG8AHlu3SjW3Taxh2nfeYAczhah0m0axVF9AV8VfdYzfw=="], - "@polar-sh/sdk": ["@polar-sh/sdk@0.34.11", "", { "dependencies": { "standardwebhooks": "^1.0.0", "zod": "^3.25.76" }, "peerDependencies": { "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0" }, "optionalPeers": ["@modelcontextprotocol/sdk"], "bin": { "mcp": "bin/mcp-server.js" } }, "sha512-xyHAhmzNyelm/AxWpILJpzwpkpgbezaxjfH6zWIWO8yMuZfs9U8acSBF+2bkrR62fe9KAP9rXCnSHSW+vlymmA=="], + "@polar-sh/sdk": ["@polar-sh/sdk@0.47.0", "", { "dependencies": { "standardwebhooks": "^1.0.0", "zod": "^3.25.65 || ^4.0.0" } }, "sha512-tZEt8eLWsQVhmyfUQzXhnN84e5Cnu/JsYFnCci1ranWkIGveQc+wTiyzDCG9Tl1xiz1Y/ztPsAJ1fevj6ExdAA=="], "@radix-ui/number": ["@radix-ui/number@1.1.1", "", {}, "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g=="], @@ -457,7 +516,7 @@ "@react-router/serve": ["@react-router/serve@7.8.0", "", { "dependencies": { "@react-router/express": "7.8.0", "@react-router/node": "7.8.0", "compression": "^1.7.4", "express": "^4.19.2", "get-port": "5.1.1", "morgan": "^1.10.0", "source-map-support": "^0.5.21" }, "peerDependencies": { "react-router": "7.8.0" }, "bin": { "react-router-serve": "bin.js" } }, "sha512-DokCv1GfOMt9KHu+k3WYY9sP5nOEzq7za+Vi3dWPHoY5oP0wgv8S4DnTPU08ASY8iFaF38NAzapbSFfu6Xfr0Q=="], - "@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-beta.27", "", {}, "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA=="], + "@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.1", "", {}, "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw=="], "@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.46.2", "", { "os": "android", "cpu": "arm" }, "sha512-Zj3Hl6sN34xJtMv7Anwb5Gu01yujyE/cLBDB2gnHTAHaWS1Z38L7kuSG+oAh0giZMqG060f/YBStXtMH6FvPMA=="], @@ -519,10 +578,6 @@ "@shikijs/vscode-textmate": ["@shikijs/vscode-textmate@10.0.2", "", {}, "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg=="], - "@simplewebauthn/browser": ["@simplewebauthn/browser@13.1.2", "", {}, "sha512-aZnW0KawAM83fSBUgglP5WofbrLbLyr7CoPqYr66Eppm7zO86YX6rrCjRB3hQKPrL7ATvY4FVXlykZ6w6FwYYw=="], - - "@simplewebauthn/server": ["@simplewebauthn/server@13.1.2", "", { "dependencies": { "@hexagon/base64": "^1.1.27", "@levischuck/tiny-cbor": "^0.2.2", "@peculiar/asn1-android": "^2.3.10", "@peculiar/asn1-ecc": "^2.3.8", "@peculiar/asn1-rsa": "^2.3.8", "@peculiar/asn1-schema": "^2.3.8", "@peculiar/asn1-x509": "^2.3.8" } }, "sha512-VwoDfvLXSCaRiD+xCIuyslU0HLxVggeE5BL06+GbsP2l1fGf5op8e0c3ZtKoi+vSg1q4ikjtAghC23ze2Q3H9g=="], - "@sindresorhus/merge-streams": ["@sindresorhus/merge-streams@4.0.0", "", {}, "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ=="], "@stablelib/base64": ["@stablelib/base64@1.0.1", "", {}, "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ=="], @@ -539,6 +594,12 @@ "@streamdown/mermaid": ["@streamdown/mermaid@1.0.2", "", { "dependencies": { "mermaid": "^11.12.2" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0" } }, "sha512-Fr/4sBWnAeSnxM3PcrV/+DiZe5oPMq9gOkUIAH7ZauJeuwrZ/DVzD4g0zlav6AH0axh2m/sOfrfLtY5aLT7niw=="], + "@stripe/react-stripe-js": ["@stripe/react-stripe-js@4.0.2", "", { "dependencies": { "prop-types": "^15.7.2" }, "peerDependencies": { "@stripe/stripe-js": ">=1.44.1 <8.0.0", "react": ">=16.8.0 <20.0.0", "react-dom": ">=16.8.0 <20.0.0" } }, "sha512-l2wau+8/LOlHl+Sz8wQ1oDuLJvyw51nQCsu6/ljT6smqzTszcMHifjAJoXlnMfcou3+jK/kQyVe04u/ufyTXgg=="], + + "@stripe/stripe-js": ["@stripe/stripe-js@7.9.0", "", {}, "sha512-ggs5k+/0FUJcIgNY08aZTqpBTtbExkJMYMLSMwyucrhtWexVOEY1KJmhBsxf+E/Q15f5rbwBpj+t0t2AW2oCsQ=="], + + "@t3-oss/env-core": ["@t3-oss/env-core@0.13.11", "", { "peerDependencies": { "arktype": "^2.1.0", "typescript": ">=5.0.0", "valibot": "^1.0.0-beta.7 || ^1.0.0", "zod": "^3.24.0 || ^4.0.0" }, "optionalPeers": ["arktype", "typescript", "valibot", "zod"] }, "sha512-sM7GYY+KL7H/Hl0BE0inWfk3nRHZOLhmVn7sHGxaZt9FAR6KqREXAE+6TqKfiavfXmpRxO/OZ2QgKRd+oiBYRQ=="], + "@tailwindcss/node": ["@tailwindcss/node@4.1.11", "", { "dependencies": { "@ampproject/remapping": "^2.3.0", "enhanced-resolve": "^5.18.1", "jiti": "^2.4.2", "lightningcss": "1.30.1", "magic-string": "^0.30.17", "source-map-js": "^1.2.1", "tailwindcss": "4.1.11" } }, "sha512-yzhzuGRmv5QyU9qLNg4GTlYI6STedBWRE7NjxP45CsFYYq9taI0zJXZBMqIC/c8fViNLhmrbpSFS57EoxUmD6Q=="], "@tailwindcss/oxide": ["@tailwindcss/oxide@4.1.11", "", { "dependencies": { "detect-libc": "^2.0.4", "tar": "^7.4.3" }, "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.1.11", "@tailwindcss/oxide-darwin-arm64": "4.1.11", "@tailwindcss/oxide-darwin-x64": "4.1.11", "@tailwindcss/oxide-freebsd-x64": "4.1.11", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.11", "@tailwindcss/oxide-linux-arm64-gnu": "4.1.11", "@tailwindcss/oxide-linux-arm64-musl": "4.1.11", "@tailwindcss/oxide-linux-x64-gnu": "4.1.11", "@tailwindcss/oxide-linux-x64-musl": "4.1.11", "@tailwindcss/oxide-wasm32-wasi": "4.1.11", "@tailwindcss/oxide-win32-arm64-msvc": "4.1.11", "@tailwindcss/oxide-win32-x64-msvc": "4.1.11" } }, "sha512-Q69XzrtAhuyfHo+5/HMgr1lAiPP/G40OMFAnws7xcFEYqcypZmdW8eGXaOUIeOl1dzPJBPENXgbjsOyhg2nkrg=="], @@ -573,8 +634,16 @@ "@tanstack/table-core": ["@tanstack/table-core@8.21.3", "", {}, "sha512-ldZXEhOBb8Is7xLs01fR3YEc3DERiz5silj8tnGkFZytt1abEvl/GhUmCE0PMLaMPTa3Jk4HbKmRlHmu+gCftg=="], + "@testing-library/dom": ["@testing-library/dom@10.4.1", "", { "dependencies": { "@babel/code-frame": "^7.10.4", "@babel/runtime": "^7.12.5", "@types/aria-query": "^5.0.1", "aria-query": "5.3.0", "dom-accessibility-api": "^0.5.9", "lz-string": "^1.5.0", "picocolors": "1.1.1", "pretty-format": "^27.0.2" } }, "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg=="], + + "@testing-library/jest-dom": ["@testing-library/jest-dom@7.0.1", "", { "dependencies": { "@adobe/css-tools": "^4.4.0", "aria-query": "^5.0.0", "css.escape": "^1.5.1", "dom-accessibility-api": "^0.6.3", "picocolors": "^1.1.1", "redent": "^3.0.0" }, "peerDependencies": { "@testing-library/dom": ">=10 <11", "vitest": ">= 0.32" }, "optionalPeers": ["vitest"] }, "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw=="], + + "@testing-library/react": ["@testing-library/react@16.3.2", "", { "dependencies": { "@babel/runtime": "^7.12.5" }, "peerDependencies": { "@testing-library/dom": "^10.0.0", "@types/react": "^18.0.0 || ^19.0.0", "@types/react-dom": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g=="], + "@ts-morph/common": ["@ts-morph/common@0.11.1", "", { "dependencies": { "fast-glob": "^3.2.7", "minimatch": "^3.0.4", "mkdirp": "^1.0.4", "path-browserify": "^1.0.1" } }, "sha512-7hWZS0NRpEsNV8vWJzg7FEz6V8MaLNeJOmwmghqUXTpzk16V1LLZhdo+4QvE/+zv4cVci0OviuJFnqhEfoV3+g=="], + "@types/aria-query": ["@types/aria-query@5.0.4", "", {}, "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="], + "@types/babel__core": ["@types/babel__core@7.20.5", "", { "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA=="], "@types/babel__generator": ["@types/babel__generator@7.27.0", "", { "dependencies": { "@babel/types": "^7.0.0" } }, "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg=="], @@ -583,6 +652,8 @@ "@types/babel__traverse": ["@types/babel__traverse@7.28.0", "", { "dependencies": { "@babel/types": "^7.28.2" } }, "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q=="], + "@types/chai": ["@types/chai@5.2.3", "", { "dependencies": { "@types/deep-eql": "*", "assertion-error": "^2.0.1" } }, "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA=="], + "@types/d3": ["@types/d3@7.4.3", "", { "dependencies": { "@types/d3-array": "*", "@types/d3-axis": "*", "@types/d3-brush": "*", "@types/d3-chord": "*", "@types/d3-color": "*", "@types/d3-contour": "*", "@types/d3-delaunay": "*", "@types/d3-dispatch": "*", "@types/d3-drag": "*", "@types/d3-dsv": "*", "@types/d3-ease": "*", "@types/d3-fetch": "*", "@types/d3-force": "*", "@types/d3-format": "*", "@types/d3-geo": "*", "@types/d3-hierarchy": "*", "@types/d3-interpolate": "*", "@types/d3-path": "*", "@types/d3-polygon": "*", "@types/d3-quadtree": "*", "@types/d3-random": "*", "@types/d3-scale": "*", "@types/d3-scale-chromatic": "*", "@types/d3-selection": "*", "@types/d3-shape": "*", "@types/d3-time": "*", "@types/d3-time-format": "*", "@types/d3-timer": "*", "@types/d3-transition": "*", "@types/d3-zoom": "*" } }, "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww=="], "@types/d3-array": ["@types/d3-array@3.2.1", "", {}, "sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg=="], @@ -647,6 +718,8 @@ "@types/debug": ["@types/debug@4.1.12", "", { "dependencies": { "@types/ms": "*" } }, "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ=="], + "@types/deep-eql": ["@types/deep-eql@4.0.2", "", {}, "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw=="], + "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], "@types/estree-jsx": ["@types/estree-jsx@1.0.5", "", { "dependencies": { "@types/estree": "*" } }, "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg=="], @@ -691,10 +764,26 @@ "@vercel/static-config": ["@vercel/static-config@3.1.1", "", { "dependencies": { "ajv": "8.6.3", "json-schema-to-ts": "1.6.4", "ts-morph": "12.0.0" } }, "sha512-IRtKnm9N1Uqd2ayIbLPjRtdwcl1GTWvqF1PuEVNm9O43kmoI+m9VpGlW8oga+5LQq1LmJ2Y67zHr7NbjrH1rrw=="], - "@vitejs/plugin-react": ["@vitejs/plugin-react@4.7.0", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="], + "@vitejs/plugin-react": ["@vitejs/plugin-react@6.0.5", "", { "dependencies": { "@rolldown/pluginutils": "^1.0.1" }, "peerDependencies": { "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0", "babel-plugin-react-compiler": "^1.0.0", "vite": "^8.0.0" }, "optionalPeers": ["@rolldown/plugin-babel", "babel-plugin-react-compiler"] }, "sha512-BOVzne/NL162sMdResB25mUv+vWMF5NoAjNf09TeGlE7ZpszZWSD3winycicLJw72yeVsoCn/2kOhEuCvEShMA=="], "@vitejs/plugin-rsc": ["@vitejs/plugin-rsc@0.4.11", "", { "dependencies": { "@mjackson/node-fetch-server": "^0.7.0", "es-module-lexer": "^1.7.0", "estree-walker": "^3.0.3", "magic-string": "^0.30.17", "periscopic": "^4.0.2", "turbo-stream": "^3.1.0", "vitefu": "^1.1.1" }, "peerDependencies": { "react": "*", "react-dom": "*", "vite": "*" } }, "sha512-+4H4wLi+Y9yF58znBfKgGfX8zcqUGt8ngnmNgzrdGdF1SVz7EO0sg7WnhK5fFVHt6fUxsVEjmEabsCWHKPL1Tw=="], + "@vitest/coverage-v8": ["@vitest/coverage-v8@4.1.10", "", { "dependencies": { "@bcoe/v8-coverage": "^1.0.2", "@vitest/utils": "4.1.10", "ast-v8-to-istanbul": "^1.0.0", "istanbul-lib-coverage": "^3.2.2", "istanbul-lib-report": "^3.0.1", "istanbul-reports": "^3.2.0", "magicast": "^0.5.2", "obug": "^2.1.1", "std-env": "^4.0.0-rc.1", "tinyrainbow": "^3.1.0" }, "peerDependencies": { "@vitest/browser": "4.1.10", "vitest": "4.1.10" }, "optionalPeers": ["@vitest/browser"] }, "sha512-IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g=="], + + "@vitest/expect": ["@vitest/expect@4.1.10", "", { "dependencies": { "@standard-schema/spec": "^1.1.0", "@types/chai": "^5.2.2", "@vitest/spy": "4.1.10", "@vitest/utils": "4.1.10", "chai": "^6.2.2", "tinyrainbow": "^3.1.0" } }, "sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA=="], + + "@vitest/mocker": ["@vitest/mocker@4.1.10", "", { "dependencies": { "@vitest/spy": "4.1.10", "estree-walker": "^3.0.3", "magic-string": "^0.30.21" }, "peerDependencies": { "msw": "^2.4.9", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "optionalPeers": ["msw", "vite"] }, "sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow=="], + + "@vitest/pretty-format": ["@vitest/pretty-format@4.1.10", "", { "dependencies": { "tinyrainbow": "^3.1.0" } }, "sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q=="], + + "@vitest/runner": ["@vitest/runner@4.1.10", "", { "dependencies": { "@vitest/utils": "4.1.10", "pathe": "^2.0.3" } }, "sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg=="], + + "@vitest/snapshot": ["@vitest/snapshot@4.1.10", "", { "dependencies": { "@vitest/pretty-format": "4.1.10", "@vitest/utils": "4.1.10", "magic-string": "^0.30.21", "pathe": "^2.0.3" } }, "sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw=="], + + "@vitest/spy": ["@vitest/spy@4.1.10", "", {}, "sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw=="], + + "@vitest/utils": ["@vitest/utils@4.1.10", "", { "dependencies": { "@vitest/pretty-format": "4.1.10", "convert-source-map": "^2.0.0", "tinyrainbow": "^3.1.0" } }, "sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA=="], + "@workflow/serde": ["@workflow/serde@4.1.0", "", {}, "sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ=="], "accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="], @@ -703,15 +792,15 @@ "ai": ["ai@7.0.40", "", { "dependencies": { "@ai-sdk/gateway": "4.0.30", "@ai-sdk/provider": "4.0.4", "@ai-sdk/provider-utils": "5.0.14" }, "peerDependencies": { "zod": "^3.25.76 || ^4.1.8" } }, "sha512-Q113Nory1PNgWzo2X7x/bUnJhd95UPNEtWlv+nnM5bSuEkA9iy+VZ3WZFcOvGMZjNDQzD5sZnJgIKQjGh8lv9Q=="], - "ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], + "ajv": ["ajv@8.6.3", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } }, "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw=="], "ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="], "ansi-colors": ["ansi-colors@4.1.3", "", {}, "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw=="], - "ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="], + "ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], - "ansi-styles": ["ansi-styles@6.2.1", "", {}, "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug=="], + "ansi-styles": ["ansi-styles@5.2.0", "", {}, "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA=="], "arg": ["arg@5.0.2", "", {}, "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="], @@ -719,12 +808,16 @@ "aria-hidden": ["aria-hidden@1.2.6", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="], + "aria-query": ["aria-query@5.3.0", "", { "dependencies": { "dequal": "^2.0.3" } }, "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A=="], + "array-flatten": ["array-flatten@1.1.1", "", {}, "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="], - "asn1js": ["asn1js@3.0.6", "", { "dependencies": { "pvtsutils": "^1.3.6", "pvutils": "^1.1.3", "tslib": "^2.8.1" } }, "sha512-UOCGPYbl0tv8+006qks/dTgV9ajs97X2p0FAbyS2iyCRrmLSRolDaHdp+v/CLgnzHc3fVB+CwYiUmei7ndFcgA=="], + "assertion-error": ["assertion-error@2.0.1", "", {}, "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA=="], "ast-types": ["ast-types@0.16.1", "", { "dependencies": { "tslib": "^2.0.1" } }, "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg=="], + "ast-v8-to-istanbul": ["ast-v8-to-istanbul@1.0.5", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.31", "estree-walker": "^3.0.3", "js-tokens": "^10.0.0" } }, "sha512-UPAgKJFSEGMWSDr3LX4tqnAb4f7KGT8O40Tyx8wbYmmZ/yn58lNCm8h3svs3eXgiGd5AXxz8NDOvXWvicq+rJA=="], + "atomically": ["atomically@1.7.0", "", {}, "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w=="], "babel-dead-code-elimination": ["babel-dead-code-elimination@1.0.10", "", { "dependencies": { "@babel/core": "^7.23.7", "@babel/parser": "^7.23.6", "@babel/traverse": "^7.23.7", "@babel/types": "^7.23.6" } }, "sha512-DV5bdJZTzZ0zn0DC24v3jD7Mnidh6xhKa4GfKCbq3sfW8kaWhDdZjP3i81geA8T33tdYqWKw4D3fVv0CwEgKVA=="], @@ -737,9 +830,11 @@ "basic-auth": ["basic-auth@2.0.1", "", { "dependencies": { "safe-buffer": "5.1.2" } }, "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg=="], - "better-auth": ["better-auth@1.3.7", "", { "dependencies": { "@better-auth/utils": "0.2.6", "@better-fetch/fetch": "^1.1.18", "@noble/ciphers": "^0.6.0", "@noble/hashes": "^1.8.0", "@simplewebauthn/browser": "^13.1.2", "@simplewebauthn/server": "^13.1.2", "better-call": "^1.0.13", "defu": "^6.1.4", "jose": "^5.10.0", "kysely": "^0.28.5", "nanostores": "^0.11.4" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0", "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["react", "react-dom"] }, "sha512-/1fEyx2SGgJQM5ujozDCh9eJksnVkNU/J7Fk/tG5Y390l8nKbrPvqiFlCjlMM+scR+UABJbQzA6An7HT50LHyQ=="], + "better-auth": ["better-auth@1.6.29", "", { "dependencies": { "@better-auth/core": "1.6.29", "@better-auth/drizzle-adapter": "1.6.29", "@better-auth/kysely-adapter": "1.6.29", "@better-auth/memory-adapter": "1.6.29", "@better-auth/mongo-adapter": "1.6.29", "@better-auth/prisma-adapter": "1.6.29", "@better-auth/telemetry": "1.6.29", "@better-auth/utils": "0.4.2", "@better-fetch/fetch": "1.3.1", "@noble/ciphers": "^2.1.1", "@noble/hashes": "^2.0.1", "better-call": "1.4.0", "defu": "^6.1.4", "jose": "^6.1.3", "kysely": "^0.28.17 || ^0.29.0", "nanostores": "^1.1.1", "zod": "^4.3.6" }, "peerDependencies": { "@lynx-js/react": "*", "@prisma/client": "^5.0.0 || ^6.0.0 || ^7.0.0", "@sveltejs/kit": "^2.0.0", "@tanstack/react-start": "^1.0.0", "@tanstack/solid-start": "^1.0.0", "better-sqlite3": "^12.0.0", "drizzle-kit": ">=0.31.4", "drizzle-orm": "^0.45.2", "mongodb": "^6.0.0 || ^7.0.0", "mysql2": "^3.0.0", "next": "^14.0.0 || ^15.0.0 || ^16.0.0", "pg": "^8.0.0", "prisma": "^5.0.0 || ^6.0.0 || ^7.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0", "solid-js": "^1.0.0", "svelte": "^4.0.0 || ^5.0.0", "vitest": "^2.0.0 || ^3.0.0 || ^4.0.0", "vue": "^3.0.0" }, "optionalPeers": ["@lynx-js/react", "@prisma/client", "@sveltejs/kit", "@tanstack/react-start", "@tanstack/solid-start", "better-sqlite3", "drizzle-kit", "drizzle-orm", "mongodb", "mysql2", "next", "pg", "prisma", "react", "react-dom", "solid-js", "svelte", "vitest", "vue"] }, "sha512-7i2kOry+Jb1mRUR14kCDVS23GCKUGWxayZRXULbNz/6nFLPT6XSuGJVrwo/d+Qfq/iubA0/4Acw2/eg/tPCCnA=="], - "better-call": ["better-call@1.0.13", "", { "dependencies": { "@better-fetch/fetch": "^1.1.4", "rou3": "^0.5.1", "set-cookie-parser": "^2.7.1", "uncrypto": "^0.1.3" } }, "sha512-auqdP9lnNOli9tKpZIiv0nEIwmmyaD/RotM3Mucql+Ef88etoZi/t7Ph5LjlmZt/hiSahhNTt6YVnx6++rziXA=="], + "better-call": ["better-call@1.4.0", "", { "dependencies": { "@better-auth/utils": "^0.5.0", "@better-fetch/fetch": "^1.3.1", "rou3": "^0.9.1", "set-cookie-parser": "^3.1.2" }, "peerDependencies": { "zod": "^4.0.0" }, "optionalPeers": ["zod"] }, "sha512-bBKOT4vv1kZLDgxVePdilk/Jwkn+dtRRsmi3DzHcDP+WnswyVl6dR59l2HEeP/0cB+bDoopASAesWDPIdd/zZA=="], + + "bidi-js": ["bidi-js@1.0.3", "", { "dependencies": { "require-from-string": "^2.0.2" } }, "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw=="], "body-parser": ["body-parser@1.20.3", "", { "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.5", "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" } }, "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g=="], @@ -767,6 +862,8 @@ "ccount": ["ccount@2.0.1", "", {}, "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg=="], + "chai": ["chai@6.2.2", "", {}, "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg=="], + "chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], "character-entities": ["character-entities@2.0.2", "", {}, "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ=="], @@ -829,6 +926,10 @@ "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + "css-tree": ["css-tree@3.2.1", "", { "dependencies": { "mdn-data": "2.27.1", "source-map-js": "^1.2.1" } }, "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA=="], + + "css.escape": ["css.escape@1.5.1", "", {}, "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg=="], + "cssesc": ["cssesc@3.0.0", "", { "bin": { "cssesc": "bin/cssesc" } }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="], "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="], @@ -905,6 +1006,8 @@ "dagre-d3-es": ["dagre-d3-es@7.0.14", "", { "dependencies": { "d3": "^7.9.0", "lodash-es": "^4.17.21" } }, "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg=="], + "data-urls": ["data-urls@7.0.0", "", { "dependencies": { "whatwg-mimetype": "^5.0.0", "whatwg-url": "^16.0.0" } }, "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA=="], + "date-fns": ["date-fns@4.1.0", "", {}, "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg=="], "date-fns-jalali": ["date-fns-jalali@4.1.0-0", "", {}, "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg=="], @@ -913,7 +1016,9 @@ "debounce-fn": ["debounce-fn@4.0.0", "", { "dependencies": { "mimic-fn": "^3.0.0" } }, "sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ=="], - "debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + + "decimal.js": ["decimal.js@10.6.0", "", {}, "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg=="], "decimal.js-light": ["decimal.js-light@2.5.1", "", {}, "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg=="], @@ -947,13 +1052,15 @@ "diff": ["diff@8.0.4", "", {}, "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw=="], + "dom-accessibility-api": ["dom-accessibility-api@0.5.16", "", {}, "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg=="], + "dom-helpers": ["dom-helpers@5.2.1", "", { "dependencies": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" } }, "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA=="], "dompurify": ["dompurify@3.4.12", "", { "optionalDependencies": { "@types/trusted-types": "^2.0.7" } }, "sha512-zQvGet8Z2sWbQhCmfFz/T5QWH2oBmjnqK3qvOjaqaNLrLEF912WamU+ohnTp0TCep/MFVHpdJuCZEdFOdTnEFg=="], "dot-prop": ["dot-prop@6.0.1", "", { "dependencies": { "is-obj": "^2.0.0" } }, "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA=="], - "dotenv": ["dotenv@17.2.1", "", {}, "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ=="], + "dotenv": ["dotenv@17.4.2", "", {}, "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw=="], "dotenv-cli": ["dotenv-cli@10.0.0", "", { "dependencies": { "cross-spawn": "^7.0.6", "dotenv": "^17.1.0", "dotenv-expand": "^11.0.0", "minimist": "^1.2.6" }, "bin": { "dotenv": "cli.js" } }, "sha512-lnOnttzfrzkRx2echxJHQRB6vOAMSCzzZg79IxpC00tU42wZPuZkQxNNrrwVAxaQZIIh001l4PxVlCrBxngBzA=="], @@ -985,7 +1092,7 @@ "enquirer": ["enquirer@2.4.1", "", { "dependencies": { "ansi-colors": "^4.1.1", "strip-ansi": "^6.0.1" } }, "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ=="], - "entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="], + "entities": ["entities@8.0.0", "", {}, "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA=="], "env-paths": ["env-paths@2.2.1", "", {}, "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A=="], @@ -1031,6 +1138,8 @@ "exit-hook": ["exit-hook@2.2.1", "", {}, "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw=="], + "expect-type": ["expect-type@1.4.0", "", {}, "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA=="], + "express": ["express@4.21.2", "", { "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "0.19.0", "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA=="], "express-rate-limit": ["express-rate-limit@8.6.1", "", { "dependencies": { "debug": "^4.4.3", "ip-address": "^10.2.0" }, "peerDependencies": { "express": ">= 4.11" } }, "sha512-0D493aP61w0TJ2A0wy27riRsO7FMQ7FK+KUHOKCSfPvYo0R55aiC6emCVgFUeShH0fq0ICPVzNcgoS+BsbXQCA=="], @@ -1109,6 +1218,8 @@ "hachure-fill": ["hachure-fill@0.5.2", "", {}, "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg=="], + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], @@ -1145,6 +1256,10 @@ "hosted-git-info": ["hosted-git-info@6.1.3", "", { "dependencies": { "lru-cache": "^7.5.1" } }, "sha512-HVJyzUrLIL1c0QmviVh5E8VGyUS7xCFPS6yydaVd1UegW+ibV/CohqTH9MkOLDp5o+rb82DMo77PTuc9F/8GKw=="], + "html-encoding-sniffer": ["html-encoding-sniffer@6.0.0", "", { "dependencies": { "@exodus/bytes": "^1.6.0" } }, "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg=="], + + "html-escaper": ["html-escaper@2.0.2", "", {}, "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="], + "html-url-attributes": ["html-url-attributes@3.0.1", "", {}, "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ=="], "html-void-elements": ["html-void-elements@3.0.0", "", {}, "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg=="], @@ -1153,12 +1268,14 @@ "human-signals": ["human-signals@8.0.1", "", {}, "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ=="], - "iconv-lite": ["iconv-lite@0.7.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ=="], + "iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="], "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], "import-fresh": ["import-fresh@3.3.1", "", { "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" } }, "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ=="], + "indent-string": ["indent-string@4.0.0", "", {}, "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg=="], + "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], "inline-style-parser": ["inline-style-parser@0.2.4", "", {}, "sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q=="], @@ -1203,6 +1320,8 @@ "is-plain-obj": ["is-plain-obj@4.1.0", "", {}, "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg=="], + "is-potential-custom-element-name": ["is-potential-custom-element-name@1.0.1", "", {}, "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ=="], + "is-promise": ["is-promise@4.0.0", "", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="], "is-reference": ["is-reference@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.6" } }, "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw=="], @@ -1219,16 +1338,24 @@ "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + "istanbul-lib-coverage": ["istanbul-lib-coverage@3.2.2", "", {}, "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg=="], + + "istanbul-lib-report": ["istanbul-lib-report@3.0.1", "", { "dependencies": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", "supports-color": "^7.1.0" } }, "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw=="], + + "istanbul-reports": ["istanbul-reports@3.2.0", "", { "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" } }, "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA=="], + "jackspeak": ["jackspeak@3.4.3", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="], "jiti": ["jiti@2.5.1", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w=="], - "jose": ["jose@5.10.0", "", {}, "sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg=="], + "jose": ["jose@6.2.4", "", {}, "sha512-N8acGzVsQy6M/fjFcxtysNc4Q379TcM5dM/qKkNtsHFji88yANnXTr7BLeP75iPnFwBfQzM/jg2BZ9+HZrHCZA=="], "js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], "js-yaml": ["js-yaml@4.3.0", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q=="], + "jsdom": ["jsdom@30.0.1", "", { "dependencies": { "@asamuzakjp/css-color": "^6.0.5", "@asamuzakjp/dom-selector": "^8.3.0", "@bramus/specificity": "^2.4.2", "@csstools/css-syntax-patches-for-csstree": "^1.1.7", "@exodus/bytes": "^1.15.1", "css-tree": "^3.2.1", "data-urls": "^7.0.0", "decimal.js": "^10.6.0", "html-encoding-sniffer": "^6.0.0", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.5.2", "parse5": "^8.0.1", "saxes": "^6.0.0", "symbol-tree": "^3.2.4", "tough-cookie": "^6.0.2", "undici": "^8.9.0", "w3c-xmlserializer": "^5.0.0", "webidl-conversions": "^8.0.1", "whatwg-mimetype": "^5.0.0", "whatwg-url": "^17.1.0", "xml-name-validator": "^5.0.0" }, "peerDependencies": { "canvas": "^3.2.3" }, "optionalPeers": ["canvas"] }, "sha512-52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA=="], + "jsesc": ["jsesc@3.0.2", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g=="], "json-parse-even-better-errors": ["json-parse-even-better-errors@3.0.2", "", {}, "sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ=="], @@ -1253,7 +1380,7 @@ "kolorist": ["kolorist@1.8.0", "", {}, "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ=="], - "kysely": ["kysely@0.28.5", "", {}, "sha512-rlB0I/c6FBDWPcQoDtkxi9zIvpmnV5xoIalfCMSMCa7nuA6VGA3F54TW9mEgX4DVf10sXAWCF5fDbamI/5ZpKA=="], + "kysely": ["kysely@0.29.5", "", {}, "sha512-ooa+eSbBNPTo3MycPEuW5jdrxQdQwdtB3LC3h43FiXQbIry5tR0C5lDG7eealK0E4D7XjrnOP5DIUg/LyjRMYQ=="], "layout-base": ["layout-base@1.0.2", "", {}, "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg=="], @@ -1295,11 +1422,17 @@ "loose-envify": ["loose-envify@1.4.0", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": { "loose-envify": "cli.js" } }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="], - "lru-cache": ["lru-cache@5.1.1", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="], + "lru-cache": ["lru-cache@11.5.2", "", {}, "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g=="], "lucide-react": ["lucide-react@0.546.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Z94u6fKT43lKeYHiVyvyR8fT7pwCzDu7RyMPpTvh054+xahSgj4HFQ+NmflvzdXsoAjYGdCguGaFKYuvq0ThCQ=="], - "magic-string": ["magic-string@0.30.17", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0" } }, "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA=="], + "lz-string": ["lz-string@1.5.0", "", { "bin": { "lz-string": "bin/bin.js" } }, "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ=="], + + "magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="], + + "magicast": ["magicast@0.5.4", "", { "dependencies": { "@babel/parser": "^7.29.7", "@babel/types": "^7.29.7", "source-map-js": "^1.2.1" } }, "sha512-llBEhWm1SacoRwgHUoQJYtwp4PBLF4faQi5TCpIGyGs9n4y5+juI0tDgyKIfpqxckRHaHzouUEph3THklWh03w=="], + + "make-dir": ["make-dir@4.0.0", "", { "dependencies": { "semver": "^7.5.3" } }, "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw=="], "markdown-table": ["markdown-table@3.0.4", "", {}, "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw=="], @@ -1343,6 +1476,8 @@ "mdast-util-to-string": ["mdast-util-to-string@4.0.0", "", { "dependencies": { "@types/mdast": "^4.0.0" } }, "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg=="], + "mdn-data": ["mdn-data@2.27.1", "", {}, "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ=="], + "media-typer": ["media-typer@0.3.0", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="], "merge-descriptors": ["merge-descriptors@1.0.3", "", {}, "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ=="], @@ -1425,12 +1560,14 @@ "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="], - "mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="], + "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], "mimic-fn": ["mimic-fn@3.1.0", "", {}, "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ=="], "mimic-function": ["mimic-function@5.0.1", "", {}, "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA=="], + "min-indent": ["min-indent@1.0.1", "", {}, "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg=="], + "minimatch": ["minimatch@9.0.5", "", { "dependencies": { "brace-expansion": "^2.0.1" } }, "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow=="], "minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="], @@ -1455,7 +1592,7 @@ "nanoid": ["nanoid@6.0.0", "", { "bin": { "nanoid": "bin/nanoid.js" } }, "sha512-mkUH+rPkwU2qPadJ0oJZOjeZ5Mxn8Q1UhevwkTRWNuUZzyia3h4rhzK39hxaHTk0o2OxB8W2SQ6A8k23ZDi1pQ=="], - "nanostores": ["nanostores@0.11.4", "", {}, "sha512-k1oiVNN4hDK8NcNERSZLQiMfRzEGtfnvZvdBvey3SQbgn8Dcrk0h1I6vpxApjb10PFUflZrgJ2WEZyJQ+5v7YQ=="], + "nanostores": ["nanostores@1.5.0", "", {}, "sha512-E0SrU7uLV/k4E6YbBIpQNDnRj00vgE5wlutM1sYVSAXDtHQosiRCGS9eKMKyiGg4ChXfDiJmTB+NCR3yXr6UAw=="], "negotiator": ["negotiator@0.6.4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="], @@ -1483,6 +1620,8 @@ "object-treeify": ["object-treeify@1.1.33", "", {}, "sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A=="], + "obug": ["obug@2.1.4", "", {}, "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA=="], + "on-finished": ["on-finished@2.4.1", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="], "on-headers": ["on-headers@1.1.0", "", {}, "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A=="], @@ -1517,7 +1656,7 @@ "parse-ms": ["parse-ms@4.0.0", "", {}, "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw=="], - "parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="], + "parse5": ["parse5@8.0.1", "", { "dependencies": { "entities": "^8.0.0" } }, "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw=="], "parseurl": ["parseurl@1.3.3", "", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="], @@ -1563,6 +1702,10 @@ "pkg-up": ["pkg-up@3.1.0", "", { "dependencies": { "find-up": "^3.0.0" } }, "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA=="], + "playwright": ["playwright@1.62.1", "", { "dependencies": { "playwright-core": "1.62.1" }, "optionalDependencies": { "fsevents": "2.3.2" }, "bin": { "playwright": "cli.js" } }, "sha512-0M+L3LAD8/nm554LOla9Ayx0j0tmFZ0FBcoQ7F1VuVHpM/XpiC8RcDzBQB8W5+hA8L22THxELzeF+2WcUzvcLg=="], + + "playwright-core": ["playwright-core@1.62.1", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw=="], + "points-on-curve": ["points-on-curve@0.2.0", "", {}, "sha512-0mYKnYYe9ZcqMCWhUjItv/oHjvgEsfKvnUTg8sAtnHr3GVy7rGkXCb6d5cSyqrWqL4k81b9CPg3urd+T7aop3A=="], "points-on-path": ["points-on-path@0.2.1", "", { "dependencies": { "path-data-parser": "0.1.0", "points-on-curve": "0.2.0" } }, "sha512-25ClnWWuw7JbWZcgqY/gJ4FQWadKxGWk+3kR/7kD0tCaDtPPMj7oHu2ToLaVhfpnHrZzYby2w6tUA0eOIuUg8g=="], @@ -1583,6 +1726,8 @@ "prettier": ["prettier@3.6.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="], + "pretty-format": ["pretty-format@27.5.1", "", { "dependencies": { "ansi-regex": "^5.0.1", "ansi-styles": "^5.0.0", "react-is": "^17.0.1" } }, "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ=="], + "pretty-ms": ["pretty-ms@9.3.0", "", { "dependencies": { "parse-ms": "^4.0.0" } }, "sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ=="], "proc-log": ["proc-log@3.0.0", "", {}, "sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A=="], @@ -1601,10 +1746,6 @@ "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="], - "pvtsutils": ["pvtsutils@1.3.6", "", { "dependencies": { "tslib": "^2.8.1" } }, "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg=="], - - "pvutils": ["pvutils@1.1.3", "", {}, "sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ=="], - "qs": ["qs@6.13.0", "", { "dependencies": { "side-channel": "^1.0.6" } }, "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg=="], "quansync": ["quansync@0.2.11", "", {}, "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA=="], @@ -1651,6 +1792,8 @@ "recharts-scale": ["recharts-scale@0.4.5", "", { "dependencies": { "decimal.js-light": "^2.4.1" } }, "sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w=="], + "redent": ["redent@3.0.0", "", { "dependencies": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" } }, "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg=="], + "regex": ["regex@6.1.0", "", { "dependencies": { "regex-utilities": "^2.3.0" } }, "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg=="], "regex-recursion": ["regex-recursion@6.0.2", "", { "dependencies": { "regex-utilities": "^2.3.0" } }, "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg=="], @@ -1697,7 +1840,7 @@ "rollup": ["rollup@4.46.2", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.46.2", "@rollup/rollup-android-arm64": "4.46.2", "@rollup/rollup-darwin-arm64": "4.46.2", "@rollup/rollup-darwin-x64": "4.46.2", "@rollup/rollup-freebsd-arm64": "4.46.2", "@rollup/rollup-freebsd-x64": "4.46.2", "@rollup/rollup-linux-arm-gnueabihf": "4.46.2", "@rollup/rollup-linux-arm-musleabihf": "4.46.2", "@rollup/rollup-linux-arm64-gnu": "4.46.2", "@rollup/rollup-linux-arm64-musl": "4.46.2", "@rollup/rollup-linux-loongarch64-gnu": "4.46.2", "@rollup/rollup-linux-ppc64-gnu": "4.46.2", "@rollup/rollup-linux-riscv64-gnu": "4.46.2", "@rollup/rollup-linux-riscv64-musl": "4.46.2", "@rollup/rollup-linux-s390x-gnu": "4.46.2", "@rollup/rollup-linux-x64-gnu": "4.46.2", "@rollup/rollup-linux-x64-musl": "4.46.2", "@rollup/rollup-win32-arm64-msvc": "4.46.2", "@rollup/rollup-win32-ia32-msvc": "4.46.2", "@rollup/rollup-win32-x64-msvc": "4.46.2", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-WMmLFI+Boh6xbop+OAGo9cQ3OgX9MIg7xOQjn+pTCwOkk+FNDAeAemXkJ3HzDJrVXleLOFVa1ipuc1AmEx1Dwg=="], - "rou3": ["rou3@0.5.1", "", {}, "sha512-OXMmJ3zRk2xeXFGfA3K+EOPHC5u7RDFG7lIOx0X1pdnhUkI8MdVrbV+sNsD80ElpUZ+MRHdyxPnFthq9VHs8uQ=="], + "rou3": ["rou3@0.9.2", "", {}, "sha512-3SOzvaAg8rkHrXtRjpCvCvbyO5to9oOO27Z/XqHEYXfMRVSw/qMIVdmaOk9W2lcRLtR6dlqTjo9hDeJk70QBYQ=="], "roughjs": ["roughjs@4.6.6", "", { "dependencies": { "hachure-fill": "^0.5.2", "path-data-parser": "^0.1.0", "points-on-curve": "^0.2.0", "points-on-path": "^0.2.1" } }, "sha512-ZUz/69+SYpFN/g/lUlo2FXcIjRkSu3nDarreVdGGndHEBJ6cXPdKguS8JGxwj5HA5xIbVKSmLgr5b3AWxtRfvQ=="], @@ -1713,6 +1856,8 @@ "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], + "saxes": ["saxes@6.0.0", "", { "dependencies": { "xmlchars": "^2.2.0" } }, "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA=="], + "scheduler": ["scheduler@0.27.0", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="], "semver": ["semver@7.7.2", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA=="], @@ -1741,6 +1886,8 @@ "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], + "siginfo": ["siginfo@2.0.0", "", {}, "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g=="], + "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], "sisteransi": ["sisteransi@1.0.5", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="], @@ -1765,10 +1912,14 @@ "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="], + "stackback": ["stackback@0.0.2", "", {}, "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw=="], + "standardwebhooks": ["standardwebhooks@1.0.0", "", { "dependencies": { "@stablelib/base64": "^1.0.0", "fast-sha256": "^1.3.0" } }, "sha512-BbHGOQK9olHPMvQNHWul6MYlrRTAOKn03rOe4A8O3CLWhNf4YHBqq2HJKKC+sfqpxiBY52pNeesD6jIiLDz8jg=="], "statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="], + "std-env": ["std-env@4.2.0", "", {}, "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw=="], + "stdin-discarder": ["stdin-discarder@0.2.2", "", {}, "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="], "streamdown": ["streamdown@2.5.0", "", { "dependencies": { "clsx": "^2.1.1", "hast-util-to-jsx-runtime": "^2.3.6", "html-url-attributes": "^3.0.1", "marked": "^17.0.1", "mermaid": "^11.12.2", "rehype-harden": "^1.1.8", "rehype-raw": "^7.0.0", "rehype-sanitize": "^6.0.0", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "remend": "1.3.0", "tailwind-merge": "^3.4.0", "unified": "^11.0.5", "unist-util-visit": "^5.0.0", "unist-util-visit-parents": "^6.0.0" }, "peerDependencies": { "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }, "sha512-/tTnURfIOxZK/pqJAxsfCvETG/XCJHoWnk3jq9xLcuz6CSpnjjuxSRBTTL4PKGhxiZQf0lqPxGhImdpwcZ2XwA=="], @@ -1789,14 +1940,20 @@ "strip-final-newline": ["strip-final-newline@4.0.0", "", {}, "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw=="], + "strip-indent": ["strip-indent@3.0.0", "", { "dependencies": { "min-indent": "^1.0.0" } }, "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ=="], + "style-to-js": ["style-to-js@1.1.17", "", { "dependencies": { "style-to-object": "1.0.9" } }, "sha512-xQcBGDxJb6jjFCTzvQtfiPn6YvvP2O8U1MDIPNfJQlWMYfktPy+iGsHE7cssjs7y84d9fQaK4UF3RIJaAHSoYA=="], "style-to-object": ["style-to-object@1.0.9", "", { "dependencies": { "inline-style-parser": "0.2.4" } }, "sha512-G4qppLgKu/k6FwRpHiGiKPaPTFcG3g4wNVX/Qsfu+RqQM30E7Tyu/TEgxcL9PNLF5pdRLwQdE3YKKf+KF2Dzlw=="], "stylis": ["stylis@4.3.6", "", {}, "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ=="], + "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], + "swr": ["swr@2.4.2", "", { "dependencies": { "dequal": "^2.0.3", "use-sync-external-store": "^1.6.0" }, "peerDependencies": { "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-ej644Y2bvkIajfR32KGeSSdBXQW+ScjGjkybZgSE7kFpk9eGnV44XY9FJylXi+W75pavSX1PVNB57W5EbhGIYw=="], + "symbol-tree": ["symbol-tree@3.2.4", "", {}, "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="], + "systeminformation": ["systeminformation@5.33.1", "", { "os": "!aix", "bin": { "systeminformation": "lib/cli.js" } }, "sha512-DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w=="], "tailwind-merge": ["tailwind-merge@3.3.1", "", {}, "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g=="], @@ -1811,14 +1968,26 @@ "tiny-invariant": ["tiny-invariant@1.3.3", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="], - "tinyexec": ["tinyexec@1.0.1", "", {}, "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw=="], + "tinybench": ["tinybench@2.9.0", "", {}, "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg=="], + + "tinyexec": ["tinyexec@1.3.0", "", {}, "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ=="], "tinyglobby": ["tinyglobby@0.2.14", "", { "dependencies": { "fdir": "^6.4.4", "picomatch": "^4.0.2" } }, "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ=="], + "tinyrainbow": ["tinyrainbow@3.1.1", "", {}, "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw=="], + + "tldts": ["tldts@7.4.10", "", { "dependencies": { "tldts-core": "^7.4.10" }, "bin": { "tldts": "bin/cli.js" } }, "sha512-GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog=="], + + "tldts-core": ["tldts-core@7.4.10", "", {}, "sha512-KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw=="], + "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], "toidentifier": ["toidentifier@1.0.1", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="], + "tough-cookie": ["tough-cookie@6.0.2", "", { "dependencies": { "tldts": "^7.0.5" } }, "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA=="], + + "tr46": ["tr46@6.0.0", "", { "dependencies": { "punycode": "^2.3.1" } }, "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw=="], + "trim-lines": ["trim-lines@3.0.1", "", {}, "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg=="], "trough": ["trough@2.2.0", "", {}, "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw=="], @@ -1845,9 +2014,7 @@ "ufo": ["ufo@1.6.1", "", {}, "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA=="], - "uncrypto": ["uncrypto@0.1.3", "", {}, "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q=="], - - "undici": ["undici@7.29.0", "", {}, "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw=="], + "undici": ["undici@8.10.0", "", {}, "sha512-HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ=="], "undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="], @@ -1911,14 +2078,26 @@ "vite-node": ["vite-node@3.2.4", "", { "dependencies": { "cac": "^6.7.14", "debug": "^4.4.1", "es-module-lexer": "^1.7.0", "pathe": "^2.0.3", "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" }, "bin": { "vite-node": "vite-node.mjs" } }, "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg=="], - "vite-tsconfig-paths": ["vite-tsconfig-paths@5.1.4", "", { "dependencies": { "debug": "^4.1.1", "globrex": "^0.1.2", "tsconfck": "^3.0.3" }, "peerDependencies": { "vite": "*" }, "optionalPeers": ["vite"] }, "sha512-cYj0LRuLV2c2sMqhqhGpaO3LretdtMn/BVX4cPLanIZuwwrkVl+lK84E/miEXkCHWXuq65rhNN4rXsBcOB3S4w=="], + "vite-tsconfig-paths": ["vite-tsconfig-paths@6.1.1", "", { "dependencies": { "debug": "^4.1.1", "globrex": "^0.1.2", "tsconfck": "^3.0.3" }, "peerDependencies": { "vite": "*" } }, "sha512-2cihq7zliibCCZ8P9cKJrQBkfgdvcFkOOc3Y02o3GWUDLgqjWsZudaoiuOwO/gzTzy17cS5F7ZPo4bsnS4DGkg=="], "vitefu": ["vitefu@1.1.1", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0" }, "optionalPeers": ["vite"] }, "sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ=="], + "vitest": ["vitest@4.1.10", "", { "dependencies": { "@vitest/expect": "4.1.10", "@vitest/mocker": "4.1.10", "@vitest/pretty-format": "4.1.10", "@vitest/runner": "4.1.10", "@vitest/snapshot": "4.1.10", "@vitest/spy": "4.1.10", "@vitest/utils": "4.1.10", "es-module-lexer": "^2.0.0", "expect-type": "^1.3.0", "magic-string": "^0.30.21", "obug": "^2.1.1", "pathe": "^2.0.3", "picomatch": "^4.0.3", "std-env": "^4.0.0-rc.1", "tinybench": "^2.9.0", "tinyexec": "^1.0.2", "tinyglobby": "^0.2.15", "tinyrainbow": "^3.1.0", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", "why-is-node-running": "^2.3.0" }, "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", "@vitest/browser-playwright": "4.1.10", "@vitest/browser-preview": "4.1.10", "@vitest/browser-webdriverio": "4.1.10", "@vitest/coverage-istanbul": "4.1.10", "@vitest/coverage-v8": "4.1.10", "@vitest/ui": "4.1.10", "happy-dom": "*", "jsdom": "*" }, "optionalPeers": ["@edge-runtime/vm", "@opentelemetry/api", "@types/node", "@vitest/browser-playwright", "@vitest/browser-preview", "@vitest/browser-webdriverio", "@vitest/coverage-istanbul", "@vitest/coverage-v8", "@vitest/ui", "happy-dom", "jsdom"], "bin": { "vitest": "./vitest.mjs" } }, "sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw=="], + + "w3c-xmlserializer": ["w3c-xmlserializer@5.0.0", "", { "dependencies": { "xml-name-validator": "^5.0.0" } }, "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA=="], + "web-namespaces": ["web-namespaces@2.0.1", "", {}, "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ=="], + "webidl-conversions": ["webidl-conversions@8.0.1", "", {}, "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ=="], + + "whatwg-mimetype": ["whatwg-mimetype@5.0.0", "", {}, "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw=="], + + "whatwg-url": ["whatwg-url@17.1.0", "", { "dependencies": { "@exodus/bytes": "^1.15.1", "tr46": "^6.0.0", "webidl-conversions": "^8.0.1" } }, "sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw=="], + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + "why-is-node-running": ["why-is-node-running@2.3.0", "", { "dependencies": { "siginfo": "^2.0.0", "stackback": "0.0.2" }, "bin": { "why-is-node-running": "cli.js" } }, "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w=="], + "wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="], "wrap-ansi-cjs": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], @@ -1927,6 +2106,10 @@ "wsl-utils": ["wsl-utils@0.3.1", "", { "dependencies": { "is-wsl": "^3.1.0", "powershell-utils": "^0.1.0" } }, "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg=="], + "xml-name-validator": ["xml-name-validator@5.0.0", "", {}, "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg=="], + + "xmlchars": ["xmlchars@2.2.0", "", {}, "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="], + "xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="], "yallist": ["yallist@5.0.0", "", {}, "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw=="], @@ -1943,31 +2126,49 @@ "zwitch": ["zwitch@2.0.4", "", {}, "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A=="], + "@antfu/install-pkg/tinyexec": ["tinyexec@1.0.1", "", {}, "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw=="], + + "@babel/core/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "@babel/core/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], "@babel/helper-compilation-targets/browserslist": ["browserslist@4.25.2", "", { "dependencies": { "caniuse-lite": "^1.0.30001733", "electron-to-chromium": "^1.5.199", "node-releases": "^2.0.19", "update-browserslist-db": "^1.1.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA=="], + "@babel/helper-compilation-targets/lru-cache": ["lru-cache@5.1.1", "", { "dependencies": { "yallist": "^3.0.2" } }, "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w=="], + "@babel/helper-compilation-targets/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], "@babel/helper-create-class-features-plugin/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], + "@babel/traverse/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "@dotenvx/dotenvx/commander": ["commander@11.1.0", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="], + "@dotenvx/dotenvx/dotenv": ["dotenv@17.2.1", "", {}, "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ=="], + "@dotenvx/dotenvx/execa": ["execa@5.1.1", "", { "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.1", "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="], "@dotenvx/dotenvx/open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="], "@dotenvx/dotenvx/picomatch": ["picomatch@4.0.5", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="], + "@dotenvx/dotenvx/undici": ["undici@7.29.0", "", {}, "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw=="], + "@dotenvx/dotenvx/which": ["which@4.0.0", "", { "dependencies": { "isexe": "^3.1.1" }, "bin": { "node-which": "bin/which.js" } }, "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg=="], "@esbuild-kit/core-utils/esbuild": ["esbuild@0.18.20", "", { "optionalDependencies": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", "@esbuild/android-x64": "0.18.20", "@esbuild/darwin-arm64": "0.18.20", "@esbuild/darwin-x64": "0.18.20", "@esbuild/freebsd-arm64": "0.18.20", "@esbuild/freebsd-x64": "0.18.20", "@esbuild/linux-arm": "0.18.20", "@esbuild/linux-arm64": "0.18.20", "@esbuild/linux-ia32": "0.18.20", "@esbuild/linux-loong64": "0.18.20", "@esbuild/linux-mips64el": "0.18.20", "@esbuild/linux-ppc64": "0.18.20", "@esbuild/linux-riscv64": "0.18.20", "@esbuild/linux-s390x": "0.18.20", "@esbuild/linux-x64": "0.18.20", "@esbuild/netbsd-x64": "0.18.20", "@esbuild/openbsd-x64": "0.18.20", "@esbuild/sunos-x64": "0.18.20", "@esbuild/win32-arm64": "0.18.20", "@esbuild/win32-ia32": "0.18.20", "@esbuild/win32-x64": "0.18.20" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA=="], + "@iconify/utils/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "@isaacs/cliui/string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="], - "@modelcontextprotocol/sdk/express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="], + "@jridgewell/gen-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.4", "", {}, "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw=="], + + "@jridgewell/trace-mapping/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.4", "", {}, "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw=="], - "@modelcontextprotocol/sdk/jose": ["jose@6.2.4", "", {}, "sha512-N8acGzVsQy6M/fjFcxtysNc4Q379TcM5dM/qKkNtsHFji88yANnXTr7BLeP75iPnFwBfQzM/jg2BZ9+HZrHCZA=="], + "@modelcontextprotocol/sdk/ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], + + "@modelcontextprotocol/sdk/express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3.3", "proxy-addr": "^2.0.7", "qs": "^6.14.0", "range-parser": "^1.2.1", "router": "^2.2.0", "send": "^1.1.0", "serve-static": "^2.2.0", "statuses": "^2.0.1", "type-is": "^2.0.1", "vary": "^1.1.2" } }, "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw=="], "@npmcli/git/lru-cache": ["lru-cache@7.18.3", "", {}, "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA=="], @@ -1975,10 +2176,6 @@ "@npmcli/promise-spawn/which": ["which@3.0.1", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "bin/which.js" } }, "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg=="], - "@polar-sh/better-auth/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], - - "@polar-sh/sdk/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], - "@radix-ui/react-accessible-icon/@radix-ui/react-visually-hidden": ["@radix-ui/react-visually-hidden@1.2.11", "", { "dependencies": { "@radix-ui/react-primitive": "2.1.10" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-NFS86RYYZb4/exihaESBGOpMJFz8MGLAfu3mOBSGByVnVPC9JPASfYubxd/8KbkQK0sYAv8lVQDEQukDX/qXvQ=="], "@radix-ui/react-arrow/@radix-ui/react-primitive": ["@radix-ui/react-primitive@2.1.10", "", { "dependencies": { "@radix-ui/react-slot": "1.3.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg=="], @@ -2081,8 +2278,12 @@ "@radix-ui/react-use-is-hydrated/use-sync-external-store": ["use-sync-external-store@1.5.0", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A=="], + "@react-router/dev/@vitejs/plugin-react": ["@vitejs/plugin-react@4.7.0", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", "@rolldown/pluginutils": "1.0.0-beta.27", "@types/babel__core": "^7.20.5", "react-refresh": "^0.17.0" }, "peerDependencies": { "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" } }, "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA=="], + "@streamdown/code/shiki": ["shiki@3.23.0", "", { "dependencies": { "@shikijs/core": "3.23.0", "@shikijs/engine-javascript": "3.23.0", "@shikijs/engine-oniguruma": "3.23.0", "@shikijs/langs": "3.23.0", "@shikijs/themes": "3.23.0", "@shikijs/types": "3.23.0", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "sha512-55Dj73uq9ZXL5zyeRPzHQsK7Nbyt6Y10k5s7OjuFZGMhpp4r/rsLBH0o/0fstIzX1Lep9VxefWljK/SKCzygIA=="], + "@tailwindcss/node/magic-string": ["magic-string@0.30.17", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0" } }, "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA=="], + "@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/core@1.4.5", "", { "dependencies": { "@emnapi/wasi-threads": "1.0.4", "tslib": "^2.4.0" }, "bundled": true }, "sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q=="], "@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@1.4.5", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg=="], @@ -2095,32 +2296,44 @@ "@tailwindcss/oxide-wasm32-wasi/tslib": ["tslib@2.8.1", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + "@testing-library/jest-dom/dom-accessibility-api": ["dom-accessibility-api@0.6.3", "", {}, "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w=="], + "@ts-morph/common/minimatch": ["minimatch@3.1.2", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw=="], "@ts-morph/common/mkdirp": ["mkdirp@1.0.4", "", { "bin": { "mkdirp": "bin/cmd.js" } }, "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="], "@types/pg/@types/node": ["@types/node@20.19.10", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-iAFpG6DokED3roLSP0K+ybeDdIX6Bc0Vd3mLW5uDqThPWtNos3E+EqOM11mPQHKzfWHqEBuLjIlsBQQ8CsISmQ=="], - "@vercel/static-config/ajv": ["ajv@8.6.3", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } }, "sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw=="], + "@vitejs/plugin-rsc/@mjackson/node-fetch-server": ["@mjackson/node-fetch-server@0.7.0", "", {}, "sha512-un8diyEBKU3BTVj3GzlTPA1kIjCkGdD+AMYQy31Gf9JCkfoZzwgJ79GUtHrF2BN3XPNMLpubbzPcxys+a3uZEw=="], - "@vitejs/plugin-react/react-refresh": ["react-refresh@0.17.0", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="], + "@vitejs/plugin-rsc/magic-string": ["magic-string@0.30.17", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0" } }, "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA=="], - "@vitejs/plugin-rsc/@mjackson/node-fetch-server": ["@mjackson/node-fetch-server@0.7.0", "", {}, "sha512-un8diyEBKU3BTVj3GzlTPA1kIjCkGdD+AMYQy31Gf9JCkfoZzwgJ79GUtHrF2BN3XPNMLpubbzPcxys+a3uZEw=="], + "@vitest/runner/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], - "accepts/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], + "@vitest/snapshot/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], "accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="], + "ajv-formats/ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], + + "ast-v8-to-istanbul/@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + + "ast-v8-to-istanbul/js-tokens": ["js-tokens@10.0.0", "", {}, "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q=="], + "basic-auth/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], - "body-parser/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], + "better-call/@better-auth/utils": ["@better-auth/utils@0.5.0", "", { "dependencies": { "@noble/hashes": "^2.0.1" } }, "sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA=="], - "body-parser/iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="], + "better-call/set-cookie-parser": ["set-cookie-parser@3.1.2", "", {}, "sha512-5/r/lTwbJ3zQ+qwdUFZYeRNqda7P5HD8zQKqlSjdGt1/S0cjLAphHusj4Y58ahDtWn/g32xrIS58/ikOvwl0Lw=="], + + "body-parser/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], "body-parser/raw-body": ["raw-body@2.5.2", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" } }, "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA=="], "compression/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], + "conf/ajv": ["ajv@8.20.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="], + "conf/ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="], "conf/json-schema-typed": ["json-schema-typed@7.0.3", "", {}, "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A=="], @@ -2135,22 +2348,30 @@ "d3-sankey/d3-shape": ["d3-shape@1.3.7", "", { "dependencies": { "d3-path": "1" } }, "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw=="], + "data-urls/whatwg-url": ["whatwg-url@16.0.1", "", { "dependencies": { "@exodus/bytes": "^1.11.0", "tr46": "^6.0.0", "webidl-conversions": "^8.0.1" } }, "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw=="], + "dom-helpers/csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="], "dot-prop/is-obj": ["is-obj@2.0.0", "", {}, "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w=="], + "dotenv-cli/dotenv": ["dotenv@17.2.1", "", {}, "sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ=="], + "dotenv-expand/dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="], "enquirer/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + "esbuild-register/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "express/cookie": ["cookie@0.7.1", "", {}, "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="], "express/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], - "express-rate-limit/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], - "finalhandler/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], + "hast-util-from-html/parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="], + + "hast-util-raw/parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="], + "hast-util-to-parse5/property-information": ["property-information@6.5.0", "", {}, "sha512-PgTgs/BlvHxOu8QuEN7wi5A0OmXaBcHpmCSTehcs6Uuu9IkDIEo13Hy7n898RHfrQ49vKCoGeWZSaAK01nwVig=="], "hosted-git-info/lru-cache": ["lru-cache@7.18.3", "", {}, "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA=="], @@ -2161,14 +2382,20 @@ "log-symbols/is-unicode-supported": ["is-unicode-supported@1.3.0", "", {}, "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="], - "lru-cache/yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="], + "magicast/@babel/parser": ["@babel/parser@7.29.8", "", { "dependencies": { "@babel/types": "^7.29.8" }, "bin": "./bin/babel-parser.js" }, "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA=="], + + "magicast/@babel/types": ["@babel/types@7.29.8", "", { "dependencies": { "@babel/helper-string-parser": "^7.29.7", "@babel/helper-validator-identifier": "^7.29.7" } }, "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg=="], "mermaid/marked": ["marked@16.4.1", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-ntROs7RaN3EvWfy3EZi14H4YxmT6A5YvywfhO+0pm+cH/dnSQRmdAmoFIc3B9aiwTehyk7pESH4ofyBY+V5hZg=="], + "micromark/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "micromark-extension-math/katex": ["katex@0.16.22", "", { "dependencies": { "commander": "^8.3.0" }, "bin": { "katex": "cli.js" } }, "sha512-XCHRdUw4lf3SKBaJe4EvgqIuWwkPSo9XoeO8GjQW94Bp7TWv9hNhzZjZ+OH9yf1UmLygb7DIT5GSFQiyt16zYg=="], "micromatch/picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], + "mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + "mlly/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], "mlly/pkg-types": ["pkg-types@1.3.1", "", { "dependencies": { "confbox": "^0.1.8", "mlly": "^1.7.4", "pathe": "^2.0.1" } }, "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ=="], @@ -2191,8 +2418,12 @@ "pkg-types/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + "playwright/fsevents": ["fsevents@2.3.2", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="], + "postcss/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], + "pretty-format/react-is": ["react-is@17.0.2", "", {}, "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="], + "prompts/kleur": ["kleur@3.0.3", "", {}, "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w=="], "prop-types/react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="], @@ -2293,12 +2524,12 @@ "raw-body/http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="], + "raw-body/iconv-lite": ["iconv-lite@0.7.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ=="], + "rehype-katex/katex": ["katex@0.16.22", "", { "dependencies": { "commander": "^8.3.0" }, "bin": { "katex": "cli.js" } }, "sha512-XCHRdUw4lf3SKBaJe4EvgqIuWwkPSo9XoeO8GjQW94Bp7TWv9hNhzZjZ+OH9yf1UmLygb7DIT5GSFQiyt16zYg=="], "restore-cursor/onetime": ["onetime@7.0.0", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="], - "router/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], - "router/path-to-regexp": ["path-to-regexp@8.4.2", "", {}, "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA=="], "send/debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], @@ -2309,6 +2540,8 @@ "shadcn/ts-morph": ["ts-morph@26.0.0", "", { "dependencies": { "@ts-morph/common": "~0.27.0", "code-block-writer": "^13.0.3" } }, "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug=="], + "shadcn/undici": ["undici@7.29.0", "", {}, "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw=="], + "shadcn/zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], "streamdown/tailwind-merge": ["tailwind-merge@3.6.0", "", {}, "sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w=="], @@ -2317,12 +2550,22 @@ "string-width-cjs/strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], - "strip-ansi-cjs/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + "strip-ansi/ansi-regex": ["ansi-regex@6.1.0", "", {}, "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA=="], - "type-is/mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], + "vite-node/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], "vite-node/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + "vitest/es-module-lexer": ["es-module-lexer@2.3.2", "", {}, "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw=="], + + "vitest/pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + + "vitest/picomatch": ["picomatch@4.0.5", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="], + + "vitest/tinyglobby": ["tinyglobby@0.2.17", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="], + + "wrap-ansi/ansi-styles": ["ansi-styles@6.2.1", "", {}, "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug=="], + "wrap-ansi/string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="], "wrap-ansi-cjs/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], @@ -2341,6 +2584,8 @@ "@babel/helper-compilation-targets/browserslist/update-browserslist-db": ["update-browserslist-db@1.1.3", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw=="], + "@babel/helper-compilation-targets/lru-cache/yallist": ["yallist@3.1.1", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="], + "@dotenvx/dotenvx/execa/get-stream": ["get-stream@6.0.1", "", {}, "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg=="], "@dotenvx/dotenvx/execa/human-signals": ["human-signals@2.1.0", "", {}, "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw=="], @@ -2413,12 +2658,16 @@ "@modelcontextprotocol/sdk/express/cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="], + "@modelcontextprotocol/sdk/express/debug": ["debug@4.4.1", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ=="], + "@modelcontextprotocol/sdk/express/finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="], "@modelcontextprotocol/sdk/express/fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="], "@modelcontextprotocol/sdk/express/merge-descriptors": ["merge-descriptors@2.0.0", "", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="], + "@modelcontextprotocol/sdk/express/mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="], + "@modelcontextprotocol/sdk/express/qs": ["qs@6.15.3", "", { "dependencies": { "es-define-property": "^1.0.1", "side-channel": "^1.1.1" } }, "sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A=="], "@modelcontextprotocol/sdk/express/send": ["send@1.2.1", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="], @@ -2479,6 +2728,10 @@ "@radix-ui/react-toolbar/@radix-ui/react-toggle-group/@radix-ui/react-use-controllable-state": ["@radix-ui/react-use-controllable-state@1.2.6", "", { "dependencies": { "@radix-ui/primitive": "1.1.7", "@radix-ui/react-use-effect-event": "0.0.5", "@radix-ui/react-use-layout-effect": "1.1.4" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ=="], + "@react-router/dev/@vitejs/plugin-react/@rolldown/pluginutils": ["@rolldown/pluginutils@1.0.0-beta.27", "", {}, "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA=="], + + "@react-router/dev/@vitejs/plugin-react/react-refresh": ["react-refresh@0.17.0", "", {}, "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ=="], + "@streamdown/code/shiki/@shikijs/core": ["@shikijs/core@3.23.0", "", { "dependencies": { "@shikijs/types": "3.23.0", "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4", "hast-util-to-html": "^9.0.5" } }, "sha512-NSWQz0riNb67xthdm5br6lAkvpDJRTgB36fxlo37ZzM2yq0PQFFzbd8psqC2XMPgCzo1fW6cVi18+ArJ44wqgA=="], "@streamdown/code/shiki/@shikijs/engine-javascript": ["@shikijs/engine-javascript@3.23.0", "", { "dependencies": { "@shikijs/types": "3.23.0", "@shikijs/vscode-textmate": "^10.0.2", "oniguruma-to-es": "^4.3.4" } }, "sha512-aHt9eiGFobmWR5uqJUViySI1bHMqrAgamWE1TYSUoftkAeCCAiGawPMwM+VCadylQtF4V3VNOZ5LmfItH5f3yA=="], @@ -2491,13 +2744,15 @@ "@streamdown/code/shiki/@shikijs/types": ["@shikijs/types@3.23.0", "", { "dependencies": { "@shikijs/vscode-textmate": "^10.0.2", "@types/hast": "^3.0.4" } }, "sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ=="], + "@tailwindcss/node/magic-string/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.4", "", {}, "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw=="], + "@tailwindcss/oxide-wasm32-wasi/@napi-rs/wasm-runtime/@tybys/wasm-util": ["@tybys/wasm-util@0.10.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ=="], "@ts-morph/common/minimatch/brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="], "@types/pg/@types/node/undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], - "accepts/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + "@vitejs/plugin-rsc/magic-string/@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.4", "", {}, "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw=="], "body-parser/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="], @@ -2509,12 +2764,18 @@ "d3-sankey/d3-shape/d3-path": ["d3-path@1.0.9", "", {}, "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg=="], - "enquirer/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], - "express/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="], "finalhandler/debug/ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="], + "hast-util-from-html/parse5/entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="], + + "hast-util-raw/parse5/entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="], + + "magicast/@babel/types/@babel/helper-string-parser": ["@babel/helper-string-parser@7.29.7", "", {}, "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw=="], + + "magicast/@babel/types/@babel/helper-validator-identifier": ["@babel/helper-validator-identifier@7.29.7", "", {}, "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg=="], + "micromark-extension-math/katex/commander": ["commander@8.3.0", "", {}, "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww=="], "mlly/pkg-types/confbox": ["confbox@0.1.8", "", {}, "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w=="], @@ -2579,14 +2840,10 @@ "shadcn/ts-morph/code-block-writer": ["code-block-writer@13.0.3", "", {}, "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg=="], - "string-width-cjs/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], - - "type-is/mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + "vitest/tinyglobby/fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], "wrap-ansi-cjs/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], - "wrap-ansi-cjs/strip-ansi/ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], - "wrap-ansi/string-width/emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="], "@modelcontextprotocol/sdk/express/accepts/negotiator": ["negotiator@1.0.0", "", {}, "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg=="], @@ -2597,6 +2854,8 @@ "@modelcontextprotocol/sdk/express/body-parser/http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="], + "@modelcontextprotocol/sdk/express/body-parser/iconv-lite": ["iconv-lite@0.7.3", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ=="], + "@modelcontextprotocol/sdk/express/finalhandler/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], "@modelcontextprotocol/sdk/express/finalhandler/statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="], diff --git a/components.json b/components.json index d837ae5..fa1e81b 100644 --- a/components.json +++ b/components.json @@ -18,4 +18,4 @@ "hooks": "~/hooks" }, "iconLibrary": "lucide" -} \ No newline at end of file +} diff --git a/docker-compose.yml b/docker-compose.yml index d93ce2e..0f3559d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,12 @@ -version: "3.9" services: postgres: image: postgres:16-alpine - container_name: rr7_postgres + container_name: rocket_postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres - POSTGRES_DB: rr7_test + POSTGRES_DB: rocket ports: - "5432:5432" healthcheck: @@ -17,15 +16,9 @@ services: retries: 20 volumes: - pg_data:/var/lib/postgresql/data - - # Optional lightweight admin UI (uncomment to use) - # adminer: - # image: adminer:latest - # restart: unless-stopped - # ports: - # - "8080:8080" - # depends_on: - # - postgres + # Creates the isolated integration-test database alongside the + # development one, so `bun run test:integration` works after `db:up`. + - ./scripts/init-databases.sql:/docker-entrypoint-initdb.d/10-init-databases.sql:ro volumes: pg_data: diff --git a/docs/capabilities/ai-chat.md b/docs/capabilities/ai-chat.md new file mode 100644 index 0000000..7bae09a --- /dev/null +++ b/docs/capabilities/ai-chat.md @@ -0,0 +1,64 @@ +# Azure AI Chat + +**Tier:** Experimental — outside Rocket's production-support guarantee. + +A streaming chat interface backed by Azure OpenAI, using the Vercel AI SDK. + +## Coverage gaps + +This capability is experimental because it does not meet the bar Rocket holds production-supported capabilities to. Before shipping it, you own each of these: + +- **No conversation persistence.** Threads live in browser memory and vanish on reload. There is no schema, no ownership scoping, and therefore no organization-aware isolation of chat history. +- **No rate limiting or spend control.** Any authenticated user can issue unbounded requests against your Azure deployment. Cost is your responsibility. +- **No content moderation.** Rocket applies no input or output filtering beyond whatever Azure Content Safety your deployment already enforces. +- **No abuse or audit trail.** Prompts and completions are not recorded, so there is nothing to review after an incident. +- **Provider-locked.** The module targets Azure OpenAI specifically, not a provider-neutral abstraction. +- **Thin test coverage.** Only the availability contract is tested; streaming behavior is not. + +## Configuration + +| Variable | Required | Meaning | +| --- | --- | --- | +| `AZURE_OPENAI_RESOURCE_NAME` | to enable | Azure resource name. | +| `AZURE_OPENAI_API_KEY` | to enable | API key for that resource. | +| `AZURE_OPENAI_DEPLOYMENT_NAME` | no | Deployment to call. Defaults to `gpt-5-chat`. | + +Resource name and API key form an all-or-nothing group: supplying one without the other fails startup rather than producing a half-configured client. + +## Availability + +```ts +import { isAiChatAvailable } from "~/capabilities/ai-chat/ai-chat.server"; +``` + +Side-effect-free and never throws. Available when both the resource name and the API key are present. + +## Invocation + +`getChatModel()` throws `CapabilityUnavailableError` when the capability is unavailable, naming the capability and linking this guide without exposing the key. + +The model is created through `azure.chat(...)` rather than the AI SDK's default. AI SDK 6+ defaults Azure to the Responses API; `.chat()` pins Chat Completions so existing deployments keep working. + +## Integration + +- **API route** — `app/routes/api/chat.tsx` streams completions. It must refuse requests when the capability is unavailable rather than throwing an unhandled error. +- **UI route** — `app/routes/ai/chat.tsx`, mounted at `/dashboard/ai`. +- **Components** — `app/routes/ai/components/` and `app/components/ai-elements/`. + +Both routes require authentication through the standard Core guards. + +## Tests + +`tests/unit/capability-contract.test.ts` covers absent, unavailable-invocation, and configured states plus deployment-name resolution against the pure `config.ts`. Partial configuration is covered by `tests/unit/env-schema.test.ts`. No test contacts Azure. + +## Manual removal + +1. Delete `app/capabilities/ai-chat/`. +2. Delete `app/routes/ai/`, `app/routes/api/chat.tsx`, and `app/components/ai-elements/`. +3. Remove the `ai` and `api/chat` entries from `app/routes.ts`. +4. Remove any navigation pointing at `/dashboard/ai` in `app/components/app-sidebar.tsx`. +5. In `app/lib/env/schema.ts`, remove the `AZURE_OPENAI_*` variables and the `azureOpenAi` capability group; mirror the change in `.env.example` and re-run `bun run env:check`. +6. Remove `@ai-sdk/azure`, `@ai-sdk/react`, `ai`, `streamdown`, and the `@streamdown/*` packages from `package.json` if nothing else uses them. +7. Delete the AI cases from `tests/unit/capability-contract.test.ts`. + +AI Chat adds no tables, so no removal migration is needed. diff --git a/docs/capabilities/billing.md b/docs/capabilities/billing.md new file mode 100644 index 0000000..87b07dd --- /dev/null +++ b/docs/capabilities/billing.md @@ -0,0 +1,76 @@ +# Polar Billing + +**Tier:** Production-supported + +Subscription billing, checkout, and a customer portal through [Polar](https://polar.sh). Rocket mounts Polar as a Better Auth plugin, so checkout and portal endpoints live under the auth API rather than in application routes. + +## Configuration + +| Variable | Required | Meaning | +| --- | --- | --- | +| `POLAR_ACCESS_TOKEN` | to enable | Organization access token. Its presence is what makes billing available. | +| `POLAR_SERVER` | no | `sandbox` (default) or `production`. | +| `POLAR_ENABLED` | no | Operational kill switch. Defaults to true; set `false` to disable a fully configured integration without removing credentials. | +| `POLAR_PRODUCT_PRO_ID` | no | Product mapped to the `pro` checkout slug. Without it, checkout mounts with no products. | +| `POLAR_WEBHOOK_SECRET` | no | Enables webhook handling. Required whenever `POLAR_SERVER=production`. | + +All of these are server-only. None is ever sent to the browser. + +`POLAR_WEBHOOK_SECRET` is enforced at startup for production servers: a production Polar integration without a verified webhook endpoint silently misses entitlement changes, so Rocket refuses to start rather than run in that state. + +## Availability + +```ts +import { isBillingAvailable } from "~/capabilities/billing/billing.server"; +``` + +Side-effect-free and never throws. Billing is available when an access token is present **and** the kill switch has not been thrown. + +Loaders may pass the boolean result to the browser; they must never pass configuration itself: + +```ts +export const loader = withAuthLoader(async ({ customerState }) => { + if (!isBillingAvailable() || !customerState) { + return { active: false, billingEnabled: false }; + } + return { active: Boolean(customerState.activeSubscriptions?.length), billingEnabled: true }; +}); +``` + +## Invocation + +| Function | Behavior when unavailable | +| --- | --- | +| `getPolarClient()` | throws `CapabilityUnavailableError` | +| `getCustomerState(userId)` | returns `null` | +| `createBillingPlugin()` | returns `null`, so the plugin is never mounted | + +`getCustomerState` returning `null` rather than throwing is deliberate: it lets every authenticated loader resolve subscription state without branching on configuration. `getPolarClient` throws because reaching for the client is an unambiguous programming error when billing is off. + +Because `createBillingPlugin()` returns `null`, Polar's endpoints are **absent** when billing is unconfigured, not present and failing. + +## Integration + +- **Better Auth plugin** — `app/lib/auth/auth.server.ts` mounts the plugin only when it exists. +- **Loader helper** — `withAuthLoader` in `app/utils/guard.server.ts` injects `customerState`. +- **Webhook route** — `app/routes/polar.webhooks.tsx`, mounted at `/polar/webhooks`. It must reject requests when webhooks are unavailable rather than accepting unverified payloads. +- **UI** — `app/routes/dashboard/dashboard.billing.tsx` renders an explicit "Billing is not configured" state. Pages are application-owned; the capability never hides or registers navigation itself. + +Entitlement grants belong in the `onOrderPaid` and `onCustomerStateChanged` handlers in `billing.server.ts`. They are intentionally empty — Rocket does not presume what a subscription entitles. + +## Tests + +`tests/unit/capability-contract.test.ts` covers the four required states against the pure `config.ts`: absent, partial (rejected by env validation — see `tests/unit/env-schema.test.ts`), unavailable invocation, and configured. No test contacts a real Polar account. + +## Manual removal + +1. Delete `app/capabilities/billing/`. +2. Delete `app/routes/polar.webhooks.tsx` and its entry in `app/routes.ts`. +3. Delete `app/routes/dashboard/dashboard.billing.tsx`, its route entry, and any navigation pointing at it (`app/components/nav-user.tsx`, `app/components/app-sidebar.tsx`). +4. In `app/utils/guard.server.ts`, drop the `customerState` injection and the `PolarCustomerState` re-export, then fix the loaders that consumed it. +5. In `app/lib/auth/auth.server.ts`, remove `createBillingPlugin` and the `plugins` entry. +6. In `app/lib/env/schema.ts`, remove the `POLAR_*` variables and the `polar` capability group; mirror the change in `.env.example` and re-run `bun run env:check`. +7. Remove `@polar-sh/sdk` and `@polar-sh/better-auth` from `package.json`. +8. Delete the billing cases from `tests/unit/capability-contract.test.ts` and the billing assertions from `tests/e2e/smoke.spec.ts`. + +Billing adds no tables, so no removal migration is needed. diff --git a/docs/capabilities/email.md b/docs/capabilities/email.md new file mode 100644 index 0000000..1e7d13b --- /dev/null +++ b/docs/capabilities/email.md @@ -0,0 +1,80 @@ +# Transactional email + +**Tier:** Deferred — Rocket ships a seam, not a transport. + +Rocket has no email provider. What it has instead is one narrow interface that Core flows depend on, so that a missing transport degrades predictably rather than silently. + +This exists because password reset would otherwise be unreachable ([#12](https://github.com/solev/rocket/issues/12)): `emailAndPassword` is enabled, so a user who forgets their password needs a recovery path even in a clone with nothing configured. + +## The seam + +`app/lib/email/delivery.server.ts` + +```ts +export interface EmailMessage { + to: string; + subject: string; + text: string; +} + +export interface EmailTransport { + name: string; + send(message: EmailMessage): Promise; +} +``` + +## Behavior with no transport + +| Environment | Behavior | +| --- | --- | +| development, test | The message is written to the server console, including the reset link, so the flow is fully exercisable locally. | +| production | `sendEmail` throws `EmailDeliveryUnavailableError`. | + +Production refuses rather than logging because a reset link is a bearer credential and must never reach a production log — and a flow that silently drops mail is worse than one that is plainly unavailable. + +There is no environment variable. Availability is determined by whether a transport has been registered, not by configuration. + +## Making it real + +Implement `EmailTransport` against your provider and register it during server start-up, before any request is served: + +```ts +import { setEmailTransport } from "~/lib/email/delivery.server"; +import { Resend } from "resend"; + +const resend = new Resend(process.env.RESEND_API_KEY); + +setEmailTransport({ + name: "resend", + async send({ to, subject, text }) { + await resend.emails.send({ from: "no-reply@example.com", to, subject, text }); + }, +}); +``` + +If you add provider credentials, add them to `app/lib/env/schema.ts` as an all-or-nothing capability group and mirror them in `.env.example`, exactly as Polar and Azure do. `bun run env:check` enforces that the example file matches the schema. + +## What routes through it + +- **Password reset** — `sendResetPassword` in `app/lib/auth/auth.server.ts`, reached from `/forgot-password` and completed at `/reset-password/:token`. + +Better Auth emits a relative reset URL when no `baseURL` is configured, so Core absolutizes it before sending. `BETTER_AUTH_URL` is required in production, so the local fallback never applies to a deployed application. + +Email verification is **not** wired up. `emailAndPassword` does not require verification, so enabling it is a product decision, not a correctness fix. + +## Tests + +`tests/integration/password-reset.test.ts` covers delivery through an injected transport, the console fallback, absolute-link generation, a full token round-trip, and the fact that the request does not reveal whether an address is registered. + +Better Auth's own `forgetPassword` endpoint varies its response body between known and unknown addresses, which leaks account existence. The `/forgot-password` action therefore discards the upstream result and always answers identically — including when delivery itself fails. + +## Manual removal + +The seam is Core, not an optional capability. Removing it means removing password reset: + +1. Delete `app/routes/forgot-password.tsx` and `app/routes/reset-password.tsx` and their entries in `app/routes.ts`. +2. Remove the "Forgot your password?" link from `app/components/login-form.tsx`. +3. Remove `sendResetPassword` from `app/lib/auth/auth.server.ts`. +4. Delete `app/lib/email/` and `tests/integration/password-reset.test.ts`. + +Doing this leaves users with no account recovery path. Prefer registering a transport. diff --git a/docs/roadmap.md b/docs/roadmap.md index dfe6d7a..6387679 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -50,45 +50,59 @@ Schema lives with its capability, but Rocket keeps one normal chronological migr Every production-supported capability tests four states — absent, invalid, unavailable-invocation, and configured — using mocks, never real third-party accounts. Each has one guide covering configuration, availability, invocation, integration, and manual removal. -## To be built +## Build status -Nothing below is implemented yet. Ordered by dependency: each step makes the next verifiable. +Sections 1-3 below were implemented on `feat/roadmap-implementation`. Each item records what shipped, so the remaining work is visible without re-reading the tickets. -### 1. Quality foundation +### 1. Quality foundation — done -The gate everything else is checked by, so it comes first. +1. **Environment validation** — `app/lib/env/schema.ts` is the single source of truth, validated once at startup with `@t3-oss/env-core` and Zod. Empty strings are coerced to absent, so `|| ""` fallbacks cannot reappear. Capability variables are validated as all-or-nothing groups. `bun run env:check` fails when `.env.example` and the schema disagree. `resolveTestDatabaseUrl` refuses to run when `TEST_DATABASE_URL` is absent, equals `DATABASE_URL`, or names a database without `test` in it. +2. **Biome and one gate** — `biome.json` plus `bun run check`: format, lint, typecheck, env check, unit and DOM tests, integration tests, schema drift, production build. CI runs the same command. Tailwind v4 CSS is excluded from Biome, which cannot parse its at-rules. +3. **Vitest** — three projects (`unit`, `dom`, `integration`). Integration tests run against a real PostgreSQL database with `fileParallelism` off, and the harness clears every capability variable so the suite always asserts the unconfigured state. +4. **Playwright smoke journey** — `tests/e2e/smoke.spec.ts`: public page, protected redirect, signup, dashboard render, capability disabled state, logout, login. The web server starts with every optional provider explicitly blank. +5. **Migration and drift checks** — `bun run db:drift` regenerates against the committed schema and fails on any difference; it also refuses to report while `drizzle/` has uncommitted changes. `bun run db:test:setup` builds the isolated test database from zero. +6. **GitHub Actions** — four parallel jobs (static, test, e2e/build, security with CodeQL) plus grouped Dependabot updates. -1. Centralized environment validation (`@t3-oss/env-core` + Zod), server/client split, no silent empty-string fallbacks, `.env.example` checked against the schema — plus a test-database safety guard that refuses to run against the development database. -2. Biome for formatting and linting, and `bun run check` as the single local and CI entry point. -3. Vitest, with React Router route/loader/action integration tests and PostgreSQL integration tests against a dedicated `TEST_DATABASE_URL`. -4. A minimum Playwright smoke journey: public page, protected redirect, signup, login, logout, dashboard render, and one capability's disabled state. -5. Migration and schema-drift checks — a fresh database must migrate from zero before tests run. -6. GitHub Actions in four parallel jobs (static, test, e2e/build, security), plus dependency updates and CodeQL. +### 2. Core correctness — done -**Done when** a fresh clone can install, validate configuration, migrate an isolated test database, exercise auth and route boundaries, build production assets, and pass the same `bun run check` locally and in CI — with **every** optional provider unconfigured. +- **Password reset now works** ([#12](https://github.com/solev/rocket/issues/12)). `/forgot-password` and `/reset-password/:token` exist and are linked from the login form. Delivery routes through `app/lib/email/delivery.server.ts`, which logs the link in development and refuses in production rather than dropping mail silently. +- **Google provider is honestly gated.** Absent credentials mean the provider is never registered and its button never renders; partial credentials fail startup. Availability is resolved server-side and passed to the browser as a boolean. +- **Dead `two_factor` table kept, not dropped.** Better Auth's `twoFactor` plugin was never mounted and `user.twoFactorEnabled` was never added, so two-factor auth has never worked here. An earlier pass dropped the table as dead weight; that was reverted. Rocket is a starter, so its migrations run against every clone's database, and a clone that did mount the plugin would hold real secrets — a `DROP TABLE` in shared migration history destroys those with no way back. The table is declared in `schema.ts` instead, which keeps drift quiet and the schema honest. Shipping real 2FA remains a feature decision. +- **Organization-aware ownership exists.** `organization` and `member` tables, `session.activeOrganizationId`, and provisioning through Better Auth database hooks. The Better Auth organization plugin is deliberately **not** mounted — management was dropped in [#9](https://github.com/solev/rocket/issues/9), and mounting it would expose create/invite/add-member endpoints nobody has decided how to lock down. -### 2. Core correctness +### 3. Capability retrofit — done -Existing code that does not yet meet the contract above. +Both capabilities are localized under `app/capabilities/`, split into a pure `config.ts` and a `*.server.ts` that binds it to the environment. Each has an availability check that never throws, throws `CapabilityUnavailableError` on unavailable invocation, protects its endpoints, and has a guide covering configuration, availability, invocation, integration, and manual removal. -- **[#12](https://github.com/solev/rocket/issues/12) Password reset is unreachable.** `emailAndPassword` is enabled with no mail transport and no `sendResetPassword` handler, so a user who forgets their password has no recovery path. -- **Google provider is always "configured".** `clientId: process.env.GOOGLE_CLIENT_ID || ""` makes the provider appear available with empty credentials — exactly the silent empty-string fallback the environment contract forbids. Absent should mean unavailable; partial should fail startup. -- **Dead `two_factor` table.** The table is defined in `app/db/schema.ts` and passed to the Drizzle adapter, but the `twoFactor()` plugin is never mounted. Either mount it or drop the table. -- **Better Auth is pinned well behind.** `bun.lock` holds 1.3.7 against a much newer stable line; later versions add hook surfaces that any future audit trail would need. -- **Organization-aware ownership needs to actually exist.** It is Core by decision, but no organization table, membership, or ownership scoping is implemented yet. +### 4. Better Auth upgrade — done -### 3. Retrofit the capabilities +Better Auth moved 1.3.7 → 1.6.29, which also forced `@polar-sh/better-auth` 1.1.0 → 1.8.4 (the old plugin no longer satisfies the `BetterAuthPlugin` type). `auth.api.forgetPassword` became `auth.api.requestPasswordReset`; the reset callback path is unchanged. Migration 0004 adds the indexes 1.6 generates by default and makes the verification timestamps `NOT NULL`, backfilling first so it applies to established databases too. -Polar Billing and Azure AI Chat both predate the contract and neither satisfies it. Polar is closest — it already gates on configuration and mounts conditionally. +This was deliberately done last: the upgrade needed a safety net, and the suite built in section 1 is what made it verifiable rather than hopeful. 1.6 also unlocks `organizationHooks` and dynamic access control, should organization management ever be revived. -Each needs: a localized module, availability checks, `CapabilityUnavailableError` on unavailable invocation, the four-state tests, and one guide including manual removal. Azure AI Chat must additionally document its experimental coverage gaps. +### 5. Defects the smoke journey found — done -### 4. Later +Pointing the journey at the production build rather than the dev server turned up five real defects. None were visible in a screenshot, and none would have been found by reading the code. -Revisit the deferred backlog only once the contract is proven by the capabilities above. Admission is governed by `docs/agents/upstreaming.md`; support tier remains a roadmap decision. +- **Auth rate limits put every user in one bucket.** Better Auth only trusts a single, explicitly named client-IP header, so without one it cannot tell callers apart. Rate limiting is on in production by default and `/sign-in/email` allows three attempts per ten seconds — meaning three failed sign-ins from anyone locked out everybody. `AUTH_IP_ADDRESS_HEADER` now names the header the proxy sets, and the smoke journey gives each test its own address so it exercises per-caller bucketing. +- **The eleventh user sharing a display name could not sign up.** Organization slugs were disambiguated by counting upwards with a hard cap of ten, and exhausting it threw, failing signup. Allocation now tries a few readable candidates and then switches to a random token. +- **Anything typed before hydration was silently discarded.** The login and signup forms were controlled by React state, so the first state update replaced whatever the user had typed with the empty initial state — submitting a blank form. Both forms are uncontrolled now and read `FormData` on submit. +- **Vercel Web Analytics broke hydration everywhere except Vercel.** Its script 404s off-platform, React Router logged an unmatched route on every page load, and hydration failed with React error #418 — leaving pages that looked fine but had dead event handlers. It is now gated on the platform providing it. +- **A cold `bun run dev` reloaded the page mid-hydration.** Vite's first crawl only sees the root route, so the first navigation discovered a second batch of dependencies and force-reloaded. `optimizeDeps.include` names them so it pre-bundles once. + +Each is covered by a test that fails without the fix. + +### Still open + +- **Polar webhook routing is unverified.** `/polar/webhooks` forwards to `auth.handler`, but whether the Better Auth Polar plugin matches that path outside `/api/auth/*` has not been proven, and proving it needs a live Polar account — which the contract forbids in tests. The endpoint correctly refuses when the webhook secret is absent. +- **Email verification is not wired up.** `emailAndPassword` does not require it, so enabling it is a product decision. +- **`bun run check` does not include the smoke journey**, because Playwright needs a browser download. `bun run check:e2e` runs both; CI runs them in separate jobs. +- **Rate-limit storage is in-memory.** Limits are per-process, so several instances multiply the effective limit and a restart clears it. Better Auth can store them in the database or Redis instead. +- **The deferred capability backlog** — transactional email transport, file storage, background jobs, hosted observability, enterprise SSO and audit logging, deployment runbooks. ## Related documents - `CONTEXT.md` — glossary - `docs/agents/upstreaming.md` — how functionality built in a Rocket application is promoted into Rocket - `docs/protected-routes.md` +- `docs/capabilities/billing.md`, `docs/capabilities/ai-chat.md`, `docs/capabilities/email.md` diff --git a/drizzle.config.ts b/drizzle.config.ts index f42db10..8e213c1 100644 --- a/drizzle.config.ts +++ b/drizzle.config.ts @@ -1,10 +1,15 @@ import type { Config } from "drizzle-kit"; +const url = process.env.DATABASE_URL; +if (!url) { + throw new Error( + "DATABASE_URL is not set. drizzle-kit needs it to generate and apply migrations.", + ); +} + export default { schema: "./app/db/schema.ts", out: "./drizzle", dialect: "postgresql", - dbCredentials: { - url: process.env.DATABASE_URL || "", - }, + dbCredentials: { url }, } satisfies Config; diff --git a/drizzle/0003_orange_mesmero.sql b/drizzle/0003_orange_mesmero.sql new file mode 100644 index 0000000..d0363b8 --- /dev/null +++ b/drizzle/0003_orange_mesmero.sql @@ -0,0 +1,22 @@ +CREATE TABLE "member" ( + "id" text PRIMARY KEY NOT NULL, + "organization_id" text NOT NULL, + "user_id" text NOT NULL, + "role" text DEFAULT 'owner' NOT NULL, + "created_at" timestamp NOT NULL, + CONSTRAINT "member_organization_id_user_id_unique" UNIQUE("organization_id","user_id") +); +--> statement-breakpoint +CREATE TABLE "organization" ( + "id" text PRIMARY KEY NOT NULL, + "name" text NOT NULL, + "slug" text NOT NULL, + "created_at" timestamp NOT NULL, + "updated_at" timestamp NOT NULL, + CONSTRAINT "organization_slug_unique" UNIQUE("slug") +); +--> statement-breakpoint +ALTER TABLE "session" ADD COLUMN "active_organization_id" text;--> statement-breakpoint +ALTER TABLE "member" ADD CONSTRAINT "member_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "member" ADD CONSTRAINT "member_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "session" ADD CONSTRAINT "session_active_organization_id_organization_id_fk" FOREIGN KEY ("active_organization_id") REFERENCES "public"."organization"("id") ON DELETE set null ON UPDATE no action; \ No newline at end of file diff --git a/drizzle/0004_better_auth_1_6_alignment.sql b/drizzle/0004_better_auth_1_6_alignment.sql new file mode 100644 index 0000000..407190b --- /dev/null +++ b/drizzle/0004_better_auth_1_6_alignment.sql @@ -0,0 +1,12 @@ +-- Aligns the schema with what Better Auth 1.6 generates. +-- +-- The verification timestamps become NOT NULL. Better Auth has always written +-- both, but a database that predates that guarantee could hold nulls, and +-- SET NOT NULL would fail on it — so they are backfilled first. +UPDATE "verification" SET "created_at" = now() WHERE "created_at" IS NULL;--> statement-breakpoint +UPDATE "verification" SET "updated_at" = now() WHERE "updated_at" IS NULL;--> statement-breakpoint +ALTER TABLE "verification" ALTER COLUMN "created_at" SET NOT NULL;--> statement-breakpoint +ALTER TABLE "verification" ALTER COLUMN "updated_at" SET NOT NULL;--> statement-breakpoint +CREATE INDEX "account_userId_idx" ON "account" USING btree ("user_id");--> statement-breakpoint +CREATE INDEX "session_userId_idx" ON "session" USING btree ("user_id");--> statement-breakpoint +CREATE INDEX "verification_identifier_idx" ON "verification" USING btree ("identifier"); diff --git a/drizzle/meta/0003_snapshot.json b/drizzle/meta/0003_snapshot.json new file mode 100644 index 0000000..c9d9188 --- /dev/null +++ b/drizzle/meta/0003_snapshot.json @@ -0,0 +1,615 @@ +{ + "id": "5c5f10e3-11a0-4d64-a7d9-a37a2d57200a", + "prevId": "c7f55ac6-3d70-4a40-b898-43ed2d78693e", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.account": { + "name": "account", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "account_id": { + "name": "account_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "provider_id": { + "name": "provider_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "access_token_expires_at": { + "name": "access_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "refresh_token_expires_at": { + "name": "refresh_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "scope": { + "name": "scope", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "account_user_id_user_id_fk": { + "name": "account_user_id_user_id_fk", + "tableFrom": "account", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.member": { + "name": "member", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'owner'" + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "member_organization_id_organization_id_fk": { + "name": "member_organization_id_organization_id_fk", + "tableFrom": "member", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "member_user_id_user_id_fk": { + "name": "member_user_id_user_id_fk", + "tableFrom": "member", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "member_organization_id_user_id_unique": { + "name": "member_organization_id_user_id_unique", + "nullsNotDistinct": false, + "columns": [ + "organization_id", + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.organization": { + "name": "organization", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organization_slug_unique": { + "name": "organization_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.session": { + "name": "session", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_agent": { + "name": "user_agent", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "active_organization_id": { + "name": "active_organization_id", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "session_user_id_user_id_fk": { + "name": "session_user_id_user_id_fk", + "tableFrom": "session", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "session_active_organization_id_organization_id_fk": { + "name": "session_active_organization_id_organization_id_fk", + "tableFrom": "session", + "tableTo": "organization", + "columnsFrom": [ + "active_organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "session_token_unique": { + "name": "session_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.two_factor": { + "name": "two_factor", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "secret": { + "name": "secret", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "backup_codes": { + "name": "backup_codes", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "two_factor_user_id_user_id_fk": { + "name": "two_factor_user_id_user_id_fk", + "tableFrom": "two_factor", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email_verified": { + "name": "email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_email_unique": { + "name": "user_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user_settings": { + "name": "user_settings", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "org_name": { + "name": "org_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "contact_email": { + "name": "contact_email", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "default_model": { + "name": "default_model", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "webhook_url": { + "name": "webhook_url", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "openai_api_key": { + "name": "openai_api_key", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "anthropic_api_key": { + "name": "anthropic_api_key", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "user_settings_user_id_user_id_fk": { + "name": "user_settings_user_id_user_id_fk", + "tableFrom": "user_settings", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_settings_user_id_unique": { + "name": "user_settings_user_id_unique", + "nullsNotDistinct": false, + "columns": [ + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.verification": { + "name": "verification", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/drizzle/meta/0004_snapshot.json b/drizzle/meta/0004_snapshot.json new file mode 100644 index 0000000..913277c --- /dev/null +++ b/drizzle/meta/0004_snapshot.json @@ -0,0 +1,663 @@ +{ + "id": "c47d4729-b246-43b0-9d05-6ad8a775bf96", + "prevId": "5c5f10e3-11a0-4d64-a7d9-a37a2d57200a", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.account": { + "name": "account", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "account_id": { + "name": "account_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "provider_id": { + "name": "provider_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "access_token_expires_at": { + "name": "access_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "refresh_token_expires_at": { + "name": "refresh_token_expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "scope": { + "name": "scope", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "account_userId_idx": { + "name": "account_userId_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "account_user_id_user_id_fk": { + "name": "account_user_id_user_id_fk", + "tableFrom": "account", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.member": { + "name": "member", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "role": { + "name": "role", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'owner'" + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "member_organization_id_organization_id_fk": { + "name": "member_organization_id_organization_id_fk", + "tableFrom": "member", + "tableTo": "organization", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "member_user_id_user_id_fk": { + "name": "member_user_id_user_id_fk", + "tableFrom": "member", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "member_organization_id_user_id_unique": { + "name": "member_organization_id_user_id_unique", + "nullsNotDistinct": false, + "columns": [ + "organization_id", + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.organization": { + "name": "organization", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organization_slug_unique": { + "name": "organization_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.session": { + "name": "session", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_agent": { + "name": "user_agent", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "active_organization_id": { + "name": "active_organization_id", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "session_userId_idx": { + "name": "session_userId_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "session_user_id_user_id_fk": { + "name": "session_user_id_user_id_fk", + "tableFrom": "session", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "session_active_organization_id_organization_id_fk": { + "name": "session_active_organization_id_organization_id_fk", + "tableFrom": "session", + "tableTo": "organization", + "columnsFrom": [ + "active_organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "session_token_unique": { + "name": "session_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.two_factor": { + "name": "two_factor", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "secret": { + "name": "secret", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "backup_codes": { + "name": "backup_codes", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "two_factor_user_id_user_id_fk": { + "name": "two_factor_user_id_user_id_fk", + "tableFrom": "two_factor", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user": { + "name": "user", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email_verified": { + "name": "email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true + }, + "image": { + "name": "image", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_email_unique": { + "name": "user_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.user_settings": { + "name": "user_settings", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "org_name": { + "name": "org_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "contact_email": { + "name": "contact_email", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "default_model": { + "name": "default_model", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "webhook_url": { + "name": "webhook_url", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "openai_api_key": { + "name": "openai_api_key", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "anthropic_api_key": { + "name": "anthropic_api_key", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "user_settings_user_id_user_id_fk": { + "name": "user_settings_user_id_user_id_fk", + "tableFrom": "user_settings", + "tableTo": "user", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "user_settings_user_id_unique": { + "name": "user_settings_user_id_unique", + "nullsNotDistinct": false, + "columns": [ + "user_id" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.verification": { + "name": "verification", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "verification_identifier_idx": { + "name": "verification_identifier_idx", + "columns": [ + { + "expression": "identifier", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} diff --git a/drizzle/meta/_journal.json b/drizzle/meta/_journal.json index f6cbb41..1ccef60 100644 --- a/drizzle/meta/_journal.json +++ b/drizzle/meta/_journal.json @@ -22,6 +22,20 @@ "when": 1754680468347, "tag": "0002_warm_captain_marvel", "breakpoints": true + }, + { + "idx": 3, + "version": "7", + "when": 1786954041577, + "tag": "0003_orange_mesmero", + "breakpoints": true + }, + { + "idx": 4, + "version": "7", + "when": 1786957812032, + "tag": "0004_better_auth_1_6_alignment", + "breakpoints": true } ] } \ No newline at end of file diff --git a/package.json b/package.json index f5e901c..bad9864 100644 --- a/package.json +++ b/package.json @@ -1,37 +1,45 @@ { - "name": "rr7-test", + "name": "rocket", "private": true, "type": "module", "engines": { "node": ">=22" }, "scripts": { - "build": "react-router build", "dev": "react-router dev", + "build": "react-router build", "start": "react-router-serve ./build/server/index.js", + "check": "bun run format:check && bun run lint && bun run typecheck && bun run env:check && bun run test && bun run test:integration && bun run db:drift && bun run build", + "format": "biome format --write .", + "format:check": "biome format .", + "lint": "biome lint .", + "lint:fix": "biome lint --write .", "typecheck": "react-router typegen && tsc", - "db:migrate": "drizzle-kit migrate", + "test": "vitest run --project unit --project dom", + "test:watch": "vitest", + "test:integration": "vitest run --project integration", + "test:coverage": "vitest run --project unit --project dom --coverage", + "test:e2e": "playwright test", + "test:e2e:install": "playwright install --with-deps chromium", "db:generate": "drizzle-kit generate", + "db:migrate": "drizzle-kit migrate", "db:studio": "drizzle-kit studio", - "db:push": "drizzle-kit push", + "db:drift": "bun run scripts/check-migration-drift.ts", + "db:test:setup": "bun run scripts/setup-test-database.ts", "db:up": "docker compose up -d postgres", "db:down": "docker compose down", "db:logs": "docker compose logs -f postgres", - "db:psql": "docker compose exec postgres psql -U postgres -d rr7_test", - "db:docker:up": "docker compose up -d postgres", - "db:docker:down": "docker compose down", - "db:docker:logs": "docker compose logs -f postgres", - "db:docker:psql": "docker compose exec postgres psql -U postgres -d rr7_test", - "db:local:create": "createdb -h localhost -p 5432 -U postgres -O postgres rr7_test", - "db:local:psql": "psql -h localhost -p 5432 -U postgres -d rr7_test" + "db:psql": "docker compose exec postgres psql -U postgres -d rocket", + "env:check": "bun run scripts/check-env-example.ts", + "check:e2e": "bun run check && bun run test:e2e" }, "dependencies": { "@ai-sdk/azure": "^4.0.23", "@ai-sdk/react": "^4.0.43", "@hookform/resolvers": "^5.2.1", "@icons-pack/react-simple-icons": "^13.7.0", - "@polar-sh/better-auth": "^1.1.0", - "@polar-sh/sdk": "^0.34.11", + "@polar-sh/better-auth": "1.8.4", + "@polar-sh/sdk": "0.47.0", "@radix-ui/react-accordion": "^1.2.12", "@radix-ui/react-alert-dialog": "^1.1.15", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -66,11 +74,12 @@ "@streamdown/code": "^1.1.1", "@streamdown/math": "^1.0.2", "@streamdown/mermaid": "^1.0.2", + "@t3-oss/env-core": "^0.13.11", "@tanstack/react-table": "^8.21.3", "@vercel/analytics": "^1.5.0", "@vercel/react-router": "^1.2.2", "ai": "^7.0.40", - "better-auth": "^1.3.7", + "better-auth": "1.6.29", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "cmdk": "^1.1.1", @@ -102,19 +111,29 @@ "zod": "^4.4.3" }, "devDependencies": { + "@biomejs/biome": "^2.5.8", + "@playwright/test": "^1.62.1", "@react-router/dev": "^7.7.1", "@tailwindcss/vite": "^4.1.4", + "@testing-library/dom": "^10.4.1", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.2", "@types/node": "^24", "@types/nprogress": "latest", "@types/pg": "^8.15.5", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.5", + "@vitest/coverage-v8": "^4.1.10", + "dotenv": "^17.4.2", "dotenv-cli": "^10.0.0", "drizzle-kit": "^0.31.4", + "jsdom": "^30.0.1", "tailwindcss": "^4.1.4", "tw-animate-css": "^1.3.6", "typescript": "^5.8.3", "vite": "^6.3.3", - "vite-tsconfig-paths": "^5.1.4" + "vite-tsconfig-paths": "^6.1.1", + "vitest": "^4.1.10" } } diff --git a/playwright.config.ts b/playwright.config.ts new file mode 100644 index 0000000..ebabaef --- /dev/null +++ b/playwright.config.ts @@ -0,0 +1,70 @@ +import { defineConfig, devices } from "@playwright/test"; + +/** + * The smoke journey runs against a real server and the integration-test + * database, with **every optional capability unconfigured** — that is the + * configuration Rocket promises a fresh clone can run. + */ + +const PORT = Number(process.env.E2E_PORT ?? 5273); +const BASE_URL = `http://127.0.0.1:${PORT}`; + +const testDatabaseUrl = + process.env.TEST_DATABASE_URL ?? + "postgres://postgres:postgres@localhost:5432/rocket_test"; + +export default defineConfig({ + testDir: "./tests/e2e", + fullyParallel: false, + workers: 1, + forbidOnly: Boolean(process.env.CI), + // One retry absorbs genuine infrastructure flake. It does not make a flaky + // test acceptable: the journey is meant to be deterministic, so a retry that + // turns red into green is a bug to fix, not a result to keep. + retries: process.env.CI ? 1 : 0, + reporter: process.env.CI ? [["github"], ["html", { open: "never" }]] : "list", + timeout: 30_000, + expect: { timeout: 10_000 }, + + use: { + baseURL: BASE_URL, + trace: "on-first-retry", + screenshot: "only-on-failure", + }, + + projects: [{ name: "chromium", use: { ...devices["Desktop Chrome"] } }], + + webServer: { + // The production build, not the dev server. The dev server's dependency + // optimizer force-reloads the page the first time it discovers a new + // import, which on a cold clone can wipe a half-filled form and made this + // journey flaky. The built artifact is also what actually gets deployed, + // so this is the more faithful target. + command: `bun run build && bunx react-router-serve ./build/server/index.js`, + url: BASE_URL, + reuseExistingServer: !process.env.CI, + timeout: 180_000, + stdout: "pipe", + stderr: "pipe", + env: { + PORT: String(PORT), + HOST: "127.0.0.1", + DATABASE_URL: testDatabaseUrl, + BETTER_AUTH_SECRET: + process.env.BETTER_AUTH_SECRET ?? "e2e-smoke-secret-not-for-production", + BETTER_AUTH_URL: BASE_URL, + // Production builds have rate limiting on. Naming a trusted header lets + // Better Auth bucket per caller instead of lumping every request into + // one shared bucket, which is both the correct deployment setting and + // what keeps these tests independent of each other. + AUTH_IP_ADDRESS_HEADER: "x-real-ip", + // Deliberately empty: the smoke journey proves Rocket runs with no + // optional capability configured. + POLAR_ACCESS_TOKEN: "", + AZURE_OPENAI_RESOURCE_NAME: "", + AZURE_OPENAI_API_KEY: "", + GOOGLE_CLIENT_ID: "", + GOOGLE_CLIENT_SECRET: "", + }, + }, +}); diff --git a/public/rocket-logo-text.svg b/public/rocket-logo-text.svg index 3b8e1d7..07bc555 100644 --- a/public/rocket-logo-text.svg +++ b/public/rocket-logo-text.svg @@ -1,4 +1,5 @@ + Rocket logo diff --git a/public/rocket-logo.svg b/public/rocket-logo.svg index 9c7eb7f..fed95cb 100644 --- a/public/rocket-logo.svg +++ b/public/rocket-logo.svg @@ -1,4 +1,5 @@ + Rocket logo diff --git a/react-router.config.ts b/react-router.config.ts index 326372f..86e8015 100644 --- a/react-router.config.ts +++ b/react-router.config.ts @@ -1,5 +1,4 @@ import type { Config } from "@react-router/dev/config"; -import { vercelPreset } from '@vercel/react-router/vite'; export default { // Config options... diff --git a/scripts/check-env-example.ts b/scripts/check-env-example.ts new file mode 100644 index 0000000..b7b0d58 --- /dev/null +++ b/scripts/check-env-example.ts @@ -0,0 +1,47 @@ +#!/usr/bin/env bun +/** + * Keeps `.env.example` and the environment schema in step, so documented keys + * cannot drift from validated ones. + */ +import { readFileSync } from "node:fs"; + +import { serverShape } from "../app/lib/env/schema"; + +const EXAMPLE_PATH = ".env.example"; + +const declared = new Set(Object.keys(serverShape)); + +const documented = new Set( + readFileSync(EXAMPLE_PATH, "utf8") + .split("\n") + .map((line) => line.replace(/^#\s*/, "").trim()) + .map((line) => /^([A-Z][A-Z0-9_]*)=/.exec(line)?.[1]) + .filter((key): key is string => Boolean(key)), +); + +// NODE_ENV is supplied by the runtime rather than by an operator. +declared.delete("NODE_ENV"); + +const missing = [...declared].filter((key) => !documented.has(key)).sort(); +const extra = [...documented].filter((key) => !declared.has(key)).sort(); + +if (missing.length === 0 && extra.length === 0) { + console.log(`${EXAMPLE_PATH} matches the environment schema.`); + process.exit(0); +} + +if (missing.length > 0) { + console.error( + `Declared in the environment schema but absent from ${EXAMPLE_PATH}:\n` + + missing.map((key) => ` • ${key}`).join("\n"), + ); +} + +if (extra.length > 0) { + console.error( + `Documented in ${EXAMPLE_PATH} but not declared in the environment schema:\n` + + extra.map((key) => ` • ${key}`).join("\n"), + ); +} + +process.exit(1); diff --git a/scripts/check-migration-drift.ts b/scripts/check-migration-drift.ts new file mode 100644 index 0000000..58e774e --- /dev/null +++ b/scripts/check-migration-drift.ts @@ -0,0 +1,42 @@ +#!/usr/bin/env bun +/** + * Fails when the Drizzle schema has changed without committed migration + * output, so a schema edit can never reach main without its migration. + */ +import { execFileSync } from "node:child_process"; + +function git(...args: string[]): string { + return execFileSync("git", args, { encoding: "utf8" }).trim(); +} + +function migrationStatus(): string { + return git("status", "--porcelain", "--", "drizzle"); +} + +const dirtyBefore = migrationStatus(); +if (dirtyBefore) { + console.error( + "Uncommitted changes already exist under drizzle/, so drift cannot be detected:\n" + + dirtyBefore, + ); + process.exit(1); +} + +try { + execFileSync("bunx", ["drizzle-kit", "generate"], { stdio: "inherit" }); +} catch { + console.error("drizzle-kit generate failed."); + process.exit(1); +} + +const dirtyAfter = migrationStatus(); +if (dirtyAfter) { + console.error( + "\nSchema drift detected. `drizzle-kit generate` produced migration output that is not committed:\n" + + `${dirtyAfter}\n\n` + + "Run `bun run db:generate` and commit the result alongside the schema change.", + ); + process.exit(1); +} + +console.log("No migration drift: schema and committed migrations agree."); diff --git a/scripts/init-databases.sql b/scripts/init-databases.sql new file mode 100644 index 0000000..1738c26 --- /dev/null +++ b/scripts/init-databases.sql @@ -0,0 +1,4 @@ +-- Runs once on first container start, alongside POSTGRES_DB=rocket. +-- The integration suite refuses to run against the development database, so +-- an isolated one has to exist. +CREATE DATABASE rocket_test; diff --git a/scripts/setup-test-database.ts b/scripts/setup-test-database.ts new file mode 100644 index 0000000..bcd485d --- /dev/null +++ b/scripts/setup-test-database.ts @@ -0,0 +1,52 @@ +#!/usr/bin/env bun +/** + * Creates the integration-test database and applies every migration from zero. + * + * Refuses to touch the development database: see + * `app/lib/env/test-database.ts`. + */ +import { execFileSync } from "node:child_process"; + +import { config } from "dotenv"; + +import { + databaseName, + resolveTestDatabaseUrl, +} from "../app/lib/env/test-database"; + +config(); + +const testUrl = resolveTestDatabaseUrl(process.env as Record); +const name = databaseName(testUrl); + +if (!name) { + throw new Error( + `Could not determine a database name from TEST_DATABASE_URL.`, + ); +} + +const adminUrl = new URL(testUrl); +adminUrl.pathname = "/postgres"; + +function psql(url: string, sql: string): string { + return execFileSync("psql", [url, "-tAc", sql], { encoding: "utf8" }).trim(); +} + +const exists = psql( + adminUrl.toString(), + `SELECT 1 FROM pg_database WHERE datname = '${name}'`, +); + +if (exists !== "1") { + psql(adminUrl.toString(), `CREATE DATABASE "${name}"`); + console.log(`Created database "${name}".`); +} else { + console.log(`Database "${name}" already exists.`); +} + +execFileSync("bunx", ["drizzle-kit", "migrate"], { + stdio: "inherit", + env: { ...process.env, DATABASE_URL: testUrl }, +}); + +console.log(`Migrated "${name}" from zero.`); diff --git a/tests/e2e/smoke.spec.ts b/tests/e2e/smoke.spec.ts new file mode 100644 index 0000000..e7e1412 --- /dev/null +++ b/tests/e2e/smoke.spec.ts @@ -0,0 +1,201 @@ +import { type Locator, type Page, expect, test } from "@playwright/test"; + +/** + * The minimum journey a Rocket clone must survive with **no optional + * capability configured**: public page, protected redirect, signup, dashboard, + * logout, login, and one capability's disabled state. + * + * Each run signs up a fresh account so the journey is independent of database + * state and safe to retry. + */ + +const PASSWORD = "correct-horse-battery-staple"; + +/** + * Auth rate limits are keyed on the client IP, so tests sharing one address + * would fail each other. Each test presents its own address from the + * documentation range (RFC 5737); the per-run base keeps consecutive runs + * against a reused server from colliding inside a rate-limit window. + */ +const ipBase = Math.floor(Math.random() * 200); +let ipOffset = 0; + +function uniqueIp() { + ipOffset += 1; + return `203.0.113.${((ipBase + ipOffset) % 254) + 1}`; +} + +function uniqueEmail() { + return `smoke-${Date.now()}-${Math.random().toString(36).slice(2, 8)}@example.com`; +} + +/** + * A dropdown trigger does nothing until React hydrates, and the click still + * "succeeds" because the button is already in the server-rendered HTML. Only + * the menu appearing proves hydration happened, so retry until it does. + * + * Re-clicking cannot toggle an open menu shut, because a retry only runs while + * the item is still missing. + */ +async function openMenu(trigger: Locator, item: Locator) { + await expect(async () => { + await trigger.click(); + await expect(item).toBeVisible({ timeout: 2_000 }); + }).toPass({ timeout: 15_000 }); +} + +async function submitCredentials( + page: Page, + { name, email }: { name?: string; email: string }, +) { + if (name !== undefined) { + await page.getByLabel(/username/i).fill(name); + } + await page.getByLabel(/email/i).fill(email); + await page.getByLabel("Password", { exact: true }).fill(PASSWORD); +} + +test.describe("smoke journey", () => { + test.beforeEach(async ({ page }) => { + // Scoped to the app's own origin: sending the header everywhere would add + // it to cross-origin font requests too, which then fail CORS preflight. + const ip = uniqueIp(); + await page.route("/**", async (route) => { + await route.continue({ + headers: { ...route.request().headers(), "x-real-ip": ip }, + }); + }); + }); + + test("public landing page renders", async ({ page }) => { + const response = await page.goto("/"); + + expect(response?.status()).toBeLessThan(400); + await expect(page.locator("body")).toBeVisible(); + }); + + test("protected route redirects an anonymous visitor to login", async ({ + page, + }) => { + await page.goto("/dashboard"); + + await expect(page).toHaveURL(/\/login$/); + }); + + test("password reset is reachable from the login page", async ({ page }) => { + await page.goto("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/login"); + await page.getByRole("link", { name: /forgot your password/i }).click(); + + await expect(page).toHaveURL(/\/forgot-password$/); + await expect(page.getByText(/reset your password/i)).toBeVisible(); + await expect( + page.getByRole("button", { name: /send reset link/i }), + ).toBeVisible(); + }); + + test("google sign-in is hidden when the provider is unconfigured", async ({ + page, + }) => { + await page.goto("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/login"); + + await expect(page.getByRole("button", { name: /google/i })).toHaveCount(0); + }); + + test("signup, dashboard, logout, and login round-trip", async ({ page }) => { + const email = uniqueEmail(); + + await page.goto("/signup"); + await submitCredentials(page, { name: "Smoke Test", email }); + await page.getByRole("button", { name: /create account/i }).click(); + + await page.waitForURL(/\/dashboard/, { timeout: 30_000 }); + await expect(page.getByText(email).first()).toBeVisible(); + + // Billing is unconfigured, so the capability must announce itself as + // unavailable rather than erroring or vanishing. + await page.goto("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/dashboard/billing"); + await expect(page.getByText(/billing is not configured/i)).toBeVisible(); + + // Logging out goes through the real control: /logout is POST-only, and a + // GET must not be able to end a session. + const getLogout = await page.request.get("/logout", { + maxRedirects: 0, + }); + expect(getLogout.status()).toBe(302); + + await page.goto("/dashboard"); + const logOut = page.getByRole("menuitem", { name: /log out/i }); + await openMenu(page.getByRole("button", { name: /smoke test/i }), logOut); + await logOut.click(); + + await expect(page).toHaveURL(/\/login$/, { timeout: 30_000 }); + + await page.goto("/dashboard"); + await expect(page).toHaveURL(/\/login$/); + + await submitCredentials(page, { email }); + await page.getByRole("button", { name: /^login$/i }).click(); + + await expect(page.getByLabel("Password", { exact: true })).toHaveCount(0, { + timeout: 30_000, + }); + + await page.goto("/dashboard"); + await expect(page.getByText(email).first()).toBeVisible(); + }); + + /** + * Regression test. The auth forms used to be controlled by React state, so + * credentials typed into the server-rendered HTML never reached that state, + * and submitting sent an empty form. + * + * Holding the scripts back reproduces that deterministically — a slow + * connection rather than a slow machine — so it does not depend on winning a + * race against hydration. + */ + test("credentials typed before hydration are not discarded", async ({ + page, + }) => { + const email = uniqueEmail(); + const scriptsReleased = 2_000; + + // Registered after the beforeEach route, so it runs first; fallback() hands + // the request on to that one rather than ending the chain here. + await page.route("**/assets/*.js", async (route) => { + await new Promise((resolve) => setTimeout(resolve, scriptsReleased)); + await route.fallback(); + }); + + await page.goto("/signup", { waitUntil: "commit" }); + await submitCredentials(page, { name: "Hydration Race", email }); + + // Only now let hydration finish, so the click is handled by React and any + // state it initialised has already replaced what was typed. + await page.waitForLoadState("networkidle"); + await page.getByRole("button", { name: /create account/i }).click(); + + await page.waitForURL(/\/dashboard/, { timeout: 30_000 }); + await expect(page.getByText(email).first()).toBeVisible(); + }); + + /** + * A page that throws during hydration still looks fine in a screenshot while + * its event handlers are dead, so the journey would pass over a broken app. + * Vercel Web Analytics used to do exactly this off-Vercel: its script 404'd + * and hydration failed with React error #418. + */ + test("public pages hydrate without browser errors", async ({ page }) => { + const errors: string[] = []; + page.on("pageerror", (error) => errors.push(`pageerror: ${error.message}`)); + page.on("console", (message) => { + if (message.type() === "error") errors.push(`console: ${message.text()}`); + }); + + for (const path of ["/", "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/login", "/signup", "/forgot-password"]) { + await page.goto(path); + await expect(page.locator("body")).toBeVisible(); + } + + expect(errors).toEqual([]); + }); +}); diff --git a/tests/integration/auth-boundaries.test.ts b/tests/integration/auth-boundaries.test.ts new file mode 100644 index 0000000..5c016bf --- /dev/null +++ b/tests/integration/auth-boundaries.test.ts @@ -0,0 +1,96 @@ +import { beforeEach, describe, expect, it } from "vitest"; + +import { auth } from "~/lib/auth/auth.server"; +import { requireAuth } from "~/lib/auth/require-auth.server"; + +import { resetDatabase } from "./helpers"; + +const PASSWORD = "correct-horse-battery-staple"; + +async function signUpAndGetCookie(email: string) { + const response = await auth.api.signUpEmail({ + body: { email, password: PASSWORD, name: "Test User" }, + asResponse: true, + }); + + const cookie = response.headers.get("set-cookie"); + if (!cookie) throw new Error("Sign-up did not return a session cookie"); + return cookie; +} + +function requestWithCookie(url: string, cookie: string) { + return new Request(url, { headers: { cookie } }); +} + +describe("auth boundaries", () => { + beforeEach(async () => { + await resetDatabase(); + }); + + it("redirects an unauthenticated request to the login page", async () => { + const request = new Request("http://localhost/dashboard"); + + await expect(requireAuth(request)).rejects.toMatchObject({ + status: 302, + }); + + const redirect = await requireAuth(request).catch((error) => error); + expect(redirect.headers.get("location")).toBe("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/login"); + }); + + it("resolves the user for an authenticated request", async () => { + const cookie = await signUpAndGetCookie("member@example.com"); + + const user = await requireAuth( + requestWithCookie("http://localhost/dashboard", cookie), + ); + + expect(user.email).toBe("member@example.com"); + }); + + it("rejects an unauthenticated session lookup", async () => { + const session = await auth.api.getSession({ headers: new Headers() }); + + expect(session).toBeNull(); + }); + + it("invalidates the session on sign-out", async () => { + const cookie = await signUpAndGetCookie("member@example.com"); + const headers = new Headers({ cookie }); + + expect(await auth.api.getSession({ headers })).not.toBeNull(); + + await auth.api.signOut({ headers }); + + const request = requestWithCookie("http://localhost/dashboard", cookie); + await expect(requireAuth(request)).rejects.toMatchObject({ status: 302 }); + }); + + it("clears the session cookie on sign-out, not just the database row", async () => { + const cookie = await signUpAndGetCookie("member@example.com"); + + const { action: logout } = await import("~/routes/logout"); + const response = await logout({ + request: new Request("http://localhost/logout", { + method: "POST", + headers: { cookie }, + }), + }); + + // The session cookie cache would keep a "signed out" visitor authenticated + // until it expired if the clearing headers were dropped here. + const clearing = (response as Response).headers.getSetCookie(); + expect(clearing.length).toBeGreaterThan(0); + expect(clearing.join(";")).toMatch(/max-age=0|expires=/i); + }); + + it("refuses a sign-in with the wrong password", async () => { + await signUpAndGetCookie("member@example.com"); + + await expect( + auth.api.signInEmail({ + body: { email: "member@example.com", password: "wrong-password" }, + }), + ).rejects.toThrow(); + }); +}); diff --git a/tests/integration/capability-endpoints.test.ts b/tests/integration/capability-endpoints.test.ts new file mode 100644 index 0000000..8bd469c --- /dev/null +++ b/tests/integration/capability-endpoints.test.ts @@ -0,0 +1,66 @@ +import { describe, expect, it } from "vitest"; + +import { + isAiChatAvailable, + getChatModel, +} from "~/capabilities/ai-chat/ai-chat.server"; +import { + isBillingAvailable, + isBillingWebhookAvailable, + createBillingPlugin, + getCustomerState, + getPolarClient, +} from "~/capabilities/billing/billing.server"; +import { CapabilityUnavailableError } from "~/lib/capability"; +import { + action as webhookAction, + loader as webhookLoader, +} from "~/routes/polar.webhooks"; + +/** + * The integration environment configures no optional capability, so this file + * asserts the guarantee Rocket makes to a fresh clone: unconfigured + * capabilities are inert, their endpoints refuse, and nothing crashes. + */ + +describe("unconfigured capabilities", () => { + it("reports every optional capability as unavailable", () => { + expect(isBillingAvailable()).toBe(false); + expect(isBillingWebhookAvailable()).toBe(false); + expect(isAiChatAvailable()).toBe(false); + }); + + it("does not mount the billing plugin", () => { + expect(createBillingPlugin()).toBeNull(); + }); + + it("resolves customer state as null instead of throwing", async () => { + await expect(getCustomerState("any-user")).resolves.toBeNull(); + }); + + it.each([ + ["Polar client", () => getPolarClient()], + ["Azure chat model", () => getChatModel()], + ])("throws CapabilityUnavailableError for the %s", (_label, invoke) => { + expect(invoke).toThrow(CapabilityUnavailableError); + }); + + it("refuses webhook deliveries it cannot verify", async () => { + const response = await webhookAction({ + request: new Request("http://localhost/polar/webhooks", { + method: "POST", + body: "{}", + }), + params: {}, + context: {} as never, + }); + + expect((response as Response).status).toBe(503); + }); + + it("reports the webhook endpoint as unavailable on GET", async () => { + const response = await webhookLoader(); + + expect((response as Response).status).toBe(503); + }); +}); diff --git a/tests/integration/helpers.ts b/tests/integration/helpers.ts new file mode 100644 index 0000000..da9f2f7 --- /dev/null +++ b/tests/integration/helpers.ts @@ -0,0 +1,17 @@ +import { sql } from "drizzle-orm"; + +import { db } from "~/db/client"; +import { account, member, organization, session, user } from "~/db/schema"; + +/** Empties every table the auth and ownership tests touch. */ +export async function resetDatabase(): Promise { + await db.execute( + sql`TRUNCATE TABLE ${session}, ${account}, ${member}, ${organization}, ${user} RESTART IDENTITY CASCADE`, + ); +} + +export async function countRows(table: "organization" | "member" | "user") { + const tables = { organization, member, user } as const; + const rows = await db.select().from(tables[table]); + return rows.length; +} diff --git a/tests/integration/organization-ownership.test.ts b/tests/integration/organization-ownership.test.ts new file mode 100644 index 0000000..5c31b32 --- /dev/null +++ b/tests/integration/organization-ownership.test.ts @@ -0,0 +1,117 @@ +import { beforeEach, describe, expect, it } from "vitest"; + +import { auth } from "~/lib/auth/auth.server"; +import { db } from "~/db/client"; +import { member, organization } from "~/db/schema"; +import { findActiveOrganizationId } from "~/lib/organization/organization.server"; + +import { resetDatabase } from "./helpers"; + +/** + * Organization-aware ownership is Core, so every user must end up inside + * exactly one organization without any management surface being involved. + */ + +async function signUp(email: string, name = "Test User") { + return auth.api.signUpEmail({ + body: { email, password: "correct-horse-battery-staple", name }, + }); +} + +describe("single-organization mode", () => { + beforeEach(async () => { + await resetDatabase(); + }); + + it("provisions exactly one organization when a user signs up", async () => { + const result = await signUp("owner@example.com", "Ada Lovelace"); + expect(result.user).toBeDefined(); + + const organizations = await db.select().from(organization); + expect(organizations).toHaveLength(1); + expect(organizations[0].name).toBe("Ada Lovelace's Organization"); + expect(organizations[0].slug).toBe("ada-lovelaces-organization"); + }); + + it("makes the signing-up user the owner of their organization", async () => { + const result = await signUp("owner@example.com"); + + const members = await db.select().from(member); + expect(members).toHaveLength(1); + expect(members[0].userId).toBe(result.user.id); + expect(members[0].role).toBe("owner"); + }); + + it("gives each user their own separate organization", async () => { + const first = await signUp("first@example.com", "First User"); + const second = await signUp("second@example.com", "Second User"); + + const firstOrg = await findActiveOrganizationId(first.user.id); + const secondOrg = await findActiveOrganizationId(second.user.id); + + expect(firstOrg).toBeTruthy(); + expect(secondOrg).toBeTruthy(); + expect(firstOrg).not.toBe(secondOrg); + expect(await db.select().from(organization)).toHaveLength(2); + }); + + it("keeps organization slugs unique when names collide", async () => { + await signUp("first@example.com", "Same Name"); + await signUp("second@example.com", "Same Name"); + + const organizations = await db.select().from(organization); + const slugs = organizations.map((row) => row.slug); + + expect(organizations).toHaveLength(2); + expect(new Set(slugs).size).toBe(2); + }); + + it("records the active organization on the session", async () => { + const result = await signUp("owner@example.com"); + const expected = await findActiveOrganizationId(result.user.id); + + const sessions = await db.query.session.findMany(); + expect(sessions.length).toBeGreaterThan(0); + for (const row of sessions) { + expect(row.activeOrganizationId).toBe(expected); + } + }); + + it("exposes no organization management endpoints", async () => { + // Management was deliberately dropped, so the Better Auth organization + // plugin must not be mounted. Its routes should not exist. + const response = await auth.handler( + new Request("http://localhost/api/auth/organization/create", { + method: "POST", + headers: { "content-type": "application/json" }, + body: JSON.stringify({ name: "Sneaky", slug: "sneaky" }), + }), + ); + + expect(response.status).toBe(404); + expect(await db.select().from(organization)).toHaveLength(0); + }); + + /** + * Regression test. Slugs used to be disambiguated by counting upwards with a + * hard cap, so once enough people shared a display name the allocator ran + * out of candidates and signup failed outright with a server error. + */ + it("lets many users with the same display name all sign up", async () => { + const count = 15; + + for (let i = 0; i < count; i++) { + const result = await signUp(`namesake-${i}@example.com`, "John Smith"); + expect(result.user).toBeDefined(); + } + + const organizations = await db.select().from(organization); + expect(organizations).toHaveLength(count); + + const slugs = new Set(organizations.map((o) => o.slug)); + expect(slugs.size).toBe(count); + + const members = await db.select().from(member); + expect(members).toHaveLength(count); + }); +}); diff --git a/tests/integration/password-reset.test.ts b/tests/integration/password-reset.test.ts new file mode 100644 index 0000000..1ea466f --- /dev/null +++ b/tests/integration/password-reset.test.ts @@ -0,0 +1,190 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; + +import { action as forgotPasswordAction } from "~/routes/forgot-password"; +import { action as resetPasswordAction } from "~/routes/reset-password"; +import { auth } from "~/lib/auth/auth.server"; +import { + type EmailMessage, + setEmailTransport, +} from "~/lib/email/delivery.server"; + +import { resetDatabase } from "./helpers"; + +/** + * Password reset must be reachable with no transactional email capability + * present. See https://github.com/solev/rocket/issues/12. + */ + +const EMAIL = "member@example.com"; +const ORIGINAL_PASSWORD = "correct-horse-battery-staple"; + +async function signUp() { + await auth.api.signUpEmail({ + body: { email: EMAIL, password: ORIGINAL_PASSWORD, name: "Test User" }, + }); +} + +function postForm(url: string, fields: Record) { + const body = new FormData(); + for (const [key, value] of Object.entries(fields)) body.append(key, value); + return new Request(url, { method: "POST", body }); +} + +function captureResetLink() { + const captured: { url: string } = { url: "" }; + setEmailTransport({ + name: "capture", + async send(message: EmailMessage) { + captured.url = /https?:\/\/\S+/.exec(message.text)?.[0] ?? ""; + }, + }); + return captured; +} + +/** Better Auth issues the token as a path segment, not a query parameter. */ +function tokenFromResetLink(url: string) { + const path = new URL(url).pathname; + return path.slice(path.lastIndexOf("/") + 1); +} + +describe("password reset without an email capability", () => { + beforeEach(async () => { + await resetDatabase(); + setEmailTransport(null); + }); + + afterEach(() => { + setEmailTransport(null); + vi.restoreAllMocks(); + }); + + it("delivers the reset link through an application-provided transport", async () => { + await signUp(); + + const sent: EmailMessage[] = []; + setEmailTransport({ + name: "test", + async send(message) { + sent.push(message); + }, + }); + + await auth.api.requestPasswordReset({ + body: { email: EMAIL, redirectTo: "/reset-password" }, + }); + + expect(sent).toHaveLength(1); + expect(sent[0].to).toBe(EMAIL); + expect(sent[0].text).toContain("/reset-password"); + }); + + it("emits an absolute link even with no BETTER_AUTH_URL configured", async () => { + await signUp(); + const captured = captureResetLink(); + + await auth.api.requestPasswordReset({ + body: { email: EMAIL, redirectTo: "/reset-password" }, + }); + + expect(() => new URL(captured.url)).not.toThrow(); + expect(captured.url).toMatch(/^https?:\/\//); + }); + + it("falls back to the console in development instead of failing", async () => { + await signUp(); + const warn = vi.spyOn(console, "warn").mockImplementation(() => {}); + + await expect( + auth.api.requestPasswordReset({ + body: { email: EMAIL, redirectTo: "/reset-password" }, + }), + ).resolves.toBeDefined(); + + expect(warn).toHaveBeenCalled(); + expect(warn.mock.calls[0][0]).toContain("No email transport configured"); + }); + + it("does not reveal whether an address is registered", async () => { + await signUp(); + vi.spyOn(console, "warn").mockImplementation(() => {}); + + const known = await forgotPasswordAction({ + request: postForm("http://localhost/forgot-password", { email: EMAIL }), + params: {}, + context: {} as never, + }); + const unknown = await forgotPasswordAction({ + request: postForm("http://localhost/forgot-password", { + email: "nobody@example.com", + }), + params: {}, + context: {} as never, + }); + + expect(unknown).toEqual(known); + expect(known).not.toHaveProperty("error"); + }); + + it("completes a full reset with the delivered token", async () => { + await signUp(); + const captured = captureResetLink(); + + await auth.api.requestPasswordReset({ + body: { email: EMAIL, redirectTo: "/reset-password" }, + }); + + const token = tokenFromResetLink(captured.url); + expect(token).toBeTruthy(); + + const redirectResponse = await resetPasswordAction({ + request: postForm("http://localhost/reset-password", { + password: "a-brand-new-password", + confirmPassword: "a-brand-new-password", + }), + params: { token }, + context: {} as never, + }).catch((thrown) => thrown); + + expect(redirectResponse).toBeInstanceOf(Response); + expect((redirectResponse as Response).status).toBe(302); + + const session = await auth.api.signInEmail({ + body: { email: EMAIL, password: "a-brand-new-password" }, + }); + expect(session.user.email).toBe(EMAIL); + + await expect( + auth.api.signInEmail({ + body: { email: EMAIL, password: ORIGINAL_PASSWORD }, + }), + ).rejects.toThrow(); + }); + + it("refuses a reset when the confirmation does not match", async () => { + const result = await resetPasswordAction({ + request: postForm("http://localhost/reset-password", { + password: "a-brand-new-password", + confirmPassword: "something-else-entirely", + }), + params: { token: "irrelevant" }, + context: {} as never, + }); + + expect(result).toEqual({ error: "The two passwords do not match." }); + }); + + it("rejects an expired or forged token", async () => { + const result = await resetPasswordAction({ + request: postForm("http://localhost/reset-password", { + password: "a-brand-new-password", + confirmPassword: "a-brand-new-password", + }), + params: { token: "not-a-real-token" }, + context: {} as never, + }); + + expect(result).toMatchObject({ + error: expect.stringContaining("invalid or has expired"), + }); + }); +}); diff --git a/tests/integration/setup.ts b/tests/integration/setup.ts new file mode 100644 index 0000000..abda9ff --- /dev/null +++ b/tests/integration/setup.ts @@ -0,0 +1,35 @@ +import { config } from "dotenv"; + +import { capabilityServerShape } from "~/lib/env/schema"; +import { resolveTestDatabaseUrl } from "~/lib/env/test-database"; + +config(); + +/** + * Points the process at the integration-test database before any module reads + * the environment, and refuses to run against the development database. + */ +const testDatabaseUrl = resolveTestDatabaseUrl( + process.env as Record, +); + +process.env.DATABASE_URL = testDatabaseUrl; +process.env.NODE_ENV = "test"; +// Better Auth derives the origin from the incoming request without this, which +// makes callback and reset URLs depend on whichever request built them. +process.env.BETTER_AUTH_URL ??= "http://localhost:5173"; + +/** + * Rocket's central promise is that a clone works with **no optional capability + * configured**, so the integration suite asserts exactly that state. Clearing + * every capability variable makes the run independent of whatever happens to + * sit in the developer's own `.env`. + * + * Configured-state behavior is covered by the capability unit tests, which + * exercise pure config objects instead of the process environment. + */ +for (const key of Object.keys(capabilityServerShape)) { + delete process.env[key]; +} + +export { testDatabaseUrl }; diff --git a/tests/integration/signup-atomicity.test.ts b/tests/integration/signup-atomicity.test.ts new file mode 100644 index 0000000..2e656ee --- /dev/null +++ b/tests/integration/signup-atomicity.test.ts @@ -0,0 +1,79 @@ +import { beforeEach, describe, expect, it, vi } from "vitest"; + +/** + * Signup writes the user row and provisions its organization in two separate + * steps. Better Auth commits the user first and does not roll it back when a + * `create.after` hook throws, so a failure between the two used to strand a + * user row with no credentials behind it. + * + * That is worse than a plain error: the address is taken, so the person can + * neither sign in (no account row exists) nor sign up again. It is reachable + * whenever organization provisioning fails — an unapplied migration, a + * connectivity blip — so a failed signup must leave nothing behind. + */ + +const provisioning = vi.hoisted(() => ({ shouldFail: false })); + +vi.mock("~/lib/organization/organization.server", async (importOriginal) => { + const actual = + await importOriginal< + typeof import("~/lib/organization/organization.server") + >(); + + return { + ...actual, + resolveOrganizationIdForUser: async ( + owner: Parameters[0], + ) => { + if (provisioning.shouldFail) { + throw new Error("simulated organization provisioning outage"); + } + return actual.resolveOrganizationIdForUser(owner); + }, + }; +}); + +import { db } from "~/db/client"; +import { account, user } from "~/db/schema"; +import { auth } from "~/lib/auth/auth.server"; + +import { resetDatabase } from "./helpers"; + +const PASSWORD = "correct-horse-battery-staple"; + +async function signUp(email: string, name = "Test User") { + return auth.api.signUpEmail({ body: { email, password: PASSWORD, name } }); +} + +describe("signup when organization provisioning fails", () => { + beforeEach(async () => { + provisioning.shouldFail = false; + await resetDatabase(); + }); + + it("reports the failure to the caller", async () => { + provisioning.shouldFail = true; + + await expect(signUp("outage@example.com")).rejects.toThrow(); + }); + + it("leaves no user row behind", async () => { + provisioning.shouldFail = true; + + await expect(signUp("outage@example.com")).rejects.toThrow(); + + expect(await db.select().from(user)).toHaveLength(0); + expect(await db.select().from(account)).toHaveLength(0); + }); + + it("keeps the address usable once provisioning recovers", async () => { + provisioning.shouldFail = true; + await expect(signUp("outage@example.com")).rejects.toThrow(); + + provisioning.shouldFail = false; + const result = await signUp("outage@example.com", "Recovered User"); + + expect(result.user.email).toBe("outage@example.com"); + expect(await db.select().from(user)).toHaveLength(1); + }); +}); diff --git a/tests/setup.ts b/tests/setup.ts new file mode 100644 index 0000000..f149f27 --- /dev/null +++ b/tests/setup.ts @@ -0,0 +1 @@ +import "@testing-library/jest-dom/vitest"; diff --git a/tests/unit/capability-contract.test.ts b/tests/unit/capability-contract.test.ts new file mode 100644 index 0000000..13145d6 --- /dev/null +++ b/tests/unit/capability-contract.test.ts @@ -0,0 +1,183 @@ +import { describe, expect, it } from "vitest"; + +import { + BILLING_CAPABILITY, + BILLING_GUIDE, + type BillingConfig, + areWebhooksAvailable, + isBillingAvailable, + isProCheckoutAvailable, +} from "~/capabilities/billing/config"; +import { + AI_CHAT_CAPABILITY, + AI_CHAT_GUIDE, + type AiChatConfig, + DEFAULT_DEPLOYMENT_NAME, + isAiChatAvailable, + resolveDeploymentName, +} from "~/capabilities/ai-chat/config"; +import { + CapabilityUnavailableError, + requireCapability, +} from "~/lib/capability"; + +/** + * Every capability must behave identically across four states: + * + * 1. absent — no configuration at all; the app still works + * 2. partial — rejected at startup by env validation (see env-schema tests) + * 3. unavailable — behavior invoked anyway; throws a named, guiding error + * 4. configured — fully available + */ + +const NO_BILLING: BillingConfig = { server: "sandbox", enabled: true }; +const CONFIGURED_BILLING: BillingConfig = { + accessToken: "polar_at_test", + server: "sandbox", + enabled: true, + proProductId: "prod_123", + webhookSecret: "whsec_test", +}; + +const NO_AI: AiChatConfig = {}; +const CONFIGURED_AI: AiChatConfig = { + resourceName: "my-resource", + apiKey: "azure-key", +}; + +describe("capability contract", () => { + describe("CapabilityUnavailableError", () => { + it("names the capability and points at its guide", () => { + const error = new CapabilityUnavailableError( + BILLING_CAPABILITY, + BILLING_GUIDE, + ); + + expect(error.name).toBe("CapabilityUnavailableError"); + expect(error.capability).toBe(BILLING_CAPABILITY); + expect(error.message).toContain(BILLING_CAPABILITY); + expect(error.message).toContain(BILLING_GUIDE); + }); + + it("still guides the reader when no guide is supplied", () => { + const error = new CapabilityUnavailableError("Something"); + + expect(error.message).toContain("capability guide"); + }); + + it("never leaks a configuration value", () => { + const error = new CapabilityUnavailableError( + BILLING_CAPABILITY, + BILLING_GUIDE, + ); + + expect(error.message).not.toContain("polar_at_test"); + }); + }); + + describe("requireCapability", () => { + it("returns the value when the capability is available", () => { + const client = { id: "client" }; + + expect(requireCapability("Billing", client)).toBe(client); + }); + + it.each([ + ["null", null], + ["undefined", undefined], + ])("throws for %s", (_label, value) => { + expect(() => requireCapability("Billing", value, BILLING_GUIDE)).toThrow( + CapabilityUnavailableError, + ); + }); + + it("does not treat falsy-but-present values as absent", () => { + expect(requireCapability("Billing", 0)).toBe(0); + expect(requireCapability("Billing", "")).toBe(""); + expect(requireCapability("Billing", false)).toBe(false); + }); + }); + + describe("Polar billing availability", () => { + it("is unavailable when absent", () => { + expect(isBillingAvailable(NO_BILLING)).toBe(false); + }); + + it("is available when fully configured", () => { + expect(isBillingAvailable(CONFIGURED_BILLING)).toBe(true); + }); + + it("honors the kill switch even when fully configured", () => { + expect( + isBillingAvailable({ ...CONFIGURED_BILLING, enabled: false }), + ).toBe(false); + }); + + it("keeps webhooks unavailable without a secret", () => { + expect( + areWebhooksAvailable({ + ...CONFIGURED_BILLING, + webhookSecret: undefined, + }), + ).toBe(false); + expect(areWebhooksAvailable(CONFIGURED_BILLING)).toBe(true); + }); + + it("keeps webhooks unavailable when billing itself is unavailable", () => { + expect( + areWebhooksAvailable({ ...NO_BILLING, webhookSecret: "whsec_test" }), + ).toBe(false); + }); + + it("keeps pro checkout unavailable without a product mapping", () => { + expect( + isProCheckoutAvailable({ + ...CONFIGURED_BILLING, + proProductId: undefined, + }), + ).toBe(false); + expect(isProCheckoutAvailable(CONFIGURED_BILLING)).toBe(true); + }); + }); + + describe("Azure AI chat availability", () => { + it("is unavailable when absent", () => { + expect(isAiChatAvailable(NO_AI)).toBe(false); + }); + + it("is available when fully configured", () => { + expect(isAiChatAvailable(CONFIGURED_AI)).toBe(true); + }); + + it.each([ + ["resource name only", { resourceName: "my-resource" }], + ["api key only", { apiKey: "azure-key" }], + ])("is unavailable with %s", (_label, config) => { + expect(isAiChatAvailable(config as AiChatConfig)).toBe(false); + }); + + it("falls back to the default deployment name", () => { + expect(resolveDeploymentName(CONFIGURED_AI)).toBe( + DEFAULT_DEPLOYMENT_NAME, + ); + }); + + it("prefers an explicit deployment name", () => { + expect( + resolveDeploymentName({ + ...CONFIGURED_AI, + deploymentName: "my-deployment", + }), + ).toBe("my-deployment"); + }); + + it("points at its own guide", () => { + const error = new CapabilityUnavailableError( + AI_CHAT_CAPABILITY, + AI_CHAT_GUIDE, + ); + + expect(error.message).toContain(AI_CHAT_GUIDE); + }); + }); +}); diff --git a/tests/unit/env-schema.test.ts b/tests/unit/env-schema.test.ts new file mode 100644 index 0000000..677b13f --- /dev/null +++ b/tests/unit/env-schema.test.ts @@ -0,0 +1,172 @@ +import { describe, expect, it } from "vitest"; + +import { parseServerEnv } from "~/lib/env/schema"; + +const VALID_DB = "postgres://postgres:postgres@localhost:5432/rocket"; + +function baseEnv(overrides: Record = {}) { + return { + NODE_ENV: "test", + DATABASE_URL: VALID_DB, + ...overrides, + }; +} + +function issuePaths(result: ReturnType) { + if (result.success) return []; + return result.error.issues.map((issue) => issue.path.join(".")); +} + +describe("core environment", () => { + it("accepts a minimal configuration with every capability absent", () => { + const result = parseServerEnv(baseEnv()); + + expect(result.success).toBe(true); + }); + + it("rejects a missing DATABASE_URL", () => { + const result = parseServerEnv({ NODE_ENV: "test" }); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("DATABASE_URL"); + }); + + it("rejects a DATABASE_URL that is not a PostgreSQL connection string", () => { + const result = parseServerEnv( + baseEnv({ DATABASE_URL: "mysql://localhost/rocket" }), + ); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("DATABASE_URL"); + }); + + it("treats an empty variable as absent rather than as a valid empty string", () => { + const result = parseServerEnv(baseEnv({ DATABASE_URL: "" })); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("DATABASE_URL"); + }); + + it("requires signing configuration in production", () => { + const result = parseServerEnv(baseEnv({ NODE_ENV: "production" })); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toEqual( + expect.arrayContaining(["BETTER_AUTH_SECRET", "BETTER_AUTH_URL"]), + ); + }); + + it("accepts production when signing configuration is present", () => { + const result = parseServerEnv( + baseEnv({ + NODE_ENV: "production", + BETTER_AUTH_SECRET: "a-secret", + BETTER_AUTH_URL: "https://example.com", + }), + ); + + expect(result.success).toBe(true); + }); +}); + +describe("Google sign-in configuration", () => { + it("is valid when absent", () => { + const result = parseServerEnv(baseEnv()); + + expect(result.success).toBe(true); + if (result.success) { + expect(result.data.GOOGLE_CLIENT_ID).toBeUndefined(); + } + }); + + it("is valid when fully configured", () => { + const result = parseServerEnv( + baseEnv({ + GOOGLE_CLIENT_ID: "client-id", + GOOGLE_CLIENT_SECRET: "client-secret", + }), + ); + + expect(result.success).toBe(true); + }); + + it("fails when only the client id is supplied", () => { + const result = parseServerEnv(baseEnv({ GOOGLE_CLIENT_ID: "client-id" })); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("GOOGLE_CLIENT_SECRET"); + }); + + it("fails when the secret is present but empty", () => { + const result = parseServerEnv( + baseEnv({ GOOGLE_CLIENT_ID: "client-id", GOOGLE_CLIENT_SECRET: "" }), + ); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("GOOGLE_CLIENT_SECRET"); + }); +}); + +describe("Azure AI Chat configuration", () => { + it("is valid when absent", () => { + expect(parseServerEnv(baseEnv()).success).toBe(true); + }); + + it("fails when only the resource name is supplied", () => { + const result = parseServerEnv( + baseEnv({ AZURE_OPENAI_RESOURCE_NAME: "resource" }), + ); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("AZURE_OPENAI_API_KEY"); + }); + + it("allows the deployment name to stay absent when fully configured", () => { + const result = parseServerEnv( + baseEnv({ + AZURE_OPENAI_RESOURCE_NAME: "resource", + AZURE_OPENAI_API_KEY: "key", + }), + ); + + expect(result.success).toBe(true); + }); +}); + +describe("Polar billing configuration", () => { + it("is valid when absent", () => { + expect(parseServerEnv(baseEnv()).success).toBe(true); + }); + + it("is available from the access token alone", () => { + const result = parseServerEnv(baseEnv({ POLAR_ACCESS_TOKEN: "token" })); + + expect(result.success).toBe(true); + }); + + it("rejects a webhook secret with no access token", () => { + const result = parseServerEnv(baseEnv({ POLAR_WEBHOOK_SECRET: "secret" })); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("POLAR_ACCESS_TOKEN"); + }); + + it("rejects an unknown Polar server", () => { + const result = parseServerEnv( + baseEnv({ POLAR_ACCESS_TOKEN: "token", POLAR_SERVER: "staging" }), + ); + + expect(result.success).toBe(false); + expect(issuePaths(result)).toContain("POLAR_SERVER"); + }); + + it("defaults the kill switch to enabled and honours an explicit false", () => { + const enabled = parseServerEnv(baseEnv({ POLAR_ACCESS_TOKEN: "token" })); + const disabled = parseServerEnv( + baseEnv({ POLAR_ACCESS_TOKEN: "token", POLAR_ENABLED: "false" }), + ); + + expect(enabled.success && enabled.data.POLAR_ENABLED).toBe(true); + expect(disabled.success && disabled.data.POLAR_ENABLED).toBe(false); + }); +}); diff --git a/tests/unit/organization-naming.test.ts b/tests/unit/organization-naming.test.ts new file mode 100644 index 0000000..a4190b9 --- /dev/null +++ b/tests/unit/organization-naming.test.ts @@ -0,0 +1,86 @@ +import { describe, expect, it } from "vitest"; + +import { + nextSlugCandidate, + organizationNameForUser, + slugify, + tokenSlugCandidate, +} from "~/lib/organization/naming"; + +describe("organization naming", () => { + describe("organizationNameForUser", () => { + it("uses the display name when present", () => { + expect( + organizationNameForUser({ + name: "Ada Lovelace", + email: "ada@example.com", + }), + ).toBe("Ada Lovelace's Organization"); + }); + + it("falls back to the email local part when the name is blank", () => { + expect( + organizationNameForUser({ name: " ", email: "ada@example.com" }), + ).toBe("ada's Organization"); + }); + + it("falls back to a generic name when nothing is usable", () => { + expect(organizationNameForUser({ name: "", email: "" })).toBe( + "Personal Organization", + ); + }); + }); + + describe("slugify", () => { + it.each([ + ["Ada Lovelace's Organization", "ada-lovelaces-organization"], + ["Ada Lovelace’s Organization", "ada-lovelaces-organization"], + [" Spaced Out ", "spaced-out"], + ["Ünicode Ãccents", "unicode-accents"], + ["!!!", "organization"], + ["", "organization"], + ])("slugs %j as %j", (input, expected) => { + expect(slugify(input)).toBe(expected); + }); + + it("never produces a trailing separator after truncation", () => { + const slug = slugify(`${"a".repeat(40)} ${"b".repeat(40)}`); + + expect(slug.length).toBeLessThanOrEqual(48); + expect(slug.endsWith("-")).toBe(false); + }); + }); + + describe("nextSlugCandidate", () => { + it("returns the base slug on the first attempt", () => { + expect(nextSlugCandidate("acme", 0)).toBe("acme"); + }); + + it("suffixes subsequent attempts so collisions resolve", () => { + expect(nextSlugCandidate("acme", 1)).toBe("acme-2"); + expect(nextSlugCandidate("acme", 2)).toBe("acme-3"); + }); + + it("keeps suffixed candidates within the length budget", () => { + const candidate = nextSlugCandidate("a".repeat(48), 9); + + expect(candidate.length).toBeLessThanOrEqual(48); + expect(candidate.endsWith("-10")).toBe(true); + }); + }); + + describe("tokenSlugCandidate", () => { + it("appends the token", () => { + expect(tokenSlugCandidate("acme", "V1StGXR8")).toBe("acme-V1StGXR8"); + }); + + it("keeps the result within the slug length limit", () => { + const base = "a".repeat(48); + + const slug = tokenSlugCandidate(base, "V1StGXR8Z5"); + + expect(slug.length).toBeLessThanOrEqual(48); + expect(slug.endsWith("-V1StGXR8Z5")).toBe(true); + }); + }); +}); diff --git a/tests/unit/test-database-guard.test.ts b/tests/unit/test-database-guard.test.ts new file mode 100644 index 0000000..caff158 --- /dev/null +++ b/tests/unit/test-database-guard.test.ts @@ -0,0 +1,48 @@ +import { describe, expect, it } from "vitest"; + +import { resolveTestDatabaseUrl } from "~/lib/env/test-database"; + +const DEV = "postgres://postgres:postgres@localhost:5432/rocket"; +const TEST = "postgres://postgres:postgres@localhost:5432/rocket_test"; + +describe("test database guard", () => { + it("returns the test connection string when it is safe", () => { + expect( + resolveTestDatabaseUrl({ DATABASE_URL: DEV, TEST_DATABASE_URL: TEST }), + ).toBe(TEST); + }); + + it("refuses to fall back to DATABASE_URL", () => { + expect(() => resolveTestDatabaseUrl({ DATABASE_URL: DEV })).toThrow( + /TEST_DATABASE_URL is not set/, + ); + }); + + it("refuses when the test database is the development database", () => { + expect(() => + resolveTestDatabaseUrl({ DATABASE_URL: DEV, TEST_DATABASE_URL: DEV }), + ).toThrow(/matches DATABASE_URL/); + }); + + it("ignores trailing slashes and case when comparing", () => { + expect(() => + resolveTestDatabaseUrl({ + DATABASE_URL: DEV, + TEST_DATABASE_URL: `${DEV.toUpperCase()}/`, + }), + ).toThrow(/matches DATABASE_URL/); + }); + + it("refuses a database whose name does not look disposable", () => { + expect(() => + resolveTestDatabaseUrl({ + DATABASE_URL: DEV, + TEST_DATABASE_URL: "postgres://postgres@localhost:5432/production", + }), + ).toThrow(/does not look like a test database/); + }); + + it("allows a test database when no development database is configured", () => { + expect(resolveTestDatabaseUrl({ TEST_DATABASE_URL: TEST })).toBe(TEST); + }); +}); diff --git a/vite.config.ts b/vite.config.ts index 4a88d58..744fe13 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,4 +5,27 @@ import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [tailwindcss(), reactRouter(), tsconfigPaths()], + + optimizeDeps: { + /** + * Vite's cold-start crawl only sees what the root route imports, because + * every other route module is loaded on demand. The first navigation then + * discovers a second batch of dependencies and Vite force-reloads the page + * to serve them — which on a fresh clone can land mid-hydration, throw + * "Invalid hook call", and lose whatever was just submitted. + * + * Naming the dependencies that only routes and lazily-rendered components + * reach collapses that into one pre-bundling pass, so the first run of + * `bun run dev` behaves like every later one. + */ + include: [ + "@radix-ui/react-avatar", + "@radix-ui/react-dialog", + "@radix-ui/react-label", + "@radix-ui/react-slot", + "@tanstack/react-table", + "better-auth/react", + "recharts", + ], + }, }); diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..da0ec9d --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,51 @@ +import { defineConfig } from "vitest/config"; +import tsconfigPaths from "vite-tsconfig-paths"; + +export default defineConfig({ + plugins: [tsconfigPaths()], + test: { + globals: true, + projects: [ + { + extends: true, + test: { + name: "unit", + environment: "node", + include: ["app/**/*.test.ts", "tests/unit/**/*.test.ts"], + setupFiles: ["./tests/setup.ts"], + }, + }, + { + extends: true, + test: { + name: "dom", + environment: "jsdom", + include: ["app/**/*.test.tsx", "tests/dom/**/*.test.tsx"], + setupFiles: ["./tests/setup.ts"], + }, + }, + { + extends: true, + test: { + name: "integration", + environment: "node", + include: ["tests/integration/**/*.test.ts"], + setupFiles: ["./tests/integration/setup.ts"], + fileParallelism: false, + hookTimeout: 60_000, + testTimeout: 30_000, + }, + }, + ], + coverage: { + provider: "v8", + reporter: ["text", "lcov"], + include: ["app/**/*.{ts,tsx}"], + exclude: [ + "app/components/ui/**", + "app/**/*.test.{ts,tsx}", + "app/welcome/**", + ], + }, + }, +});