From 5f857f1871a261c4dcc4a7c6498e487dbc29a059 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 15:30:32 +0000 Subject: [PATCH 1/4] chore: retire the hosted dashboard Remove the Next.js/Supabase control plane (web/), the hourly alert cron and nightly control-plane DB backup workflows, and the control-plane and web CI jobs. The dashboard never had users beyond its author; the agent carries on as a standalone open-source tool. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WZju5nfK7jvw8QUVvhKjU2 --- .github/workflows/ci.yml | 109 - .github/workflows/cron-alerts.yml | 18 - .github/workflows/db-backup.yml | 49 - .gitignore | 7 - agent/cmd/register.go | 63 - agent/cmd/reporting.go | 86 - agent/internal/report/client.go | 284 - agent/internal/report/client_test.go | 191 - agent/internal/report/repolabel_test.go | 54 - docs/billing.md | 40 - docs/cloud.md | 38 - docs/{alerts.md => notifications.md} | 0 web/.env.example | 41 - web/.gitignore | 43 - web/AGENTS.md | 5 - web/CLAUDE.md | 1 - web/README.md | 36 - web/e2e/alerts.sh | 180 - web/e2e/billing.sh | 143 - web/e2e/run.sh | 144 - web/e2e/sign-stripe-event.mjs | 24 - web/e2e/telegram-connect.sh | 75 - web/eslint.config.mjs | 18 - web/next.config.ts | 7 - web/package-lock.json | 8938 ----------------- web/package.json | 37 - web/postcss.config.mjs | 7 - web/src/app/api/billing/checkout/route.ts | 60 - web/src/app/api/billing/portal/route.ts | 30 - web/src/app/api/cron/alerts/route.ts | 137 - web/src/app/api/telegram/webhook/route.ts | 84 - web/src/app/api/v1/agents/config/route.ts | 31 - web/src/app/api/v1/agents/register/route.ts | 62 - web/src/app/api/v1/heartbeat/route.ts | 37 - web/src/app/api/v1/runs/route.ts | 178 - web/src/app/api/webhooks/stripe/route.ts | 145 - web/src/app/auth/callback/route.ts | 30 - web/src/app/dashboard/actions.ts | 35 - .../app/dashboard/agents/new-agent-token.tsx | 61 - web/src/app/dashboard/agents/page.tsx | 51 - web/src/app/dashboard/alerts/actions.ts | 226 - .../app/dashboard/alerts/channels-manager.tsx | 329 - web/src/app/dashboard/alerts/page.tsx | 82 - .../app/dashboard/billing/billing-actions.tsx | 69 - web/src/app/dashboard/billing/page.tsx | 90 - web/src/app/dashboard/layout.tsx | 96 - web/src/app/dashboard/page.tsx | 164 - web/src/app/dashboard/runs/[id]/page.tsx | 112 - web/src/app/dashboard/runs/page.tsx | 91 - web/src/app/globals.css | 26 - web/src/app/icon.svg | 7 - web/src/app/landing-cta.tsx | 43 - web/src/app/layout.tsx | 38 - web/src/app/legal/legal.tsx | 25 - web/src/app/login/page.tsx | 160 - web/src/app/page.tsx | 154 - web/src/app/privacy/page.tsx | 80 - web/src/app/reset-password/page.tsx | 98 - web/src/app/terms/page.tsx | 64 - web/src/components/milestone-tracker.tsx | 39 - web/src/components/status-badge.tsx | 25 - web/src/lib/alerts/config.test.ts | 34 - web/src/lib/alerts/config.ts | 78 - web/src/lib/alerts/incidents.ts | 105 - web/src/lib/alerts/send.ts | 108 - web/src/lib/alerts/staleness.test.ts | 57 - web/src/lib/alerts/staleness.ts | 61 - web/src/lib/analytics.ts | 10 - web/src/lib/api/agent-auth.ts | 37 - web/src/lib/api/keys.test.ts | 25 - web/src/lib/api/keys.ts | 28 - web/src/lib/api/schemas.test.ts | 106 - web/src/lib/api/schemas.ts | 64 - web/src/lib/billing/entitlements.ts | 62 - web/src/lib/billing/stripe.ts | 24 - web/src/lib/format.test.ts | 26 - web/src/lib/format.ts | 21 - web/src/lib/supabase/admin.ts | 14 - web/src/lib/supabase/client.ts | 9 - web/src/lib/supabase/server.ts | 29 - web/src/lib/types.ts | 42 - web/src/proxy.ts | 50 - web/supabase/.gitignore | 8 - web/supabase/config.toml | 414 - .../migrations/20260704000001_core_schema.sql | 158 - .../migrations/20260704120000_alerting.sql | 86 - .../migrations/20260705000001_billing.sql | 37 - .../20260705000002_channel_limit_policy.sql | 40 - ...60706000001_function_execute_hardening.sql | 11 - ...60708000001_agent_delete_keeps_history.sql | 13 - .../20260713000001_telegram_links.sql | 35 - ...20260713000002_beta_unlimited_channels.sql | 13 - ...0713000003_revoke_unused_channel_count.sql | 6 - .../20260716000001_restore_duration.sql | 6 - ...0724000001_stripe_events_explicit_deny.sql | 15 - ...00001_alert_channel_verified_privilege.sql | 31 - web/tsconfig.json | 34 - web/vercel.json | 8 - 98 files changed, 15502 deletions(-) delete mode 100644 .github/workflows/cron-alerts.yml delete mode 100644 .github/workflows/db-backup.yml delete mode 100644 agent/cmd/register.go delete mode 100644 agent/cmd/reporting.go delete mode 100644 agent/internal/report/client.go delete mode 100644 agent/internal/report/client_test.go delete mode 100644 agent/internal/report/repolabel_test.go delete mode 100644 docs/billing.md delete mode 100644 docs/cloud.md rename docs/{alerts.md => notifications.md} (100%) delete mode 100644 web/.env.example delete mode 100644 web/.gitignore delete mode 100644 web/AGENTS.md delete mode 100644 web/CLAUDE.md delete mode 100644 web/README.md delete mode 100755 web/e2e/alerts.sh delete mode 100755 web/e2e/billing.sh delete mode 100755 web/e2e/run.sh delete mode 100644 web/e2e/sign-stripe-event.mjs delete mode 100755 web/e2e/telegram-connect.sh delete mode 100644 web/eslint.config.mjs delete mode 100644 web/next.config.ts delete mode 100644 web/package-lock.json delete mode 100644 web/package.json delete mode 100644 web/postcss.config.mjs delete mode 100644 web/src/app/api/billing/checkout/route.ts delete mode 100644 web/src/app/api/billing/portal/route.ts delete mode 100644 web/src/app/api/cron/alerts/route.ts delete mode 100644 web/src/app/api/telegram/webhook/route.ts delete mode 100644 web/src/app/api/v1/agents/config/route.ts delete mode 100644 web/src/app/api/v1/agents/register/route.ts delete mode 100644 web/src/app/api/v1/heartbeat/route.ts delete mode 100644 web/src/app/api/v1/runs/route.ts delete mode 100644 web/src/app/api/webhooks/stripe/route.ts delete mode 100644 web/src/app/auth/callback/route.ts delete mode 100644 web/src/app/dashboard/actions.ts delete mode 100644 web/src/app/dashboard/agents/new-agent-token.tsx delete mode 100644 web/src/app/dashboard/agents/page.tsx delete mode 100644 web/src/app/dashboard/alerts/actions.ts delete mode 100644 web/src/app/dashboard/alerts/channels-manager.tsx delete mode 100644 web/src/app/dashboard/alerts/page.tsx delete mode 100644 web/src/app/dashboard/billing/billing-actions.tsx delete mode 100644 web/src/app/dashboard/billing/page.tsx delete mode 100644 web/src/app/dashboard/layout.tsx delete mode 100644 web/src/app/dashboard/page.tsx delete mode 100644 web/src/app/dashboard/runs/[id]/page.tsx delete mode 100644 web/src/app/dashboard/runs/page.tsx delete mode 100644 web/src/app/globals.css delete mode 100644 web/src/app/icon.svg delete mode 100644 web/src/app/landing-cta.tsx delete mode 100644 web/src/app/layout.tsx delete mode 100644 web/src/app/legal/legal.tsx delete mode 100644 web/src/app/login/page.tsx delete mode 100644 web/src/app/page.tsx delete mode 100644 web/src/app/privacy/page.tsx delete mode 100644 web/src/app/reset-password/page.tsx delete mode 100644 web/src/app/terms/page.tsx delete mode 100644 web/src/components/milestone-tracker.tsx delete mode 100644 web/src/components/status-badge.tsx delete mode 100644 web/src/lib/alerts/config.test.ts delete mode 100644 web/src/lib/alerts/config.ts delete mode 100644 web/src/lib/alerts/incidents.ts delete mode 100644 web/src/lib/alerts/send.ts delete mode 100644 web/src/lib/alerts/staleness.test.ts delete mode 100644 web/src/lib/alerts/staleness.ts delete mode 100644 web/src/lib/analytics.ts delete mode 100644 web/src/lib/api/agent-auth.ts delete mode 100644 web/src/lib/api/keys.test.ts delete mode 100644 web/src/lib/api/keys.ts delete mode 100644 web/src/lib/api/schemas.test.ts delete mode 100644 web/src/lib/api/schemas.ts delete mode 100644 web/src/lib/billing/entitlements.ts delete mode 100644 web/src/lib/billing/stripe.ts delete mode 100644 web/src/lib/format.test.ts delete mode 100644 web/src/lib/format.ts delete mode 100644 web/src/lib/supabase/admin.ts delete mode 100644 web/src/lib/supabase/client.ts delete mode 100644 web/src/lib/supabase/server.ts delete mode 100644 web/src/lib/types.ts delete mode 100644 web/src/proxy.ts delete mode 100644 web/supabase/.gitignore delete mode 100644 web/supabase/config.toml delete mode 100644 web/supabase/migrations/20260704000001_core_schema.sql delete mode 100644 web/supabase/migrations/20260704120000_alerting.sql delete mode 100644 web/supabase/migrations/20260705000001_billing.sql delete mode 100644 web/supabase/migrations/20260705000002_channel_limit_policy.sql delete mode 100644 web/supabase/migrations/20260706000001_function_execute_hardening.sql delete mode 100644 web/supabase/migrations/20260708000001_agent_delete_keeps_history.sql delete mode 100644 web/supabase/migrations/20260713000001_telegram_links.sql delete mode 100644 web/supabase/migrations/20260713000002_beta_unlimited_channels.sql delete mode 100644 web/supabase/migrations/20260713000003_revoke_unused_channel_count.sql delete mode 100644 web/supabase/migrations/20260716000001_restore_duration.sql delete mode 100644 web/supabase/migrations/20260724000001_stripe_events_explicit_deny.sql delete mode 100644 web/supabase/migrations/20260917000001_alert_channel_verified_privilege.sql delete mode 100644 web/tsconfig.json delete mode 100644 web/vercel.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffb289f..3311dca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,112 +62,3 @@ jobs: - name: Run e2e (S3 / MinIO backend) run: agent/e2e/run-s3.sh - - control-plane-e2e: - name: Control plane e2e (supabase + agent) - runs-on: ubuntu-latest - env: - RESTIC_VERSION: 0.18.0 - steps: - - uses: actions/checkout@v7 - - - uses: actions/setup-go@v6 - with: - go-version-file: agent/go.mod - cache-dependency-path: agent/go.sum - - - uses: actions/setup-node@v6 - with: - node-version: 22 - cache: npm - cache-dependency-path: web/package-lock.json - - - uses: supabase/setup-cli@v2 - with: - # Pinned, not "latest". Resolving "latest" costs an unauthenticated - # GitHub API call that is rate limited per runner IP, and it failed - # exactly that way on a busy day. Pinning also stops a new CLI - # release from breaking CI with no commit to blame. - version: 2.117.0 - - - name: Install restic - run: | - curl -fsSL -o restic.bz2 \ - "https://github.com/restic/restic/releases/download/v${RESTIC_VERSION}/restic_${RESTIC_VERSION}_linux_amd64.bz2" - bunzip2 restic.bz2 && chmod +x restic && sudo mv restic /usr/local/bin/restic - - - name: Start local Supabase - working-directory: web - run: supabase start - - - name: Build and start web - working-directory: web - run: | - npm ci - cp .env.example .env.local - npm run build - PORT=3100 \ - TELEGRAM_BOT_TOKEN=e2e-token \ - TELEGRAM_BOT_USERNAME=restorable_alerts_dev_bot \ - TELEGRAM_WEBHOOK_SECRET=local-dev-tg-webhook \ - TELEGRAM_API_BASE=http://127.0.0.1:8181 \ - CRON_SECRET=local-dev-cron-secret \ - BETA_MODE=1 \ - STRIPE_SECRET_KEY=sk_test_dummy_signature_only \ - npm run start & - for i in $(seq 1 30); do - curl -sf -o /dev/null http://localhost:3100/login && break - sleep 1 - done - - - name: Run control plane e2e - run: | - export SUPABASE_ANON_KEY="$(cd web && supabase status -o json | python3 -c 'import json,sys; print(json.load(sys.stdin)["ANON_KEY"])')" - web/e2e/run.sh - - - name: Run alerting e2e - run: | - export SUPABASE_ANON_KEY="$(cd web && supabase status -o json | python3 -c 'import json,sys; print(json.load(sys.stdin)["ANON_KEY"])')" - export SUPABASE_SERVICE_ROLE_KEY="$(cd web && supabase status -o json | python3 -c 'import json,sys; print(json.load(sys.stdin)["SERVICE_ROLE_KEY"])')" - web/e2e/alerts.sh - - - name: Run billing e2e - run: | - export SUPABASE_ANON_KEY="$(cd web && supabase status -o json | python3 -c 'import json,sys; print(json.load(sys.stdin)["ANON_KEY"])')" - web/e2e/billing.sh - - - name: Run telegram-connect e2e - run: | - export SUPABASE_ANON_KEY="$(cd web && supabase status -o json | python3 -c 'import json,sys; print(json.load(sys.stdin)["ANON_KEY"])')" - export SUPABASE_SERVICE_ROLE_KEY="$(cd web && supabase status -o json | python3 -c 'import json,sys; print(json.load(sys.stdin)["SERVICE_ROLE_KEY"])')" - web/e2e/telegram-connect.sh - - web: - name: Web (Next.js) - runs-on: ubuntu-latest - defaults: - run: - working-directory: web - steps: - - uses: actions/checkout@v7 - - - uses: actions/setup-node@v6 - with: - node-version: 22 - cache: npm - cache-dependency-path: web/package-lock.json - - - name: Install - run: npm ci - - - name: Lint - run: npm run lint - - - name: Typecheck - run: npm run typecheck - - - name: Test - run: npm test - - - name: Build - run: npm run build diff --git a/.github/workflows/cron-alerts.yml b/.github/workflows/cron-alerts.yml deleted file mode 100644 index ae02cfa..0000000 --- a/.github/workflows/cron-alerts.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Hourly alert cron - -# Vercel Hobby crons only run daily, so stale/silent detection is driven from -# here instead: hits the CRON_SECRET-guarded endpoint every hour. -on: - schedule: - - cron: "7 * * * *" - workflow_dispatch: - -jobs: - trigger: - runs-on: ubuntu-latest - steps: - - name: Invoke /api/cron/alerts - run: | - curl -sf --max-time 60 \ - -H "Authorization: Bearer ${{ secrets.CRON_SECRET }}" \ - https://restorable.dev/api/cron/alerts diff --git a/.github/workflows/db-backup.yml b/.github/workflows/db-backup.yml deleted file mode 100644 index a09398c..0000000 --- a/.github/workflows/db-backup.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Nightly control-plane DB backup - -# The product tests other people's backups; its own database gets the same -# discipline. pg_dump of the hosted Supabase project, gzipped, into a -# private encrypted S3 bucket (30-day lifecycle). -# -# Required secrets: -# SUPABASE_DB_URL postgres connection string (pooler, port 5432) -# BACKUP_AWS_ACCESS_KEY_ID scoped writer (s3:PutObject on the bucket only) -# BACKUP_AWS_SECRET_ACCESS_KEY -on: - schedule: - - cron: "23 8 * * *" - workflow_dispatch: - -jobs: - backup: - runs-on: ubuntu-latest - steps: - - name: Check configuration - run: | - if [ -z "${{ secrets.SUPABASE_DB_URL }}" ]; then - echo "::error::SUPABASE_DB_URL secret is not set — backups are NOT running" - exit 1 - fi - - - name: Install postgres 17 client - run: | - sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' - curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - - sudo apt-get update -qq && sudo apt-get install -y -qq postgresql-client-17 - - - name: Dump and upload - env: - AWS_ACCESS_KEY_ID: ${{ secrets.BACKUP_AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.BACKUP_AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 - DB_URL: ${{ secrets.SUPABASE_DB_URL }} - run: | - set -euo pipefail - STAMP="$(date -u +%Y%m%d-%H%M%S)" - /usr/lib/postgresql/17/bin/pg_dump "$DB_URL" \ - --no-owner --no-privileges --schema=public --schema=auth \ - | gzip > "restorable-$STAMP.sql.gz" - test -s "restorable-$STAMP.sql.gz" - aws s3 cp "restorable-$STAMP.sql.gz" \ - "s3://restorable-db-backups-939701010518/backups/restorable-$STAMP.sql.gz" \ - --sse AES256 - echo "backup uploaded: restorable-$STAMP.sql.gz ($(du -h restorable-$STAMP.sql.gz | cut -f1))" diff --git a/.gitignore b/.gitignore index a108e87..068016f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,12 +7,6 @@ *.test *.out -# Node / Next.js -node_modules/ -/web/.next/ -/web/out/ -next-env.d.ts - # Env and secrets — never commit .env .env.* @@ -22,7 +16,6 @@ next-env.d.ts .DS_Store .idea/ .vscode/ -.vercel # Internal docs — kept local, never published /SPEC.md diff --git a/agent/cmd/register.go b/agent/cmd/register.go deleted file mode 100644 index 26ce8fd..0000000 --- a/agent/cmd/register.go +++ /dev/null @@ -1,63 +0,0 @@ -package cmd - -import ( - "errors" - "os" - - "github.com/spf13/cobra" - - "github.com/restorable-dev/restorable/agent/internal/report" -) - -func newRegisterCmd() *cobra.Command { - var ( - url string - token string - name string - credsPath string - ) - cmd := &cobra.Command{ - Use: "register", - Short: "Connect this agent to the control plane", - Long: "Exchanges a one-time registration token (from the dashboard) for an agent\n" + - "API key, stored locally with owner-only permissions. Registration is\n" + - "optional: `restorable test` works fully standalone without it.", - Args: cobra.NoArgs, - RunE: func(cmd *cobra.Command, _ []string) error { - if url == "" || token == "" { - return errors.New("--url and --token are required (mint a token on the dashboard's Agents page)") - } - if name == "" { - host, err := os.Hostname() - if err != nil || host == "" { - name = "agent" - } else { - name = host - } - } - if credsPath == "" { - var err error - credsPath, err = report.DefaultCredentialsPath() - if err != nil { - return err - } - } - - creds, err := report.Register(cmd.Context(), url, token, name, version) - if err != nil { - return err - } - if err := report.SaveCredentials(credsPath, creds); err != nil { - return err - } - cmd.Printf("Registered agent %q with %s\nCredentials saved to %s\n", name, creds.URL, credsPath) - cmd.Println("Runs will now report to your dashboard. Use --no-report to skip for a single run.") - return nil - }, - } - cmd.Flags().StringVar(&url, "url", "", "control plane base URL") - cmd.Flags().StringVar(&token, "token", "", "one-time registration token (rrt_…)") - cmd.Flags().StringVar(&name, "name", "", "agent name shown on the dashboard (default: hostname)") - cmd.Flags().StringVar(&credsPath, "credentials", "", "where to store credentials (default: user config dir)") - return cmd -} diff --git a/agent/cmd/reporting.go b/agent/cmd/reporting.go deleted file mode 100644 index 0610cb5..0000000 --- a/agent/cmd/reporting.go +++ /dev/null @@ -1,86 +0,0 @@ -package cmd - -import ( - "context" - "errors" - "time" - - "github.com/restorable-dev/restorable/agent/internal/report" -) - -// heartbeatInterval keeps registered daemon agents visibly alive between -// scheduled tests, so agent-silent detection (>24h) never false-positives on -// a healthy daemon with a weekly schedule. -const heartbeatInterval = 6 * time.Hour - -// loadCredentialsQuiet returns credentials when the agent is registered, nil -// otherwise (standalone mode or unreadable file). -func loadCredentialsQuiet(credsPath string) *report.Credentials { - path := credsPath - if path == "" { - var err error - path, err = report.DefaultCredentialsPath() - if err != nil { - return nil - } - } - creds, err := report.LoadCredentials(path) - if err != nil { - return nil - } - return creds -} - -// heartbeatLoop pings the control plane immediately and then every -// heartbeatInterval until ctx is cancelled. -func heartbeatLoop(ctx context.Context, client *report.Client, logf func(format string, args ...any)) { - beat := func() { - hbCtx, cancel := context.WithTimeout(ctx, 30*time.Second) - defer cancel() - if err := client.Heartbeat(hbCtx); err != nil { - logf("heartbeat failed: %v", err) - } - } - beat() - ticker := time.NewTicker(heartbeatInterval) - defer ticker.Stop() - for { - select { - case <-ctx.Done(): - return - case <-ticker.C: - beat() - } - } -} - -// maybeReport submits the result to the control plane when credentials exist. -// Reporting is additive: any failure is logged and never changes the local -// outcome or exit code — the core loop must work without the cloud. -func maybeReport(ctx context.Context, credsPath string, noReport bool, - res *report.RunResult, logf func(format string, args ...any)) { - if noReport { - return - } - path := credsPath - if path == "" { - var err error - path, err = report.DefaultCredentialsPath() - if err != nil { - return - } - } - creds, err := report.LoadCredentials(path) - if errors.Is(err, report.ErrNoCredentials) { - return // standalone mode - } - if err != nil { - logf("cloud reporting skipped: %v", err) - return - } - if err := report.NewClient(creds).SubmitRun(ctx, res); err != nil { - logf("cloud reporting failed (local result unaffected): %v", err) - return - } - logf("result reported to %s", creds.URL) -} diff --git a/agent/internal/report/client.go b/agent/internal/report/client.go deleted file mode 100644 index 9651dfc..0000000 --- a/agent/internal/report/client.go +++ /dev/null @@ -1,284 +0,0 @@ -package report - -import ( - "bytes" - "context" - "crypto/sha256" - "encoding/hex" - "encoding/json" - "errors" - "fmt" - "io" - "net/http" - "os" - "path/filepath" - "strings" - "time" - "unicode/utf8" -) - -// ErrNoCredentials means the agent is not registered with a control plane — -// standalone mode, which is fully supported, so callers treat it as "skip -// reporting", never as a failure. -var ErrNoCredentials = errors.New("no cloud credentials") - -// Credentials connect an agent to the control plane. The API key is the only -// secret; it authorizes exactly this agent's own submissions. -type Credentials struct { - URL string `json:"url"` - AgentID string `json:"agent_id"` - APIKey string `json:"api_key"` -} - -// DefaultCredentialsPath is where `restorable register` stores credentials -// unless told otherwise: /restorable/credentials.json. -func DefaultCredentialsPath() (string, error) { - dir, err := os.UserConfigDir() - if err != nil { - return "", fmt.Errorf("locate user config dir: %w", err) - } - return filepath.Join(dir, "restorable", "credentials.json"), nil -} - -// LoadCredentials reads credentials, returning ErrNoCredentials when the -// file does not exist. -func LoadCredentials(path string) (*Credentials, error) { - data, err := os.ReadFile(path) - if errors.Is(err, os.ErrNotExist) { - return nil, ErrNoCredentials - } - if err != nil { - return nil, fmt.Errorf("read credentials: %w", err) - } - var c Credentials - if err := json.Unmarshal(data, &c); err != nil { - return nil, fmt.Errorf("parse credentials %s: %w", path, err) - } - if c.URL == "" || c.APIKey == "" { - return nil, fmt.Errorf("credentials %s are incomplete", path) - } - return &c, nil -} - -// SaveCredentials writes credentials with owner-only permissions. -func SaveCredentials(path string, c *Credentials) error { - if err := os.MkdirAll(filepath.Dir(path), 0o700); err != nil { - return fmt.Errorf("create credentials dir: %w", err) - } - data, err := json.MarshalIndent(c, "", " ") - if err != nil { - return err - } - if err := os.WriteFile(path, data, 0o600); err != nil { - return fmt.Errorf("write credentials: %w", err) - } - return nil -} - -// Fingerprint identifies a repository to the control plane without revealing -// its location: sha256 of the credential-scrubbed repo string. Used as a -// fallback when the repository's canonical ID isn't available. -func Fingerprint(repo string) string { - sum := sha256.Sum256([]byte(Scrub(repo))) - return hex.EncodeToString(sum[:]) -} - -// FingerprintID derives a repo fingerprint from restic's canonical repository -// ID. This is stable across how the repo location is spelled (relative vs -// absolute path, trailing slash), so the same repo is never counted twice. -func FingerprintID(repoID string) string { - sum := sha256.Sum256([]byte("restic-repo-id:" + repoID)) - return hex.EncodeToString(sum[:]) -} - -// Client talks to the control plane's /api/v1. -type Client struct { - baseURL string - apiKey string - http *http.Client -} - -// NewClient builds a client from credentials. -func NewClient(creds *Credentials) *Client { - return &Client{ - baseURL: strings.TrimRight(creds.URL, "/"), - apiKey: creds.APIKey, - http: &http.Client{Timeout: 30 * time.Second}, - } -} - -type runPayload struct { - RepoFingerprint string `json:"repo_fingerprint"` - RepoLabel string `json:"repo_label"` - SnapshotID string `json:"snapshot_id,omitempty"` - Status Status `json:"status"` - Error string `json:"error,omitempty"` - StartedAt time.Time `json:"started_at"` - FinishedAt time.Time `json:"finished_at"` - // RestoreDurationMS is metadata (a timing), so it may leave the machine. - RestoreDurationMS int64 `json:"restore_duration_ms,omitempty"` - AgentVersion string `json:"agent_version"` - Checks []CheckResult `json:"checks"` -} - -// maxRepoLabelBytes mirrors the control plane's bound on repo_label. Keeping -// the agent inside it matters more than it looks: the server rejected the -// whole submission when a label ran long, so the repo row was never created, -// the run never appeared on the dashboard, and stale detection could never -// fire for that repo — while the agent still printed PASS and exited 0. Long -// B2 and S3 URLs reach 200 characters easily. -// -// Bounding bytes is enough: the server counts UTF-16 units, which is never -// more than the UTF-8 byte count. -const maxRepoLabelBytes = 200 - -// truncateRepoLabel keeps both ends of an over-long repo string. The head -// carries the scheme and host, the tail carries the path that tells two repos -// on the same host apart, so cutting either end alone loses the half that -// makes the label worth showing. The label is display only; repos are -// identified by fingerprint, so shortening it costs nothing. -func truncateRepoLabel(s string) string { - if len(s) <= maxRepoLabelBytes { - return s - } - const ellipsis = "…" - budget := maxRepoLabelBytes - len(ellipsis) - head := budget / 2 - tailStart := len(s) - (budget - head) - for head > 0 && !utf8.RuneStart(s[head]) { - head-- - } - for tailStart < len(s) && !utf8.RuneStart(s[tailStart]) { - tailStart++ - } - return s[:head] + ellipsis + s[tailStart:] -} - -// SubmitRun reports one run result. Only pass/fail metadata leaves the -// machine: the repo is reduced to a fingerprint plus its scrubbed label, and -// every string in the result was scrubbed when the result was built. -func (c *Client) SubmitRun(ctx context.Context, r *RunResult) error { - // Redact every check message before it leaves the machine: check messages - // are the only field that can embed raw output from the user's restored - // databases. Local stdout already showed the full text; the cloud gets a - // scrubbed, DB-detail-stripped, length-bounded version. - checks := make([]CheckResult, len(r.Checks)) - for i, ck := range r.Checks { - ck.Message = RedactForTransport(ck.Message) - checks[i] = ck - } - fingerprint := r.RepoFingerprint - if fingerprint == "" { - fingerprint = Fingerprint(r.Repo) // fallback for old restic without a repo ID - } - payload := runPayload{ - RepoFingerprint: fingerprint, - RepoLabel: truncateRepoLabel(r.Repo), // scrubbed at result construction - SnapshotID: r.SnapshotID, - Status: r.Status, - // Same treatment as check messages. A failed restore enumerates paths - // out of the user's snapshot, so this field needs the DB-detail strip - // and the length bound too, not just the credential scrub it already - // carries from result construction. - Error: RedactForTransport(r.Error), - StartedAt: r.StartedAt, - FinishedAt: r.FinishedAt, - RestoreDurationMS: r.RestoreDurationMS, - AgentVersion: r.AgentVersion, - Checks: checks, - } - var resp struct { - RunID string `json:"run_id"` - } - return c.post(ctx, "/api/v1/runs", payload, &resp, http.StatusCreated) -} - -// Heartbeat pings the control plane so stale detection knows we are alive. -func (c *Client) Heartbeat(ctx context.Context) error { - return c.post(ctx, "/api/v1/heartbeat", struct{}{}, nil, http.StatusNoContent) -} - -func (c *Client) post(ctx context.Context, path string, body, out any, wantStatus int) error { - data, err := json.Marshal(body) - if err != nil { - return err - } - req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.baseURL+path, bytes.NewReader(data)) - if err != nil { - return err - } - req.Header.Set("Content-Type", "application/json") - req.Header.Set("Authorization", "Bearer "+c.apiKey) - - resp, err := c.http.Do(req) - if err != nil { - return fmt.Errorf("control plane request: %w", err) - } - defer resp.Body.Close() //nolint:errcheck // response fully read - raw, _ := io.ReadAll(io.LimitReader(resp.Body, 1<<20)) - if resp.StatusCode != wantStatus { - return fmt.Errorf("control plane %s: HTTP %d: %s", path, resp.StatusCode, apiError(raw)) - } - if out != nil { - if err := json.Unmarshal(raw, out); err != nil { - return fmt.Errorf("control plane %s: parse response: %w", path, err) - } - } - return nil -} - -// Register exchanges a one-time registration token for agent credentials. -func Register(ctx context.Context, baseURL, token, name, version string) (*Credentials, error) { - baseURL = strings.TrimRight(baseURL, "/") - body, err := json.Marshal(map[string]string{ - "token": token, - "name": name, - "agent_version": version, - }) - if err != nil { - return nil, err - } - req, err := http.NewRequestWithContext(ctx, http.MethodPost, - baseURL+"/api/v1/agents/register", bytes.NewReader(body)) - if err != nil { - return nil, err - } - req.Header.Set("Content-Type", "application/json") - - client := &http.Client{Timeout: 30 * time.Second} - resp, err := client.Do(req) - if err != nil { - return nil, fmt.Errorf("registration request: %w", err) - } - defer resp.Body.Close() //nolint:errcheck // response fully read - raw, _ := io.ReadAll(io.LimitReader(resp.Body, 1<<20)) - if resp.StatusCode != http.StatusCreated { - return nil, fmt.Errorf("registration failed: HTTP %d: %s", resp.StatusCode, apiError(raw)) - } - var out struct { - AgentID string `json:"agent_id"` - APIKey string `json:"api_key"` - } - if err := json.Unmarshal(raw, &out); err != nil { - return nil, fmt.Errorf("parse registration response: %w", err) - } - if out.APIKey == "" { - return nil, errors.New("registration response is missing the API key") - } - return &Credentials{URL: baseURL, AgentID: out.AgentID, APIKey: out.APIKey}, nil -} - -// apiError extracts the error field from an API response body for messages. -func apiError(raw []byte) string { - var e struct { - Error string `json:"error"` - } - if json.Unmarshal(raw, &e) == nil && e.Error != "" { - return e.Error - } - s := strings.TrimSpace(string(raw)) - if len(s) > 200 { - s = s[:200] + "…" - } - return s -} diff --git a/agent/internal/report/client_test.go b/agent/internal/report/client_test.go deleted file mode 100644 index d0596ff..0000000 --- a/agent/internal/report/client_test.go +++ /dev/null @@ -1,191 +0,0 @@ -package report - -import ( - "context" - "encoding/json" - "errors" - "net/http" - "net/http/httptest" - "os" - "path/filepath" - "runtime" - "strings" - "testing" - "time" -) - -func TestCredentialsRoundTrip(t *testing.T) { - path := filepath.Join(t.TempDir(), "sub", "credentials.json") - creds := &Credentials{URL: "https://cloud.example", AgentID: "a1", APIKey: "rsk_x"} - - if err := SaveCredentials(path, creds); err != nil { - t.Fatalf("SaveCredentials() error: %v", err) - } - if runtime.GOOS != "windows" { - info, err := os.Stat(path) - if err != nil { - t.Fatal(err) - } - if info.Mode().Perm() != 0o600 { - t.Errorf("credentials mode = %o, want 600", info.Mode().Perm()) - } - } - - got, err := LoadCredentials(path) - if err != nil { - t.Fatalf("LoadCredentials() error: %v", err) - } - if *got != *creds { - t.Errorf("round trip = %+v, want %+v", got, creds) - } -} - -func TestLoadCredentialsMissing(t *testing.T) { - _, err := LoadCredentials(filepath.Join(t.TempDir(), "nope.json")) - if !errors.Is(err, ErrNoCredentials) { - t.Fatalf("error = %v, want ErrNoCredentials", err) - } -} - -func TestFingerprint(t *testing.T) { - // Deterministic, and identical for credential variants of the same repo: - // the fingerprint is computed over the SCRUBBED string. - withCreds := Fingerprint("rest:https://user:pass@host/repo") - scrubbed := Fingerprint("rest:https://***@host/repo") - if withCreds != scrubbed { - t.Error("fingerprint must be computed over the scrubbed repo string") - } - if len(withCreds) != 64 { - t.Errorf("fingerprint length = %d, want 64 hex chars", len(withCreds)) - } - if Fingerprint("/srv/a") == Fingerprint("/srv/b") { - t.Error("different repos must have different fingerprints") - } -} - -func TestRegister(t *testing.T) { - t.Run("success", func(t *testing.T) { - var gotBody map[string]string - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.URL.Path != "/api/v1/agents/register" { - t.Errorf("path = %s", r.URL.Path) - } - if err := json.NewDecoder(r.Body).Decode(&gotBody); err != nil { - t.Error(err) - } - w.WriteHeader(http.StatusCreated) - _ = json.NewEncoder(w).Encode(map[string]string{"agent_id": "a1", "api_key": "rsk_abc"}) - })) - defer srv.Close() - - creds, err := Register(context.Background(), srv.URL+"/", "rrt_tok", "box", "v1.0.0") - if err != nil { - t.Fatalf("Register() error: %v", err) - } - if creds.APIKey != "rsk_abc" || creds.AgentID != "a1" || creds.URL != srv.URL { - t.Errorf("creds = %+v", creds) - } - if gotBody["token"] != "rrt_tok" || gotBody["name"] != "box" || gotBody["agent_version"] != "v1.0.0" { - t.Errorf("request body = %v", gotBody) - } - }) - - t.Run("used token is a clear error", func(t *testing.T) { - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { - w.WriteHeader(http.StatusForbidden) - _ = json.NewEncoder(w).Encode(map[string]string{ - "error": "registration token is invalid, expired, or already used", - }) - })) - defer srv.Close() - - _, err := Register(context.Background(), srv.URL, "rrt_tok", "box", "v1") - if err == nil || !strings.Contains(err.Error(), "already used") { - t.Fatalf("error = %v, want server message surfaced", err) - } - }) -} - -func TestSubmitRun(t *testing.T) { - var got map[string]any - var auth string - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - auth = r.Header.Get("Authorization") - if err := json.NewDecoder(r.Body).Decode(&got); err != nil { - t.Error(err) - } - w.WriteHeader(http.StatusCreated) - _ = json.NewEncoder(w).Encode(map[string]string{"run_id": "r1"}) - })) - defer srv.Close() - - start := time.Date(2026, 7, 4, 3, 0, 0, 0, time.UTC) - res := &RunResult{ - AgentVersion: "v0.1.0", - Repo: "/srv/backups", - SnapshotID: "abc123", - Status: StatusPass, - StartedAt: start, - FinishedAt: start.Add(time.Minute), - RestoreDurationMS: 42500, - Checks: []CheckResult{ - {Recipe: "r", Type: "files", Status: StatusPass, Message: "ok", DurationMS: 5}, - }, - } - client := NewClient(&Credentials{URL: srv.URL, APIKey: "rsk_k"}) - if err := client.SubmitRun(context.Background(), res); err != nil { - t.Fatalf("SubmitRun() error: %v", err) - } - - if auth != "Bearer rsk_k" { - t.Errorf("auth header = %q", auth) - } - if got["repo_fingerprint"] != Fingerprint("/srv/backups") { - t.Errorf("fingerprint = %v", got["repo_fingerprint"]) - } - if got["repo_label"] != "/srv/backups" || got["status"] != "pass" { - t.Errorf("payload = %v", got) - } - checks, ok := got["checks"].([]any) - if !ok || len(checks) != 1 { - t.Errorf("checks = %v", got["checks"]) - } - if got["restore_duration_ms"] != float64(42500) { - t.Errorf("restore_duration_ms = %v, want 42500", got["restore_duration_ms"]) - } -} - -func TestSubmitRunNilChecksBecomesEmptyArray(t *testing.T) { - var raw map[string]json.RawMessage - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - _ = json.NewDecoder(r.Body).Decode(&raw) - w.WriteHeader(http.StatusCreated) - _, _ = w.Write([]byte(`{"run_id":"r1"}`)) - })) - defer srv.Close() - - res := &RunResult{Repo: "/r", Status: StatusError, StartedAt: time.Now(), FinishedAt: time.Now()} - client := NewClient(&Credentials{URL: srv.URL, APIKey: "rsk_k"}) - if err := client.SubmitRun(context.Background(), res); err != nil { - t.Fatalf("SubmitRun() error: %v", err) - } - if string(raw["checks"]) != "[]" { - t.Errorf("checks marshaled as %s, want []", raw["checks"]) - } -} - -func TestSubmitRunServerError(t *testing.T) { - srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { - w.WriteHeader(http.StatusUnauthorized) - _, _ = w.Write([]byte(`{"error":"invalid or missing agent API key"}`)) - })) - defer srv.Close() - - client := NewClient(&Credentials{URL: srv.URL, APIKey: "rsk_bad"}) - err := client.SubmitRun(context.Background(), &RunResult{ - Repo: "/r", Status: StatusPass, StartedAt: time.Now(), FinishedAt: time.Now(), - }) - if err == nil || !strings.Contains(err.Error(), "HTTP 401") { - t.Fatalf("error = %v, want HTTP 401 surfaced", err) - } -} diff --git a/agent/internal/report/repolabel_test.go b/agent/internal/report/repolabel_test.go deleted file mode 100644 index 78678aa..0000000 --- a/agent/internal/report/repolabel_test.go +++ /dev/null @@ -1,54 +0,0 @@ -package report - -import ( - "strings" - "testing" - "unicode/utf8" -) - -// A repo string longer than the control plane's bound used to fail the whole -// submission, so the repo row was never created, nothing appeared on the -// dashboard, and stale detection could never fire for it — while the run -// printed PASS and exited 0. Silence was the entire bug, so what matters here -// is that nothing the agent sends can exceed the bound. -func TestTruncateRepoLabel(t *testing.T) { - tests := []struct { - name string - in string - }{ - {"short path is untouched", "/srv/backups/restic"}, - {"exactly at the bound", strings.Repeat("a", maxRepoLabelBytes)}, - {"one past the bound", strings.Repeat("a", maxRepoLabelBytes+1)}, - {"long b2 url", "b2:my-bucket-with-a-long-name:" + strings.Repeat("nested/", 60) + "repo"}, - {"long s3 url", "s3:https://s3.eu-central-1.amazonaws.com/" + strings.Repeat("deep/", 70) + "restic"}, - {"multibyte runes at the cut points", strings.Repeat("ünïcödé-påth/", 40)}, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - got := truncateRepoLabel(tt.in) - if len(got) > maxRepoLabelBytes { - t.Errorf("result is %d bytes, over the %d bound", len(got), maxRepoLabelBytes) - } - if !utf8.ValidString(got) { - t.Errorf("truncation split a rune: %q", got) - } - if len(tt.in) <= maxRepoLabelBytes && got != tt.in { - t.Errorf("modified a label that already fit:\n in: %q\n got: %q", tt.in, got) - } - }) - } -} - -// Truncating from either end alone would drop the half that makes the label -// readable, so both survive. -func TestTruncateRepoLabelKeepsBothEnds(t *testing.T) { - in := "s3:https://s3.amazonaws.com/" + strings.Repeat("x/", 200) + "prod-repo" - got := truncateRepoLabel(in) - if !strings.HasPrefix(got, "s3:https://s3.amazonaws.com/") { - t.Errorf("lost the scheme and host: %q", got) - } - if !strings.HasSuffix(got, "prod-repo") { - t.Errorf("lost the distinguishing tail: %q", got) - } -} diff --git a/docs/billing.md b/docs/billing.md deleted file mode 100644 index d19e17e..0000000 --- a/docs/billing.md +++ /dev/null @@ -1,40 +0,0 @@ -# Plans & billing - -> **Open beta: everything here is free right now.** Every Pro feature is -> unlocked for every account, no card and no trial clock. The limits and -> prices below describe what happens when the beta ends, not what is -> enforced today. - -| | Free | Pro ($8/mo or $80/yr) | -|---|---|---| -| Repositories | 1 | Unlimited | -| Test schedule | Monthly | Any | -| Alert channels | 1 | All | -| Run history | 3 months | 12 months | - -The free tier is genuinely usable — one repo, tested monthly, with a real -alert channel. Pro removes the limits and adds monthly confidence reports -(post-launch). - -## How limits behave - -Once the beta ends, limits are enforced server-side, at the moment of growth: - -- A run for a **new** repository beyond your limit is rejected with a clear - `plan limit` error. Repositories that already report are never blocked. -- Adding an alert channel beyond your limit is refused — enforced by the - database itself, not just the UI. - -**Downgrades are graceful.** Cancelling keeps every repo, run, and channel -you have; the limits simply apply to *new* additions again. Nothing is -deleted, hidden, or broken. - -Upgrades take effect immediately — entitlements are read live from the -subscription on every request, so there is nothing to redeploy or restart. - -## Mechanics - -Checkout and subscription management happen on Stripe (Checkout + customer -portal — card details never touch Restorable's servers). Webhooks update the -subscription state; every webhook is signature-verified, schema-validated, -and processed exactly once (replays are acknowledged no-ops). diff --git a/docs/cloud.md b/docs/cloud.md deleted file mode 100644 index d6b6909..0000000 --- a/docs/cloud.md +++ /dev/null @@ -1,38 +0,0 @@ -# Connecting an agent to the cloud dashboard - -The agent is fully useful standalone — cloud connectivity is additive. What -it adds today: run history across all your repos, verified recovery time per -repository (with drift vs your typical time), stale-backup detection, and -alerting (Telegram, Discord, ntfy, email). Monthly confidence reports are -planned but not yet available. - -## What leaves your machine (and what never does) - -Reported per run: a repository **fingerprint** (SHA-256 of the -credential-scrubbed repo string) and scrubbed label, snapshot ID, pass/fail -status per check, check messages, timings (total and restore duration), and -the agent version. - -Never transmitted: backup contents, file names from your data, repository -passwords, or credentials of any kind. Error messages are scrubbed of -embedded URL credentials before they enter a report. The agent connects -outbound over HTTPS only and listens on no ports. - -## Registering - -1. On the dashboard, open **Agents → Register a new agent**. This mints a - one-time registration token (valid one hour, usable once). -2. Run the command it shows on the machine with the agent: - - ```sh - restorable register --url https:// --token rrt_… --name my-box - ``` - -3. The agent exchanges the token for an API key, stored with owner-only - permissions in `/restorable/credentials.json` - (override with `--credentials`). - -From then on, `restorable test` and `restorable run` report each result -automatically. Reporting failures never affect the local result or exit code. -Use `--no-report` to skip reporting, or delete the credentials file to -disconnect permanently. diff --git a/docs/alerts.md b/docs/notifications.md similarity index 100% rename from docs/alerts.md rename to docs/notifications.md diff --git a/web/.env.example b/web/.env.example deleted file mode 100644 index a4c2c0a..0000000 --- a/web/.env.example +++ /dev/null @@ -1,41 +0,0 @@ -# Copy to .env.local for local development. -# These are the well-known local `supabase start` defaults — not secrets. -# For a hosted project, use the values from the Supabase dashboard and keep -# the service role key strictly server-side. -NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321 -NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0 -SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU - -# Alerting. All optional — unconfigured channel types fail their Test button -# with a clear message instead of breaking anything else. -# Telegram bot token from @BotFather. TELEGRAM_API_BASE is overridable for -# tests only; leave unset in production. -TELEGRAM_BOT_TOKEN= -# Bot username (without @), for building t.me/?start=… connect links. -TELEGRAM_BOT_USERNAME= -# Shared secret Telegram echoes back on webhook calls (set at setWebhook time). -TELEGRAM_WEBHOOK_SECRET= -#TELEGRAM_API_BASE= -# Email alerts via AWS SES. Custom names (not AWS_*) because Vercel reserves -# those. Scope the IAM key to ses:SendEmail on your sending identity only. -SES_REGION=us-east-1 -SES_ACCESS_KEY_ID= -SES_SECRET_ACCESS_KEY= -ALERT_EMAIL_FROM="Restorable " -# Vercel cron authenticates with this as a Bearer token (auto-set on Vercel). -CRON_SECRET=local-dev-cron-secret -# Free-for-all beta: 1 = everyone gets Pro features free, upgrade UI hidden. -BETA_MODE=1 - -# Used to build links in alert messages. -NEXT_PUBLIC_APP_URL=http://localhost:3100 - -# Analytics is Vercel Web Analytics — enabled in the Vercel dashboard -# (Project → Analytics). No env var needed; it no-ops locally. - -# Stripe (test mode for development). The secret key is never committed — -# set it in .env.local. Price IDs come from the "Restorable Pro" product. -STRIPE_SECRET_KEY= -STRIPE_WEBHOOK_SECRET=whsec_local_dev_secret -STRIPE_PRICE_MONTHLY=price_1Tq0UKDRIaGkGoP8jlEkbNUt -STRIPE_PRICE_YEARLY=price_1Tq0ULDRIaGkGoP82SvOvCC6 diff --git a/web/.gitignore b/web/.gitignore deleted file mode 100644 index 70c01a1..0000000 --- a/web/.gitignore +++ /dev/null @@ -1,43 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/versions - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# env files (can opt-in for committing if needed) -.env* -!.env.example - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts -.vercel diff --git a/web/AGENTS.md b/web/AGENTS.md deleted file mode 100644 index 8bd0e39..0000000 --- a/web/AGENTS.md +++ /dev/null @@ -1,5 +0,0 @@ - -# This is NOT the Next.js you know - -This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices. - diff --git a/web/CLAUDE.md b/web/CLAUDE.md deleted file mode 100644 index 43c994c..0000000 --- a/web/CLAUDE.md +++ /dev/null @@ -1 +0,0 @@ -@AGENTS.md diff --git a/web/README.md b/web/README.md deleted file mode 100644 index e215bc4..0000000 --- a/web/README.md +++ /dev/null @@ -1,36 +0,0 @@ -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. diff --git a/web/e2e/alerts.sh b/web/e2e/alerts.sh deleted file mode 100755 index e99dfd5..0000000 --- a/web/e2e/alerts.sh +++ /dev/null @@ -1,180 +0,0 @@ -#!/usr/bin/env bash -# End-to-end acceptance test for Phase 4 (SPEC.md): alerting + stale detection. -# -# Proves, against a mock Telegram API: -# 1. a forced-failure fixture fires a Telegram message (well under 5 min) -# 2. repeat failures are suppressed (one alert per incident) -# 3. the next pass sends a recovery notice -# 4. a stale simulation (clock-shifted rows) fires via the cron endpoint -# 5. cron re-runs do not duplicate the stale alert -# 6. a clock-shifted agent fires agent-silent; a daemon heartbeat resolves it -# -# Requirements: local Supabase stack; the web app running with -# TELEGRAM_BOT_TOKEN=e2e-token TELEGRAM_API_BASE=http://127.0.0.1:8181 -# CRON_SECRET (default local-dev-cron-secret) -# plus go, restic, python3. The mock Telegram server is started by this script. -set -euo pipefail - -BASE_URL="${BASE_URL:-http://localhost:3100}" -SUPABASE_URL="${SUPABASE_URL:-http://127.0.0.1:54321}" -ANON_KEY="${SUPABASE_ANON_KEY:?SUPABASE_ANON_KEY must be set}" -SERVICE_KEY="${SUPABASE_SERVICE_ROLE_KEY:?SUPABASE_SERVICE_ROLE_KEY must be set}" -CRON_SECRET="${CRON_SECRET:-local-dev-cron-secret}" -MOCK_PORT=8181 - -ROOT="$(cd "$(dirname "$0")/../.." && pwd)" -WORK="$(mktemp -d)" -MOCK_LOG="$WORK/telegram.ndjson" -touch "$MOCK_LOG" - -log() { printf '\n==> %s\n' "$*"; } -fail() { printf 'E2E FAIL: %s\n' "$*" >&2; exit 1; } - -log "starting mock Telegram API on :$MOCK_PORT" -python3 - "$MOCK_PORT" "$MOCK_LOG" <<'PY' & -from http.server import BaseHTTPRequestHandler, HTTPServer -import json, sys - -class H(BaseHTTPRequestHandler): - def _ok(self, body=b'{"ok":true}'): - self.send_response(200) - self.send_header("Content-Type", "application/json") - self.end_headers() - self.wfile.write(body) - def do_POST(self): - n = int(self.headers.get("content-length", 0)) - body = self.rfile.read(n).decode() - with open(sys.argv[2], "a") as f: - f.write(json.dumps({"path": self.path, "body": body}) + "\n") - self._ok() - def do_GET(self): - self._ok(b'{"ok":true,"result":[]}') - def log_message(self, *args): - pass - -HTTPServer(("127.0.0.1", int(sys.argv[1])), H).serve_forever() -PY -MOCK_PID=$! -trap 'kill "$MOCK_PID" 2>/dev/null; rm -rf "$WORK"' EXIT -sleep 1 - -# message_count / assert helpers over the mock's capture file -message_count() { wc -l < "$MOCK_LOG" | tr -d ' '; } -last_message() { tail -1 "$MOCK_LOG" | python3 -c 'import json,sys; d=json.loads(sys.stdin.read()); print(json.loads(d["body"])["text"])'; } -assert_last_contains() { - last_message | grep -qF "$1" || fail "last telegram message does not contain '$1': $(last_message)" -} - -log "creating user, registering agent" -SIGNUP="$WORK/signup.json" -curl -sf -X POST "$SUPABASE_URL/auth/v1/signup" \ - -H "apikey: $ANON_KEY" -H "Content-Type: application/json" \ - -d "{\"email\":\"alerts-$(date +%s)@e2e.local\",\"password\":\"e2e-password-123\"}" > "$SIGNUP" -JWT="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["access_token"])' "$SIGNUP")" -USER_ID="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["user"]["id"])' "$SIGNUP")" - -TOKEN="rrt_$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')" -TOKEN_HASH="$(python3 -c 'import hashlib,sys; print(hashlib.sha256(sys.argv[1].encode()).hexdigest())' "$TOKEN")" -curl -sf -X POST "$SUPABASE_URL/rest/v1/registration_tokens" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" \ - -d "{\"user_id\":\"$USER_ID\",\"token_hash\":\"$TOKEN_HASH\"}" - -BIN="$WORK/restorable" -(cd "$ROOT/agent" && go build -o "$BIN" .) -CREDS="$WORK/creds.json" -"$BIN" register --url "$BASE_URL" --token "$TOKEN" --name alerts-e2e --credentials "$CREDS" > /dev/null - -log "creating verified telegram channel (chat 42)" -curl -sf -X POST "$SUPABASE_URL/rest/v1/alert_channels" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" \ - -H "Prefer: return=representation" \ - -d '{"user_id":"'$USER_ID'","type":"telegram","config":{"chat_id":"42"}}' > "$WORK/channel.json" -CHANNEL_ID="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))[0]["id"])' "$WORK/channel.json")" -# Service role, because `authenticated` has no privilege on `verified` (see -# migration 20260917000001). This mirrors the app: a user creates the channel, -# and only the server marks it verified once a send has actually succeeded. -curl -sf -X PATCH "$SUPABASE_URL/rest/v1/alert_channels?id=eq.$CHANNEL_ID" \ - -H "apikey: $SERVICE_KEY" -H "Authorization: Bearer $SERVICE_KEY" -H "Content-Type: application/json" \ - -d '{"verified":true}' - -log "building fixture: repo whose recipe requires a missing path" -SRC="$WORK/src"; mkdir -p "$SRC" -echo "data" > "$SRC/data.txt" -export RESTIC_PASSWORD="e2e-password" -restic -r "$WORK/repo" init -q -restic -r "$WORK/repo" backup -q "$SRC" -SANDBOX="$WORK/sandboxes"; mkdir -p "$SANDBOX" -printf 'name: broken\nchecks:\n - type: files\n require:\n - path: nope.txt\n' > "$WORK/recipe-broken.yaml" -printf 'name: good\nchecks:\n - type: files\n require:\n - path: data.txt\n' > "$WORK/recipe-good.yaml" -printf "repo: $WORK/repo\nrecipes: [recipe-broken.yaml]\nsandbox: {dir: $SANDBOX}\n" > "$WORK/agent-broken.yaml" -printf "repo: $WORK/repo\nrecipes: [recipe-good.yaml]\nsandbox: {dir: $SANDBOX}\n" > "$WORK/agent-good.yaml" - -log "case 1: forced failure fires a telegram alert (< 5 min)" -T0=$(date +%s) -"$BIN" test --config "$WORK/agent-broken.yaml" --credentials "$CREDS" > /dev/null 2>&1 || true -for i in $(seq 1 30); do [ "$(message_count)" -ge 1 ] && break; sleep 1; done -[ "$(message_count)" -eq 1 ] || fail "expected 1 telegram message, got $(message_count)" -echo " alert arrived $(( $(date +%s) - T0 ))s after the failing run started" -[ $(( $(date +%s) - T0 )) -lt 300 ] || fail "alert took longer than 5 minutes" -assert_last_contains "Restore test failed" -python3 -c ' -import json, sys -body = json.loads(json.loads(open(sys.argv[1]).readlines()[-1])["body"]) -assert body["chat_id"] == "42", body -' "$MOCK_LOG" || fail "alert did not target chat 42" - -log "case 2: second failure is suppressed (one alert per incident)" -"$BIN" test --config "$WORK/agent-broken.yaml" --credentials "$CREDS" > /dev/null 2>&1 || true -sleep 2 -[ "$(message_count)" -eq 1 ] || fail "duplicate alert sent: $(message_count) messages" - -log "case 3: recovery notice on the next pass" -"$BIN" test --config "$WORK/agent-good.yaml" --credentials "$CREDS" > /dev/null -for i in $(seq 1 30); do [ "$(message_count)" -ge 2 ] && break; sleep 1; done -[ "$(message_count)" -eq 2 ] || fail "expected recovery notice (2 messages), got $(message_count)" -assert_last_contains "passing again" - -log "case 4: clock-shifted rows make the repo stale; cron fires" -# A second pass run gives staleness a cadence to infer from. -"$BIN" test --config "$WORK/agent-good.yaml" --credentials "$CREDS" > /dev/null -BEFORE_STALE="$(message_count)" -# Shift every run 10 days into the past (service role bypasses RLS). -curl -sf -X PATCH "$SUPABASE_URL/rest/v1/test_runs?user_id=eq.$USER_ID" \ - -H "apikey: $SERVICE_KEY" -H "Authorization: Bearer $SERVICE_KEY" -H "Content-Type: application/json" \ - -d '{"finished_at":"'"$(python3 -c 'import datetime; print((datetime.datetime.now(datetime.timezone.utc)-datetime.timedelta(days=10)).isoformat())')"'"}' > /dev/null -CRON_OUT="$(curl -sf "$BASE_URL/api/cron/alerts" -H "Authorization: Bearer $CRON_SECRET")" -echo " cron: $CRON_OUT" -echo "$CRON_OUT" | grep -q '"stale_opened":1' || fail "cron did not open a stale incident: $CRON_OUT" -for i in $(seq 1 10); do [ "$(message_count)" -gt "$BEFORE_STALE" ] && break; sleep 1; done -assert_last_contains "gone quiet" - -log "case 5: cron re-run does not duplicate the stale alert" -COUNT_BEFORE="$(message_count)" -CRON_OUT="$(curl -sf "$BASE_URL/api/cron/alerts" -H "Authorization: Bearer $CRON_SECRET")" -echo "$CRON_OUT" | grep -q '"stale_opened":0' || fail "cron duplicated the stale incident: $CRON_OUT" -[ "$(message_count)" -eq "$COUNT_BEFORE" ] || fail "duplicate stale alert message sent" - -log "case 6: clock-shifted agent fires agent-silent; heartbeat resolves it" -curl -sf -X PATCH "$SUPABASE_URL/rest/v1/agents?user_id=eq.$USER_ID" \ - -H "apikey: $SERVICE_KEY" -H "Authorization: Bearer $SERVICE_KEY" -H "Content-Type: application/json" \ - -d '{"last_seen":"'"$(python3 -c 'import datetime; print((datetime.datetime.now(datetime.timezone.utc)-datetime.timedelta(days=2)).isoformat())')"'"}' > /dev/null -CRON_OUT="$(curl -sf "$BASE_URL/api/cron/alerts" -H "Authorization: Bearer $CRON_SECRET")" -echo "$CRON_OUT" | grep -q '"silent_opened":1' || fail "cron did not open an agent-silent incident: $CRON_OUT" -sleep 1 -assert_last_contains "gone silent" -# The run daemon heartbeats at startup: run it briefly with a far-off schedule. -printf "repo: $WORK/repo\nschedule: \"0 3 1 1 *\"\nrecipes: [recipe-good.yaml]\nsandbox: {dir: $SANDBOX}\n" > "$WORK/agent-daemon.yaml" -"$BIN" run --config "$WORK/agent-daemon.yaml" --credentials "$CREDS" > /dev/null 2>&1 & -DAEMON_PID=$! -for i in $(seq 1 20); do - last_message | grep -q "back online" && break - sleep 1 -done -kill "$DAEMON_PID" 2>/dev/null || true -assert_last_contains "back online" - -log "case 7: cron endpoint rejects bad secrets" -CODE="$(curl -s -o /dev/null -w '%{http_code}' "$BASE_URL/api/cron/alerts" -H "Authorization: Bearer wrong")" -[ "$CODE" = "401" ] || fail "cron with bad secret returned $CODE, want 401" - -log "all alerting e2e cases passed" diff --git a/web/e2e/billing.sh b/web/e2e/billing.sh deleted file mode 100755 index 7d662ec..0000000 --- a/web/e2e/billing.sh +++ /dev/null @@ -1,143 +0,0 @@ -#!/usr/bin/env bash -# End-to-end acceptance test: free-for-all beta + Stripe billing lifecycle. -# -# The service runs a free-for-all beta (BETA_MODE=1): plan limits are lifted. -# Proves, with Stripe webhook payloads signed by the SDK's own test helper -# (the handler's signature verification runs its real code path): -# 1. beta unlocks everything: multiple repos and alert channels are allowed, -# and the agent config endpoint reports beta + unlimited entitlements -# 2. the Stripe webhook lifecycle still records subscription state correctly -# (for when paid plans go live): checkout+update → pro/active -# 3. webhook replay is idempotent (acknowledged, no reprocessing) -# 4. bad signature is rejected -# 5. cancellation records free/canceled and retains all data -# -# Requirements: local supabase, web running with BETA_MODE=1 + stripe config, -# go, restic, node, python3. -set -euo pipefail - -BASE_URL="${BASE_URL:-http://localhost:3100}" -SUPABASE_URL="${SUPABASE_URL:-http://127.0.0.1:54321}" -ANON_KEY="${SUPABASE_ANON_KEY:?SUPABASE_ANON_KEY must be set}" -WEBHOOK_SECRET="${STRIPE_WEBHOOK_SECRET:-whsec_local_dev_secret}" - -ROOT="$(cd "$(dirname "$0")/../.." && pwd)" -WEB="$ROOT/web" -WORK="$(mktemp -d)" -trap 'rm -rf "$WORK"' EXIT - -log() { printf '\n==> %s\n' "$*"; } -fail() { printf 'E2E FAIL: %s\n' "$*" >&2; exit 1; } - -# deliver_event NAME — signs $WORK/NAME.json and POSTs it to the webhook. -# Prints the HTTP status code. -deliver_event() { - local payload="$WORK/$1.json" - local sig - sig="$(node "$WEB/e2e/sign-stripe-event.mjs" "$WEBHOOK_SECRET" < "$payload")" - curl -s -o "$WORK/wh-resp.json" -w '%{http_code}' -X POST "$BASE_URL/api/webhooks/stripe" \ - -H "stripe-signature: $sig" -H "Content-Type: application/json" \ - --data-binary "@$payload" -} - -log "creating user + agent" -curl -sf -X POST "$SUPABASE_URL/auth/v1/signup" \ - -H "apikey: $ANON_KEY" -H "Content-Type: application/json" \ - -d "{\"email\":\"billing-$(date +%s)@e2e.local\",\"password\":\"e2e-password-123\"}" > "$WORK/u.json" -JWT="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["access_token"])' "$WORK/u.json")" -USER_ID="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["user"]["id"])' "$WORK/u.json")" - -RT="rrt_$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')" -RTH="$(python3 -c 'import hashlib,sys; print(hashlib.sha256(sys.argv[1].encode()).hexdigest())' "$RT")" -curl -sf -X POST "$SUPABASE_URL/rest/v1/registration_tokens" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" \ - -d "{\"user_id\":\"$USER_ID\",\"token_hash\":\"$RTH\"}" - -BIN="$WORK/restorable" -(cd "$ROOT/agent" && go build -o "$BIN" .) -CREDS="$WORK/creds.json" -"$BIN" register --url "$BASE_URL" --token "$RT" --name billing-e2e --credentials "$CREDS" > /dev/null - -export RESTIC_PASSWORD="e2e-password" -SANDBOX="$WORK/sandboxes"; mkdir -p "$SANDBOX" -make_repo() { # make_repo N → config file path for repo N - local dir="$WORK/src$1"; mkdir -p "$dir" - echo "data $1" > "$dir/data.txt" - restic -r "$WORK/repo$1" init -q - restic -r "$WORK/repo$1" backup -q "$dir" - printf 'name: r%s\nchecks:\n - type: files\n require:\n - path: data.txt\n' "$1" > "$WORK/recipe$1.yaml" - printf "repo: $WORK/repo$1\nrecipes: [recipe$1.yaml]\nsandbox: {dir: $SANDBOX}\n" > "$WORK/agent$1.yaml" -} -make_repo 1 -make_repo 2 -make_repo 3 - -# The service runs a free-for-all beta (BETA_MODE=1): plan limits are lifted, -# so these cases verify the beta unlock, then the Stripe webhook lifecycle that -# will matter once paid plans go live. - -log "case 1a: beta unlocks multiple repos (no limit)" -"$BIN" test --config "$WORK/agent1.yaml" --credentials "$CREDS" > /dev/null -"$BIN" test --config "$WORK/agent2.yaml" --credentials "$CREDS" > /dev/null || fail "2nd repo rejected in beta" -"$BIN" test --config "$WORK/agent3.yaml" --credentials "$CREDS" > /dev/null || fail "3rd repo rejected in beta" -COUNT="$(curl -sf "$SUPABASE_URL/rest/v1/repos?select=id" -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT" | python3 -c 'import json,sys; print(len(json.load(sys.stdin)))')" -[ "$COUNT" = "3" ] || fail "repo count = $COUNT, want 3 (beta = unlimited)" - -log "case 1b: beta unlocks multiple alert channels" -for t in one two three; do - curl -sf -X POST "$SUPABASE_URL/rest/v1/alert_channels" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" \ - -d '{"user_id":"'$USER_ID'","type":"ntfy","config":{"topic":"e2e-'$t'"}}' \ - || fail "channel $t rejected in beta" -done - -log "case 1c: agent config reports beta + unlimited entitlements" -API_KEY="$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["api_key"])' "$CREDS")" -curl -sf "$BASE_URL/api/v1/agents/config" -H "Authorization: Bearer $API_KEY" > "$WORK/config.json" -grep -q '"plan":"beta"' "$WORK/config.json" || fail "config plan not beta: $(cat "$WORK/config.json")" -grep -q '"max_repos":null' "$WORK/config.json" || fail "config max_repos not unlimited: $(cat "$WORK/config.json")" - -log "case 2: stripe checkout webhook records pro subscription (billing plumbing)" -CUS="cus_e2e_$(date +%s)" -SUB="sub_e2e_$(date +%s)" -PERIOD_END=$(python3 -c 'import time; print(int(time.time()) + 30*24*3600)') -cat > "$WORK/checkout.json" < "$WORK/subupdated.json" < "$WORK/subdeleted.json" < /dev/null || fail "existing repo broken by downgrade" - -log "all billing e2e cases passed" diff --git a/web/e2e/run.sh b/web/e2e/run.sh deleted file mode 100755 index 93c8b8a..0000000 --- a/web/e2e/run.sh +++ /dev/null @@ -1,144 +0,0 @@ -#!/usr/bin/env bash -# End-to-end acceptance test for Phase 3 (SPEC.md): control plane MVP. -# -# Proves: -# 1. fresh account → registration token → `restorable register` → agent key -# 2. a local `restorable test` run appears in the account's data (the same -# RLS-guarded rows the dashboard renders) within 10 seconds -# 3. registration tokens are single-use -# 4. RLS: user B cannot read user A's rows via direct PostgREST queries -# 5. /api/v1 rejects unauthenticated submissions -# -# Requirements: a running local Supabase stack (supabase start, from web/), -# the web app serving (PORT, default 3100), go, restic, python3. -set -euo pipefail - -BASE_URL="${BASE_URL:-http://localhost:3100}" -SUPABASE_URL="${SUPABASE_URL:-http://127.0.0.1:54321}" -ANON_KEY="${SUPABASE_ANON_KEY:?SUPABASE_ANON_KEY must be set (see supabase status)}" - -ROOT="$(cd "$(dirname "$0")/../.." && pwd)" -WORK="$(mktemp -d)" -trap 'rm -rf "$WORK"' EXIT - -log() { printf '\n==> %s\n' "$*"; } -fail() { printf 'E2E FAIL: %s\n' "$*" >&2; exit 1; } - -# jqpy FILTER FILE — tiny jq replacement using python3. -jqpy() { - python3 -c " -import json, sys -doc = json.load(open(sys.argv[2])) -for part in sys.argv[1].split('.'): - if part: - doc = doc[int(part)] if part.lstrip('-').isdigit() else doc[part] -print(doc if not isinstance(doc, (dict, list)) else json.dumps(doc)) -" "$1" "$2" -} - -# signup EMAIL → prints "user_id access_token" -signup() { - local out="$WORK/signup.json" - curl -sf -X POST "$SUPABASE_URL/auth/v1/signup" \ - -H "apikey: $ANON_KEY" -H "Content-Type: application/json" \ - -d "{\"email\":\"$1\",\"password\":\"e2e-password-123\"}" > "$out" \ - || fail "signup for $1" - echo "$(jqpy user.id "$out") $(jqpy access_token "$out")" -} - -log "creating users A and B" -STAMP="$(date +%s)" -read -r USER_A JWT_A <<< "$(signup "a-$STAMP@e2e.local")" -read -r USER_B JWT_B <<< "$(signup "b-$STAMP@e2e.local")" -[ -n "$USER_A" ] && [ -n "$JWT_B" ] || fail "user creation" - -log "user A mints a registration token (via PostgREST, RLS-scoped)" -TOKEN="rrt_$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')" -TOKEN_HASH="$(python3 -c "import hashlib,sys; print(hashlib.sha256(sys.argv[1].encode()).hexdigest())" "$TOKEN")" -curl -sf -X POST "$SUPABASE_URL/rest/v1/registration_tokens" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT_A" \ - -H "Content-Type: application/json" \ - -d "{\"user_id\":\"$USER_A\",\"token_hash\":\"$TOKEN_HASH\"}" \ - || fail "minting registration token" - -log "building agent and fixture repo" -BIN="$WORK/restorable" -(cd "$ROOT/agent" && go build -o "$BIN" .) -SRC="$WORK/src" -mkdir -p "$SRC" -echo "important data" > "$SRC/data.txt" -export RESTIC_PASSWORD="e2e-password" -restic -r "$WORK/repo" init -q -restic -r "$WORK/repo" backup -q "$SRC" -SANDBOX="$WORK/sandboxes"; mkdir -p "$SANDBOX" -printf 'name: e2e\nchecks:\n - type: files\n require:\n - path: data.txt\n' > "$WORK/recipe.yaml" -printf "repo: $WORK/repo\nrecipes: [recipe.yaml]\nsandbox:\n dir: $SANDBOX\n" > "$WORK/agent.yaml" - -log "registering agent with one-time token" -CREDS="$WORK/creds.json" -"$BIN" register --url "$BASE_URL" --token "$TOKEN" --name e2e-agent --credentials "$CREDS" \ - || fail "agent registration" -[ -f "$CREDS" ] || fail "credentials file not written" - -log "reusing the token must fail (single use)" -if "$BIN" register --url "$BASE_URL" --token "$TOKEN" --name sneaky --credentials "$WORK/creds2.json" 2>/dev/null; then - fail "token reuse was accepted" -fi - -log "running a local test with cloud reporting" -"$BIN" test --config "$WORK/agent.yaml" --credentials "$CREDS" > /dev/null || fail "restorable test" -FINISHED_AT_MS="$(python3 -c 'import time; print(int(time.time()*1000))')" - -log "run must appear in user A's data within 10 seconds" -DEADLINE=$((SECONDS + 10)) -RUNS="$WORK/runs.json" -while :; do - curl -sf "$SUPABASE_URL/rest/v1/test_runs?select=id,status,results,restore_duration_ms" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT_A" > "$RUNS" - COUNT="$(python3 -c "import json,sys; print(len(json.load(open(sys.argv[1]))))" "$RUNS")" - [ "$COUNT" -ge 1 ] && break - [ "$SECONDS" -lt "$DEADLINE" ] || fail "run did not appear within 10s" - sleep 1 -done -ELAPSED_MS=$(( $(python3 -c 'import time; print(int(time.time()*1000))') - FINISHED_AT_MS )) -echo " run visible ${ELAPSED_MS}ms after completion" -[ "$(jqpy 0.status "$RUNS")" = "pass" ] || fail "run status is not pass: $(cat "$RUNS")" -# The agent reports the restore phase timing (verified recovery time). -python3 -c ' -import json, sys -ms = json.load(open(sys.argv[1]))[0].get("restore_duration_ms") -assert isinstance(ms, int) and ms >= 0, f"restore_duration_ms = {ms!r}" -' "$RUNS" || fail "restore_duration_ms missing from stored run" - -curl -sf "$SUPABASE_URL/rest/v1/repos?select=label,fingerprint" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT_A" > "$WORK/repos.json" -[ "$(python3 -c "import json,sys; print(len(json.load(open(sys.argv[1]))))" "$WORK/repos.json")" -ge 1 ] \ - || fail "repo row missing for user A" - -log "RLS: user B must see nothing of user A's" -for table in test_runs repos agents registration_tokens; do - curl -sf "$SUPABASE_URL/rest/v1/$table?select=id" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $JWT_B" > "$WORK/b.json" - GOT="$(cat "$WORK/b.json")" - [ "$GOT" = "[]" ] || fail "user B can read $table: $GOT" -done -# Anonymous (no JWT) must also see nothing. -for table in test_runs repos agents; do - GOT="$(curl -s "$SUPABASE_URL/rest/v1/$table?select=id" -H "apikey: $ANON_KEY")" - [ "$GOT" = "[]" ] || echo "$GOT" | grep -q '"code"' || fail "anonymous can read $table: $GOT" -done - -log "/api/v1 must reject unauthenticated and garbage requests" -CODE="$(curl -s -o /dev/null -w '%{http_code}' -X POST "$BASE_URL/api/v1/runs" \ - -H "Content-Type: application/json" -d '{}')" -[ "$CODE" = "401" ] || fail "unauthenticated /runs returned $CODE, want 401" -API_KEY="$(jqpy api_key "$CREDS")" -CODE="$(curl -s -o /dev/null -w '%{http_code}' -X POST "$BASE_URL/api/v1/runs" \ - -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{"nope":1}')" -[ "$CODE" = "400" ] || fail "invalid payload returned $CODE, want 400" - -log "dashboard must be auth-gated" -CODE="$(curl -s -o /dev/null -w '%{http_code}' "$BASE_URL/dashboard")" -{ [ "$CODE" = "307" ] || [ "$CODE" = "302" ]; } || fail "/dashboard without session returned $CODE, want redirect" - -log "all control-plane e2e cases passed" diff --git a/web/e2e/sign-stripe-event.mjs b/web/e2e/sign-stripe-event.mjs deleted file mode 100644 index a734c98..0000000 --- a/web/e2e/sign-stripe-event.mjs +++ /dev/null @@ -1,24 +0,0 @@ -// Signs a synthetic Stripe webhook payload exactly the way Stripe would, -// using the SDK's own test helper, so the handler's signature verification -// runs its real code path. -// -// Usage: node sign-stripe-event.mjs < payload.json -// Output line 1: the stripe-signature header. The payload passes through -// unchanged (signature covers the exact bytes). -import Stripe from "stripe"; - -const secret = process.argv[2]; -if (!secret) { - console.error("usage: node sign-stripe-event.mjs < payload.json"); - process.exit(1); -} - -const chunks = []; -for await (const chunk of process.stdin) { - chunks.push(chunk); -} -const payload = Buffer.concat(chunks).toString("utf8"); - -const stripe = new Stripe("sk_test_dummy_key_for_signing_only"); -const header = stripe.webhooks.generateTestHeaderString({ payload, secret }); -console.log(header); diff --git a/web/e2e/telegram-connect.sh b/web/e2e/telegram-connect.sh deleted file mode 100755 index 31fc38d..0000000 --- a/web/e2e/telegram-connect.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env bash -# Verifies the Telegram deep-link connect flow end to end, and that it is -# private per user (the webhook only stamps the link matching the token): -# 1. a user starts connect → a telegram_links row + t.me deep link -# 2. the bot webhook (with the right secret) stamps chat_id for that token -# 3. the webhook rejects a wrong secret -# 4. a different user's token is untouched (no cross-user exposure) -set -euo pipefail - -BASE_URL="${BASE_URL:-http://localhost:3100}" -SUPABASE_URL="${SUPABASE_URL:-http://127.0.0.1:54321}" -ANON_KEY="${SUPABASE_ANON_KEY:?SUPABASE_ANON_KEY must be set}" -SERVICE_KEY="${SUPABASE_SERVICE_ROLE_KEY:?SUPABASE_SERVICE_ROLE_KEY must be set}" -WH_SECRET="${TELEGRAM_WEBHOOK_SECRET:-local-dev-tg-webhook}" - -WORK="$(mktemp -d)"; trap 'rm -rf "$WORK"' EXIT -log() { printf '\n==> %s\n' "$*"; } -fail() { printf 'E2E FAIL: %s\n' "$*" >&2; exit 1; } - -signup() { # email → prints "user_id token" - curl -sf -X POST "$SUPABASE_URL/auth/v1/signup" -H "apikey: $ANON_KEY" \ - -H "Content-Type: application/json" \ - -d "{\"email\":\"$1\",\"password\":\"e2e-password-123\"}" > "$WORK/u.json" - echo "$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1]))["user"]["id"])' "$WORK/u.json") \ -$(python3 -c 'import json,sys;print(json.load(open(sys.argv[1]))["access_token"])' "$WORK/u.json")" -} - -# mint a telegram_links token directly (mirrors startTelegramConnect) so the -# test does not need a browser. -mint_token() { # user_id jwt → prints token - local tok="tg_$(python3 -c 'import secrets;print(secrets.token_urlsafe(24))')" - curl -sf -X POST "$SUPABASE_URL/rest/v1/telegram_links" -H "apikey: $ANON_KEY" \ - -H "Authorization: Bearer $2" -H "Content-Type: application/json" \ - -d "{\"token\":\"$tok\",\"user_id\":\"$1\"}" >/dev/null - echo "$tok" -} - -webhook() { # token chat_id secret → http code - curl -s -o /dev/null -w '%{http_code}' -X POST "$BASE_URL/api/telegram/webhook" \ - -H "X-Telegram-Bot-Api-Secret-Token: $3" -H "Content-Type: application/json" \ - -d "{\"message\":{\"text\":\"/start $1\",\"chat\":{\"id\":$2,\"first_name\":\"Test\"}}}" -} - -chat_of() { # token jwt → chat_id (or empty) - curl -sf "$SUPABASE_URL/rest/v1/telegram_links?select=chat_id&token=eq.$1" \ - -H "apikey: $ANON_KEY" -H "Authorization: Bearer $2" \ - | python3 -c 'import json,sys;d=json.load(sys.stdin);print(d[0]["chat_id"] if d and d[0]["chat_id"] else "")' -} - -log "creating users A and B" -STAMP="$(date +%s)" -read -r UA JA <<< "$(signup "tg-a-$STAMP@e2e.local")" -read -r UB JB <<< "$(signup "tg-b-$STAMP@e2e.local")" - -TOKA="$(mint_token "$UA" "$JA")" -TOKB="$(mint_token "$UB" "$JB")" - -log "case 1: wrong webhook secret is rejected (401)" -CODE="$(webhook "$TOKA" 111 "wrong-secret")" -[ "$CODE" = "401" ] || fail "bad secret returned $CODE, want 401" -[ -z "$(chat_of "$TOKA" "$JA")" ] || fail "chat_id was stamped despite bad secret" - -log "case 2: correct webhook stamps A's chat_id" -CODE="$(webhook "$TOKA" 55501 "$WH_SECRET")" -[ "$CODE" = "200" ] || fail "valid webhook returned $CODE, want 200" -[ "$(chat_of "$TOKA" "$JA")" = "55501" ] || fail "A's chat_id not stamped" - -log "case 3: B's token is untouched (no cross-user exposure)" -[ -z "$(chat_of "$TOKB" "$JB")" ] || fail "B's link changed by A's connect — cross-user leak!" - -log "case 4: an unknown token is a harmless no-op (200, nothing created)" -CODE="$(webhook "nonexistent-token-xyz" 99999 "$WH_SECRET")" -[ "$CODE" = "200" ] || fail "unknown token returned $CODE, want 200" - -log "all telegram-connect e2e cases passed" diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs deleted file mode 100644 index 05e726d..0000000 --- a/web/eslint.config.mjs +++ /dev/null @@ -1,18 +0,0 @@ -import { defineConfig, globalIgnores } from "eslint/config"; -import nextVitals from "eslint-config-next/core-web-vitals"; -import nextTs from "eslint-config-next/typescript"; - -const eslintConfig = defineConfig([ - ...nextVitals, - ...nextTs, - // Override default ignores of eslint-config-next. - globalIgnores([ - // Default ignores of eslint-config-next: - ".next/**", - "out/**", - "build/**", - "next-env.d.ts", - ]), -]); - -export default eslintConfig; diff --git a/web/next.config.ts b/web/next.config.ts deleted file mode 100644 index e9ffa30..0000000 --- a/web/next.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { NextConfig } from "next"; - -const nextConfig: NextConfig = { - /* config options here */ -}; - -export default nextConfig; diff --git a/web/package-lock.json b/web/package-lock.json deleted file mode 100644 index 752cb9b..0000000 --- a/web/package-lock.json +++ /dev/null @@ -1,8938 +0,0 @@ -{ - "name": "web", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "web", - "version": "0.1.0", - "dependencies": { - "@aws-sdk/client-sesv2": "^3.1079.0", - "@supabase/ssr": "^0.12.0", - "@supabase/supabase-js": "^2.110.0", - "@vercel/analytics": "^2.0.1", - "@vercel/functions": "^3.7.5", - "next": "16.3.5", - "react": "19.2.4", - "react-dom": "19.2.4", - "server-only": "^0.0.1", - "stripe": "^22.3.0", - "zod": "^4.4.3" - }, - "devDependencies": { - "@tailwindcss/postcss": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "eslint": "^9", - "eslint-config-next": "16.3.5", - "tailwindcss": "^4", - "typescript": "^5", - "vitest": "^3.2.6" - } - }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@aws-sdk/client-sesv2": { - "version": "3.1079.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sesv2/-/client-sesv2-3.1079.0.tgz", - "integrity": "sha512-qxmbzwg7rRNk9zxGO/PeRQXsbSpU6FKSXbWBWMq860Fv1EH+JwDn9RZPv+RzWLqrBWC5VzQxJnwUnRUykyBn2g==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.27", - "@aws-sdk/credential-provider-node": "^3.972.62", - "@aws-sdk/signature-v4-multi-region": "^3.996.38", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/fetch-http-handler": "^5.6.2", - "@smithy/node-http-handler": "^4.9.2", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/core": { - "version": "3.974.28", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.974.28.tgz", - "integrity": "sha512-4/1DtLwgLqzIg2uFzkFaFjMQHhhhwHIZN4PfziIVqXYX7koO78omuchQlLHyzQBw80l255dtmTA/J4W5yhb7zw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.973.15", - "@aws-sdk/xml-builder": "^3.972.33", - "@aws/lambda-invoke-store": "^0.3.0", - "@smithy/core": "^3.29.0", - "@smithy/signature-v4": "^5.6.1", - "@smithy/types": "^4.15.1", - "bowser": "^2.11.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.972.54", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.54.tgz", - "integrity": "sha512-F4WQCG8GULIt+XrMHsqUM9dZc0eTwZM3HUWByOjIKOwBqJSzUxX8CFAtbgMvWfCua52FS1oi5FXarH3+khFq8A==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-http": { - "version": "3.972.56", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.56.tgz", - "integrity": "sha512-PiwHgEK2srdfi/lFveyQ+3w/qikyh6MKvuZAdlMC+dwQi4K5iVBr32oh7cugnYw+jA8iGtnQMhCGvLm/mqplmw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/fetch-http-handler": "^5.6.2", - "@smithy/node-http-handler": "^4.9.2", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.972.61", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.972.61.tgz", - "integrity": "sha512-9CZWMjhBlgfKlqJk40R7kvMOLEIoOr3HJ1J/ELjAH9H5LzR4bCxLujPVM/1PKAEjzSZKZCxWOalm7JUGZbhQqw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/credential-provider-env": "^3.972.54", - "@aws-sdk/credential-provider-http": "^3.972.56", - "@aws-sdk/credential-provider-login": "^3.972.60", - "@aws-sdk/credential-provider-process": "^3.972.54", - "@aws-sdk/credential-provider-sso": "^3.972.60", - "@aws-sdk/credential-provider-web-identity": "^3.972.60", - "@aws-sdk/nested-clients": "^3.997.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/credential-provider-imds": "^4.4.5", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-login": { - "version": "3.972.60", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.60.tgz", - "integrity": "sha512-Ak6OOrCbXvACyxLFIP1mcS+JTLS9ZpW1ZqyBtqu6axvdpsbG1gVNhUlAfQq8TK/gar/h2w35LrzlQU0PcUzJpw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/nested-clients": "^3.997.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.972.63", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.63.tgz", - "integrity": "sha512-YmgWtTPZDStyT74ApSHpApD3r7W9znsc+WEZjW0vceom+NAxRx9/F3TyukOKix8kJkPaa49aIREQJdpGeLDiEw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "^3.972.54", - "@aws-sdk/credential-provider-http": "^3.972.56", - "@aws-sdk/credential-provider-ini": "^3.972.61", - "@aws-sdk/credential-provider-process": "^3.972.54", - "@aws-sdk/credential-provider-sso": "^3.972.60", - "@aws-sdk/credential-provider-web-identity": "^3.972.60", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/credential-provider-imds": "^4.4.5", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.972.54", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.54.tgz", - "integrity": "sha512-UNmUjtTnp3wH3YTZcctN7yK17S2AdaJpiNIdIf0l70hHOdGuDfdMxk62P5rt64GwGm6qkFOYG0js/cU6cdZDdg==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.972.60", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.972.60.tgz", - "integrity": "sha512-zH8SvJkTRw1Kb7GARjGPjzkQPfL3jDi/OxK32I5SQq7bgwgFHJZaoDEwkEvFlfNfpByM6n4Rs20Y1mLyOdb6ag==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/nested-clients": "^3.997.28", - "@aws-sdk/token-providers": "3.1080.0", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.972.60", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.60.tgz", - "integrity": "sha512-q2rJSQ/AMjemUS18OtQqczqSo2R6VjOCLmLVmLVcdrP5/AKoj632lGCrMUWQ6EgnaLMEHbq0UO4mWh/u6gjPhA==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/nested-clients": "^3.997.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/nested-clients": { - "version": "3.997.28", - "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.28.tgz", - "integrity": "sha512-1oG/mM3jmE2M3kad2zWJS6IKIY8hjRV4l5kAgg+xTQdLMTtehhcSucL/y4WqQpcHmQwi6+gRK8E46GYl1NBW9Q==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/signature-v4-multi-region": "^3.996.38", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/fetch-http-handler": "^5.6.2", - "@smithy/node-http-handler": "^4.9.2", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/signature-v4-multi-region": { - "version": "3.996.38", - "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.38.tgz", - "integrity": "sha512-C379Sk+MiFZCfWZphKlMyLHKxV22OjoGM5KJjj5IJNJcOCWL4IGIpnEGzv1FQiRwhYXfq55SJMfxlqPE08JJ9g==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.973.15", - "@smithy/signature-v4": "^5.6.1", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/token-providers": { - "version": "3.1080.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1080.0.tgz", - "integrity": "sha512-8PufAQvncWXvdZUvODbuyXa8l3aszefEzwSMBUcgheNbZOmJMcNn388Ebt/piVrUHyxKN1MlxnR2OonzTyZaGw==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/core": "^3.974.28", - "@aws-sdk/nested-clients": "^3.997.28", - "@aws-sdk/types": "^3.973.15", - "@smithy/core": "^3.29.0", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/types": { - "version": "3.973.15", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.973.15.tgz", - "integrity": "sha512-IULn8uBV/SMtmOIANsm4WHXIOtVPBWfOWs3WGL0j/sI+KhaYehvOw0ET+9urnn8MBpiijuU/0JOpuwKOE451PQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws-sdk/xml-builder": { - "version": "3.972.33", - "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.33.tgz", - "integrity": "sha512-ezbwz9WpuLctm6o7P2t2naDhVVPI5jFGrVefVybhcKGjU57VIyT46pQVO0RI2RYkUdhdj2Z9uSIlAzGZE9NW9A==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@aws/lambda-invoke-store": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.3.0.tgz", - "integrity": "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", - "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.29.7", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", - "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", - "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-compilation-targets": "^7.29.7", - "@babel/helper-module-transforms": "^7.29.7", - "@babel/helpers": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", - "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.29.7", - "@babel/helper-validator-option": "^7.29.7", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", - "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", - "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", - "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", - "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", - "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", - "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.29.7" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/template": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", - "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", - "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", - "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@emnapi/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", - "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/wasi-threads": "1.2.1", - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/runtime": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", - "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", - "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz", - "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz", - "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz", - "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz", - "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz", - "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz", - "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz", - "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz", - "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz", - "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz", - "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz", - "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz", - "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz", - "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz", - "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz", - "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz", - "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz", - "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz", - "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz", - "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz", - "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz", - "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz", - "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz", - "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz", - "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz", - "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz", - "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", - "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz", - "integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.14.0", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.1", - "minimatch": "^3.1.5", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.4", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz", - "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/types": "^0.15.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@img/colour": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", - "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", - "license": "MIT", - "optional": true, - "engines": { - "node": ">=18" - } - }, - "node_modules/@img/sharp-darwin-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.4.tgz", - "integrity": "sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.3.3" - } - }, - "node_modules/@img/sharp-darwin-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.4.tgz", - "integrity": "sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.3.3" - } - }, - "node_modules/@img/sharp-freebsd-wasm32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.4.tgz", - "integrity": "sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==", - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "dependencies": { - "@img/sharp-wasm32": "0.35.4" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.3.tgz", - "integrity": "sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.3.tgz", - "integrity": "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.3.tgz", - "integrity": "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==", - "cpu": [ - "arm" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.3.tgz", - "integrity": "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.3.tgz", - "integrity": "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==", - "cpu": [ - "ppc64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.3.tgz", - "integrity": "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==", - "cpu": [ - "riscv64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.3.tgz", - "integrity": "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==", - "cpu": [ - "s390x" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.3.tgz", - "integrity": "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.3.tgz", - "integrity": "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.3.tgz", - "integrity": "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-linux-arm": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.4.tgz", - "integrity": "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==", - "cpu": [ - "arm" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.4.tgz", - "integrity": "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-ppc64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.4.tgz", - "integrity": "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==", - "cpu": [ - "ppc64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-riscv64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.4.tgz", - "integrity": "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==", - "cpu": [ - "riscv64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-s390x": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.4.tgz", - "integrity": "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==", - "cpu": [ - "s390x" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.4.tgz", - "integrity": "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.3.3" - } - }, - "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.4.tgz", - "integrity": "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" - } - }, - "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.4.tgz", - "integrity": "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.3.3" - } - }, - "node_modules/@img/sharp-wasm32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.4.tgz", - "integrity": "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==", - "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", - "optional": true, - "dependencies": { - "@emnapi/runtime": "^1.11.3" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-webcontainers-wasm32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.4.tgz", - "integrity": "sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==", - "cpu": [ - "wasm32" - ], - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/sharp-wasm32": "0.35.4" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.4.tgz", - "integrity": "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-ia32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.4.tgz", - "integrity": "sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==", - "cpu": [ - "ia32" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": "^20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.4.tgz", - "integrity": "sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz", - "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@tybys/wasm-util": "^0.10.3" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" - }, - "peerDependencies": { - "@emnapi/core": "^1.7.1", - "@emnapi/runtime": "^1.7.1" - } - }, - "node_modules/@next/env": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.3.5.tgz", - "integrity": "sha512-NWEXVDMqoEo0ktmU6u0sE2Vg0LOcsD7NnOTJNo3/fEaTfsg+F1bMIxuDmQbda4e3yTIQwVdUREF2yIuMOusKtg==", - "license": "MIT" - }, - "node_modules/@next/eslint-plugin-next": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.3.5.tgz", - "integrity": "sha512-PGfSeItHJ12DH8t+6sEbuMe59NE5rAhCfgk06QKTH2ne9VUL1JlaXdYXY3B8RaiF2SO50rDYvd39TulP6A6xZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "4.9.1", - "fast-glob": "3.3.1" - } - }, - "node_modules/@next/swc-darwin-arm64": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.3.5.tgz", - "integrity": "sha512-pMmGgETfKvElucLHtVaeiMRbp2zUbvKx7b1yGko0liBz3cw1mKSggWN/Rp/wPz8z+E1O82u3r4L1Co+ZS5hokQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-darwin-x64": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.3.5.tgz", - "integrity": "sha512-76VaGYvf6HPa5/w12yLkE3dXTn9AfdEviI79oEL3aZoAmRLc9rWitjWqyjViVysK/ht/y9YKzFkBrUdi/wGkow==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.3.5.tgz", - "integrity": "sha512-zKDELJ5jSQMHeO/hmXUQsAzagX4bQD4OiMi3pQ5FbUj+yK506oLVHnKA2YXMlbg1EHHqJYtyePOgByIDXD1lqw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.3.5.tgz", - "integrity": "sha512-7Vql0pgzCoHagv6+FNOZoqmJqA52c6zeVbhtS/47qFozO1MSx4ms7x7GHiciY8R5CDsSMKMQjJEryoJLcsBIbA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.3.5.tgz", - "integrity": "sha512-NH/xzehyHEFWE2nlcZon7TB/0+H4shfWCi7S1zka815XCOhJDYZhoeJtOYy0dh0WVRWACVXSyGNFFytoMxUhRg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.3.5.tgz", - "integrity": "sha512-lV4+EhWMfS8jcC+EH2nn/Cm5cn6XsgbE07bU9tMH8fCo0tNAqhyzi1b5wQ/Tn6NGFTvKDY65w3ZH95EjwBRAnQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.3.5.tgz", - "integrity": "sha512-/wKzAREX2RF++MhicjDbg8tGn2AiBIM0+EFeTFKoUEUbW5D6amCJehd5Z5G1H5/gxNdgnwoXMcHz24H/c2tGkQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.3.5.tgz", - "integrity": "sha512-LNdCHzgLFc+UeqMS84LzXPaeBRKyqDN9OMyFAr1OrB0XrNw78IRrEVtZvvA7245W/HsaoeVOQX9jPjPk8jojwA==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nolyfill/is-core-module": { - "version": "1.0.39", - "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", - "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.4.0" - } - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz", - "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz", - "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz", - "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz", - "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz", - "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz", - "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz", - "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz", - "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz", - "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz", - "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz", - "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz", - "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz", - "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz", - "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz", - "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz", - "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz", - "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz", - "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz", - "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz", - "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz", - "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz", - "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz", - "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz", - "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz", - "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rtsao/scc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", - "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", - "dev": true, - "license": "MIT" - }, - "node_modules/@smithy/core": { - "version": "3.29.1", - "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.29.1.tgz", - "integrity": "sha512-qoiY4nrk5OCu1+eIR1VB8l5DmON/oKiqrd5zZFAhXJXjJlLWQusKEW/SkBDAtGDcPaz86m9kfcE1lngU0GlM6A==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@smithy/credential-provider-imds": { - "version": "4.4.6", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.4.6.tgz", - "integrity": "sha512-B2WQ/PV/H6Jeg3lrIq6bKUfa6Hy01mtK7CGs6lhjzHA6k4aagldH6T6eEjnzKl4HI0cJnAsxfJ19pgb5PV+CVQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^3.29.1", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@smithy/fetch-http-handler": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.6.3.tgz", - "integrity": "sha512-CwCc/7SMTj45y97MUnDTbTaxvtAsiNNRm81z3abROIuMbMsC2Iy5EKfkkVdsKrz8WExQAAMx1EJapq+9j4fFTQ==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^3.29.1", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@smithy/node-http-handler": { - "version": "4.9.3", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.9.3.tgz", - "integrity": "sha512-qZTa4gQFUo8RM02rk6q5UVTDLNrQ1oS20LsepBzqq1QBVc/EHJ03OOUADcqMZiXHArW+Y7+OGY0BpdTwZRq/Yg==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^3.29.1", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@smithy/signature-v4": { - "version": "5.6.2", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.6.2.tgz", - "integrity": "sha512-QgHflghMoPxCJ9axiCVh8KZfbC9fuP6vkXXyK//E3cq7nLaSSyyLj0GAoqVWezYeDQmXIZhmlRvLE16jsqDK6g==", - "license": "Apache-2.0", - "dependencies": { - "@smithy/core": "^3.29.1", - "@smithy/types": "^4.15.1", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@smithy/types": { - "version": "4.15.1", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.15.1.tgz", - "integrity": "sha512-x3L0XSACF6UYzKpa9biqiRMgvH5+wnFFew9Tm/grFYqgaupPwx/+ojDPpPJM8dZON3S9tjz5U+PQYsCBd1Mw5Q==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@supabase/auth-js": { - "version": "2.110.0", - "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.110.0.tgz", - "integrity": "sha512-Mi288WCTp6wxMFCOu/UgzgHEXODjdl2uVTLqK11eanzGZaldU3RyP8Am+ZbNuVzFP+5+iOvppxzv7N5Ym84xTg==", - "license": "MIT", - "dependencies": { - "tslib": "2.8.1" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@supabase/functions-js": { - "version": "2.110.0", - "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.110.0.tgz", - "integrity": "sha512-Fde5wlY8ZZy+9yqrWlQHo8MacSyUBArBEtN2boB4thJQigPnQD/cc61qZN0n3I1L0gwhWtHYwIMnOBKxSvF6Hw==", - "license": "MIT", - "dependencies": { - "tslib": "2.8.1" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@supabase/phoenix": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/@supabase/phoenix/-/phoenix-0.4.4.tgz", - "integrity": "sha512-Gt0pqoXuIqX/8dvG0OKp/wMCobXNH3klNbUPBNyOfN0YA1IswrM3HyWFMOPk1Jy+BRaIyDPcFx4jLBwHNmlyfQ==", - "license": "MIT" - }, - "node_modules/@supabase/postgrest-js": { - "version": "2.110.0", - "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.110.0.tgz", - "integrity": "sha512-ZbC1QZL3jcvBUfVKjJbgRM27G4Mg3Zzqdm44m5pJafe1e52Cli793EOnwQucomBAGEUDd03Nzaf7XV3ji/XexQ==", - "license": "MIT", - "dependencies": { - "tslib": "2.8.1" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@supabase/realtime-js": { - "version": "2.110.0", - "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.110.0.tgz", - "integrity": "sha512-Wn2AWpneZuDFTkp/65tqctvoh+3JvyTjMam8sTMqVWy5BgkU8zAvFwilPYPPPhkINeKF8NAJKP7FclJ2iGCUMw==", - "license": "MIT", - "dependencies": { - "@supabase/phoenix": "0.4.4", - "tslib": "2.8.1" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@supabase/ssr": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@supabase/ssr/-/ssr-0.12.0.tgz", - "integrity": "sha512-d9XV5XzJvzzZbeAIM7fWTCUYxQJZ2Ru6ny3dJHmHGp/LIrJ+o9FpD7N9Rf/UhhWEvHXSoDe8SI32Z2ouOdMjBg==", - "license": "MIT", - "dependencies": { - "cookie": "^1.0.2" - }, - "peerDependencies": { - "@supabase/supabase-js": "^2.108.0" - } - }, - "node_modules/@supabase/storage-js": { - "version": "2.110.0", - "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.110.0.tgz", - "integrity": "sha512-71+gU3HrhiylAhftY6FmO5PPdcsScnVcS766CVD+vTYK9qTDLbrx8FhgBYbqGm3iV/wkTfzrNJfjGsMeFRkJRQ==", - "license": "MIT", - "dependencies": { - "iceberg-js": "^0.8.1", - "tslib": "2.8.1" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@supabase/supabase-js": { - "version": "2.110.0", - "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.110.0.tgz", - "integrity": "sha512-8yI84VJiEVW4zxZpLUmxXmjzQ7O2St9X/ymzlBETDHTURPWG3LmvbSiibq+7dqAJmyoUfxZnSfXeM4HCM8s4XQ==", - "license": "MIT", - "dependencies": { - "@supabase/auth-js": "2.110.0", - "@supabase/functions-js": "2.110.0", - "@supabase/postgrest-js": "2.110.0", - "@supabase/realtime-js": "2.110.0", - "@supabase/storage-js": "2.110.0" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@swc/helpers": { - "version": "0.5.23", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", - "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.8.0" - } - }, - "node_modules/@tailwindcss/node": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.2.tgz", - "integrity": "sha512-yWP/sqEcBLaD8JuA6zNwxoYKr75qxTioYwlRwekj5Jr/I5GXnoJfjetH/psLUIv74cYTH2lBUEzBkinthoYcBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/remapping": "^2.3.5", - "enhanced-resolve": "5.21.6", - "jiti": "^2.7.0", - "lightningcss": "1.32.0", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.3.2" - } - }, - "node_modules/@tailwindcss/oxide": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.2.tgz", - "integrity": "sha512-z8ZgnzX8gdNoWLBLqBPoh/sjnxkwvf9ZuWjnO0l0yIzbLa5/9S+eC5QxGZKRobVHIC3/1BoMWjHblqWjcgFgag==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 20" - }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.3.2", - "@tailwindcss/oxide-darwin-arm64": "4.3.2", - "@tailwindcss/oxide-darwin-x64": "4.3.2", - "@tailwindcss/oxide-freebsd-x64": "4.3.2", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.2", - "@tailwindcss/oxide-linux-arm64-gnu": "4.3.2", - "@tailwindcss/oxide-linux-arm64-musl": "4.3.2", - "@tailwindcss/oxide-linux-x64-gnu": "4.3.2", - "@tailwindcss/oxide-linux-x64-musl": "4.3.2", - "@tailwindcss/oxide-wasm32-wasi": "4.3.2", - "@tailwindcss/oxide-win32-arm64-msvc": "4.3.2", - "@tailwindcss/oxide-win32-x64-msvc": "4.3.2" - } - }, - "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.2.tgz", - "integrity": "sha512-WHxqIuHpvZ5VtdX6GTl1Ik/Vp2YuN42Et+0CdeaVd/frQ9jAvGmvR8vLT+jk3e8/Q3x8kECB9+R17pgpp2BulA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.2.tgz", - "integrity": "sha512-GZypeUY/IDJW3877KeM+O67vbXr3MBnbtEL4aYhNErv/JWZhye2vGSWWG9tB6iiqR2MqRNkY8IOUy4NdSZV26w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.2.tgz", - "integrity": "sha512-UIIzmefR6KO1sDU7MzRqAxC8iBpft/VhkGjTjnhoS6k7Z3rQ9wEgA1ODSiyH/tcSYssulNm4Ci3hOeK1jH7ccQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.2.tgz", - "integrity": "sha512-GN+uAmcI6DNspnCDwtOAZrTz6oukJnp337qZvxqCGLd3BHBzJpO0ZbTLRvJNdztOeAmTzewewGIMPb0tk2R4WA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.2.tgz", - "integrity": "sha512-4ABn7qSbdHRwTiDiuWNegCyb5+2FJ4vKIKc3DmKrvAFw7MU1Lm11dIkTPwUaFdTzc7IsOpDbqBrlh0x6y36U/w==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.2.tgz", - "integrity": "sha512-wDgEIGwoM8w8pufh9LVt1PahDgNdKXrLC2qfAnV3vAmococ9RWbxeAw4pxPttd/TsJfwjyLf90Dg1y9y8I6Emw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.2.tgz", - "integrity": "sha512-J5Nuk0uZQIiMTJj3LEx4sAA9tMFUoXQZFv1J6An+QGYe53HKRJuFDi0rpq/tuouCZeAbOBY3kQ6g8qeD4TUjtA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.2.tgz", - "integrity": "sha512-kqCZpSKOBEJO4mz7OqWoofBZeXTAwaVGPj0ErAj7CojmhKpWVWVOnrt9dE8odoIraZq4oj3ausM37kXi+Tow8w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.2.tgz", - "integrity": "sha512-cixpqbh2toJDmkuCRI68nXA8ZxNmdK9Y+9v5h3MC3ZQKy/0BO8AWzlkWyRM7JAFSGBlfig4YVTPsK6MVgqz1uw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.2.tgz", - "integrity": "sha512-4ec2Z/LOmRsAgU23CS4xeJfcJlmRg94A/XrbGRCF1gyU/zdDfRLYDVsS+ynSZCmGNxQ1jQriQOKMQeQxBA3Isw==", - "bundleDependencies": [ - "@napi-rs/wasm-runtime", - "@emnapi/core", - "@emnapi/runtime", - "@tybys/wasm-util", - "@emnapi/wasi-threads", - "tslib" - ], - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.11.1", - "@emnapi/runtime": "^1.11.1", - "@emnapi/wasi-threads": "^1.2.2", - "@napi-rs/wasm-runtime": "^1.1.4", - "@tybys/wasm-util": "^0.10.2", - "tslib": "^2.8.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.2.tgz", - "integrity": "sha512-Zyr/M0+XcYZu3bZrUytc7TXvrk0ftWfl8gN2MwekNDzhqhKRUucMPSeOzM0o0wH5AWOU49BsKRrfKxI2atCPMQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.2.tgz", - "integrity": "sha512-QI9BO7KlNZsp2GuO0jwAAj5jCDABOKXRkCk2XuKTSaNEFSdfzqswYVTtCHBNKHLsqyjFyFkqlDiwkNbTYSssMQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/postcss": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.2.tgz", - "integrity": "sha512-rjVWYCa7Ngbi5AarT6k8TkxUG3Wl1QKzHdIZVsjZSzf36Jmo2IKZt/NHRAwly8oDkbBOH0YTu+CHuf9jPxMc+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "@tailwindcss/node": "4.3.2", - "@tailwindcss/oxide": "4.3.2", - "postcss": "^8.5.15", - "tailwindcss": "4.3.2" - } - }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", - "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@types/chai": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", - "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "20.19.43", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", - "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", - "devOptional": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@types/react": { - "version": "19.2.17", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz", - "integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==", - "dev": true, - "license": "MIT", - "dependencies": { - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "19.2.3", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", - "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^19.2.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.62.1.tgz", - "integrity": "sha512-4EQM77WgVNxj7OkL/5b/D/xZsw00G577+UriYTC7JF5opcF3T2AuoeY7ueLaZgSVjSgCS6yOAJB5bRGLPSJUzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.62.1", - "@typescript-eslint/type-utils": "8.62.1", - "@typescript-eslint/utils": "8.62.1", - "@typescript-eslint/visitor-keys": "8.62.1", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.62.1", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.62.1.tgz", - "integrity": "sha512-sPhE4iHuJDSvoAiec+Ro8JyXw8f0ql13HFR82P99nCm9GwTEKG0KYLvDe6REk8BCXuit6vJAv/Yxg5ABaNS2rA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.62.1", - "@typescript-eslint/types": "8.62.1", - "@typescript-eslint/typescript-estree": "8.62.1", - "@typescript-eslint/visitor-keys": "8.62.1", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.62.1.tgz", - "integrity": "sha512-yQ3RgY5RkSBpsNS1Bx/JQEcA24FOSdfGktoyprAr5u18390UQdtVcfnEv4nIrIshNnavlVyZBKxQwT1fIAE6cg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.62.1", - "@typescript-eslint/types": "^8.62.1", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.62.1.tgz", - "integrity": "sha512-r4d249KbQ1SFdpeStvob8Ih6aPPIzfqllPVOtvhve6ZcpuVcYo5/7zUWckKpHE7StASX4kTKZTLf0WQm/wPkcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.62.1", - "@typescript-eslint/visitor-keys": "8.62.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.62.1.tgz", - "integrity": "sha512-xadytJqX9vJVQ2fdQjkcIVigwaOJNWkpjdLt6cEQ+xPnrI1fkp+/jZE/I97k9KUjqtpd25i0HeyZf3T6dutv2g==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.62.1.tgz", - "integrity": "sha512-aXM5xlqXiTxPibXB93cLAURfT3rlizf7uMXISCXy66Isr/9hISJx3yDsKl0L7lKa51b8JpFuNKby0/O0pEm9jg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.62.1", - "@typescript-eslint/typescript-estree": "8.62.1", - "@typescript-eslint/utils": "8.62.1", - "debug": "^4.4.3", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.62.1.tgz", - "integrity": "sha512-ooCzJFaf+Hg+uG6fA3NRFGuFjlfNlDhBthbv4ZPU/0elCAFUfnyXUvf/WOpHz/jYwSmvU2GkR2LtyUfy1AxZ1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.62.1.tgz", - "integrity": "sha512-xMcW9oP9u7fAMXYs9A65CVmtLQe2r//oXINHfi8HV+oiqhih17sbLdhXr4540YWlgpDKQdY854OL5ZrdCiQsAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.62.1", - "@typescript-eslint/tsconfig-utils": "8.62.1", - "@typescript-eslint/types": "8.62.1", - "@typescript-eslint/visitor-keys": "8.62.1", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", - "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.5" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.62.1.tgz", - "integrity": "sha512-sHtbPfuKNZCG+ih8SyjjucqRntSVmp8XgL5u6o9mAhiSn8ds5o/M/XdM0abweme2Tln3szOstOrZ9OXitvPh0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.62.1", - "@typescript-eslint/types": "8.62.1", - "@typescript-eslint/typescript-estree": "8.62.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.62.1.tgz", - "integrity": "sha512-4g3BLxfdTMy8iZG0MaBkadnlRrCJ74cQiFbyEVMrkwIoqdyaXXQM22cotDvrl4x28wgIZ9rEJRoM+mmhSJpJ1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.62.1", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@unrs/resolver-binding-android-arm-eabi": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.12.2.tgz", - "integrity": "sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-android-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.12.2.tgz", - "integrity": "sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.12.2.tgz", - "integrity": "sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-x64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.12.2.tgz", - "integrity": "sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-freebsd-x64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.12.2.tgz", - "integrity": "sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.12.2.tgz", - "integrity": "sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.12.2.tgz", - "integrity": "sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.12.2.tgz", - "integrity": "sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.12.2.tgz", - "integrity": "sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-loong64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-gnu/-/resolver-binding-linux-loong64-gnu-1.12.2.tgz", - "integrity": "sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-loong64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-loong64-musl/-/resolver-binding-linux-loong64-musl-1.12.2.tgz", - "integrity": "sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.12.2.tgz", - "integrity": "sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.12.2.tgz", - "integrity": "sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.12.2.tgz", - "integrity": "sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.12.2.tgz", - "integrity": "sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-gnu": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.12.2.tgz", - "integrity": "sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-musl": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.12.2.tgz", - "integrity": "sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-openharmony-arm64": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-openharmony-arm64/-/resolver-binding-openharmony-arm64-1.12.2.tgz", - "integrity": "sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.12.2.tgz", - "integrity": "sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==", - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "1.10.0", - "@emnapi/runtime": "1.10.0", - "@napi-rs/wasm-runtime": "^1.1.4" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi/node_modules/@emnapi/runtime": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", - "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.12.2.tgz", - "integrity": "sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.12.2.tgz", - "integrity": "sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-x64-msvc": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.12.2.tgz", - "integrity": "sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@vercel/analytics": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-2.0.1.tgz", - "integrity": "sha512-MTQG6V9qQrt1tsDeF+2Uoo5aPjqbVPys1xvnIftXSJYG2SrwXRHnqEvVoYID7BTruDz4lCd2Z7rM1BdkUehk2g==", - "license": "MIT", - "peerDependencies": { - "@remix-run/react": "^2", - "@sveltejs/kit": "^1 || ^2", - "next": ">= 13", - "nuxt": ">= 3", - "react": "^18 || ^19 || ^19.0.0-rc", - "svelte": ">= 4", - "vue": "^3", - "vue-router": "^4" - }, - "peerDependenciesMeta": { - "@remix-run/react": { - "optional": true - }, - "@sveltejs/kit": { - "optional": true - }, - "next": { - "optional": true - }, - "nuxt": { - "optional": true - }, - "react": { - "optional": true - }, - "svelte": { - "optional": true - }, - "vue": { - "optional": true - }, - "vue-router": { - "optional": true - } - } - }, - "node_modules/@vercel/cli-config": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@vercel/cli-config/-/cli-config-0.2.0.tgz", - "integrity": "sha512-fJRRRB7734BDuXZ89yBEaA2ncYhH7bWX30mk04W80J6VAfQc+4iB8lyzAdaGpFV3/vNlkt9VZt+/uoQoWX6UsQ==", - "license": "Apache-2.0", - "dependencies": { - "xdg-app-paths": "5", - "zod": "4.1.11" - } - }, - "node_modules/@vercel/cli-config/node_modules/zod": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.11.tgz", - "integrity": "sha512-WPsqwxITS2tzx1bzhIKsEs19ABD5vmCVa4xBo2tq/SrV4RNZtfws1EnCWQXM6yh8bD08a1idvkB5MZSBiZsjwg==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/@vercel/cli-exec": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@vercel/cli-exec/-/cli-exec-1.0.0.tgz", - "integrity": "sha512-kQF8LGie/Hbdq9/psJxLE7owRTcqMQMhgybU04gCeR7cbQAr5t8OrjefDNColJv1QSSucFt4pLwRiARVmlOnug==", - "license": "Apache-2.0", - "dependencies": { - "execa": "5.1.1" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@vercel/functions": { - "version": "3.7.5", - "resolved": "https://registry.npmjs.org/@vercel/functions/-/functions-3.7.5.tgz", - "integrity": "sha512-ESf8BbeDebqRUyMi09JwRbQqpLn4g6fjcVVHPsHB56j2dSqRrSHO4h3X4aaxJf6iQQjzhAtDGI2xCWQ27JE8PA==", - "license": "Apache-2.0", - "dependencies": { - "@vercel/oidc": "3.8.0" - }, - "engines": { - "node": ">= 20" - }, - "peerDependencies": { - "@aws-sdk/credential-provider-web-identity": "*", - "ws": ">=8" - }, - "peerDependenciesMeta": { - "@aws-sdk/credential-provider-web-identity": { - "optional": true - }, - "ws": { - "optional": true - } - } - }, - "node_modules/@vercel/oidc": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/@vercel/oidc/-/oidc-3.8.0.tgz", - "integrity": "sha512-r00laGW6Pv778RoR6M2NxX91ycSj+PBwVo+fOb9Bif+F0IyUKt25zrvBzfEzQpeAzbqOgPZyQibEWDdDFApd+A==", - "license": "Apache-2.0", - "dependencies": { - "@vercel/cli-config": "0.2.0", - "@vercel/cli-exec": "1.0.0", - "jose": "^5.9.6" - }, - "engines": { - "node": ">= 20" - } - }, - "node_modules/@vitest/expect": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.7.tgz", - "integrity": "sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/spy": "3.2.7", - "@vitest/utils": "3.2.7", - "chai": "^5.2.0", - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/mocker": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.7.tgz", - "integrity": "sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "3.2.7", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.17" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/pretty-format": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.7.tgz", - "integrity": "sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.7.tgz", - "integrity": "sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/utils": "3.2.7", - "pathe": "^2.0.3", - "strip-literal": "^3.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/snapshot": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.7.tgz", - "integrity": "sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.2.7", - "magic-string": "^0.30.17", - "pathe": "^2.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/spy": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.7.tgz", - "integrity": "sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyspy": "^4.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/utils": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.7.tgz", - "integrity": "sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "3.2.7", - "loupe": "^3.1.4", - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/acorn": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz", - "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/aria-query": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", - "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", - "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-includes": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", - "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.0", - "es-object-atoms": "^1.1.1", - "get-intrinsic": "^1.3.0", - "is-string": "^1.1.1", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlast": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", - "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlastindex": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", - "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-shim-unscopables": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", - "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", - "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", - "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3", - "es-errors": "^1.3.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", - "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/ast-types-flow": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", - "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/async-function": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", - "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axe-core": { - "version": "4.12.1", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.12.1.tgz", - "integrity": "sha512-s7iGf5GaVMxEG0ENN9x+xTr7GFZCb1ZP/1uATUpCEK2X78nDB3RwbtFCo9pGAf9ru+VwoQ464DkaLEeRM08wJA==", - "dev": true, - "license": "MPL-2.0", - "engines": { - "node": ">=4" - } - }, - "node_modules/axobject-query": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", - "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.11.24", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.24.tgz", - "integrity": "sha512-hYrgxie335U08WqICoGqKRzV1HFXv6zdxwJE4ekCb80CM9a0SVVsN4QPwT67RraRo+9h8IATk6uxHJw7QSkdOg==", - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/bowser": { - "version": "2.14.1", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.14.1.tgz", - "integrity": "sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==", - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz", - "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.11.23", - "caniuse-lite": "^1.0.30001810", - "electron-to-chromium": "^1.5.427", - "node-releases": "^2.0.55", - "update-browserslist-db": "^1.3.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001810", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", - "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chai": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz", - "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/check-error": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz", - "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - } - }, - "node_modules/client-only": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", - "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", - "license": "MIT" - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cookie": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", - "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/data-view-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", - "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", - "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/inspect-js" - } - }, - "node_modules/data-view-byte-offset": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", - "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-eql": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz", - "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "devOptional": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.5.429", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.429.tgz", - "integrity": "sha512-/1ENIE3cx4HTIx4IfPZFaOunJmsrSVTnj6coXoRVbiJUbkeTyFkJvBeWGkdgh08OhFbxYLMT1kbkwFVSarq6Ow==", - "dev": true, - "license": "ISC" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/enhanced-resolve": { - "version": "5.21.6", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.6.tgz", - "integrity": "sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/es-abstract": { - "version": "1.24.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", - "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.2", - "arraybuffer.prototype.slice": "^1.0.4", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "data-view-buffer": "^1.0.2", - "data-view-byte-length": "^1.0.2", - "data-view-byte-offset": "^1.0.1", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-set-tostringtag": "^2.1.0", - "es-to-primitive": "^1.3.0", - "function.prototype.name": "^1.1.8", - "get-intrinsic": "^1.3.0", - "get-proto": "^1.0.1", - "get-symbol-description": "^1.1.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "internal-slot": "^1.1.0", - "is-array-buffer": "^3.0.5", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.2", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.2.1", - "is-set": "^2.0.3", - "is-shared-array-buffer": "^1.0.4", - "is-string": "^1.1.1", - "is-typed-array": "^1.1.15", - "is-weakref": "^1.1.1", - "math-intrinsics": "^1.1.0", - "object-inspect": "^1.13.4", - "object-keys": "^1.1.1", - "object.assign": "^4.1.7", - "own-keys": "^1.0.1", - "regexp.prototype.flags": "^1.5.4", - "safe-array-concat": "^1.1.3", - "safe-push-apply": "^1.0.0", - "safe-regex-test": "^1.1.0", - "set-proto": "^1.0.0", - "stop-iteration-iterator": "^1.1.0", - "string.prototype.trim": "^1.2.10", - "string.prototype.trimend": "^1.0.9", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.3", - "typed-array-byte-length": "^1.0.3", - "typed-array-byte-offset": "^1.0.4", - "typed-array-length": "^1.0.7", - "unbox-primitive": "^1.1.0", - "which-typed-array": "^1.1.19" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-abstract-get": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", - "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "is-callable": "^1.2.7", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-iterator-helpers": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.3.3.tgz", - "integrity": "sha512-0PuBxFi+4uPanB97iDxCLWuHeYud2FALrw5HFZGtAF38UpJDbDC8frwp2cnDyae692CQ0dou60UwWfhgsa4U/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.1.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.3.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "iterator.prototype": "^1.1.5", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-module-lexer": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", - "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", - "dev": true, - "license": "MIT" - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", - "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", - "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-abstract-get": "^1.0.0", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "is-callable": "^1.2.7", - "is-date-object": "^1.1.0", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/esbuild": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz", - "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.28.1", - "@esbuild/android-arm": "0.28.1", - "@esbuild/android-arm64": "0.28.1", - "@esbuild/android-x64": "0.28.1", - "@esbuild/darwin-arm64": "0.28.1", - "@esbuild/darwin-x64": "0.28.1", - "@esbuild/freebsd-arm64": "0.28.1", - "@esbuild/freebsd-x64": "0.28.1", - "@esbuild/linux-arm": "0.28.1", - "@esbuild/linux-arm64": "0.28.1", - "@esbuild/linux-ia32": "0.28.1", - "@esbuild/linux-loong64": "0.28.1", - "@esbuild/linux-mips64el": "0.28.1", - "@esbuild/linux-ppc64": "0.28.1", - "@esbuild/linux-riscv64": "0.28.1", - "@esbuild/linux-s390x": "0.28.1", - "@esbuild/linux-x64": "0.28.1", - "@esbuild/netbsd-arm64": "0.28.1", - "@esbuild/netbsd-x64": "0.28.1", - "@esbuild/openbsd-arm64": "0.28.1", - "@esbuild/openbsd-x64": "0.28.1", - "@esbuild/openharmony-arm64": "0.28.1", - "@esbuild/sunos-x64": "0.28.1", - "@esbuild/win32-arm64": "0.28.1", - "@esbuild/win32-ia32": "0.28.1", - "@esbuild/win32-x64": "0.28.1" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.4", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz", - "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.2", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.5", - "@eslint/js": "9.39.4", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.14.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.5", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-config-next": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.3.5.tgz", - "integrity": "sha512-wPjq9MLQuWykHs8tsm2gH6OJThk6N27L8Te2JatlaGZ7jT1gtgGmJKukygL28xOlWsg5J1a1bGy/PvLyQC8OYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@next/eslint-plugin-next": "16.3.5", - "eslint-import-resolver-node": "^0.3.6", - "eslint-import-resolver-typescript": "^3.5.2", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-react": "^7.37.0", - "eslint-plugin-react-hooks": "^7.0.0", - "globals": "16.4.0", - "typescript-eslint": "^8.46.0" - }, - "peerDependencies": { - "eslint": ">=9.0.0", - "typescript": ">=3.3.1" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/eslint-config-next/node_modules/globals": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", - "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.10.tgz", - "integrity": "sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.16.1", - "resolve": "^2.0.0-next.6" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-import-resolver-typescript": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", - "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@nolyfill/is-core-module": "1.0.39", - "debug": "^4.4.0", - "get-tsconfig": "^4.10.0", - "is-bun-module": "^2.0.0", - "stable-hash": "^0.0.5", - "tinyglobby": "^0.2.13", - "unrs-resolver": "^1.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-import-resolver-typescript" - }, - "peerDependencies": { - "eslint": "*", - "eslint-plugin-import": "*", - "eslint-plugin-import-x": "*" - }, - "peerDependenciesMeta": { - "eslint-plugin-import": { - "optional": true - }, - "eslint-plugin-import-x": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.14.0.tgz", - "integrity": "sha512-W2WCRZ9Dqntd+2u8jJcVMV2PKulc6RdLgUUoh/yQr3uB6lo/ZOeGx11sv60/8S4QFFKNslAlWhr9u0Ef7ZW6Ig==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.32.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", - "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.9", - "array.prototype.findlastindex": "^1.2.6", - "array.prototype.flat": "^1.3.3", - "array.prototype.flatmap": "^1.3.3", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.1", - "hasown": "^2.0.2", - "is-core-module": "^2.16.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "object.groupby": "^1.0.3", - "object.values": "^1.2.1", - "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.9", - "tsconfig-paths": "^3.15.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-jsx-a11y": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", - "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "aria-query": "^5.3.2", - "array-includes": "^3.1.8", - "array.prototype.flatmap": "^1.3.2", - "ast-types-flow": "^0.0.8", - "axe-core": "^4.10.0", - "axobject-query": "^4.1.0", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "hasown": "^2.0.2", - "jsx-ast-utils": "^3.3.5", - "language-tags": "^1.0.9", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "safe-regex-test": "^1.0.3", - "string.prototype.includes": "^2.0.1" - }, - "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" - } - }, - "node_modules/eslint-plugin-react": { - "version": "7.37.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", - "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.8", - "array.prototype.findlast": "^1.2.5", - "array.prototype.flatmap": "^1.3.3", - "array.prototype.tosorted": "^1.1.4", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.2.1", - "estraverse": "^5.3.0", - "hasown": "^2.0.2", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.9", - "object.fromentries": "^2.0.8", - "object.values": "^1.2.1", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.5", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.12", - "string.prototype.repeat": "^1.0.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz", - "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.24.4", - "@babel/parser": "^7.24.4", - "hermes-parser": "^0.25.1", - "zod": "^3.25.0 || ^4.0.0", - "zod-validation-error": "^3.5.0 || ^4.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "license": "MIT", - "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" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/expect-type": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", - "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fastq": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", - "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", - "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", - "dev": true, - "license": "ISC" - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", - "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2", - "hasown": "^2.0.4", - "is-callable": "^1.2.7", - "is-document.all": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", - "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-tsconfig": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz", - "integrity": "sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", - "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hermes-estree": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", - "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", - "dev": true, - "license": "MIT" - }, - "node_modules/hermes-parser": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", - "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hermes-estree": "0.25.1" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iceberg-js": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz", - "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==", - "license": "MIT", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", - "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-async-function": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", - "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "async-function": "^1.0.0", - "call-bound": "^1.0.3", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bun-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", - "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.7.1" - } - }, - "node_modules/is-bun-module/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.16.2", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.2.tgz", - "integrity": "sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hasown": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-data-view": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", - "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-document.all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", - "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-finalizationregistry": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", - "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", - "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", - "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", - "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", - "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "license": "ISC" - }, - "node_modules/iterator.prototype": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", - "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.6", - "get-proto": "^1.0.0", - "has-symbols": "^1.1.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/jiti": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", - "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/jose": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.10.0.tgz", - "integrity": "sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsx-ast-utils": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", - "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "object.assign": "^4.1.4", - "object.values": "^1.1.6" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/language-subtag-registry": { - "version": "0.3.23", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", - "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", - "dev": true, - "license": "CC0-1.0" - }, - "node_modules/language-tags": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", - "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", - "dev": true, - "license": "MIT", - "dependencies": { - "language-subtag-registry": "^0.3.20" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", - "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.32.0", - "lightningcss-darwin-arm64": "1.32.0", - "lightningcss-darwin-x64": "1.32.0", - "lightningcss-freebsd-x64": "1.32.0", - "lightningcss-linux-arm-gnueabihf": "1.32.0", - "lightningcss-linux-arm64-gnu": "1.32.0", - "lightningcss-linux-arm64-musl": "1.32.0", - "lightningcss-linux-x64-gnu": "1.32.0", - "lightningcss-linux-x64-musl": "1.32.0", - "lightningcss-win32-arm64-msvc": "1.32.0", - "lightningcss-win32-x64-msvc": "1.32.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", - "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", - "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", - "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", - "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", - "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", - "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", - "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", - "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", - "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", - "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", - "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/loupe": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", - "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.19", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", - "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/napi-postinstall": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", - "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", - "dev": true, - "license": "MIT", - "bin": { - "napi-postinstall": "lib/cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/napi-postinstall" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/next": { - "version": "16.3.5", - "resolved": "https://registry.npmjs.org/next/-/next-16.3.5.tgz", - "integrity": "sha512-MdtsTgzyfCPRLC6uJ1mN8ao7lyJ4BB0U6Inhnx3gta1UcCIdHK3yxLG0E8OWQteWD8/Q0qb8A5o7wJaL8M9y2w==", - "license": "MIT", - "dependencies": { - "@next/env": "16.3.5", - "@swc/helpers": "0.5.23", - "baseline-browser-mapping": "^2.9.19", - "caniuse-lite": "^1.0.30001579", - "postcss": "8.5.23", - "styled-jsx": "5.1.6" - }, - "bin": { - "next": "dist/bin/next" - }, - "engines": { - "node": ">=20.9.0" - }, - "optionalDependencies": { - "@next/swc-darwin-arm64": "16.3.5", - "@next/swc-darwin-x64": "16.3.5", - "@next/swc-linux-arm64-gnu": "16.3.5", - "@next/swc-linux-arm64-musl": "16.3.5", - "@next/swc-linux-x64-gnu": "16.3.5", - "@next/swc-linux-x64-musl": "16.3.5", - "@next/swc-win32-arm64-msvc": "16.3.5", - "@next/swc-win32-x64-msvc": "16.3.5", - "sharp": "^0.35.4" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.1.0", - "@playwright/test": "^1.51.1", - "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "sass": "^1.3.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": true - }, - "@playwright/test": { - "optional": true - }, - "babel-plugin-react-compiler": { - "optional": true - }, - "sass": { - "optional": true - } - } - }, - "node_modules/node-exports-info": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.2.tgz", - "integrity": "sha512-kXs9Go0cah0qHVV2v389IXQLdLCeE1xfFtjOAF+iobu0OIoG1pje8At2vMHyaPMiPMnG/LWP50twML21eMcAag==", - "dev": true, - "license": "MIT", - "dependencies": { - "array.prototype.flatmap": "^1.3.3", - "es-errors": "^1.3.0", - "object.entries": "^1.1.9", - "semver": "^6.3.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/node-releases": { - "version": "2.0.55", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.55.tgz", - "integrity": "sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", - "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", - "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.groupby": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", - "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.values": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", - "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/os-paths": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/os-paths/-/os-paths-4.4.0.tgz", - "integrity": "sha512-wrAwOeXp1RRMFfQY8Sy7VaGVmPocaLwSFOYCGKSyo8qmJ+/yaafCl5BCA1IQZWqFSRBrKDYFeR9d/VyQzfH/jg==", - "license": "MIT", - "engines": { - "node": ">= 6.0" - } - }, - "node_modules/own-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", - "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.6", - "object-keys": "^1.1.1", - "safe-push-apply": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz", - "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.16" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/postcss": { - "version": "8.5.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz", - "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.16", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/react": { - "version": "19.2.4", - "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", - "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "19.2.4", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", - "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", - "license": "MIT", - "dependencies": { - "scheduler": "^0.27.0" - }, - "peerDependencies": { - "react": "^19.2.4" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/reflect.getprototypeof": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", - "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.7", - "get-proto": "^1.0.1", - "which-builtin-type": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", - "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve": { - "version": "2.0.0-next.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.7.tgz", - "integrity": "sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "is-core-module": "^2.16.2", - "node-exports-info": "^1.6.0", - "object-keys": "^1.1.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rollup": { - "version": "4.62.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz", - "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.9" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.62.2", - "@rollup/rollup-android-arm64": "4.62.2", - "@rollup/rollup-darwin-arm64": "4.62.2", - "@rollup/rollup-darwin-x64": "4.62.2", - "@rollup/rollup-freebsd-arm64": "4.62.2", - "@rollup/rollup-freebsd-x64": "4.62.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.62.2", - "@rollup/rollup-linux-arm-musleabihf": "4.62.2", - "@rollup/rollup-linux-arm64-gnu": "4.62.2", - "@rollup/rollup-linux-arm64-musl": "4.62.2", - "@rollup/rollup-linux-loong64-gnu": "4.62.2", - "@rollup/rollup-linux-loong64-musl": "4.62.2", - "@rollup/rollup-linux-ppc64-gnu": "4.62.2", - "@rollup/rollup-linux-ppc64-musl": "4.62.2", - "@rollup/rollup-linux-riscv64-gnu": "4.62.2", - "@rollup/rollup-linux-riscv64-musl": "4.62.2", - "@rollup/rollup-linux-s390x-gnu": "4.62.2", - "@rollup/rollup-linux-x64-gnu": "4.62.2", - "@rollup/rollup-linux-x64-musl": "4.62.2", - "@rollup/rollup-openbsd-x64": "4.62.2", - "@rollup/rollup-openharmony-arm64": "4.62.2", - "@rollup/rollup-win32-arm64-msvc": "4.62.2", - "@rollup/rollup-win32-ia32-msvc": "4.62.2", - "@rollup/rollup-win32-x64-gnu": "4.62.2", - "@rollup/rollup-win32-x64-msvc": "4.62.2", - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.4.tgz", - "integrity": "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "has-symbols": "^1.1.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-push-apply": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", - "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/scheduler": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", - "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", - "license": "MIT" - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/server-only": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz", - "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==", - "license": "MIT" - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-proto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", - "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/sharp": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.4.tgz", - "integrity": "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==", - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/colour": "^1.1.0", - "detect-libc": "^2.1.2", - "semver": "^7.8.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.35.4", - "@img/sharp-darwin-x64": "0.35.4", - "@img/sharp-freebsd-wasm32": "0.35.4", - "@img/sharp-libvips-darwin-arm64": "1.3.3", - "@img/sharp-libvips-darwin-x64": "1.3.3", - "@img/sharp-libvips-linux-arm": "1.3.3", - "@img/sharp-libvips-linux-arm64": "1.3.3", - "@img/sharp-libvips-linux-ppc64": "1.3.3", - "@img/sharp-libvips-linux-riscv64": "1.3.3", - "@img/sharp-libvips-linux-s390x": "1.3.3", - "@img/sharp-libvips-linux-x64": "1.3.3", - "@img/sharp-libvips-linuxmusl-arm64": "1.3.3", - "@img/sharp-libvips-linuxmusl-x64": "1.3.3", - "@img/sharp-linux-arm": "0.35.4", - "@img/sharp-linux-arm64": "0.35.4", - "@img/sharp-linux-ppc64": "0.35.4", - "@img/sharp-linux-riscv64": "0.35.4", - "@img/sharp-linux-s390x": "0.35.4", - "@img/sharp-linux-x64": "0.35.4", - "@img/sharp-linuxmusl-arm64": "0.35.4", - "@img/sharp-linuxmusl-x64": "0.35.4", - "@img/sharp-webcontainers-wasm32": "0.35.4", - "@img/sharp-win32-arm64": "0.35.4", - "@img/sharp-win32-ia32": "0.35.4", - "@img/sharp-win32-x64": "0.35.4" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/sharp/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "license": "ISC", - "optional": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", - "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4", - "side-channel-list": "^1.0.1", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "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" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "license": "ISC" - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stable-hash": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", - "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", - "dev": true, - "license": "MIT" - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", - "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", - "dev": true, - "license": "MIT" - }, - "node_modules/stop-iteration-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", - "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "internal-slot": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.includes": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", - "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.matchall": { - "version": "4.0.12", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", - "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.6", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.6", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "regexp.prototype.flags": "^1.5.3", - "set-function-name": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.repeat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", - "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz", - "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-object-atoms": "^1.1.2", - "has-property-descriptors": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz", - "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-literal": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", - "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^9.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/strip-literal/node_modules/js-tokens": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", - "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/stripe": { - "version": "22.3.0", - "resolved": "https://registry.npmjs.org/stripe/-/stripe-22.3.0.tgz", - "integrity": "sha512-ypO6xjVrMWs9SmIMeHr8naCx3dAQ0clxMdUTxn7Ejd7hmY9meBGfE+N4pVHkf9sUNebAHp6uJo6mV3GxDIc2cA==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@types/node": ">=18" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/styled-jsx": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", - "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", - "license": "MIT", - "dependencies": { - "client-only": "0.0.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/tailwindcss": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.2.tgz", - "integrity": "sha512-WtctNNSH8A9jlMIqxzuYumOHU5uGZyRv0Q5svQl+oEPy5w84YpBxdb7MdqyiSPQge5jTJ6zFQLq0PFygdccSBA==", - "dev": true, - "license": "MIT" - }, - "node_modules/tapable": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", - "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyexec": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", - "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", - "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/tinypool": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz", - "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.0.0 || >=20.0.0" - } - }, - "node_modules/tinyrainbow": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz", - "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tinyspy": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.6.tgz", - "integrity": "sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ts-api-utils": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", - "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", - "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", - "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.15", - "reflect.getprototypeof": "^1.0.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.8.tgz", - "integrity": "sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "possible-typed-array-names": "^1.1.0", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.62.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.62.1.tgz", - "integrity": "sha512-vymnnM5g0AKQDSAyfP12nMIBvgwgA42syg74kkuZ4x1VuTzwQKwc5h9rGxeShCjny5o+zWAb6OEoz7XLgrIkIw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.62.1", - "@typescript-eslint/parser": "8.62.1", - "@typescript-eslint/typescript-estree": "8.62.1", - "@typescript-eslint/utils": "8.62.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", - "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-bigints": "^1.0.2", - "has-symbols": "^1.1.0", - "which-boxed-primitive": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "devOptional": true, - "license": "MIT" - }, - "node_modules/unrs-resolver": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.12.2.tgz", - "integrity": "sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "napi-postinstall": "^0.3.4" - }, - "funding": { - "url": "https://opencollective.com/unrs-resolver" - }, - "optionalDependencies": { - "@unrs/resolver-binding-android-arm-eabi": "1.12.2", - "@unrs/resolver-binding-android-arm64": "1.12.2", - "@unrs/resolver-binding-darwin-arm64": "1.12.2", - "@unrs/resolver-binding-darwin-x64": "1.12.2", - "@unrs/resolver-binding-freebsd-x64": "1.12.2", - "@unrs/resolver-binding-linux-arm-gnueabihf": "1.12.2", - "@unrs/resolver-binding-linux-arm-musleabihf": "1.12.2", - "@unrs/resolver-binding-linux-arm64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-arm64-musl": "1.12.2", - "@unrs/resolver-binding-linux-loong64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-loong64-musl": "1.12.2", - "@unrs/resolver-binding-linux-ppc64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-riscv64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-riscv64-musl": "1.12.2", - "@unrs/resolver-binding-linux-s390x-gnu": "1.12.2", - "@unrs/resolver-binding-linux-x64-gnu": "1.12.2", - "@unrs/resolver-binding-linux-x64-musl": "1.12.2", - "@unrs/resolver-binding-openharmony-arm64": "1.12.2", - "@unrs/resolver-binding-wasm32-wasi": "1.12.2", - "@unrs/resolver-binding-win32-arm64-msvc": "1.12.2", - "@unrs/resolver-binding-win32-ia32-msvc": "1.12.2", - "@unrs/resolver-binding-win32-x64-msvc": "1.12.2" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", - "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vite": { - "version": "7.3.6", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz", - "integrity": "sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.27.0 || ^0.28.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "lightningcss": "^1.21.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", - "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", - "dev": true, - "license": "MIT", - "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" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vite/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/vite/node_modules/picomatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", - "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/vitest": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.7.tgz", - "integrity": "sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/expect": "3.2.7", - "@vitest/mocker": "3.2.7", - "@vitest/pretty-format": "^3.2.7", - "@vitest/runner": "3.2.7", - "@vitest/snapshot": "3.2.7", - "@vitest/spy": "3.2.7", - "@vitest/utils": "3.2.7", - "chai": "^5.2.0", - "debug": "^4.4.1", - "expect-type": "^1.2.1", - "magic-string": "^0.30.17", - "pathe": "^2.0.3", - "picomatch": "^4.0.2", - "std-env": "^3.9.0", - "tinybench": "^2.9.0", - "tinyexec": "^0.3.2", - "tinyglobby": "^0.2.14", - "tinypool": "^1.1.1", - "tinyrainbow": "^2.0.0", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0", - "vite-node": "3.2.4", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@types/debug": "^4.1.12", - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "@vitest/browser": "3.2.7", - "@vitest/ui": "3.2.7", - "happy-dom": "*", - "jsdom": "*" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@types/debug": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - } - } - }, - "node_modules/vitest/node_modules/picomatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", - "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-builtin-type": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", - "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "function.prototype.name": "^1.1.6", - "has-tostringtag": "^1.0.2", - "is-async-function": "^2.0.0", - "is-date-object": "^1.1.0", - "is-finalizationregistry": "^1.1.0", - "is-generator-function": "^1.0.10", - "is-regex": "^1.2.1", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.1.0", - "which-collection": "^1.0.2", - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/xdg-app-paths": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/xdg-app-paths/-/xdg-app-paths-5.5.1.tgz", - "integrity": "sha512-hI3flOB4PLZIy5prbtTpirobtPE2ZtZ52szO+2mM9Efp6ErM398La+C1lIpNWDfNoQk+6Lsi6nMcCwVB7pxeMQ==", - "license": "MIT", - "dependencies": { - "os-paths": "^4.0.1", - "xdg-portable": "^7.2.0" - }, - "engines": { - "node": ">= 6.0" - } - }, - "node_modules/xdg-portable": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/xdg-portable/-/xdg-portable-7.3.0.tgz", - "integrity": "sha512-sqMMuL1rc0FmMBOzCpd0yuy9trqF2yTTVe+E9ogwCSWQCdDEtQUwrZPT6AxqtsFGRNxycgncbP/xmOOSPw5ZUw==", - "license": "MIT", - "dependencies": { - "os-paths": "^4.0.1" - }, - "engines": { - "node": ">= 6.0" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", - "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-validation-error": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", - "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } - } - } -} diff --git a/web/package.json b/web/package.json deleted file mode 100644 index a0c2b7c..0000000 --- a/web/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "web", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "eslint", - "test": "vitest run --passWithNoTests", - "typecheck": "tsc --noEmit" - }, - "dependencies": { - "@aws-sdk/client-sesv2": "^3.1079.0", - "@supabase/ssr": "^0.12.0", - "@supabase/supabase-js": "^2.110.0", - "@vercel/analytics": "^2.0.1", - "@vercel/functions": "^3.7.5", - "next": "16.3.5", - "react": "19.2.4", - "react-dom": "19.2.4", - "server-only": "^0.0.1", - "stripe": "^22.3.0", - "zod": "^4.4.3" - }, - "devDependencies": { - "@tailwindcss/postcss": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "eslint": "^9", - "eslint-config-next": "16.3.5", - "tailwindcss": "^4", - "typescript": "^5", - "vitest": "^3.2.6" - } -} diff --git a/web/postcss.config.mjs b/web/postcss.config.mjs deleted file mode 100644 index 61e3684..0000000 --- a/web/postcss.config.mjs +++ /dev/null @@ -1,7 +0,0 @@ -const config = { - plugins: { - "@tailwindcss/postcss": {}, - }, -}; - -export default config; diff --git a/web/src/app/api/billing/checkout/route.ts b/web/src/app/api/billing/checkout/route.ts deleted file mode 100644 index aade1a9..0000000 --- a/web/src/app/api/billing/checkout/route.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { z } from "zod"; - -import { getStripe, priceIdFor } from "@/lib/billing/stripe"; -import { createAdminClient } from "@/lib/supabase/admin"; -import { createClient } from "@/lib/supabase/server"; - -const bodySchema = z.object({ interval: z.enum(["month", "year"]) }); - -// POST /api/billing/checkout — creates a Stripe Checkout session for the -// signed-in user and returns its URL. -export async function POST(request: Request) { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return Response.json({ error: "not signed in" }, { status: 401 }); - } - - const parsed = bodySchema.safeParse(await request.json().catch(() => null)); - if (!parsed.success) { - return Response.json({ error: "interval must be month or year" }, { status: 400 }); - } - - const stripe = getStripe(); - const admin = createAdminClient(); - - // Reuse the Stripe customer across sessions; create on first checkout. - const { data: existing } = await admin - .from("subscriptions") - .select("stripe_customer_id") - .eq("user_id", user.id) - .maybeSingle(); - let customerId = existing?.stripe_customer_id; - if (!customerId) { - const customer = await stripe.customers.create({ - email: user.email ?? undefined, - metadata: { user_id: user.id }, - }); - customerId = customer.id; - const { error } = await admin.from("subscriptions").upsert( - { user_id: user.id, stripe_customer_id: customerId }, - { onConflict: "user_id" }, - ); - if (error) { - return Response.json({ error: "could not prepare checkout" }, { status: 500 }); - } - } - - const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? new URL(request.url).origin; - const session = await stripe.checkout.sessions.create({ - mode: "subscription", - customer: customerId, - line_items: [{ price: priceIdFor(parsed.data.interval), quantity: 1 }], - client_reference_id: user.id, - success_url: `${appUrl}/dashboard/billing?success=1`, - cancel_url: `${appUrl}/dashboard/billing?canceled=1`, - }); - return Response.json({ url: session.url }); -} diff --git a/web/src/app/api/billing/portal/route.ts b/web/src/app/api/billing/portal/route.ts deleted file mode 100644 index a7f0b9e..0000000 --- a/web/src/app/api/billing/portal/route.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { getStripe } from "@/lib/billing/stripe"; -import { createClient } from "@/lib/supabase/server"; - -// POST /api/billing/portal — opens the Stripe customer portal (payment -// method, invoices, cancellation) for the signed-in user. -export async function POST(request: Request) { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return Response.json({ error: "not signed in" }, { status: 401 }); - } - - const { data: sub } = await supabase - .from("subscriptions") - .select("stripe_customer_id") - .eq("user_id", user.id) - .maybeSingle(); - if (!sub?.stripe_customer_id) { - return Response.json({ error: "no billing account yet" }, { status: 404 }); - } - - const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? new URL(request.url).origin; - const session = await getStripe().billingPortal.sessions.create({ - customer: sub.stripe_customer_id, - return_url: `${appUrl}/dashboard/billing`, - }); - return Response.json({ url: session.url }); -} diff --git a/web/src/app/api/cron/alerts/route.ts b/web/src/app/api/cron/alerts/route.ts deleted file mode 100644 index 22a23e7..0000000 --- a/web/src/app/api/cron/alerts/route.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { openIncident, resolveIncident } from "@/lib/alerts/incidents"; -import { isStale, parsePgInterval, staleAfterMs } from "@/lib/alerts/staleness"; -import { PLAN_LIMITS } from "@/lib/billing/entitlements"; -import { createAdminClient } from "@/lib/supabase/admin"; -import type { SupabaseClient } from "@supabase/supabase-js"; - -// pruneHistory enforces the plan history windows (free 3mo, pro 12mo) — -// which also keeps the database from growing without bound. -async function pruneHistory(admin: SupabaseClient): Promise { - const monthsAgo = (n: number) => - new Date(Date.now() - n * 30 * 24 * 60 * 60 * 1000).toISOString(); - - let pruned = 0; - // Everyone: nothing older than the pro window survives. - const { count: oldRows } = await admin - .from("test_runs") - .delete({ count: "exact" }) - .lt("created_at", monthsAgo(PLAN_LIMITS.pro.historyMonths)); - pruned += oldRows ?? 0; - - // Free users: prune past the free window. - const { data: proRows } = await admin - .from("subscriptions") - .select("user_id") - .eq("plan", "pro") - .in("status", ["active", "trialing", "past_due"]); - const proIds = (proRows ?? []).map((r) => r.user_id); - let query = admin - .from("test_runs") - .delete({ count: "exact" }) - .lt("created_at", monthsAgo(PLAN_LIMITS.free.historyMonths)); - if (proIds.length > 0) { - query = query.not("user_id", "in", `(${proIds.join(",")})`); - } - const { count: freeRows } = await query; - pruned += freeRows ?? 0; - return pruned; -} - -// GET /api/cron/alerts — hourly (vercel.json). Detects the meta-failure: -// backups whose tests have gone quiet, and agents that stopped checking in. -// Guarded by CRON_SECRET (Vercel sends it as a Bearer token). - -export const dynamic = "force-dynamic"; - -const AGENT_SILENT_MS = 24 * 60 * 60 * 1000; - -function ago(ms: number): string { - const hours = Math.round(ms / 3_600_000); - if (hours < 48) { - return `${hours}h ago`; - } - return `${Math.round(hours / 24)} days ago`; -} - -export async function GET(request: Request) { - const secret = process.env.CRON_SECRET; - if (!secret || request.headers.get("authorization") !== `Bearer ${secret}`) { - return Response.json({ error: "unauthorized" }, { status: 401 }); - } - - const admin = createAdminClient(); - const now = new Date(); - const summary = { - stale_opened: 0, - stale_resolved: 0, - silent_opened: 0, - silent_resolved: 0, - runs_pruned: 0, - }; - - summary.runs_pruned = await pruneHistory(admin); - - // ── stale repos ─────────────────────────────────────────────────────────── - const { data: repos } = await admin - .from("repos") - .select("id, user_id, label, stale_after"); - for (const repo of repos ?? []) { - const { data: recent } = await admin - .from("test_runs") - .select("finished_at") - .eq("repo_id", repo.id) - .eq("status", "pass") - .order("finished_at", { ascending: false }) - .limit(2); - const times = (recent ?? []).map((r) => new Date(r.finished_at)); - const windowMs = staleAfterMs(parsePgInterval(repo.stale_after), times); - const lastSuccess = times[0] ?? null; - const key = { userId: repo.user_id, kind: "stale_repo" as const, subjectId: repo.id }; - - if (isStale(now, lastSuccess, windowMs)) { - const opened = await openIncident(admin, key, { - level: "warning", - title: `Backup tests have gone quiet — ${repo.label}`, - body: - `Last successful restore test: ${ago(now.getTime() - lastSuccess!.getTime())}. ` + - "The watcher may have died — check the agent and its schedule.", - }); - if (opened) summary.stale_opened++; - } else { - const resolved = await resolveIncident(admin, key, { - level: "recovery", - title: `Backup tests running again — ${repo.label}`, - body: "Restore tests are back within their expected window.", - }); - if (resolved) summary.stale_resolved++; - } - } - - // ── silent agents ───────────────────────────────────────────────────────── - const { data: agents } = await admin - .from("agents") - .select("id, user_id, name, last_seen, alert_when_silent") - .eq("alert_when_silent", true) - .not("last_seen", "is", null); - for (const agent of agents ?? []) { - const silentMs = now.getTime() - new Date(agent.last_seen!).getTime(); - const key = { userId: agent.user_id, kind: "agent_silent" as const, subjectId: agent.id }; - if (silentMs > AGENT_SILENT_MS) { - const opened = await openIncident(admin, key, { - level: "warning", - title: `Agent has gone silent — ${agent.name}`, - body: `No check-in for ${ago(silentMs)}. The machine may be down.`, - }); - if (opened) summary.silent_opened++; - } else { - const resolved = await resolveIncident(admin, key, { - level: "recovery", - title: `Agent is back online — ${agent.name}`, - body: "The agent is checking in again.", - }); - if (resolved) summary.silent_resolved++; - } - } - - return Response.json(summary); -} diff --git a/web/src/app/api/telegram/webhook/route.ts b/web/src/app/api/telegram/webhook/route.ts deleted file mode 100644 index 154919f..0000000 --- a/web/src/app/api/telegram/webhook/route.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { createAdminClient } from "@/lib/supabase/admin"; - -// POST /api/telegram/webhook -// -// Telegram calls this when someone messages the bot. We only care about -// `/start `: the token identifies which Restorable user initiated the -// connect, so we can privately stamp their chat_id onto their own pending -// link — no getUpdates, no cross-user exposure. Authenticated by a secret -// token Telegram echoes back in a header (set at setWebhook time). - -interface TelegramUpdate { - message?: { - text?: string; - chat?: { id: number; first_name?: string; username?: string; title?: string }; - }; -} - -async function replyToChat(chatId: number, text: string): Promise { - const token = process.env.TELEGRAM_BOT_TOKEN; - if (!token) return; - const base = process.env.TELEGRAM_API_BASE ?? "https://api.telegram.org"; - try { - await fetch(`${base}/bot${token}/sendMessage`, { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ chat_id: chatId, text }), - signal: AbortSignal.timeout(10_000), - }); - } catch { - // Best-effort confirmation; the link is already recorded. - } -} - -export async function POST(request: Request) { - const secret = process.env.TELEGRAM_WEBHOOK_SECRET; - if ( - secret && - request.headers.get("x-telegram-bot-api-secret-token") !== secret - ) { - return new Response(null, { status: 401 }); - } - - let update: TelegramUpdate; - try { - update = (await request.json()) as TelegramUpdate; - } catch { - return new Response(null, { status: 200 }); // ignore malformed updates - } - - const text = update.message?.text?.trim() ?? ""; - const chat = update.message?.chat; - const match = /^\/start\s+([A-Za-z0-9_-]{10,})$/.exec(text); - if (!match || !chat) { - return new Response(null, { status: 200 }); // not a connect message - } - const token = match[1]; - - const admin = createAdminClient(); - const { data, error } = await admin - .from("telegram_links") - .update({ - chat_id: String(chat.id), - chat_name: chat.title ?? chat.username ?? chat.first_name ?? "chat", - }) - .eq("token", token) - .is("consumed_at", null) - .gt("expires_at", new Date().toISOString()) - .select("user_id") - .maybeSingle(); - - if (!error && data) { - await replyToChat( - chat.id, - "✅ Connected to Restorable. Finish setup back in the dashboard — you'll get your backup alerts here.", - ); - } else { - await replyToChat( - chat.id, - "That connect link is invalid or expired. Generate a new one from the Restorable dashboard.", - ); - } - // Always 200 so Telegram doesn't retry. - return new Response(null, { status: 200 }); -} diff --git a/web/src/app/api/v1/agents/config/route.ts b/web/src/app/api/v1/agents/config/route.ts deleted file mode 100644 index 33f2172..0000000 --- a/web/src/app/api/v1/agents/config/route.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { authenticateAgent, unauthorized } from "@/lib/api/agent-auth"; -import { getLimits, getPlan, isBeta } from "@/lib/billing/entitlements"; -import { createAdminClient } from "@/lib/supabase/admin"; - -// GET /api/v1/agents/config -// Polled by agents (~5 min). Returns the desired schedule and the plan's -// entitlements, live from the subscription — an upgrade reflects here on the -// next poll, no redeploy. Server-driven scheduling is post-launch. -export async function GET(request: Request) { - const admin = createAdminClient(); - const agent = await authenticateAgent(admin, request); - if (!agent) { - return unauthorized(); - } - await admin - .from("agents") - .update({ last_seen: new Date().toISOString() }) - .eq("id", agent.id); - - const limits = await getLimits(admin, agent.user_id); - const plan = isBeta() ? "beta" : await getPlan(admin, agent.user_id); - return Response.json({ - schedule: null, - plan, - entitlements: { - max_repos: limits.maxRepos, - min_interval: limits.minInterval, - max_alert_channels: limits.maxAlertChannels, - }, - }); -} diff --git a/web/src/app/api/v1/agents/register/route.ts b/web/src/app/api/v1/agents/register/route.ts deleted file mode 100644 index 18261f3..0000000 --- a/web/src/app/api/v1/agents/register/route.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { generateApiKey, hashSecret } from "@/lib/api/keys"; -import { registerRequestSchema } from "@/lib/api/schemas"; -import { createAdminClient } from "@/lib/supabase/admin"; - -// POST /api/v1/agents/register -// Exchanges a one-time registration token (minted in the dashboard) for an -// agent API key. The key is returned exactly once; only its hash is stored. -export async function POST(request: Request) { - let body: unknown; - try { - body = await request.json(); - } catch { - return Response.json({ error: "request body must be JSON" }, { status: 400 }); - } - const parsed = registerRequestSchema.safeParse(body); - if (!parsed.success) { - return Response.json( - { error: "invalid request", details: parsed.error.flatten() }, - { status: 400 }, - ); - } - - const admin = createAdminClient(); - - // Consume the token atomically: the WHERE clause only matches unused, - // unexpired tokens, so a replay loses the race by construction. - const { data: token, error } = await admin - .from("registration_tokens") - .update({ used_at: new Date().toISOString() }) - .eq("token_hash", hashSecret(parsed.data.token)) - .is("used_at", null) - .gt("expires_at", new Date().toISOString()) - .select("user_id") - .maybeSingle(); - if (error) { - return Response.json({ error: "registration failed" }, { status: 500 }); - } - if (!token) { - return Response.json( - { error: "registration token is invalid, expired, or already used" }, - { status: 403 }, - ); - } - - const apiKey = generateApiKey(); - const { data: agent, error: insertError } = await admin - .from("agents") - .insert({ - user_id: token.user_id, - name: parsed.data.name, - key_hash: hashSecret(apiKey), - agent_version: parsed.data.agent_version ?? null, - last_seen: new Date().toISOString(), - }) - .select("id") - .single(); - if (insertError || !agent) { - return Response.json({ error: "registration failed" }, { status: 500 }); - } - - return Response.json({ agent_id: agent.id, api_key: apiKey }, { status: 201 }); -} diff --git a/web/src/app/api/v1/heartbeat/route.ts b/web/src/app/api/v1/heartbeat/route.ts deleted file mode 100644 index 8b30bc6..0000000 --- a/web/src/app/api/v1/heartbeat/route.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { waitUntil } from "@vercel/functions"; - -import { authenticateAgent, unauthorized } from "@/lib/api/agent-auth"; -import { resolveIncident } from "@/lib/alerts/incidents"; -import { createAdminClient } from "@/lib/supabase/admin"; - -// POST /api/v1/heartbeat -// Liveness ping. A heartbeat proves the agent is alive, so it also resolves -// any open agent-silent incident with a recovery notice. -export async function POST(request: Request) { - const admin = createAdminClient(); - const agent = await authenticateAgent(admin, request); - if (!agent) { - return unauthorized(); - } - const { data: updated, error } = await admin - .from("agents") - .update({ last_seen: new Date().toISOString() }) - .eq("id", agent.id) - .select("name") - .single(); - if (error) { - return Response.json({ error: "heartbeat failed" }, { status: 500 }); - } - waitUntil( - resolveIncident( - admin, - { userId: agent.user_id, kind: "agent_silent", subjectId: agent.id }, - { - level: "recovery", - title: `Agent is back online — ${updated?.name ?? "agent"}`, - body: "The agent is checking in again.", - }, - ).catch((err) => console.error("deferred recovery dispatch failed:", err)), - ); - return new Response(null, { status: 204 }); -} diff --git a/web/src/app/api/v1/runs/route.ts b/web/src/app/api/v1/runs/route.ts deleted file mode 100644 index 0584843..0000000 --- a/web/src/app/api/v1/runs/route.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { waitUntil } from "@vercel/functions"; - -import { authenticateAgent, unauthorized } from "@/lib/api/agent-auth"; -import { runRequestSchema, type RunRequest } from "@/lib/api/schemas"; -import { openIncident, resolveIncident } from "@/lib/alerts/incidents"; -import { getLimits } from "@/lib/billing/entitlements"; -import { createAdminClient } from "@/lib/supabase/admin"; - -// firstProblem summarizes what went wrong for the alert body. -function firstProblem(run: RunRequest): string { - const failed = run.checks.find((c) => c.status !== "pass"); - if (failed) { - return `${failed.recipe}/${failed.type}: ${failed.message || failed.status}`; - } - return run.error ?? "verification failed"; -} - -// POST /api/v1/runs -// Accepts one run result from an agent. Creates the repo row on first sight -// of its fingerprint. Only pass/fail metadata ever arrives here — the agent -// scrubs everything else before it leaves the user's machine. -export async function POST(request: Request) { - const admin = createAdminClient(); - const agent = await authenticateAgent(admin, request); - if (!agent) { - return unauthorized(); - } - - // Ingestion cap per agent: an hourly ceiling far above any sane test - // cadence, so a buggy or hostile agent can't fill the database. - const hourAgo = new Date(Date.now() - 60 * 60 * 1000).toISOString(); - const { count: recentRuns } = await admin - .from("test_runs") - .select("id", { count: "exact", head: true }) - .eq("agent_id", agent.id) - .gte("created_at", hourAgo); - const runsPerHourLimit = Number(process.env.RUNS_PER_HOUR_LIMIT ?? 60); - if ((recentRuns ?? 0) >= runsPerHourLimit) { - return Response.json( - { error: `rate limited: this agent submitted ${recentRuns} runs in the last hour` }, - { status: 429 }, - ); - } - - let body: unknown; - try { - body = await request.json(); - } catch { - return Response.json({ error: "request body must be JSON" }, { status: 400 }); - } - const parsed = runRequestSchema.safeParse(body); - if (!parsed.success) { - return Response.json( - { error: "invalid request", details: parsed.error.flatten() }, - { status: 400 }, - ); - } - const run = parsed.data; - - // First run for this fingerprint creates the repo — gated by the plan's - // repo limit. Existing repos always keep working: limits cap growth, they - // never break what's already reporting. - let { data: repo } = await admin - .from("repos") - .select("id") - .eq("user_id", agent.user_id) - .eq("fingerprint", run.repo_fingerprint) - .maybeSingle(); - if (!repo) { - const limits = await getLimits(admin, agent.user_id); - if (limits.maxRepos != null) { - const { count } = await admin - .from("repos") - .select("id", { count: "exact", head: true }) - .eq("user_id", agent.user_id); - if ((count ?? 0) >= limits.maxRepos) { - return Response.json( - { - error: `plan limit: the free plan monitors ${limits.maxRepos} repository — upgrade to Pro for unlimited repos`, - }, - { status: 403 }, - ); - } - } - const { data: created, error: insertError } = await admin - .from("repos") - .insert({ - user_id: agent.user_id, - fingerprint: run.repo_fingerprint, - label: run.repo_label, - }) - .select("id") - .single(); - if (insertError || !created) { - return Response.json({ error: "could not record repo" }, { status: 500 }); - } - repo = created; - } - - const { data: inserted, error: runError } = await admin - .from("test_runs") - .insert({ - user_id: agent.user_id, - agent_id: agent.id, - repo_id: repo.id, - snapshot_id: run.snapshot_id ?? null, - status: run.status, - error: run.error ?? null, - results: run.checks, - agent_version: run.agent_version, - started_at: run.started_at, - finished_at: run.finished_at, - restore_duration_ms: run.restore_duration_ms ?? null, - }) - .select("id") - .single(); - if (runError || !inserted) { - return Response.json({ error: "could not record run" }, { status: 500 }); - } - - await admin - .from("agents") - .update({ last_seen: new Date().toISOString(), agent_version: run.agent_version }) - .eq("id", agent.id); - - // Alerting. One incident per repo: first failure alerts, repeats are - // suppressed by the incident index, the next pass sends a recovery notice. - // Dispatch runs AFTER the response (waitUntil): a slow Discord webhook must - // not stall — or time out — the agent's submission. - const appUrl = process.env.NEXT_PUBLIC_APP_URL ?? ""; - const runLink = appUrl ? `\n${appUrl}/dashboard/runs/${inserted.id}` : ""; - const incident = { userId: agent.user_id, kind: "run_failure" as const, subjectId: repo.id }; - const runId = inserted.id; - waitUntil( - (async () => { - if (run.status === "pass") { - await resolveIncident(admin, incident, { - level: "recovery", - title: `Restore tests passing again — ${run.repo_label}`, - body: `Snapshot ${run.snapshot_id?.slice(0, 8) ?? "?"} verified.${runLink}`, - }); - // A fresh successful test also clears any staleness incident. - await resolveIncident( - admin, - { ...incident, kind: "stale_repo" }, - { - level: "recovery", - title: `Backup tests running again — ${run.repo_label}`, - body: `A successful restore test just completed.${runLink}`, - }, - ); - } else { - await openIncident( - admin, - incident, - { - level: "failure", - title: `Restore test failed — ${run.repo_label}`, - body: `${firstProblem(run)}${runLink}`, - }, - runId, - ); - } - // Any submission proves the agent is alive. - await resolveIncident( - admin, - { userId: agent.user_id, kind: "agent_silent", subjectId: agent.id }, - { - level: "recovery", - title: "Agent is back online", - body: "The agent just reported a test run.", - }, - ); - })().catch((err) => console.error("deferred alert dispatch failed:", err)), - ); - - return Response.json({ run_id: inserted.id }, { status: 201 }); -} diff --git a/web/src/app/api/webhooks/stripe/route.ts b/web/src/app/api/webhooks/stripe/route.ts deleted file mode 100644 index 741bd18..0000000 --- a/web/src/app/api/webhooks/stripe/route.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { z } from "zod"; - -import { getStripe } from "@/lib/billing/stripe"; -import { createAdminClient } from "@/lib/supabase/admin"; - -// POST /api/webhooks/stripe -// -// Contract (SPEC): zod-validated and idempotent. Signature verification -// proves the payload came from Stripe; zod re-validates the exact fields we -// consume; the stripe_events primary key makes every event process exactly -// once — a replayed delivery insert-conflicts and returns early. - -const checkoutSessionSchema = z.object({ - id: z.string(), - customer: z.string(), - subscription: z.string().nullish(), - client_reference_id: z.string().nullish(), -}); - -const subscriptionSchema = z.object({ - id: z.string(), - customer: z.string(), - status: z.string(), - current_period_end: z.number().nullish(), - items: z - .object({ - data: z.array(z.object({ current_period_end: z.number().nullish() }).loose()), - }) - .loose() - .nullish(), -}); - -function periodEnd(sub: z.infer): string | null { - const epoch = sub.current_period_end ?? sub.items?.data?.[0]?.current_period_end; - return epoch ? new Date(epoch * 1000).toISOString() : null; -} - -export async function POST(request: Request) { - const secret = process.env.STRIPE_WEBHOOK_SECRET; - if (!secret) { - return Response.json({ error: "webhook not configured" }, { status: 500 }); - } - const signature = request.headers.get("stripe-signature"); - if (!signature) { - return Response.json({ error: "missing signature" }, { status: 400 }); - } - - const body = await request.text(); - let event; - try { - event = await getStripe().webhooks.constructEventAsync(body, signature, secret); - } catch { - return Response.json({ error: "invalid signature" }, { status: 400 }); - } - - const admin = createAdminClient(); - - // Idempotency: first delivery wins, replays are acknowledged no-ops. - const { error: ledgerError } = await admin - .from("stripe_events") - .insert({ id: event.id, type: event.type }); - if (ledgerError) { - if (ledgerError.code === "23505") { - return Response.json({ received: true, replay: true }); - } - return Response.json({ error: "event ledger failure" }, { status: 500 }); - } - - switch (event.type) { - case "checkout.session.completed": { - const parsed = checkoutSessionSchema.safeParse(event.data.object); - if (!parsed.success) { - return Response.json({ error: "unexpected checkout payload" }, { status: 400 }); - } - const session = parsed.data; - if (!session.client_reference_id) { - break; // not one of ours - } - const { error } = await admin.from("subscriptions").upsert( - { - user_id: session.client_reference_id, - stripe_customer_id: session.customer, - stripe_subscription_id: session.subscription ?? null, - plan: "pro", - status: "active", - updated_at: new Date().toISOString(), - }, - { onConflict: "user_id" }, - ); - if (error) { - return Response.json({ error: "subscription update failed" }, { status: 500 }); - } - break; - } - - case "customer.subscription.updated": { - const parsed = subscriptionSchema.safeParse(event.data.object); - if (!parsed.success) { - return Response.json({ error: "unexpected subscription payload" }, { status: 400 }); - } - const sub = parsed.data; - const { error } = await admin - .from("subscriptions") - .update({ - stripe_subscription_id: sub.id, - status: sub.status, - current_period_end: periodEnd(sub), - updated_at: new Date().toISOString(), - }) - .eq("stripe_customer_id", sub.customer); - if (error) { - return Response.json({ error: "subscription update failed" }, { status: 500 }); - } - break; - } - - case "customer.subscription.deleted": { - const parsed = subscriptionSchema.safeParse(event.data.object); - if (!parsed.success) { - return Response.json({ error: "unexpected subscription payload" }, { status: 400 }); - } - const sub = parsed.data; - // Graceful downgrade: plan flips to free, data stays untouched. - const { error } = await admin - .from("subscriptions") - .update({ - plan: "free", - status: "canceled", - current_period_end: periodEnd(sub), - updated_at: new Date().toISOString(), - }) - .eq("stripe_customer_id", sub.customer); - if (error) { - return Response.json({ error: "subscription update failed" }, { status: 500 }); - } - break; - } - - default: - // Acknowledged but not consumed; the ledger still records it. - break; - } - - return Response.json({ received: true }); -} diff --git a/web/src/app/auth/callback/route.ts b/web/src/app/auth/callback/route.ts deleted file mode 100644 index 88cf10b..0000000 --- a/web/src/app/auth/callback/route.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { NextResponse } from "next/server"; - -import { createClient } from "@/lib/supabase/server"; - -// OAuth / magic-link / recovery callback: exchanges the auth code for a -// session, then continues to `next` (allowlisted paths only) or the dashboard. -const allowedNext = new Set(["/dashboard", "/reset-password"]); - -export async function GET(request: Request) { - const url = new URL(request.url); - - // GoTrue reports failed verifications (expired or already-used links) as - // error query params on the redirect. Surface that instead of continuing - // to a page that can't work without a session. - if (url.searchParams.get("error") || url.searchParams.get("error_code")) { - return NextResponse.redirect(new URL("/login?error=link_expired", url.origin)); - } - - const code = url.searchParams.get("code"); - if (code) { - const supabase = await createClient(); - const { error } = await supabase.auth.exchangeCodeForSession(code); - if (error) { - return NextResponse.redirect(new URL("/login?error=link_expired", url.origin)); - } - } - const next = url.searchParams.get("next") ?? "/dashboard"; - const target = allowedNext.has(next) ? next : "/dashboard"; - return NextResponse.redirect(new URL(target, url.origin)); -} diff --git a/web/src/app/dashboard/actions.ts b/web/src/app/dashboard/actions.ts deleted file mode 100644 index 095b0c9..0000000 --- a/web/src/app/dashboard/actions.ts +++ /dev/null @@ -1,35 +0,0 @@ -"use server"; - -import { redirect } from "next/navigation"; - -import { generateRegistrationToken, hashSecret } from "@/lib/api/keys"; -import { createClient } from "@/lib/supabase/server"; - -// Mints a one-time agent registration token for the signed-in user. The -// plaintext is returned for a single display; only the hash is stored. -// Inserted with the user's own client, so RLS guarantees ownership. -export async function mintRegistrationToken(): Promise<{ token?: string; error?: string }> { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return { error: "not signed in" }; - } - - const token = generateRegistrationToken(); - const { error } = await supabase.from("registration_tokens").insert({ - user_id: user.id, - token_hash: hashSecret(token), - }); - if (error) { - return { error: "could not create registration token" }; - } - return { token }; -} - -export async function signOut() { - const supabase = await createClient(); - await supabase.auth.signOut(); - redirect("/login"); -} diff --git a/web/src/app/dashboard/agents/new-agent-token.tsx b/web/src/app/dashboard/agents/new-agent-token.tsx deleted file mode 100644 index ff54890..0000000 --- a/web/src/app/dashboard/agents/new-agent-token.tsx +++ /dev/null @@ -1,61 +0,0 @@ -"use client"; - -import { useState } from "react"; - -import { mintRegistrationToken } from "../actions"; - -// Mints a registration token and shows it exactly once, with the command to -// run. Refreshing the page loses it — that is the point. -export function NewAgentToken() { - const [token, setToken] = useState(null); - const [error, setError] = useState(null); - const [busy, setBusy] = useState(false); - - async function mint() { - setBusy(true); - setError(null); - const result = await mintRegistrationToken(); - setBusy(false); - if (result.error || !result.token) { - setError(result.error ?? "something went wrong"); - return; - } - setToken(result.token); - } - - if (token) { - const command = `restorable register --url ${window.location.origin} --token ${token}`; - return ( -
-

- Run this on the machine that can reach your backup repository: -

-
-          {command}
-        
-

- This token works once and expires in an hour. It will not be shown again. -

- -
- ); - } - - return ( -
- - {error &&

{error}

} -
- ); -} diff --git a/web/src/app/dashboard/agents/page.tsx b/web/src/app/dashboard/agents/page.tsx deleted file mode 100644 index a5e02ee..0000000 --- a/web/src/app/dashboard/agents/page.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { createClient } from "@/lib/supabase/server"; -import type { Agent } from "@/lib/types"; - -import { NewAgentToken } from "./new-agent-token"; - -export const dynamic = "force-dynamic"; - -export default async function AgentsPage() { - const supabase = await createClient(); - const { data: agents } = await supabase - .from("agents") - .select("id, name, agent_version, last_seen, created_at") - .order("created_at", { ascending: true }) - .returns(); - - return ( -
-

Agents

-

- Agents run in your homelab and connect outbound only — no inbound ports, ever. -

- - - - {!agents?.length ? ( -

No agents registered yet.

- ) : ( - - - - - - - - - - {agents.map((agent) => ( - - - - - - ))} - -
NameVersionLast seen
{agent.name}{agent.agent_version ?? "—"} - {agent.last_seen ? new Date(agent.last_seen).toLocaleString() : "never"} -
- )} -
- ); -} diff --git a/web/src/app/dashboard/alerts/actions.ts b/web/src/app/dashboard/alerts/actions.ts deleted file mode 100644 index 08b0ee6..0000000 --- a/web/src/app/dashboard/alerts/actions.ts +++ /dev/null @@ -1,226 +0,0 @@ -"use server"; - -import { revalidatePath } from "next/cache"; - -import { channelTypeSchema, parseChannelConfig, type ChannelType } from "@/lib/alerts/config"; -import { sendToChannel } from "@/lib/alerts/send"; -import { getLimits } from "@/lib/billing/entitlements"; -import { createAdminClient } from "@/lib/supabase/admin"; -import { createClient } from "@/lib/supabase/server"; - -// Actions use the user's own client, so RLS scopes every read and write. The -// one exception is setting alert_channels.verified, which `authenticated` has -// no privilege on: it records that a message actually reached the destination, -// so only the code that performed the send may assert it. - -export async function createAlertChannel( - _prev: unknown, - formData: FormData, -): Promise<{ error?: string }> { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return { error: "not signed in" }; - } - - const typeParse = channelTypeSchema.safeParse(formData.get("type")); - if (!typeParse.success) { - return { error: "unknown channel type" }; - } - const type = typeParse.data; - - const raw: Record = {}; - for (const field of ["chat_id", "webhook_url", "topic", "server", "to"]) { - const value = formData.get(field); - if (typeof value === "string" && value.trim() !== "") { - raw[field] = value.trim(); - } - } - let config: unknown; - try { - config = parseChannelConfig(type, raw); - } catch { - return { error: "invalid channel settings — check the fields and try again" }; - } - - // Plan gate: channel count is a Pro entitlement, enforced server-side. - const limits = await getLimits(supabase, user.id); - if (limits.maxAlertChannels != null) { - const { count } = await supabase - .from("alert_channels") - .select("id", { count: "exact", head: true }); - if ((count ?? 0) >= limits.maxAlertChannels) { - return { - error: `plan limit: the free plan includes ${limits.maxAlertChannels} alert channel — upgrade to Pro for all channels`, - }; - } - } - - const { error } = await supabase.from("alert_channels").insert({ - user_id: user.id, - type, - config, - }); - if (error) { - return { error: "could not save channel" }; - } - revalidatePath("/dashboard/alerts"); - return {}; -} - -export async function deleteAlertChannel(id: string): Promise { - const supabase = await createClient(); - await supabase.from("alert_channels").delete().eq("id", id); - revalidatePath("/dashboard/alerts"); -} - -// Sends a test message through the channel; success marks it verified — -// only verified channels receive real alerts. -export async function testAlertChannel(id: string): Promise<{ error?: string }> { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return { error: "not signed in" }; - } - // RLS scopes this read to the caller, so a channel coming back at all is - // proof of ownership. - const { data: channel } = await supabase - .from("alert_channels") - .select("id, type, config") - .eq("id", id) - .maybeSingle(); - if (!channel) { - return { error: "channel not found" }; - } - try { - await sendToChannel( - { id: channel.id, type: channel.type as ChannelType, config: channel.config }, - { - level: "recovery", - title: "Test alert from Restorable", - body: "If you can read this, the channel works. Real alerts will look like this.", - }, - ); - } catch (err) { - return { error: err instanceof Error ? err.message : "send failed" }; - } - // `verified` is not writable by `authenticated` (see migration - // 20260917000001): it asserts that a message actually arrived, which only - // this code path knows. sendToChannel returned, so flip it with the service - // role, scoped to the owner since that bypasses RLS. - await createAdminClient() - .from("alert_channels") - .update({ verified: true }) - .eq("id", id) - .eq("user_id", user.id); - revalidatePath("/dashboard/alerts"); - return {}; -} - -// Telegram connect via one-time deep link. Mints a token tied to THIS user, -// returns a t.me/?start= link. The user taps it, the bot webhook -// stamps their chat_id onto this row — privately, per user. Replaces the old -// getUpdates lookup, which surfaced every user's chat across the shared bot. -export async function startTelegramConnect(): Promise<{ - url?: string; - token?: string; - error?: string; -}> { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return { error: "not signed in" }; - } - const botUser = process.env.TELEGRAM_BOT_USERNAME; - if (!botUser) { - return { error: "Telegram is not configured on this deployment" }; - } - const token = generateConnectToken(); - const { error } = await supabase.from("telegram_links").insert({ - token, - user_id: user.id, - }); - if (error) { - return { error: "could not start Telegram connect" }; - } - return { url: `https://t.me/${botUser}?start=${token}`, token }; -} - -// Polls a pending connect: once the webhook has stamped a chat_id, creates the -// verified Telegram channel and consumes the link. Called by the UI on a timer -// after the user opens the deep link. -export async function pollTelegramConnect( - token: string, -): Promise<{ connected?: boolean; error?: string }> { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - if (!user) { - return { error: "not signed in" }; - } - const { data: link } = await supabase - .from("telegram_links") - .select("chat_id, consumed_at") - .eq("token", token) - .maybeSingle(); - if (!link || !link.chat_id) { - return { connected: false }; - } - if (link.consumed_at) { - return { connected: true }; - } - - const limits = await getLimits(supabase, user.id); - if (limits.maxAlertChannels != null) { - const { count } = await supabase - .from("alert_channels") - .select("id", { count: "exact", head: true }); - if ((count ?? 0) >= limits.maxAlertChannels) { - return { - error: `plan limit: the free plan includes ${limits.maxAlertChannels} alert channel — upgrade to Pro`, - }; - } - } - - // Insert unverified through the user's own client, so the RLS insert policy - // (and with it the plan-limit gate) still governs channel creation. - const { data: created, error: insertErr } = await supabase - .from("alert_channels") - .insert({ - user_id: user.id, - type: "telegram", - config: { chat_id: link.chat_id }, - }) - .select("id") - .single(); - if (insertErr || !created) { - return { error: "could not save the Telegram channel" }; - } - // Connecting via the bot is itself proof the chat is reachable, so this is - // the one place a channel is born verified. `verified` is not writable by - // `authenticated` (migration 20260917000001), hence the service role. - await createAdminClient() - .from("alert_channels") - .update({ verified: true }) - .eq("id", created.id) - .eq("user_id", user.id); - await supabase - .from("telegram_links") - .update({ consumed_at: new Date().toISOString() }) - .eq("token", token); - revalidatePath("/dashboard/alerts"); - return { connected: true }; -} - -function generateConnectToken(): string { - const bytes = new Uint8Array(24); - crypto.getRandomValues(bytes); - return Buffer.from(bytes).toString("base64url"); -} diff --git a/web/src/app/dashboard/alerts/channels-manager.tsx b/web/src/app/dashboard/alerts/channels-manager.tsx deleted file mode 100644 index c18bcee..0000000 --- a/web/src/app/dashboard/alerts/channels-manager.tsx +++ /dev/null @@ -1,329 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { useRouter } from "next/navigation"; -import { useEffect, useRef, useState, useTransition } from "react"; - -import type { ChannelType } from "@/lib/alerts/config"; - -import { - createAlertChannel, - deleteAlertChannel, - pollTelegramConnect, - startTelegramConnect, - testAlertChannel, -} from "./actions"; - -export interface ChannelRow { - id: string; - type: ChannelType; - config: Record; - verified: boolean; - created_at: string; -} - -const typeLabels: Record = { - telegram: "Telegram", - discord: "Discord webhook", - ntfy: "ntfy", - email: "Email", -}; - -function describe(channel: ChannelRow): string { - switch (channel.type) { - case "telegram": - return `chat ${channel.config.chat_id}`; - case "discord": - return "webhook …" + (channel.config.webhook_url ?? "").slice(-18); - case "ntfy": - return `${channel.config.server ?? "https://ntfy.sh"}/${channel.config.topic}`; - case "email": - return channel.config.to ?? ""; - } -} - -export function ChannelsManager({ - channels, - atLimit, -}: { - channels: ChannelRow[]; - atLimit: boolean; -}) { - const router = useRouter(); - const [adding, setAdding] = useState(false); - const [type, setType] = useState("telegram"); - const [error, setError] = useState(null); - const [notice, setNotice] = useState(null); - const [tgUrl, setTgUrl] = useState(null); - const [connecting, setConnecting] = useState(false); - const pollRef = useRef | null>(null); - const [pending, startTransition] = useTransition(); - - useEffect(() => { - return () => { - if (pollRef.current) clearInterval(pollRef.current); - }; - }, []); - - function submit(formData: FormData) { - startTransition(async () => { - setError(null); - const result = await createAlertChannel(null, formData); - if (result.error) { - setError(result.error); - return; - } - setAdding(false); - setNotice("Channel added — press Test to verify it before alerts flow."); - }); - } - - // Telegram: mint a one-time deep link, open it, then poll until the bot - // webhook reports the user's chat_id and the channel is created. - function connectTelegram() { - startTransition(async () => { - setError(null); - setNotice(null); - const result = await startTelegramConnect(); - if (result.error || !result.url || !result.token) { - setError(result.error ?? "could not start Telegram connect"); - return; - } - setTgUrl(result.url); - setConnecting(true); - window.open(result.url, "_blank", "noopener"); - const token = result.token; - const started = Date.now(); - pollRef.current = setInterval(async () => { - if (Date.now() - started > 3 * 60_000) { - if (pollRef.current) clearInterval(pollRef.current); - setConnecting(false); - setError("Timed out waiting for Telegram. Tap the link and press Start, then try again."); - return; - } - const poll = await pollTelegramConnect(token); - if (poll.error) { - if (pollRef.current) clearInterval(pollRef.current); - setConnecting(false); - setError(poll.error); - } else if (poll.connected) { - if (pollRef.current) clearInterval(pollRef.current); - setConnecting(false); - setAdding(false); - setTgUrl(null); - setNotice("Telegram connected — you'll get alerts there."); - router.refresh(); - } - }, 2000); - }); - } - - function test(id: string) { - startTransition(async () => { - setError(null); - setNotice(null); - const result = await testAlertChannel(id); - if (result.error) { - setError(`Test failed: ${result.error}`); - } else { - setNotice("Test message sent — channel verified."); - } - }); - } - - function remove(id: string) { - startTransition(async () => { - await deleteAlertChannel(id); - }); - } - - - return ( -
-
-

Channels

- {!adding && !atLimit && ( - - )} -
- - {atLimit && ( -
- - You're on the free plan's one-channel limit. Upgrade to Pro for all channels. - - - Upgrade - -
- )} - - {notice &&

{notice}

} - {error &&

{error}

} - - {adding && ( -
- - - {type === "telegram" && ( -
-

- Connect your Telegram in one tap — no chat IDs, no bot setup. - We open our bot; press Start and you're done. -

- - {tgUrl && connecting && ( -

- Didn't open?{" "} - - Tap here - {" "} - and press Start in Telegram. -

- )} -
- )} - {type === "discord" && ( - - )} - {type === "ntfy" && ( - <> - - - - )} - {type === "email" && ( - - )} - -
- {type !== "telegram" && ( - - )} - -
-
- )} - - {channels.length > 0 && ( -
    - {channels.map((channel) => ( -
  • - {typeLabels[channel.type]} - {describe(channel)} - {channel.verified ? ( - - verified - - ) : ( - - unverified — press Test - - )} -
    - - -
    -
  • - ))} -
- )} -
- ); -} diff --git a/web/src/app/dashboard/alerts/page.tsx b/web/src/app/dashboard/alerts/page.tsx deleted file mode 100644 index 8201b67..0000000 --- a/web/src/app/dashboard/alerts/page.tsx +++ /dev/null @@ -1,82 +0,0 @@ -import { getLimits } from "@/lib/billing/entitlements"; -import { createClient } from "@/lib/supabase/server"; - -import { ChannelsManager, type ChannelRow } from "./channels-manager"; - -export const dynamic = "force-dynamic"; - -interface AlertRow { - id: string; - kind: string; - status: string; - message: string; - fired_at: string; - resolved_at: string | null; -} - -export default async function AlertsPage() { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - const { data: channels } = await supabase - .from("alert_channels") - .select("id, type, config, verified, created_at") - .order("created_at", { ascending: true }) - .returns(); - const limits = user ? await getLimits(supabase, user.id) : null; - const atChannelLimit = - limits?.maxAlertChannels != null && - (channels?.length ?? 0) >= limits.maxAlertChannels; - const { data: alerts } = await supabase - .from("alerts") - .select("id, kind, status, message, fired_at, resolved_at") - .order("fired_at", { ascending: false }) - .limit(50) - .returns(); - - return ( -
-

Alerts

-

- Get told when a restore test fails, a backup goes quiet, or an agent - goes silent — and when things recover. -

- - - -

Recent alerts

- {!alerts?.length ? ( -

- No alerts yet. That is a good thing. -

- ) : ( -
    - {alerts.map((alert) => ( -
  • -
    - - {alert.status} - - {alert.kind} - - {new Date(alert.fired_at).toLocaleString()} - -
    -

    {alert.message}

    -
  • - ))} -
- )} -
- ); -} diff --git a/web/src/app/dashboard/billing/billing-actions.tsx b/web/src/app/dashboard/billing/billing-actions.tsx deleted file mode 100644 index bfdf5f5..0000000 --- a/web/src/app/dashboard/billing/billing-actions.tsx +++ /dev/null @@ -1,69 +0,0 @@ -"use client"; - -import { useState } from "react"; - -export function BillingActions({ - plan, - hasCustomer, -}: { - plan: "free" | "pro"; - hasCustomer: boolean; -}) { - const [error, setError] = useState(null); - const [busy, setBusy] = useState(false); - - async function go(path: string, body?: object) { - setBusy(true); - setError(null); - try { - const resp = await fetch(path, { - method: "POST", - headers: { "Content-Type": "application/json" }, - body: body ? JSON.stringify(body) : undefined, - }); - const data = (await resp.json()) as { url?: string; error?: string }; - if (!resp.ok || !data.url) { - setError(data.error ?? "something went wrong"); - return; - } - window.location.assign(data.url); - } catch { - setError("network error"); - } finally { - setBusy(false); - } - } - - return ( -
- {plan === "free" && ( -
- - -
- )} - {hasCustomer && ( - - )} - {error &&

{error}

} -
- ); -} diff --git a/web/src/app/dashboard/billing/page.tsx b/web/src/app/dashboard/billing/page.tsx deleted file mode 100644 index 878344d..0000000 --- a/web/src/app/dashboard/billing/page.tsx +++ /dev/null @@ -1,90 +0,0 @@ -import { getPlan, isBeta, PLAN_LIMITS } from "@/lib/billing/entitlements"; -import { createClient } from "@/lib/supabase/server"; - -import { BillingActions } from "./billing-actions"; - -export const dynamic = "force-dynamic"; - -export default async function BillingPage() { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - const beta = isBeta(); - const plan = user ? await getPlan(supabase, user.id) : "free"; - // During the beta everyone effectively has Pro limits. - const limits = beta ? PLAN_LIMITS.pro : PLAN_LIMITS[plan]; - const { data: sub } = await supabase - .from("subscriptions") - .select("status, current_period_end, stripe_customer_id") - .maybeSingle(); - - if (beta) { - return ( -
-

Billing

-

- Restorable is in open beta. -

-
-
- Beta - - all features free - -
-

- Every Pro feature is unlocked while we're in beta — unlimited - repositories, any schedule, all alert channels, 12-month history — - at no cost. No card required. We'll give plenty of notice - before paid plans begin. -

-
-
- ); - } - - return ( -
-

Billing

-

- The free plan is genuinely usable: one repo, monthly tests, one alert - channel. Pro removes the limits. -

- -
-
- - {plan === "pro" ? "Pro" : "Free"} - - {sub?.status && sub.status !== "inactive" && ( - - {sub.status} - - )} - {plan === "pro" && sub?.current_period_end && ( - - renews {new Date(sub.current_period_end).toLocaleDateString()} - - )} -
-
    -
  • - {limits.maxRepos == null ? "Unlimited repositories" : `${limits.maxRepos} repository`} -
  • -
  • - {limits.minInterval === "any" ? "Any test schedule" : "Monthly restore tests"} -
  • -
  • - {limits.maxAlertChannels == null - ? "All alert channels" - : `${limits.maxAlertChannels} alert channel`} -
  • -
  • {limits.historyMonths}-month run history
  • -
-
- - -
- ); -} diff --git a/web/src/app/dashboard/layout.tsx b/web/src/app/dashboard/layout.tsx deleted file mode 100644 index cdf165b..0000000 --- a/web/src/app/dashboard/layout.tsx +++ /dev/null @@ -1,96 +0,0 @@ -import Link from "next/link"; - -import { MilestoneTracker } from "@/components/milestone-tracker"; -import { createClient } from "@/lib/supabase/server"; - -import { signOut } from "./actions"; - -export default async function DashboardLayout({ - children, -}: { - children: React.ReactNode; -}) { - const supabase = await createClient(); - const { - data: { user }, - } = await supabase.auth.getUser(); - - // Activation-funnel milestones (see MilestoneTracker): does this user have - // an agent connected, and has any run been reported yet? - const [{ count: agentCount }, { count: runCount }] = user - ? await Promise.all([ - supabase.from("agents").select("id", { count: "exact", head: true }), - supabase.from("test_runs").select("id", { count: "exact", head: true }), - ]) - : [{ count: 0 }, { count: 0 }]; - - return ( -
- {user && ( - 0} - hasRun={(runCount ?? 0) > 0} - /> - )} -
- -
- {user?.email} - -
-
- {children} -
- ); -} diff --git a/web/src/app/dashboard/page.tsx b/web/src/app/dashboard/page.tsx deleted file mode 100644 index 7b294ac..0000000 --- a/web/src/app/dashboard/page.tsx +++ /dev/null @@ -1,164 +0,0 @@ -import Link from "next/link"; - -import { NoRunsBadge, StatusBadge } from "@/components/status-badge"; -import { formatDuration } from "@/lib/format"; -import { createClient } from "@/lib/supabase/server"; -import type { Repo, TestRun } from "@/lib/types"; - -export const dynamic = "force-dynamic"; - -type RunRow = Pick< - TestRun, - "id" | "repo_id" | "status" | "started_at" | "finished_at" | "restore_duration_ms" | "created_at" ->; - -const runDurationMs = (run: RunRow) => - new Date(run.finished_at).getTime() - new Date(run.started_at).getTime(); - -// Recovery drift: last verified recovery time vs the median of up to ten -// earlier passing runs. Only reported once there's enough history (3+) and -// the change is big enough (±15%) to be signal rather than noise. -function recoveryDrift(passing: RunRow[]): number | null { - if (passing.length < 4) { - return null; - } - const prior = passing - .slice(1, 11) - .map(runDurationMs) - .sort((a, b) => a - b); - const median = prior[Math.floor(prior.length / 2)]; - if (median <= 0) { - return null; - } - const delta = (runDurationMs(passing[0]) - median) / median; - return Math.abs(delta) >= 0.15 ? delta : null; -} - -export default async function ReposPage() { - const supabase = await createClient(); - const { data: repos } = await supabase - .from("repos") - .select("id, fingerprint, label, created_at") - .order("created_at", { ascending: true }) - .returns(); - - const repoIds = (repos ?? []).map((r) => r.id); - const { data: runs } = repoIds.length - ? await supabase - .from("test_runs") - .select("id, repo_id, status, started_at, finished_at, restore_duration_ms, created_at") - .in("repo_id", repoIds) - .order("created_at", { ascending: false }) - .limit(200) - .returns() - : { data: [] }; - - const lastRunByRepo = new Map(); - const passingByRepo = new Map(); - for (const run of runs ?? []) { - if (!lastRunByRepo.has(run.repo_id)) { - lastRunByRepo.set(run.repo_id, run); - } - if (run.status === "pass") { - const list = passingByRepo.get(run.repo_id) ?? []; - list.push(run); - passingByRepo.set(run.repo_id, list); - } - } - - return ( -
-

Repositories

-

- Every repository your agents have restore-tested. Recovery time is - measured from the last passing test — a real restore, not an estimate. -

- - {!repos?.length ? ( -
-

No repositories yet.

-

- - Register an agent - {" "} - and run restorable test — the repo appears here with its first result. -

-
- ) : ( - - - - - - - - - - - {repos.map((repo) => { - const last = lastRunByRepo.get(repo.id); - const passing = passingByRepo.get(repo.id) ?? []; - const verified = passing[0]; - const drift = recoveryDrift(passing); - return ( - - - - - - - ); - })} - -
RepositoryLast testVerified recovery timeWhen
- - {repo.label} - -
- {repo.fingerprint.slice(0, 12)} -
-
- {last ? ( - - - - ) : ( - - )} - - {verified ? ( - <> - - {formatDuration(runDurationMs(verified))} - - {drift != null && ( - 0 - ? "ml-2 text-xs text-amber-600 dark:text-amber-400" - : "ml-2 text-xs text-green-700 dark:text-green-400" - } - > - {drift > 0 ? "▲" : "▼"} {Math.round(Math.abs(drift) * 100)}% vs - typical - - )} - {verified.restore_duration_ms != null && ( -
- restore {formatDuration(verified.restore_duration_ms)} · verify{" "} - {formatDuration( - Math.max(0, runDurationMs(verified) - verified.restore_duration_ms), - )} -
- )} - - ) : ( - — - )} -
- {last ? new Date(last.finished_at).toLocaleString() : "—"} -
- )} -
- ); -} diff --git a/web/src/app/dashboard/runs/[id]/page.tsx b/web/src/app/dashboard/runs/[id]/page.tsx deleted file mode 100644 index 6ab6f3c..0000000 --- a/web/src/app/dashboard/runs/[id]/page.tsx +++ /dev/null @@ -1,112 +0,0 @@ -import { notFound } from "next/navigation"; - -import { StatusBadge } from "@/components/status-badge"; -import { formatDuration } from "@/lib/format"; -import { createClient } from "@/lib/supabase/server"; -import type { Repo, TestRun } from "@/lib/types"; - -export const dynamic = "force-dynamic"; - -export default async function RunDetailPage({ - params, -}: { - params: Promise<{ id: string }>; -}) { - const { id } = await params; - const supabase = await createClient(); - - const { data: run } = await supabase - .from("test_runs") - .select("*") - .eq("id", id) - .maybeSingle(); - if (!run) { - notFound(); - } - - const { data: repo } = await supabase - .from("repos") - .select("id, fingerprint, label, created_at") - .eq("id", run.repo_id) - .maybeSingle(); - - return ( -
-
- -

{repo?.label ?? "Run detail"}

-
- -
-
-
Snapshot
-
{run.snapshot_id?.slice(0, 12) ?? "—"}
-
-
-
Duration
-
- {formatDuration( - new Date(run.finished_at).getTime() - new Date(run.started_at).getTime(), - )} - {run.restore_duration_ms != null && ( - - restore {formatDuration(run.restore_duration_ms)} · verify{" "} - {formatDuration( - Math.max( - 0, - new Date(run.finished_at).getTime() - - new Date(run.started_at).getTime() - - run.restore_duration_ms, - ), - )} - - )} -
-
-
-
Finished
-
{new Date(run.finished_at).toLocaleString()}
-
-
-
Agent version
-
{run.agent_version ?? "—"}
-
-
- - {run.error && ( -
- {run.error} -
- )} - -

Checks

- {run.results.length === 0 ? ( -

- No recipe checks ran (restore-only verification). -

- ) : ( -
    - {run.results.map((check, i) => ( -
  • -
    - - - {check.recipe}/{check.type} - - - {formatDuration(check.duration_ms)} - -
    - {check.message && ( -

    {check.message}

    - )} -
  • - ))} -
- )} -
- ); -} diff --git a/web/src/app/dashboard/runs/page.tsx b/web/src/app/dashboard/runs/page.tsx deleted file mode 100644 index ef2ea9e..0000000 --- a/web/src/app/dashboard/runs/page.tsx +++ /dev/null @@ -1,91 +0,0 @@ -import Link from "next/link"; - -import { StatusBadge } from "@/components/status-badge"; -import { formatDuration } from "@/lib/format"; -import { createClient } from "@/lib/supabase/server"; -import type { Repo, TestRun } from "@/lib/types"; - -export const dynamic = "force-dynamic"; - -export default async function RunsPage({ - searchParams, -}: { - searchParams: Promise<{ repo?: string }>; -}) { - const { repo: repoFilter } = await searchParams; - const supabase = await createClient(); - - let query = supabase - .from("test_runs") - .select( - "id, repo_id, status, snapshot_id, started_at, finished_at, restore_duration_ms, created_at, results", - ) - .order("created_at", { ascending: false }) - .limit(100); - if (repoFilter) { - query = query.eq("repo_id", repoFilter); - } - const { data: runs } = await query.returns(); - - const { data: repos } = await supabase - .from("repos") - .select("id, fingerprint, label, created_at") - .returns(); - const repoById = new Map((repos ?? []).map((r) => [r.id, r])); - - return ( -
-

- Run history - {repoFilter && repoById.get(repoFilter) ? ` — ${repoById.get(repoFilter)!.label}` : ""} -

-

Most recent first.

- - {!runs?.length ? ( -

No runs recorded yet.

- ) : ( - - - - - - - - - - - - {runs.map((run) => ( - - - - - - - - ))} - -
ResultRepositorySnapshotDurationFinished
- - - - {repoById.get(run.repo_id)?.label ?? "…"} - {run.snapshot_id?.slice(0, 8) ?? "—"} - - {formatDuration( - new Date(run.finished_at).getTime() - new Date(run.started_at).getTime(), - )} - {run.restore_duration_ms != null && ( -
- restore {formatDuration(run.restore_duration_ms)} -
- )} -
- - {new Date(run.finished_at).toLocaleString()} - -
- )} -
- ); -} diff --git a/web/src/app/globals.css b/web/src/app/globals.css deleted file mode 100644 index a2dc41e..0000000 --- a/web/src/app/globals.css +++ /dev/null @@ -1,26 +0,0 @@ -@import "tailwindcss"; - -:root { - --background: #ffffff; - --foreground: #171717; -} - -@theme inline { - --color-background: var(--background); - --color-foreground: var(--foreground); - --font-sans: var(--font-geist-sans); - --font-mono: var(--font-geist-mono); -} - -@media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } -} - -body { - background: var(--background); - color: var(--foreground); - font-family: Arial, Helvetica, sans-serif; -} diff --git a/web/src/app/icon.svg b/web/src/app/icon.svg deleted file mode 100644 index f73b5c4..0000000 --- a/web/src/app/icon.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/web/src/app/landing-cta.tsx b/web/src/app/landing-cta.tsx deleted file mode 100644 index b4b51f7..0000000 --- a/web/src/app/landing-cta.tsx +++ /dev/null @@ -1,43 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { useState } from "react"; - -import { track } from "@/lib/analytics"; - -// Conversion tracking: landing pageviews are automatic; these events measure -// the landing → signup funnel (SPEC: the metric that matters is activation). - -export function SignupCta() { - return ( - track("signup-intent")} - className="w-fit rounded bg-neutral-900 px-5 py-2.5 text-white dark:bg-white dark:text-neutral-900" - > - Get started free - - ); -} - -export function CopyInstall({ command }: { command: string }) { - const [copied, setCopied] = useState(false); - return ( -
- - {command} - - -
- ); -} diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsx deleted file mode 100644 index 4acef0c..0000000 --- a/web/src/app/layout.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import type { Metadata } from "next"; -import { Analytics } from "@vercel/analytics/next"; -import { Geist, Geist_Mono } from "next/font/google"; -import "./globals.css"; - -const geistSans = Geist({ - variable: "--font-geist-sans", - subsets: ["latin"], -}); - -const geistMono = Geist_Mono({ - variable: "--font-geist-mono", - subsets: ["latin"], -}); - -export const metadata: Metadata = { - title: "Restorable — your backups, actually proven to restore", - description: - "Restorable restore-tests your backups on a schedule: restore the latest snapshot into a disposable sandbox, verify the data works, destroy the sandbox, report the result.", -}; - -export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { - return ( - - - {children} - - - - ); -} diff --git a/web/src/app/legal/legal.tsx b/web/src/app/legal/legal.tsx deleted file mode 100644 index 7f796ea..0000000 --- a/web/src/app/legal/legal.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import Link from "next/link"; - -// Shared shell for the Terms and Privacy pages. -export function LegalPage({ - title, - updated, - children, -}: { - title: string; - updated: string; - children: React.ReactNode; -}) { - return ( -
- - ← Restorable - -

{title}

-

Last updated: {updated}

-
- {children} -
-
- ); -} diff --git a/web/src/app/login/page.tsx b/web/src/app/login/page.tsx deleted file mode 100644 index 0ef2c97..0000000 --- a/web/src/app/login/page.tsx +++ /dev/null @@ -1,160 +0,0 @@ -"use client"; - -import { useRouter, useSearchParams } from "next/navigation"; -import { Suspense, useState } from "react"; - -import { track } from "@/lib/analytics"; -import { createClient } from "@/lib/supabase/client"; - -export default function LoginPage() { - return ( - - - - ); -} - -function LoginForm() { - const router = useRouter(); - const searchParams = useSearchParams(); - const [mode, setMode] = useState<"signin" | "signup">("signin"); - const [email, setEmail] = useState(""); - const [password, setPassword] = useState(""); - const [error, setError] = useState(null); - const [notice, setNotice] = useState(null); - const [busy, setBusy] = useState(false); - - // The auth callback bounces here with ?error=link_expired when an email - // link (confirmation or password recovery) is invalid or already used. - const displayError = - error ?? - (searchParams.get("error") === "link_expired" - ? "That email link has expired or was already used. Enter your email and request a new one." - : null); - - async function submit(e: React.FormEvent) { - e.preventDefault(); - setBusy(true); - setError(null); - setNotice(null); - const supabase = createClient(); - const { data, error } = - mode === "signin" - ? await supabase.auth.signInWithPassword({ email, password }) - : await supabase.auth.signUp({ - email, - password, - options: { emailRedirectTo: `${window.location.origin}/auth/callback` }, - }); - setBusy(false); - if (error) { - setError(error.message); - return; - } - if (mode === "signup") { - track("signup"); - // Email confirmation enabled: no session until the link is clicked. - if (!data.session) { - setNotice("Check your email for a confirmation link, then sign in here."); - setMode("signin"); - return; - } - } - router.push("/dashboard"); - router.refresh(); - } - - async function forgotPassword() { - if (!email) { - setError("enter your email above first, then click forgot password"); - return; - } - setError(null); - const supabase = createClient(); - const { error } = await supabase.auth.resetPasswordForEmail(email, { - redirectTo: `${window.location.origin}/auth/callback?next=/reset-password`, - }); - if (error) { - setError(error.message); - return; - } - setNotice("If that address has an account, a reset link is on its way."); - } - - async function signInWithGitHub() { - setError(null); - const supabase = createClient(); - const { error } = await supabase.auth.signInWithOAuth({ - provider: "github", - options: { redirectTo: `${window.location.origin}/auth/callback` }, - }); - if (error) setError(error.message); - } - - return ( -
-
-

Restorable

-

- {mode === "signin" ? "Sign in to your account" : "Create your account"} -

-
- -
- - - {displayError &&

{displayError}

} - {notice &&

{notice}

} - -
- - {process.env.NEXT_PUBLIC_ENABLE_GITHUB_AUTH === "1" && ( - - )} - -
- - {mode === "signin" && ( - - )} -
-
- ); -} diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx deleted file mode 100644 index 775fa97..0000000 --- a/web/src/app/page.tsx +++ /dev/null @@ -1,154 +0,0 @@ -import Link from "next/link"; - -import { CopyInstall, SignupCta } from "./landing-cta"; - -const checkRows = [ - ["files", "Required paths restored, file counts hold, sampled files hash identically to repository content"], - ["sqlite", "The database passes PRAGMA integrity_check"], - ["postgres / mysql", "The dump in your backup actually loads into a throwaway container; row counts hold"], - ["docker-app", "The real app image boots against restored data and answers its health check"], -] as const; - -export default function Home() { - return ( -
- {/* Hero */} -
-

restorable — open-source restore testing for restic

-

- A backup you've never restored is a hope, not a backup. -

-

- Your backups run every night. Restorable proves they'd actually - restore: on a schedule, it restores your latest snapshot into a - disposable sandbox, verifies the data really works, destroys the - sandbox, and tells you the result — including your measured - recovery time, so you know how long being back online actually - takes. -

- - -
- - {/* Proof */} -
-

Not a green checkmark. A receipt.

-
-{`$ restorable test
-restorable: PASS
-  repo:      /srv/backups/restic
-  snapshot:  cd10c302
-  duration:  5.5s
-  restore:   4.1s
-  checks:
-    ✓ nextcloud/files   2 required path(s) present,
-                        5 sampled checksum(s) match repository
-    ✓ nextcloud/sqlite  "data/owncloud.db" passes integrity_check`}
-        
-

- Every run is a real restore into a throwaway sandbox — then real - verification against what your application needs to come back to - life. Because it's a real restore, the timing is real too: the - dashboard tracks your verified recovery time and how it drifts as - your data grows. Exit codes for cron. JSON for scripts. No account - required. -

-
- - {/* Checks */} -
-

Verification that understands your apps

-
- {checkRows.map(([name, what]) => ( -
- {name} -

{what}

-
- ))} -
-

- Ready-made recipes for Nextcloud, Vaultwarden, and Immich ship in the box. -

-
- - {/* Guarantees */} -
-

Built for people who read the source

-
    -
  • - Read-only, enforced by the compiler.{" "} - The agent wraps your restic and can only run restore/ls/check/dump — - the whitelist is a type, so forget and prune are compile errors. -
  • -
  • - Your data never leaves your machine.{" "} - Cloud mode reports pass/fail metadata only: fingerprints, snapshot - IDs, timings. Never file contents, never credentials. Outbound - HTTPS only, no open ports. -
  • -
  • - Genuinely useful standalone.{" "} - The MIT-licensed agent is the whole core loop. The cloud is - optional and additive — history, alerting, stale detection. -
  • -
-
- - {/* Pricing */} -
-

Pricing

- {process.env.BETA_MODE === "1" && ( -

- Open beta: everything below — including all of Pro - — is free right now. No card, no trial clock. We'll give - plenty of notice before paid plans begin. -

- )} -
-
-

Free

-

The tool, plus a dashboard

-
    -
  • Unlimited standalone use (forever, MIT)
  • -
  • 1 repository on the dashboard
  • -
  • Monthly scheduled tests
  • -
  • 1 alert channel
  • -
-
-
-

Pro — $8/mo or $80/yr

-

Convenience + evidence

-
    -
  • Unlimited repositories
  • -
  • Any schedule
  • -
  • All alert channels + stale detection
  • -
  • 12-month run history
  • -
  • Monthly confidence reports (coming soon)
  • -
-
-
-
- -
-
- -
- © {new Date().getFullYear()} ClevTech Solutions · MIT licensed -
- GitHub - Privacy - Terms - Sign in -
-
-
- ); -} diff --git a/web/src/app/privacy/page.tsx b/web/src/app/privacy/page.tsx deleted file mode 100644 index e6adfbe..0000000 --- a/web/src/app/privacy/page.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import type { Metadata } from "next"; - -import { LegalPage } from "../legal/legal"; - -export const metadata: Metadata = { title: "Privacy Policy — Restorable" }; - -export default function PrivacyPage() { - return ( - -

- Restorable is operated by ClevTech Solutions (“we”). This - policy explains what we collect and why. The short version: your backup - contents never reach us, and we collect the minimum needed to run the - service. -

- -

Your backup data never leaves your machine

-

- The Restorable agent runs on your own hardware. It restores and verifies - your backups locally, in a disposable sandbox, and then reports only - pass/fail metadata to us: a repository fingerprint (a - one-way hash — never the repository location or credentials), snapshot - IDs, per-check results, timings, and the agent version. File contents, - file names from your data, and repository passwords are never - transmitted and have no code path off your machine. Error messages are - scrubbed of credentials before they leave the agent. -

- -

What we collect

-
    -
  • - Account: your email address, used to sign in and to - send service and alert emails. -
  • -
  • - Agent activity: the pass/fail run metadata described - above, tied to your account. -
  • -
  • - Alert settings: the destinations you configure - (Telegram chat, Discord webhook, ntfy topic, or email address). -
  • -
  • - Billing: if you subscribe, Stripe processes your - payment. We store only a customer ID and subscription status — never - your card details. -
  • -
  • - Usage analytics: aggregate, cookieless page-view and - event data via Vercel Web Analytics. It is not tied to your identity - and is not used to track you across other sites. -
  • -
- -

Service providers

-

We rely on these processors, each handling only what their function needs:

-
    -
  • Supabase — database and authentication
  • -
  • Vercel — application hosting and analytics
  • -
  • Amazon Web Services (SES) — sending email
  • -
  • Stripe — payment processing
  • -
  • Telegram, Discord, ntfy — only if you configure those alert channels
  • -
- -

Data retention and deletion

-

- Run history is retained per your plan (3 months on Free, 12 months on - Pro) and older records are pruned automatically. You can delete any - agent, repository, or alert channel at any time from your dashboard. To - delete your account and all associated data, contact us and we will - remove it. -

- -

Contact

-

- Questions about privacy: privacy@restorable.dev. -

-
- ); -} diff --git a/web/src/app/reset-password/page.tsx b/web/src/app/reset-password/page.tsx deleted file mode 100644 index 9ffaed8..0000000 --- a/web/src/app/reset-password/page.tsx +++ /dev/null @@ -1,98 +0,0 @@ -"use client"; - -import Link from "next/link"; -import { useRouter } from "next/navigation"; -import { useEffect, useState } from "react"; - -import { createClient } from "@/lib/supabase/client"; - -// Landed on from the password-recovery email link (the auth callback has -// already established a session by the time the user is here). If no session -// exists — expired link, prefetched by a mail scanner, or a repeated reset -// request superseding this one — say so instead of offering a doomed form. -export default function ResetPasswordPage() { - const router = useRouter(); - const [password, setPassword] = useState(""); - const [error, setError] = useState(null); - const [busy, setBusy] = useState(false); - const [session, setSession] = useState<"checking" | "ok" | "missing">("checking"); - - useEffect(() => { - const supabase = createClient(); - supabase.auth.getUser().then(({ data }) => { - setSession(data.user ? "ok" : "missing"); - }); - }, []); - - async function submit(e: React.FormEvent) { - e.preventDefault(); - setBusy(true); - setError(null); - const supabase = createClient(); - const { error } = await supabase.auth.updateUser({ password }); - setBusy(false); - if (error) { - setError(error.message); - return; - } - router.push("/dashboard"); - router.refresh(); - } - - if (session === "checking") { - return ( -
-

Checking your recovery link…

-
- ); - } - - if (session === "missing") { - return ( -
-

This link has expired

-

- The recovery link is invalid, was already used, or was replaced by a - newer one (each “reset password” email cancels the ones - before it). Request a fresh link and use the newest email. -

- - Back to sign in - -
- ); - } - - return ( -
-
-

Set a new password

-

You're signed in via the recovery link.

-
-
- - {error &&

{error}

} - -
-
- ); -} diff --git a/web/src/app/terms/page.tsx b/web/src/app/terms/page.tsx deleted file mode 100644 index 6eab8c0..0000000 --- a/web/src/app/terms/page.tsx +++ /dev/null @@ -1,64 +0,0 @@ -import type { Metadata } from "next"; - -import { LegalPage } from "../legal/legal"; - -export const metadata: Metadata = { title: "Terms of Service — Restorable" }; - -export default function TermsPage() { - return ( - -

- These terms govern your use of Restorable, operated by ClevTech - Solutions (“we”). By creating an account or using the - service you agree to them. -

- -

The service

-

- Restorable restore-tests your backups and reports the results. The agent - is open-source software (MIT licensed) that you run yourself; the hosted - dashboard is an optional, additive service. Restorable performs only - read operations against your backup repositories and is a verification - tool — it is not itself a backup, and it does not replace keeping your - own backups. -

- -

Beta

-

- The hosted service is currently in beta. Paid plans are free during the - beta period. Features may change, and availability is not guaranteed. -

- -

Your responsibilities

-
    -
  • Keep your account credentials and agent API keys secure.
  • -
  • Only connect the service to backup repositories you are authorized to access.
  • -
  • Do not attempt to disrupt, reverse-engineer the hosted service, or abuse it.
  • -
- -

Billing

-

- If and when paid plans begin charging, subscriptions are billed through - Stripe on the interval you select and renew until canceled. You can - cancel anytime from the billing portal; access continues through the end - of the paid period, and your data is retained. -

- -

No warranty; limitation of liability

-

- The service is provided “as is,” without warranties of any - kind. A passing test indicates the checks you configured succeeded on a - given snapshot; it is not a guarantee against all possible data loss. - You remain responsible for your own backup strategy. To the maximum - extent permitted by law, we are not liable for indirect or consequential - damages, or for data loss. -

- -

Changes and contact

-

- We may update these terms; material changes will be reflected here. - Questions: support@restorable.dev. -

-
- ); -} diff --git a/web/src/components/milestone-tracker.tsx b/web/src/components/milestone-tracker.tsx deleted file mode 100644 index 1a11808..0000000 --- a/web/src/components/milestone-tracker.tsx +++ /dev/null @@ -1,39 +0,0 @@ -"use client"; - -import { useEffect } from "react"; - -import { track } from "@/lib/analytics"; - -// Fires activation-funnel events for milestones that actually happen -// server-side (an agent registering, reporting its first run) but which -// Vercel's browser-only custom events can't see directly. We detect them when -// the dashboard first observes the state, and dedupe per user with -// localStorage so each milestone counts once. -export function MilestoneTracker({ - userId, - hasAgent, - hasRun, -}: { - userId: string; - hasAgent: boolean; - hasRun: boolean; -}) { - useEffect(() => { - fireOnce(userId, "agent-connected", hasAgent); - fireOnce(userId, "first-green-test", hasRun); - }, [userId, hasAgent, hasRun]); - - return null; -} - -function fireOnce(userId: string, event: string, condition: boolean) { - if (!condition) return; - const key = `rstr:${event}:${userId}`; - try { - if (localStorage.getItem(key)) return; - localStorage.setItem(key, "1"); - } catch { - // localStorage unavailable (private mode): just fire; minor double-count. - } - track(event); -} diff --git a/web/src/components/status-badge.tsx b/web/src/components/status-badge.tsx deleted file mode 100644 index b19746a..0000000 --- a/web/src/components/status-badge.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import type { RunStatus } from "@/lib/types"; - -const styles: Record = { - pass: "bg-green-100 text-green-800 dark:bg-green-900/40 dark:text-green-300", - fail: "bg-red-100 text-red-800 dark:bg-red-900/40 dark:text-red-300", - error: "bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-300", -}; - -export function StatusBadge({ status }: { status: RunStatus }) { - return ( - - {status} - - ); -} - -export function NoRunsBadge() { - return ( - - no runs - - ); -} diff --git a/web/src/lib/alerts/config.test.ts b/web/src/lib/alerts/config.test.ts deleted file mode 100644 index 1ae1e14..0000000 --- a/web/src/lib/alerts/config.test.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { parseChannelConfig } from "./config"; - -describe("channel config validation", () => { - it("accepts valid configs per type", () => { - expect(() => parseChannelConfig("telegram", { chat_id: "123456" })).not.toThrow(); - expect(() => parseChannelConfig("telegram", { chat_id: "-100987" })).not.toThrow(); - expect(() => - parseChannelConfig("discord", { - webhook_url: "https://discord.com/api/webhooks/1/abc", - }), - ).not.toThrow(); - expect(() => parseChannelConfig("ntfy", { topic: "my-backups" })).not.toThrow(); - expect(() => - parseChannelConfig("ntfy", { topic: "t", server: "https://ntfy.example.com" }), - ).not.toThrow(); - expect(() => parseChannelConfig("email", { to: "a@example.com" })).not.toThrow(); - }); - - it.each([ - ["telegram non-numeric chat", "telegram", { chat_id: "abc" }], - ["discord non-discord host", "discord", { webhook_url: "https://evil.com/api/webhooks/1/x" }], - ["discord non-webhook path", "discord", { webhook_url: "https://discord.com/channels/1" }], - ["ntfy bad topic", "ntfy", { topic: "has spaces" }], - ["ntfy http server", "ntfy", { topic: "t", server: "http://ntfy.example.com" }], - ["ntfy localhost server", "ntfy", { topic: "t", server: "https://localhost:8443" }], - ["ntfy private ip server", "ntfy", { topic: "t", server: "https://192.168.1.10" }], - ["email invalid", "email", { to: "not-an-email" }], - ["unknown extra field", "telegram", { chat_id: "1", extra: "x" }], - ] as const)("rejects %s", (_name, type, config) => { - expect(() => parseChannelConfig(type, config)).toThrow(); - }); -}); diff --git a/web/src/lib/alerts/config.ts b/web/src/lib/alerts/config.ts deleted file mode 100644 index 7e7c1ef..0000000 --- a/web/src/lib/alerts/config.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { z } from "zod"; - -// Per-type channel config schemas. Validated at channel creation AND again -// before every send (config lives in jsonb; never trust stored shape). - -export const telegramConfigSchema = z.strictObject({ - chat_id: z.string().regex(/^-?\d{1,20}$/, "chat_id must be numeric"), -}); - -export const discordConfigSchema = z.strictObject({ - webhook_url: z - .url() - .refine( - (u) => { - try { - const host = new URL(u).host; - return ( - (host === "discord.com" || host === "discordapp.com") && - new URL(u).pathname.startsWith("/api/webhooks/") - ); - } catch { - return false; - } - }, - { message: "must be a Discord webhook URL (https://discord.com/api/webhooks/…)" }, - ), -}); - -// ntfy servers are commonly self-hosted, so any https host is allowed — -// but never localhost/private-network literals (we make the request). -const privateHost = - /^(localhost|127\.|10\.|192\.168\.|169\.254\.|0\.|\[?::1\]?$|172\.(1[6-9]|2\d|3[01])\.)/i; - -export const ntfyConfigSchema = z.strictObject({ - topic: z.string().regex(/^[A-Za-z0-9_-]{1,64}$/, "topic must be alphanumeric/-/_"), - server: z - .url() - .refine( - (u) => { - try { - const parsed = new URL(u); - return parsed.protocol === "https:" && !privateHost.test(parsed.hostname); - } catch { - return false; - } - }, - { message: "server must be a public https:// URL" }, - ) - .optional(), -}); - -export const emailConfigSchema = z.strictObject({ - to: z.email(), -}); - -export const channelTypeSchema = z.enum(["telegram", "discord", "ntfy", "email"]); -export type ChannelType = z.infer; - -const schemaByType = { - telegram: telegramConfigSchema, - discord: discordConfigSchema, - ntfy: ntfyConfigSchema, - email: emailConfigSchema, -} as const; - -export interface AlertChannel { - id: string; - type: ChannelType; - config: unknown; -} - -// parseChannelConfig validates a channel's stored config for its type. -export function parseChannelConfig( - type: T, - config: unknown, -): z.infer<(typeof schemaByType)[T]> { - return schemaByType[type].parse(config) as z.infer<(typeof schemaByType)[T]>; -} diff --git a/web/src/lib/alerts/incidents.ts b/web/src/lib/alerts/incidents.ts deleted file mode 100644 index 5eaeae4..0000000 --- a/web/src/lib/alerts/incidents.ts +++ /dev/null @@ -1,105 +0,0 @@ -import "server-only"; - -import type { SupabaseClient } from "@supabase/supabase-js"; - -import type { ChannelType } from "./config"; -import { sendToChannel, type AlertMessage } from "./send"; - -export type AlertKind = "run_failure" | "stale_repo" | "agent_silent"; - -export interface IncidentKey { - userId: string; - kind: AlertKind; - subjectId: string; // repo id or agent id -} - -// dispatchToUserChannels sends msg to every VERIFIED channel of the user. -// Channel failures are isolated: one broken webhook must not stop the rest -// (or the caller). Returns how many channels succeeded. -export async function dispatchToUserChannels( - admin: SupabaseClient, - userId: string, - msg: AlertMessage, -): Promise { - const { data: channels } = await admin - .from("alert_channels") - .select("id, type, config") - .eq("user_id", userId) - .eq("verified", true); - if (!channels?.length) { - return 0; - } - const results = await Promise.allSettled( - channels.map((c) => - sendToChannel({ id: c.id, type: c.type as ChannelType, config: c.config }, msg), - ), - ); - for (const r of results) { - if (r.status === "rejected") { - console.error("alert channel send failed:", r.reason); - } - } - return results.filter((r) => r.status === "fulfilled").length; -} - -// openIncident opens a firing incident and dispatches the alert — unless one -// is already open for this (user, kind, subject), in which case it does -// nothing. The partial unique index makes this race-safe: exactly one insert -// wins, so exactly one alert is sent per incident. -export async function openIncident( - admin: SupabaseClient, - key: IncidentKey, - msg: AlertMessage, - runId?: string, -): Promise { - const { data, error } = await admin - .from("alerts") - .insert({ - user_id: key.userId, - kind: key.kind, - subject_id: key.subjectId, - run_id: runId ?? null, - message: `${msg.title} — ${msg.body}`, - }) - .select("id") - .maybeSingle(); - if (error) { - // 23505 = unique violation: an incident is already firing. Suppress. - if (error.code === "23505") { - return false; - } - console.error("open incident failed:", error); - return false; - } - if (!data) { - return false; - } - await dispatchToUserChannels(admin, key.userId, msg); - return true; -} - -// resolveIncident resolves an open incident, if any, and dispatches the -// recovery notice. No open incident → no notice (nothing was alerted). -export async function resolveIncident( - admin: SupabaseClient, - key: IncidentKey, - msg: AlertMessage, -): Promise { - const { data, error } = await admin - .from("alerts") - .update({ status: "resolved", resolved_at: new Date().toISOString() }) - .eq("user_id", key.userId) - .eq("kind", key.kind) - .eq("subject_id", key.subjectId) - .eq("status", "firing") - .select("id"); - if (error) { - console.error("resolve incident failed:", error); - return false; - } - if (!data?.length) { - return false; - } - await dispatchToUserChannels(admin, key.userId, msg); - return true; -} diff --git a/web/src/lib/alerts/send.ts b/web/src/lib/alerts/send.ts deleted file mode 100644 index 8f66447..0000000 --- a/web/src/lib/alerts/send.ts +++ /dev/null @@ -1,108 +0,0 @@ -import "server-only"; - -import { SendEmailCommand, SESv2Client } from "@aws-sdk/client-sesv2"; - -import { parseChannelConfig, type AlertChannel } from "./config"; - -// Email goes out through AWS SES. Custom env names (SES_*) because Vercel -// reserves the standard AWS_* variables for its own runtime. -async function sendEmailViaSES(to: string, subject: string, body: string): Promise { - const accessKeyId = process.env.SES_ACCESS_KEY_ID; - const secretAccessKey = process.env.SES_SECRET_ACCESS_KEY; - if (!accessKeyId || !secretAccessKey) { - throw new Error("Email is not configured on this deployment (SES_ACCESS_KEY_ID)"); - } - const client = new SESv2Client({ - region: process.env.SES_REGION ?? "us-east-1", - credentials: { accessKeyId, secretAccessKey }, - }); - await client.send( - new SendEmailCommand({ - FromEmailAddress: process.env.ALERT_EMAIL_FROM ?? "Restorable ", - Destination: { ToAddresses: [to] }, - Content: { - Simple: { - Subject: { Data: subject, Charset: "UTF-8" }, - Body: { Text: { Data: body, Charset: "UTF-8" } }, - }, - }, - }), - ); -} - -export interface AlertMessage { - title: string; - body: string; - level: "failure" | "warning" | "recovery"; -} - -const emoji: Record = { - failure: "❌", - warning: "⚠️", - recovery: "✅", -}; - -const SEND_TIMEOUT_MS = 10_000; - -async function post(url: string, init: RequestInit): Promise { - const resp = await fetch(url, { - ...init, - method: "POST", - signal: AbortSignal.timeout(SEND_TIMEOUT_MS), - }); - if (!resp.ok) { - const body = (await resp.text()).slice(0, 200); - throw new Error(`HTTP ${resp.status}: ${body}`); - } - return resp; -} - -// sendToChannel delivers one alert to one channel. Throws with a -// user-presentable message on failure (shown by the channel Test button). -export async function sendToChannel( - channel: AlertChannel, - msg: AlertMessage, -): Promise { - const text = `${emoji[msg.level]} ${msg.title}\n${msg.body}`; - switch (channel.type) { - case "telegram": { - const { chat_id } = parseChannelConfig("telegram", channel.config); - const token = process.env.TELEGRAM_BOT_TOKEN; - if (!token) { - throw new Error("Telegram is not configured on this deployment (TELEGRAM_BOT_TOKEN)"); - } - const base = process.env.TELEGRAM_API_BASE ?? "https://api.telegram.org"; - await post(`${base}/bot${token}/sendMessage`, { - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ chat_id, text }), - }); - return; - } - case "discord": { - const { webhook_url } = parseChannelConfig("discord", channel.config); - await post(webhook_url, { - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ content: text }), - }); - return; - } - case "ntfy": { - const { topic, server } = parseChannelConfig("ntfy", channel.config); - const base = (server ?? "https://ntfy.sh").replace(/\/+$/, ""); - await post(`${base}/${topic}`, { - headers: { - Title: msg.title, - Priority: msg.level === "recovery" ? "default" : "high", - Tags: msg.level === "recovery" ? "white_check_mark" : "warning", - }, - body: msg.body, - }); - return; - } - case "email": { - const { to } = parseChannelConfig("email", channel.config); - await sendEmailViaSES(to, `${emoji[msg.level]} ${msg.title}`, msg.body); - return; - } - } -} diff --git a/web/src/lib/alerts/staleness.test.ts b/web/src/lib/alerts/staleness.test.ts deleted file mode 100644 index 7a9c8fc..0000000 --- a/web/src/lib/alerts/staleness.test.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { isStale, parsePgInterval, staleAfterMs } from "./staleness"; - -const HOUR = 3_600_000; -const DAY = 24 * HOUR; - -describe("staleAfterMs", () => { - it("prefers the explicit stale_after", () => { - expect(staleAfterMs(2 * DAY, [new Date(), new Date(Date.now() - HOUR)])).toBe(2 * DAY); - }); - - it("infers 1.5x cadence from the last two runs", () => { - const newest = new Date("2026-07-04T00:00:00Z"); - const previous = new Date("2026-07-02T00:00:00Z"); // 2-day cadence - expect(staleAfterMs(null, [newest, previous])).toBe(3 * DAY); - }); - - it("floors the inferred window at 24h", () => { - const newest = new Date("2026-07-04T02:00:00Z"); - const previous = new Date("2026-07-04T00:00:00Z"); // 2h cadence - expect(staleAfterMs(null, [newest, previous])).toBe(DAY); - }); - - it("returns null with fewer than two runs", () => { - expect(staleAfterMs(null, [new Date()])).toBeNull(); - expect(staleAfterMs(null, [])).toBeNull(); - }); -}); - -describe("isStale", () => { - const now = new Date("2026-07-04T12:00:00Z"); - it("fires past the window and not before", () => { - expect(isStale(now, new Date("2026-07-01T12:00:00Z"), 2 * DAY)).toBe(true); - expect(isStale(now, new Date("2026-07-03T12:00:00Z"), 2 * DAY)).toBe(false); - }); - it("never fires without a window or history", () => { - expect(isStale(now, new Date(), null)).toBe(false); - expect(isStale(now, null, DAY)).toBe(false); - }); -}); - -describe("parsePgInterval", () => { - it.each([ - ["48:00:00", 48 * HOUR], - ["2 days", 2 * DAY], - ["1 day 12:00:00", DAY + 12 * HOUR], - ["00:30:00", 30 * 60 * 1000], - ])("parses %s", (input, want) => { - expect(parsePgInterval(input)).toBe(want); - }); - - it("returns null for null or unparseable", () => { - expect(parsePgInterval(null)).toBeNull(); - expect(parsePgInterval("soon")).toBeNull(); - }); -}); diff --git a/web/src/lib/alerts/staleness.ts b/web/src/lib/alerts/staleness.ts deleted file mode 100644 index 70b710a..0000000 --- a/web/src/lib/alerts/staleness.ts +++ /dev/null @@ -1,61 +0,0 @@ -// Staleness policy (SPEC: "last successful run exceeds its schedule window -// × 1.5"). The control plane does not yet store per-repo schedules, so the -// window is the repo's explicit stale_after when set, otherwise inferred -// from the observed cadence: 1.5× the gap between the two most recent runs, -// with a 24h floor. Fewer than two runs → no staleness (nothing to infer). - -export const MIN_STALE_AFTER_MS = 24 * 60 * 60 * 1000; -const CADENCE_FACTOR = 1.5; - -// staleAfterMs decides the allowed silence window for a repo. -// explicitMs: parsed repos.stale_after, if set. -// recentRunTimes: finished_at of the most recent runs, newest first. -export function staleAfterMs( - explicitMs: number | null, - recentRunTimes: Date[], -): number | null { - if (explicitMs != null && explicitMs > 0) { - return explicitMs; - } - if (recentRunTimes.length < 2) { - return null; - } - const gap = recentRunTimes[0].getTime() - recentRunTimes[1].getTime(); - return Math.max(gap * CADENCE_FACTOR, MIN_STALE_AFTER_MS); -} - -// isStale: has the newest successful run drifted past the window? -export function isStale( - now: Date, - lastSuccess: Date | null, - windowMs: number | null, -): boolean { - if (windowMs == null || lastSuccess == null) { - return false; - } - return now.getTime() - lastSuccess.getTime() > windowMs; -} - -// parsePgInterval converts the common postgres interval text forms we store -// ("48:00:00", "2 days", "1 day 12:00:00") to milliseconds. -export function parsePgInterval(interval: string | null): number | null { - if (!interval) { - return null; - } - let ms = 0; - let rest = interval.trim(); - - const dayMatch = rest.match(/^(\d+)\s+days?\s*/); - if (dayMatch) { - ms += Number(dayMatch[1]) * 24 * 60 * 60 * 1000; - rest = rest.slice(dayMatch[0].length); - } - if (rest) { - const hms = rest.match(/^(\d+):(\d+):(\d+)$/); - if (!hms) { - return ms > 0 ? ms : null; - } - ms += (Number(hms[1]) * 3600 + Number(hms[2]) * 60 + Number(hms[3])) * 1000; - } - return ms > 0 ? ms : null; -} diff --git a/web/src/lib/analytics.ts b/web/src/lib/analytics.ts deleted file mode 100644 index 4f91ff0..0000000 --- a/web/src/lib/analytics.ts +++ /dev/null @@ -1,10 +0,0 @@ -"use client"; - -import { track as vercelTrack } from "@vercel/analytics"; - -// Thin wrapper over Vercel Web Analytics custom events, so call sites stay -// analytics-provider-agnostic. Safe to call anywhere; no-ops if analytics -// isn't loaded (local dev, or before the script initializes). -export function track(event: string, props?: Record) { - vercelTrack(event, props); -} diff --git a/web/src/lib/api/agent-auth.ts b/web/src/lib/api/agent-auth.ts deleted file mode 100644 index ab15bd8..0000000 --- a/web/src/lib/api/agent-auth.ts +++ /dev/null @@ -1,37 +0,0 @@ -import "server-only"; - -import type { SupabaseClient } from "@supabase/supabase-js"; - -import { API_KEY_PREFIX, hashSecret } from "./keys"; - -export interface AuthedAgent { - id: string; - user_id: string; -} - -// authenticateAgent resolves the Authorization: Bearer rsk_… header to an -// agent row, or null. Callers must scope every subsequent query to -// agent.user_id — the admin client bypasses RLS. -export async function authenticateAgent( - admin: SupabaseClient, - request: Request, -): Promise { - const header = request.headers.get("authorization") ?? ""; - const [scheme, key] = header.split(" "); - if (scheme?.toLowerCase() !== "bearer" || !key?.startsWith(API_KEY_PREFIX)) { - return null; - } - const { data, error } = await admin - .from("agents") - .select("id, user_id") - .eq("key_hash", hashSecret(key)) - .maybeSingle(); - if (error || !data) { - return null; - } - return data; -} - -export function unauthorized(): Response { - return Response.json({ error: "invalid or missing agent API key" }, { status: 401 }); -} diff --git a/web/src/lib/api/keys.test.ts b/web/src/lib/api/keys.test.ts deleted file mode 100644 index bb36cd3..0000000 --- a/web/src/lib/api/keys.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { - generateApiKey, - generateRegistrationToken, - hashSecret, -} from "./keys"; - -describe("key generation", () => { - it("produces prefixed, high-entropy, unique values", () => { - const token = generateRegistrationToken(); - const key = generateApiKey(); - expect(token).toMatch(/^rrt_[A-Za-z0-9_-]{40,}$/); - expect(key).toMatch(/^rsk_[A-Za-z0-9_-]{40,}$/); - expect(generateApiKey()).not.toBe(generateApiKey()); - }); -}); - -describe("hashSecret", () => { - it("is deterministic sha256 hex", () => { - expect(hashSecret("rsk_x")).toBe(hashSecret("rsk_x")); - expect(hashSecret("rsk_x")).toMatch(/^[a-f0-9]{64}$/); - expect(hashSecret("rsk_x")).not.toBe(hashSecret("rsk_y")); - }); -}); diff --git a/web/src/lib/api/keys.ts b/web/src/lib/api/keys.ts deleted file mode 100644 index 1c97a7a..0000000 --- a/web/src/lib/api/keys.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { createHash, randomBytes } from "node:crypto"; - -// Key material: URL-safe base64 of 32 random bytes, with a recognizable -// prefix. Only the sha256 hash of either kind is ever stored. -// rrt_… registration tokens (minted in the dashboard, exchanged once) -// rsk_… agent API keys (returned once at registration) - -export const REGISTRATION_TOKEN_PREFIX = "rrt_"; -export const API_KEY_PREFIX = "rsk_"; - -function randomSecret(prefix: string): string { - return prefix + randomBytes(32).toString("base64url"); -} - -export function generateRegistrationToken(): string { - return randomSecret(REGISTRATION_TOKEN_PREFIX); -} - -export function generateApiKey(): string { - return randomSecret(API_KEY_PREFIX); -} - -// hashSecret is deterministic sha256 — appropriate for high-entropy random -// keys (unlike passwords, they cannot be dictionary-attacked, and equality -// lookup by hash needs determinism). -export function hashSecret(secret: string): string { - return createHash("sha256").update(secret).digest("hex"); -} diff --git a/web/src/lib/api/schemas.test.ts b/web/src/lib/api/schemas.test.ts deleted file mode 100644 index ca2c83e..0000000 --- a/web/src/lib/api/schemas.test.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { registerRequestSchema, runRequestSchema } from "./schemas"; - -const validRun = { - repo_fingerprint: "a".repeat(64), - repo_label: "/srv/backups/restic", - snapshot_id: "abc123", - status: "pass", - started_at: "2026-07-04T03:00:00Z", - finished_at: "2026-07-04T03:01:30.123456-04:00", - agent_version: "v0.1.0", - checks: [ - { recipe: "nextcloud", type: "files", status: "pass", message: "ok", duration_ms: 42 }, - ], -}; - -describe("runRequestSchema", () => { - it("accepts a valid payload (Z and offset timestamps)", () => { - expect(runRequestSchema.safeParse(validRun).success).toBe(true); - }); - - it("defaults missing check message to empty string", () => { - const parsed = runRequestSchema.parse({ - ...validRun, - checks: [{ recipe: "r", type: "files", status: "fail", duration_ms: 1 }], - }); - expect(parsed.checks[0].message).toBe(""); - }); - - it("accepts restore_duration_ms and leaves it optional", () => { - expect( - runRequestSchema.safeParse({ ...validRun, restore_duration_ms: 42500 }).success, - ).toBe(true); - const parsed = runRequestSchema.parse(validRun); - expect(parsed.restore_duration_ms).toBeUndefined(); - }); - - it.each([ - ["bad fingerprint", { repo_fingerprint: "not-hex" }], - ["uppercase fingerprint", { repo_fingerprint: "A".repeat(64) }], - ["unknown status", { status: "flaky" }], - ["missing label", { repo_label: "" }], - ["non-iso timestamp", { started_at: "yesterday" }], - ["negative duration", { checks: [{ recipe: "r", type: "t", status: "pass", duration_ms: -1 }] }], - ["negative restore duration", { restore_duration_ms: -1 }], - ["fractional restore duration", { restore_duration_ms: 1.5 }], - ["absurd restore duration", { restore_duration_ms: 8 * 24 * 60 * 60 * 1000 }], - ])("rejects %s", (_name, patch) => { - expect(runRequestSchema.safeParse({ ...validRun, ...patch }).success).toBe(false); - }); - - it("rejects finished_at before started_at", () => { - const result = runRequestSchema.safeParse({ - ...validRun, - started_at: "2026-07-04T05:00:00Z", - finished_at: "2026-07-04T04:00:00Z", - }); - expect(result.success).toBe(false); - }); -}); - -describe("registerRequestSchema", () => { - it("accepts a valid request", () => { - expect( - registerRequestSchema.safeParse({ token: "rrt_abc", name: "homelab-box" }).success, - ).toBe(true); - }); - - it("rejects tokens without the rrt_ prefix", () => { - expect( - registerRequestSchema.safeParse({ token: "rsk_abc", name: "box" }).success, - ).toBe(false); - }); -}); - -describe("restore_duration_ms sanity", () => { - const base = { - repo_fingerprint: "a".repeat(64), - repo_label: "/srv/backups/restic", - status: "pass" as const, - started_at: "2026-09-19T10:00:00.000Z", - finished_at: "2026-09-19T10:00:01.000Z", // a one-second run - agent_version: "v0.1.2", - checks: [], - }; - - it("rejects a restore longer than the run that contained it", () => { - // Previously accepted, and the dashboard rendered "1s · restore 10m" as - // the headline verified recovery time. - const r = runRequestSchema.safeParse({ ...base, restore_duration_ms: 600_000 }); - expect(r.success).toBe(false); - }); - - it("accepts a restore that fits inside the run", () => { - expect(runRequestSchema.safeParse({ ...base, restore_duration_ms: 800 }).success).toBe(true); - }); - - it("allows a second of slack for clock granularity", () => { - expect(runRequestSchema.safeParse({ ...base, restore_duration_ms: 1500 }).success).toBe(true); - }); - - it("still accepts runs that omit it", () => { - expect(runRequestSchema.safeParse(base).success).toBe(true); - }); -}); diff --git a/web/src/lib/api/schemas.ts b/web/src/lib/api/schemas.ts deleted file mode 100644 index 0ec603e..0000000 --- a/web/src/lib/api/schemas.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { z } from "zod"; - -// Zod schemas for every /api/v1 boundary. The agent is trusted code we ship, -// but the endpoint is on the open internet — validate everything. - -export const registerRequestSchema = z.object({ - token: z - .string() - .startsWith("rrt_") - .max(100), - name: z.string().min(1).max(100), - agent_version: z.string().max(50).optional(), -}); - -export const checkResultSchema = z.object({ - recipe: z.string().min(1).max(200), - type: z.string().min(1).max(50), - status: z.enum(["pass", "fail", "error"]), - message: z.string().max(4000).default(""), - duration_ms: z.number().int().nonnegative(), -}); - -export const runRequestSchema = z - .object({ - // sha256 hex of the credential-scrubbed repo string, computed agent-side. - repo_fingerprint: z.string().regex(/^[a-f0-9]{64}$/), - // Credential-scrubbed, human-readable repo label. - repo_label: z.string().min(1).max(200), - snapshot_id: z.string().max(100).optional(), - status: z.enum(["pass", "fail", "error"]), - error: z.string().max(4000).optional(), - started_at: z.iso.datetime({ offset: true }), - finished_at: z.iso.datetime({ offset: true }), - // How long the restic restore itself took (vs verification). Optional: - // absent when the run failed before the restore finished, and from - // pre-release agents. Capped at 7 days — larger values are clock bugs. - restore_duration_ms: z - .number() - .int() - .min(0) - .max(7 * 24 * 60 * 60 * 1000) - .optional(), - agent_version: z.string().max(50), - checks: z.array(checkResultSchema).max(200), - }) - .refine( - (r) => new Date(r.finished_at).getTime() >= new Date(r.started_at).getTime(), - { message: "finished_at must not be before started_at" }, - ) - // The restore is a phase inside the run, so it cannot outlast it. Without - // this, a one-second run could claim a ten-minute restore and the dashboard - // would render exactly that as "verified recovery time", which is the number - // the whole product is sold on. One second of slack covers clock - // granularity between the two measurements. - .refine( - (r) => - r.restore_duration_ms == null || - r.restore_duration_ms <= - new Date(r.finished_at).getTime() - new Date(r.started_at).getTime() + 1000, - { message: "restore_duration_ms cannot exceed the run's wall-clock duration" }, - ); - -export type RunRequest = z.infer; -export type RegisterRequest = z.infer; diff --git a/web/src/lib/billing/entitlements.ts b/web/src/lib/billing/entitlements.ts deleted file mode 100644 index 1e90c19..0000000 --- a/web/src/lib/billing/entitlements.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { SupabaseClient } from "@supabase/supabase-js"; - -// Plan entitlements (SPEC pricing). Enforced SERVER-SIDE at the point of -// action — repo creation, channel creation — never in client code. The free -// tier must stay genuinely usable: limits cap growth, they never break or -// hide existing data. - -export type Plan = "free" | "pro"; - -export interface PlanLimits { - // null = unlimited - maxRepos: number | null; - maxAlertChannels: number | null; - minInterval: "monthly" | "any"; - historyMonths: number; -} - -export const PLAN_LIMITS: Record = { - free: { maxRepos: 1, maxAlertChannels: 1, minInterval: "monthly", historyMonths: 3 }, - pro: { maxRepos: null, maxAlertChannels: null, minInterval: "any", historyMonths: 12 }, -}; - -// Stripe statuses that keep Pro entitlements. past_due keeps them during -// Stripe's retry window — cutting features over a failed card retry is -// hostile; deletion (canceled) is what downgrades. -const ACTIVE_STATUSES = new Set(["active", "trialing", "past_due"]); - -export interface SubscriptionRow { - plan: Plan; - status: string; - stripe_customer_id: string; - stripe_subscription_id: string | null; - current_period_end: string | null; -} - -// getPlan works with either the user-scoped client (RLS) or the admin -// client; subscriptions are readable by their owner. -export async function getPlan(client: SupabaseClient, userId: string): Promise { - const { data } = await client - .from("subscriptions") - .select("plan, status") - .eq("user_id", userId) - .maybeSingle(); - if (data?.plan === "pro" && ACTIVE_STATUSES.has(data.status)) { - return "pro"; - } - return "free"; -} - -export async function getLimits(client: SupabaseClient, userId: string): Promise { - // Free-for-all beta: everyone gets Pro limits, no payment. Flip BETA_MODE - // off (and re-apply the DB channel-limit policy) when paid plans go live. - if (isBeta()) { - return PLAN_LIMITS.pro; - } - return PLAN_LIMITS[await getPlan(client, userId)]; -} - -// isBeta reports whether the hosted service is running its free-for-all beta. -export function isBeta(): boolean { - return process.env.BETA_MODE === "1"; -} diff --git a/web/src/lib/billing/stripe.ts b/web/src/lib/billing/stripe.ts deleted file mode 100644 index 84a8c42..0000000 --- a/web/src/lib/billing/stripe.ts +++ /dev/null @@ -1,24 +0,0 @@ -import "server-only"; - -import Stripe from "stripe"; - -// Server-side Stripe client. The key is test-mode in development; the same -// code serves live mode purely through environment configuration. -export function getStripe(): Stripe { - const key = process.env.STRIPE_SECRET_KEY; - if (!key) { - throw new Error("STRIPE_SECRET_KEY is not set"); - } - return new Stripe(key); -} - -export function priceIdFor(interval: "month" | "year"): string { - const id = - interval === "month" - ? process.env.STRIPE_PRICE_MONTHLY - : process.env.STRIPE_PRICE_YEARLY; - if (!id) { - throw new Error(`price id for ${interval} is not configured`); - } - return id; -} diff --git a/web/src/lib/format.test.ts b/web/src/lib/format.test.ts deleted file mode 100644 index 23abb79..0000000 --- a/web/src/lib/format.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { describe, expect, it } from "vitest"; - -import { formatDuration } from "./format"; - -describe("formatDuration", () => { - it.each([ - [0, "0s"], - [499, "0s"], - [1000, "1s"], - [59_000, "59s"], - [60_000, "1m"], - [92_000, "1m 32s"], - [3_600_000, "1h"], - [5_460_000, "1h 31m"], - ])("formats %i ms as %s", (ms, expected) => { - expect(formatDuration(ms)).toBe(expected); - }); - - it("rejects negative durations", () => { - expect(() => formatDuration(-1)).toThrow(RangeError); - }); - - it("rejects non-finite durations", () => { - expect(() => formatDuration(Number.NaN)).toThrow(RangeError); - }); -}); diff --git a/web/src/lib/format.ts b/web/src/lib/format.ts deleted file mode 100644 index e8d2be1..0000000 --- a/web/src/lib/format.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Format a duration in milliseconds as a short human string, e.g. "1m 32s". - * Used for test-run durations in the dashboard. - */ -export function formatDuration(ms: number): string { - if (!Number.isFinite(ms) || ms < 0) { - throw new RangeError(`duration must be a non-negative finite number, got ${ms}`); - } - const totalSeconds = Math.round(ms / 1000); - if (totalSeconds < 60) { - return `${totalSeconds}s`; - } - const minutes = Math.floor(totalSeconds / 60); - const seconds = totalSeconds % 60; - if (minutes < 60) { - return seconds === 0 ? `${minutes}m` : `${minutes}m ${seconds}s`; - } - const hours = Math.floor(minutes / 60); - const remMinutes = minutes % 60; - return remMinutes === 0 ? `${hours}h` : `${hours}h ${remMinutes}m`; -} diff --git a/web/src/lib/supabase/admin.ts b/web/src/lib/supabase/admin.ts deleted file mode 100644 index 6723c66..0000000 --- a/web/src/lib/supabase/admin.ts +++ /dev/null @@ -1,14 +0,0 @@ -import "server-only"; - -import { createClient } from "@supabase/supabase-js"; - -// Service-role client for /api/v1 agent endpoints. Bypasses RLS — every -// query MUST scope by the authenticated agent's user_id explicitly. -// Never import this from client components. -export function createAdminClient() { - return createClient( - process.env.NEXT_PUBLIC_SUPABASE_URL!, - process.env.SUPABASE_SERVICE_ROLE_KEY!, - { auth: { persistSession: false, autoRefreshToken: false } }, - ); -} diff --git a/web/src/lib/supabase/client.ts b/web/src/lib/supabase/client.ts deleted file mode 100644 index fb66243..0000000 --- a/web/src/lib/supabase/client.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { createBrowserClient } from "@supabase/ssr"; - -// Browser-side Supabase client (anon key; RLS applies). -export function createClient() { - return createBrowserClient( - process.env.NEXT_PUBLIC_SUPABASE_URL!, - process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, - ); -} diff --git a/web/src/lib/supabase/server.ts b/web/src/lib/supabase/server.ts deleted file mode 100644 index 0b3de25..0000000 --- a/web/src/lib/supabase/server.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { createServerClient } from "@supabase/ssr"; -import { cookies } from "next/headers"; - -// Server-side Supabase client bound to the request's auth cookies. -// RLS applies: this client only sees the signed-in user's rows. -export async function createClient() { - const cookieStore = await cookies(); - return createServerClient( - process.env.NEXT_PUBLIC_SUPABASE_URL!, - process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, - { - cookies: { - getAll() { - return cookieStore.getAll(); - }, - setAll(cookiesToSet) { - try { - for (const { name, value, options } of cookiesToSet) { - cookieStore.set(name, value, options); - } - } catch { - // Called from a Server Component: session refresh is handled by - // the proxy, so writes here can be safely ignored. - } - }, - }, - }, - ); -} diff --git a/web/src/lib/types.ts b/web/src/lib/types.ts deleted file mode 100644 index 58c6859..0000000 --- a/web/src/lib/types.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Row shapes the dashboard reads (subset of the DB schema). - -export type RunStatus = "pass" | "fail" | "error"; - -export interface Repo { - id: string; - fingerprint: string; - label: string; - created_at: string; -} - -export interface CheckResult { - recipe: string; - type: string; - status: RunStatus; - message: string; - duration_ms: number; -} - -export interface TestRun { - id: string; - repo_id: string; - agent_id: string | null; - snapshot_id: string | null; - status: RunStatus; - error: string | null; - results: CheckResult[]; - agent_version: string | null; - started_at: string; - finished_at: string; - /** Restore phase only (vs verification); null from pre-v0.1.0 agents. */ - restore_duration_ms: number | null; - created_at: string; -} - -export interface Agent { - id: string; - name: string; - agent_version: string | null; - last_seen: string | null; - created_at: string; -} diff --git a/web/src/proxy.ts b/web/src/proxy.ts deleted file mode 100644 index 9cc32f6..0000000 --- a/web/src/proxy.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { createServerClient } from "@supabase/ssr"; -import { NextResponse, type NextRequest } from "next/server"; - -// Refreshes the Supabase session cookie and gates the dashboard. -// /api/v1 is NOT matched here: agents authenticate with API keys per-route. -export async function proxy(request: NextRequest) { - let response = NextResponse.next({ request }); - - const supabase = createServerClient( - process.env.NEXT_PUBLIC_SUPABASE_URL!, - process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, - { - cookies: { - getAll() { - return request.cookies.getAll(); - }, - setAll(cookiesToSet) { - for (const { name, value } of cookiesToSet) { - request.cookies.set(name, value); - } - response = NextResponse.next({ request }); - for (const { name, value, options } of cookiesToSet) { - response.cookies.set(name, value, options); - } - }, - }, - }, - ); - - const { - data: { user }, - } = await supabase.auth.getUser(); - - const { pathname } = request.nextUrl; - if (!user && pathname.startsWith("/dashboard")) { - const url = request.nextUrl.clone(); - url.pathname = "/login"; - return NextResponse.redirect(url); - } - if (user && pathname === "/login") { - const url = request.nextUrl.clone(); - url.pathname = "/dashboard"; - return NextResponse.redirect(url); - } - return response; -} - -export const config = { - matcher: ["/dashboard/:path*", "/login"], -}; diff --git a/web/supabase/.gitignore b/web/supabase/.gitignore deleted file mode 100644 index ad9264f..0000000 --- a/web/supabase/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Supabase -.branches -.temp - -# dotenvx -.env.keys -.env.local -.env.*.local diff --git a/web/supabase/config.toml b/web/supabase/config.toml deleted file mode 100644 index 975abbc..0000000 --- a/web/supabase/config.toml +++ /dev/null @@ -1,414 +0,0 @@ -# For detailed configuration reference documentation, visit: -# https://supabase.com/docs/guides/local-development/cli/config -# A string used to distinguish different Supabase projects on the same host. Defaults to the -# working directory name when running `supabase init`. -project_id = "web" - -[api] -enabled = true -# Port to use for the API URL. -port = 54321 -# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API -# endpoints. `public` and `graphql_public` schemas are included by default. -schemas = ["public", "graphql_public"] -# Extra schemas to add to the search_path of every request. -extra_search_path = ["public", "extensions"] -# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size -# for accidental or malicious requests. -max_rows = 1000 -# Controls whether new tables, views, sequences and functions created in the `public` schema by -# `postgres` are reachable through the Data API roles (`anon`, `authenticated`, `service_role`) -# without explicit GRANTs. When unset, new entities are NOT auto-exposed, matching the new cloud -# default. Set to `true` to keep the legacy behaviour of auto-exposing new entities; this is -# deprecated and the field is removed on 2026-10-30 once the always-revoked behaviour is permanent. -# auto_expose_new_tables = true - -[api.tls] -# Enable HTTPS endpoints locally using a self-signed certificate. -enabled = false -# Paths to self-signed certificate pair. -# cert_path = "../certs/my-cert.pem" -# key_path = "../certs/my-key.pem" - -[db] -# Port to use for the local database URL. -port = 54322 -# Port used by db diff command to initialize the shadow database. -shadow_port = 54320 -# Maximum amount of time to wait for health check when starting the local database. -health_timeout = "2m" -# The database major version to use. This has to be the same as your remote database's. Run `SHOW -# server_version;` on the remote database to check. -major_version = 17 - -[db.pooler] -enabled = false -# Port to use for the local connection pooler. -port = 54329 -# Specifies when a server connection can be reused by other clients. -# Configure one of the supported pooler modes: `transaction`, `session`. -pool_mode = "transaction" -# How many server connections to allow per user/database pair. -default_pool_size = 20 -# Maximum number of client connections allowed. -max_client_conn = 100 - -# [db.vault] -# secret_key = "env(SECRET_VALUE)" - -[db.migrations] -# If disabled, migrations will be skipped during a db push or reset. -enabled = true -# Specifies an ordered list of schema files that describe your database. -# Supports glob patterns relative to supabase directory: "./schemas/*.sql" -schema_paths = [] - -[db.seed] -# If enabled, seeds the database after migrations during a db reset. -enabled = true -# Specifies an ordered list of seed files to load during db reset. -# Supports glob patterns relative to supabase directory: "./seeds/*.sql" -sql_paths = ["./seed.sql"] - -[db.network_restrictions] -# Enable management of network restrictions. -enabled = false -# List of IPv4 CIDR blocks allowed to connect to the database. -# Defaults to allow all IPv4 connections. Set empty array to block all IPs. -allowed_cidrs = ["0.0.0.0/0"] -# List of IPv6 CIDR blocks allowed to connect to the database. -# Defaults to allow all IPv6 connections. Set empty array to block all IPs. -allowed_cidrs_v6 = ["::/0"] - -# Uncomment to reject non-secure connections to the database. -# [db.ssl_enforcement] -# enabled = true - -[realtime] -enabled = true -# Bind realtime via either IPv4 or IPv6. (default: IPv4) -# ip_version = "IPv6" -# The maximum length in bytes of HTTP request headers. (default: 4096) -# max_header_length = 4096 - -[studio] -enabled = true -# Port to use for Supabase Studio. -port = 54323 -# External URL of the API server that frontend connects to. -api_url = "http://127.0.0.1" -# OpenAI API Key to use for Supabase AI in the Supabase Studio. -openai_api_key = "env(OPENAI_API_KEY)" - -# Email testing server. Emails sent with the local dev setup are not actually sent - rather, they -# are monitored, and you can view the emails that would have been sent from the web interface. -[local_smtp] -enabled = true -# Port to use for the email testing server web interface. -port = 54324 -# Uncomment to expose additional ports for testing user applications that send emails. -# smtp_port = 54325 -# pop3_port = 54326 -# admin_email = "admin@email.com" -# sender_name = "Admin" - -[storage] -enabled = true -# The maximum file size allowed (e.g. "5MB", "500KB"). -file_size_limit = "50MiB" - -# Uncomment to configure local storage buckets -# [storage.buckets.images] -# public = false -# file_size_limit = "50MiB" -# allowed_mime_types = ["image/png", "image/jpeg"] -# objects_path = "./images" - -# Allow connections via S3 compatible clients -[storage.s3_protocol] -enabled = true - -# Image transformation API is available to Supabase Pro plan. -# [storage.image_transformation] -# enabled = true - -# Store analytical data in S3 for running ETL jobs over Iceberg Catalog -# This feature is only available on the hosted platform. -[storage.analytics] -enabled = false -max_namespaces = 5 -max_tables = 10 -max_catalogs = 2 - -# Analytics Buckets is available to Supabase Pro plan. -# [storage.analytics.buckets.my-warehouse] - -# Store vector embeddings in S3 for large and durable datasets -[storage.vector] -enabled = true -max_buckets = 10 -max_indexes = 5 - -# Vector Buckets is available to Supabase Pro plan. -# [storage.vector.buckets.documents-openai] - -[auth] -enabled = true -# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used -# in emails. -site_url = "http://127.0.0.1:3000" -# The public URL that Auth serves on. Defaults to the API external URL with `/auth/v1` appended. -# external_url = "" -# A list of *exact* URLs that auth providers are permitted to redirect to post authentication. -additional_redirect_urls = ["https://127.0.0.1:3000"] -# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week). -jwt_expiry = 3600 -# JWT issuer URL. If not set, defaults to auth.external_url. -# jwt_issuer = "" -# Path to JWT signing key. DO NOT commit your signing keys file to git. -# signing_keys_path = "./signing_keys.json" -# If disabled, the refresh token will never expire. -enable_refresh_token_rotation = true -# Allows refresh tokens to be reused after expiry, up to the specified interval in seconds. -# Requires enable_refresh_token_rotation = true. -refresh_token_reuse_interval = 10 -# Allow/disallow new user signups to your project. -enable_signup = true -# Allow/disallow anonymous sign-ins to your project. -enable_anonymous_sign_ins = false -# Allow/disallow testing manual linking of accounts -enable_manual_linking = false -# Passwords shorter than this value will be rejected as weak. Minimum 6, recommended 8 or more. -minimum_password_length = 6 -# Passwords that do not meet the following requirements will be rejected as weak. Supported values -# are: `letters_digits`, `lower_upper_letters_digits`, `lower_upper_letters_digits_symbols` -password_requirements = "" - -# Configure passkey sign-ins. -# [auth.passkey] -# enabled = false - -# Configure WebAuthn relying party settings (required when passkey is enabled). -# [auth.webauthn] -# rp_display_name = "Supabase" -# rp_id = "localhost" -# rp_origins = ["http://127.0.0.1:3000"] - -[auth.rate_limit] -# Number of emails that can be sent per hour. Requires auth.email.smtp to be enabled. -email_sent = 2 -# Number of SMS messages that can be sent per hour. Requires auth.sms to be enabled. -sms_sent = 30 -# Number of anonymous sign-ins that can be made per hour per IP address. Requires enable_anonymous_sign_ins = true. -anonymous_users = 30 -# Number of sessions that can be refreshed in a 5 minute interval per IP address. -token_refresh = 150 -# Number of sign up and sign-in requests that can be made in a 5 minute interval per IP address (excludes anonymous users). -sign_in_sign_ups = 30 -# Number of OTP / Magic link verifications that can be made in a 5 minute interval per IP address. -token_verifications = 30 -# Number of Web3 logins that can be made in a 5 minute interval per IP address. -web3 = 30 - -# Configure one of the supported captcha providers: `hcaptcha`, `turnstile`. -# [auth.captcha] -# enabled = true -# provider = "hcaptcha" -# secret = "" - -[auth.email] -# Allow/disallow new user signups via email to your project. -enable_signup = true -# If enabled, a user will be required to confirm any email change on both the old, and new email -# addresses. If disabled, only the new email is required to confirm. -double_confirm_changes = true -# If enabled, users need to confirm their email address before signing in. -enable_confirmations = false -# If enabled, users will need to reauthenticate or have logged in recently to change their password. -secure_password_change = false -# Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email. -max_frequency = "1s" -# Number of characters used in the email OTP. -otp_length = 6 -# Number of seconds before the email OTP expires (defaults to 1 hour). -otp_expiry = 3600 - -# Use a production-ready SMTP server -# [auth.email.smtp] -# enabled = true -# host = "smtp.sendgrid.net" -# port = 587 -# user = "apikey" -# pass = "env(SENDGRID_API_KEY)" -# admin_email = "admin@email.com" -# sender_name = "Admin" - -# Uncomment to customize email template -# [auth.email.template.invite] -# subject = "You have been invited" -# content_path = "./supabase/templates/invite.html" - -# Uncomment to customize notification email template -# [auth.email.notification.password_changed] -# enabled = true -# subject = "Your password has been changed" -# content_path = "./templates/password_changed_notification.html" - -[auth.sms] -# Allow/disallow new user signups via SMS to your project. -enable_signup = false -# If enabled, users need to confirm their phone number before signing in. -enable_confirmations = false -# Template for sending OTP to users -template = "Your code is {{ `{{ .Code }}` }}" -# Controls the minimum amount of time that must pass before sending another sms otp. -max_frequency = "5s" - -# Use pre-defined map of phone number to OTP for testing. -# [auth.sms.test_otp] -# 4152127777 = "123456" - -# Configure logged in session timeouts. -# [auth.sessions] -# Force log out after the specified duration. -# timebox = "24h" -# Force log out if the user has been inactive longer than the specified duration. -# inactivity_timeout = "8h" - -# This hook runs before a new user is created and allows developers to reject the request based on the incoming user object. -# [auth.hook.before_user_created] -# enabled = true -# uri = "pg-functions://postgres/auth/before-user-created-hook" - -# This hook runs before a token is issued and allows you to add additional claims based on the authentication method used. -# [auth.hook.custom_access_token] -# enabled = true -# uri = "pg-functions:////" - -# Configure one of the supported SMS providers: `twilio`, `twilio_verify`, `messagebird`, `textlocal`, `vonage`. -[auth.sms.twilio] -enabled = false -account_sid = "" -message_service_sid = "" -# DO NOT commit your Twilio auth token to git. Use environment variable substitution instead: -auth_token = "env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)" - -# Multi-factor-authentication is available to Supabase Pro plan. -[auth.mfa] -# Control how many MFA factors can be enrolled at once per user. -max_enrolled_factors = 10 - -# Control MFA via App Authenticator (TOTP) -[auth.mfa.totp] -enroll_enabled = false -verify_enabled = false - -# Configure MFA via Phone Messaging -[auth.mfa.phone] -enroll_enabled = false -verify_enabled = false -otp_length = 6 -template = "Your code is {{ `{{ .Code }}` }}" -max_frequency = "5s" - -# Configure MFA via WebAuthn -# [auth.mfa.web_authn] -# enroll_enabled = true -# verify_enabled = true - -# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`, -# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin_oidc`, `notion`, `twitch`, -# `twitter`, `x`, `slack`, `spotify`, `workos`, `zoom`. -[auth.external.apple] -enabled = false -client_id = "" -# DO NOT commit your OAuth provider secret to git. Use environment variable substitution instead: -secret = "env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)" -# Overrides the default auth callback URL derived from auth.external_url. -redirect_uri = "" -# Overrides the default auth provider URL. Used to support self-hosted gitlab, single-tenant Azure, -# or any other third-party OIDC providers. -url = "" -# If enabled, the nonce check will be skipped. Required for local sign in with Google auth. -skip_nonce_check = false -# If enabled, it will allow the user to successfully authenticate when the provider does not return an email address. -email_optional = false - -# Allow Solana wallet holders to sign in to your project via the Sign in with Solana (SIWS, EIP-4361) standard. -# You can configure "web3" rate limit in the [auth.rate_limit] section and set up [auth.captcha] if self-hosting. -[auth.web3.solana] -enabled = false - -# Use Firebase Auth as a third-party provider alongside Supabase Auth. -[auth.third_party.firebase] -enabled = false -# project_id = "my-firebase-project" - -# Use Auth0 as a third-party provider alongside Supabase Auth. -[auth.third_party.auth0] -enabled = false -# tenant = "my-auth0-tenant" -# tenant_region = "us" - -# Use AWS Cognito (Amplify) as a third-party provider alongside Supabase Auth. -[auth.third_party.aws_cognito] -enabled = false -# user_pool_id = "my-user-pool-id" -# user_pool_region = "us-east-1" - -# Use Clerk as a third-party provider alongside Supabase Auth. -[auth.third_party.clerk] -enabled = false -# Obtain from https://clerk.com/setup/supabase -# domain = "example.clerk.accounts.dev" - -# OAuth server configuration -[auth.oauth_server] -# Enable OAuth server functionality -enabled = false -# Path for OAuth consent flow UI -authorization_url_path = "/oauth/consent" -# Allow dynamic client registration -allow_dynamic_registration = false - -[edge_runtime] -enabled = true -# Supported request policies: `oneshot`, `per_worker`. -# `per_worker` (default) — enables hot reload during local development. -# `oneshot` — fallback mode if hot reload causes issues (e.g. in large repos or with symlinks). -policy = "per_worker" -# Port to attach the Chrome inspector for debugging edge functions. -inspector_port = 8083 -# The Deno major version to use. -deno_version = 2 - -# [edge_runtime.secrets] -# secret_key = "env(SECRET_VALUE)" - -[analytics] -enabled = true -port = 54327 -# Configure one of the supported backends: `postgres`, `bigquery`. -backend = "postgres" - -# Experimental features may be deprecated any time -[experimental] -# Configures Postgres storage engine to use OrioleDB (S3) -orioledb_version = "" -# Configures S3 bucket URL, eg. .s3-.amazonaws.com -s3_host = "env(S3_HOST)" -# Configures S3 bucket region, eg. us-east-1 -s3_region = "env(S3_REGION)" -# Configures AWS_ACCESS_KEY_ID for S3 bucket -s3_access_key = "env(S3_ACCESS_KEY)" -# Configures AWS_SECRET_ACCESS_KEY for S3 bucket -s3_secret_key = "env(S3_SECRET_KEY)" - -# pg-delta is the schema diff engine for db diff / db pull / db remote commit. -# Set enabled = false to fall back to the legacy migra engine. -[experimental.pgdelta] -enabled = true -# Directory under `supabase/` where declarative files are written. -# declarative_schema_path = "./database" -# JSON string passed through to pg-delta SQL formatting. -# format_options = "{\"keywordCase\":\"upper\",\"indent\":2,\"maxWidth\":80,\"commaStyle\":\"trailing\"}" diff --git a/web/supabase/migrations/20260704000001_core_schema.sql b/web/supabase/migrations/20260704000001_core_schema.sql deleted file mode 100644 index 5b14fa4..0000000 --- a/web/supabase/migrations/20260704000001_core_schema.sql +++ /dev/null @@ -1,158 +0,0 @@ --- Core schema for the Restorable control plane (Phase 3). --- Every table gets RLS at creation time. Users only ever see their own rows; --- agents never get database credentials at all — they talk to /api/v1, which --- authenticates them by hashed API key and uses the service role server-side. - --- ─── profiles ─────────────────────────────────────────────────────────────── -create table public.profiles ( - id uuid primary key references auth.users (id) on delete cascade, - email text not null, - created_at timestamptz not null default now() -); - -alter table public.profiles enable row level security; - -create policy "read own profile" - on public.profiles for select - using ((select auth.uid()) = id); - --- Created automatically when an auth user is created. -create function public.handle_new_user() -returns trigger -language plpgsql -security definer -set search_path = '' -as $$ -begin - insert into public.profiles (id, email) - values (new.id, coalesce(new.email, '')); - return new; -end; -$$; - -create trigger on_auth_user_created - after insert on auth.users - for each row execute function public.handle_new_user(); - --- ─── agents ───────────────────────────────────────────────────────────────── -create table public.agents ( - id uuid primary key default gen_random_uuid(), - user_id uuid not null references public.profiles (id) on delete cascade, - name text not null, - -- sha256 hex of the API key. The key itself is shown once and never stored. - key_hash text not null unique, - agent_version text, - last_seen timestamptz, - created_at timestamptz not null default now() -); - -create index agents_user_id_idx on public.agents (user_id); - -alter table public.agents enable row level security; - -create policy "read own agents" - on public.agents for select - using ((select auth.uid()) = user_id); - -create policy "rename own agents" - on public.agents for update - using ((select auth.uid()) = user_id) - with check ((select auth.uid()) = user_id); - -create policy "delete own agents" - on public.agents for delete - using ((select auth.uid()) = user_id); --- No insert policy: agents are created by the registration endpoint --- (service role) when a token is exchanged. - --- ─── registration_tokens ──────────────────────────────────────────────────── --- One-time tokens minted in the dashboard, exchanged by `restorable register` --- for an agent API key. Only the sha256 hash is stored. -create table public.registration_tokens ( - id uuid primary key default gen_random_uuid(), - user_id uuid not null references public.profiles (id) on delete cascade, - token_hash text not null unique, - created_at timestamptz not null default now(), - expires_at timestamptz not null default now() + interval '1 hour', - used_at timestamptz -); - -create index registration_tokens_user_id_idx on public.registration_tokens (user_id); - -alter table public.registration_tokens enable row level security; - -create policy "read own registration tokens" - on public.registration_tokens for select - using ((select auth.uid()) = user_id); - -create policy "mint own registration tokens" - on public.registration_tokens for insert - with check ((select auth.uid()) = user_id); --- No update/delete policies: consumption (used_at) is set by the service role. - --- ─── repos ────────────────────────────────────────────────────────────────── --- A repo row is created the first time a run for its fingerprint arrives. -create table public.repos ( - id uuid primary key default gen_random_uuid(), - user_id uuid not null references public.profiles (id) on delete cascade, - -- sha256 hex of the credential-scrubbed repository string, computed - -- agent-side. The control plane never needs the location itself. - fingerprint text not null, - label text not null, - created_at timestamptz not null default now(), - unique (user_id, fingerprint) -); - -create index repos_user_id_idx on public.repos (user_id); - -alter table public.repos enable row level security; - -create policy "read own repos" - on public.repos for select - using ((select auth.uid()) = user_id); - -create policy "relabel own repos" - on public.repos for update - using ((select auth.uid()) = user_id) - with check ((select auth.uid()) = user_id); --- No insert policy: repo rows are created by the runs endpoint (service role). - --- ─── test_runs ────────────────────────────────────────────────────────────── -create table public.test_runs ( - id uuid primary key default gen_random_uuid(), - user_id uuid not null references public.profiles (id) on delete cascade, - agent_id uuid not null references public.agents (id) on delete cascade, - repo_id uuid not null references public.repos (id) on delete cascade, - snapshot_id text, - status text not null check (status in ('pass', 'fail', 'error')), - error text, - -- Per-check results: [{recipe, type, status, message, duration_ms}] - results jsonb not null default '[]'::jsonb, - agent_version text, - started_at timestamptz not null, - finished_at timestamptz not null, - created_at timestamptz not null default now() -); - -create index test_runs_user_created_idx on public.test_runs (user_id, created_at desc); -create index test_runs_repo_created_idx on public.test_runs (repo_id, created_at desc); - -alter table public.test_runs enable row level security; - -create policy "read own test runs" - on public.test_runs for select - using ((select auth.uid()) = user_id); --- No insert/update/delete policies: runs arrive only via /api/v1/runs --- (service role). - --- ─── grants ───────────────────────────────────────────────────────────────── --- Explicit least-privilege table grants (RLS then restricts rows). The anon --- role gets nothing; agents talk to /api/v1, which uses the service role. -grant select on public.profiles to authenticated; -grant select, update, delete on public.agents to authenticated; -grant select, insert on public.registration_tokens to authenticated; -grant select, update on public.repos to authenticated; -grant select on public.test_runs to authenticated; - -grant all on public.profiles, public.agents, public.registration_tokens, - public.repos, public.test_runs to service_role; diff --git a/web/supabase/migrations/20260704120000_alerting.sql b/web/supabase/migrations/20260704120000_alerting.sql deleted file mode 100644 index 21cba8d..0000000 --- a/web/supabase/migrations/20260704120000_alerting.sql +++ /dev/null @@ -1,86 +0,0 @@ --- Alerting + stale detection (Phase 4). - --- ─── alert_channels ───────────────────────────────────────────────────────── --- Where a user's alerts go. config shape depends on type: --- telegram: {"chat_id": "123456"} --- discord: {"webhook_url": "https://discord.com/api/webhooks/…"} --- ntfy: {"topic": "my-topic", "server": "https://ntfy.sh" (optional)} --- email: {"to": "user@example.com"} -create table public.alert_channels ( - id uuid primary key default gen_random_uuid(), - user_id uuid not null references public.profiles (id) on delete cascade, - type text not null check (type in ('telegram', 'discord', 'ntfy', 'email')), - config jsonb not null, - -- Set true after a test message goes through. Only verified channels - -- receive alerts. - verified boolean not null default false, - created_at timestamptz not null default now() -); - -create index alert_channels_user_id_idx on public.alert_channels (user_id); - -alter table public.alert_channels enable row level security; - -create policy "read own alert channels" - on public.alert_channels for select - using ((select auth.uid()) = user_id); - -create policy "create own alert channels" - on public.alert_channels for insert - with check ((select auth.uid()) = user_id); - -create policy "update own alert channels" - on public.alert_channels for update - using ((select auth.uid()) = user_id) - with check ((select auth.uid()) = user_id); - -create policy "delete own alert channels" - on public.alert_channels for delete - using ((select auth.uid()) = user_id); - --- ─── alerts ───────────────────────────────────────────────────────────────── --- Incident model: one open ('firing') incident per (user, kind, subject). --- Opening dispatches an alert; resolving dispatches a recovery notice. --- Duplicate conditions while an incident is open are suppressed by the --- partial unique index — dedup is enforced by the database, not by code. -create table public.alerts ( - id uuid primary key default gen_random_uuid(), - user_id uuid not null references public.profiles (id) on delete cascade, - kind text not null check (kind in ('run_failure', 'stale_repo', 'agent_silent')), - -- The repo or agent this incident is about. - subject_id uuid not null, - run_id uuid references public.test_runs (id) on delete set null, - status text not null default 'firing' check (status in ('firing', 'resolved')), - message text not null, - fired_at timestamptz not null default now(), - resolved_at timestamptz -); - -create unique index alerts_one_open_incident - on public.alerts (user_id, kind, subject_id) - where status = 'firing'; - -create index alerts_user_fired_idx on public.alerts (user_id, fired_at desc); - -alter table public.alerts enable row level security; - -create policy "read own alerts" - on public.alerts for select - using ((select auth.uid()) = user_id); --- Writes are service-role only (runs endpoint + cron). - --- ─── staleness / silence knobs ────────────────────────────────────────────── --- stale_after null = automatic: 1.5× the gap between the two most recent --- runs (min 24h), once at least two runs exist (SPEC: schedule window × 1.5). -alter table public.repos - add column stale_after interval; - --- Daemon agents heartbeat every 6h; opt out for cron-driven agents that --- legitimately only check in when they run. -alter table public.agents - add column alert_when_silent boolean not null default true; - --- ─── grants ───────────────────────────────────────────────────────────────── -grant select, insert, update, delete on public.alert_channels to authenticated; -grant select on public.alerts to authenticated; -grant all on public.alert_channels, public.alerts to service_role; diff --git a/web/supabase/migrations/20260705000001_billing.sql b/web/supabase/migrations/20260705000001_billing.sql deleted file mode 100644 index ce2925b..0000000 --- a/web/supabase/migrations/20260705000001_billing.sql +++ /dev/null @@ -1,37 +0,0 @@ --- Billing + plan gating (Phase 5). - --- ─── subscriptions ────────────────────────────────────────────────────────── --- One row per user, created on first checkout. plan is what entitlements --- read; status tracks Stripe's view. Users with no row are on the free plan. -create table public.subscriptions ( - user_id uuid primary key references public.profiles (id) on delete cascade, - stripe_customer_id text not null unique, - stripe_subscription_id text unique, - plan text not null default 'free' check (plan in ('free', 'pro')), - status text not null default 'inactive', - current_period_end timestamptz, - updated_at timestamptz not null default now() -); - -alter table public.subscriptions enable row level security; - -create policy "read own subscription" - on public.subscriptions for select - using ((select auth.uid()) = user_id); --- Writes come only from the Stripe webhook handler (service role). - --- ─── stripe_events ────────────────────────────────────────────────────────── --- Webhook idempotency ledger: an event id is processed exactly once, enforced --- by the primary key. Replays insert-conflict and are skipped. -create table public.stripe_events ( - id text primary key, - type text not null, - processed_at timestamptz not null default now() -); - -alter table public.stripe_events enable row level security; --- No policies: service-role only. - --- ─── grants ───────────────────────────────────────────────────────────────── -grant select on public.subscriptions to authenticated; -grant all on public.subscriptions, public.stripe_events to service_role; diff --git a/web/supabase/migrations/20260705000002_channel_limit_policy.sql b/web/supabase/migrations/20260705000002_channel_limit_policy.sql deleted file mode 100644 index 3f32716..0000000 --- a/web/supabase/migrations/20260705000002_channel_limit_policy.sql +++ /dev/null @@ -1,40 +0,0 @@ --- Enforce the alert-channel plan limit in the database itself, not just in --- application code: alert_channels is directly insertable via PostgREST, so --- the RLS insert policy is the real gate. Free (or no subscription row) = 1 --- channel; an active/trialing/past_due pro subscription lifts the cap. --- --- The count runs in a SECURITY DEFINER function: a policy subquerying its --- own table would recurse into itself (42P17). - -create function public.own_alert_channel_count() -returns bigint -language sql -security definer -set search_path = '' -as $$ - select count(*) from public.alert_channels - where user_id = (select auth.uid()); -$$; - -revoke all on function public.own_alert_channel_count() from public; -grant execute on function public.own_alert_channel_count() to authenticated; - -drop policy "create own alert channels" on public.alert_channels; - -create policy "create own alert channels within plan limit" - on public.alert_channels for insert - with check ( - (select auth.uid()) = user_id - and public.own_alert_channel_count() < coalesce( - ( - select case - when s.plan = 'pro' and s.status in ('active', 'trialing', 'past_due') - then 1000000 - else 1 - end - from public.subscriptions s - where s.user_id = (select auth.uid()) - ), - 1 - ) - ); diff --git a/web/supabase/migrations/20260706000001_function_execute_hardening.sql b/web/supabase/migrations/20260706000001_function_execute_hardening.sql deleted file mode 100644 index 293a5ef..0000000 --- a/web/supabase/migrations/20260706000001_function_execute_hardening.sql +++ /dev/null @@ -1,11 +0,0 @@ --- Hardening per security advisor: SECURITY DEFINER functions must not be --- callable via the public RPC surface by roles that don't need them. - --- Trigger-only function: nobody calls it directly; triggers fire it as the --- table owner regardless of EXECUTE grants. -revoke execute on function public.handle_new_user() from public, anon, authenticated; - --- Policy helper: RLS insert checks evaluate it as the inserting role, so --- authenticated keeps EXECUTE. It leaks nothing (returns only the caller's --- own channel count), but anon has no business calling it. -revoke execute on function public.own_alert_channel_count() from public, anon; diff --git a/web/supabase/migrations/20260708000001_agent_delete_keeps_history.sql b/web/supabase/migrations/20260708000001_agent_delete_keeps_history.sql deleted file mode 100644 index 800dbaa..0000000 --- a/web/supabase/migrations/20260708000001_agent_delete_keeps_history.sql +++ /dev/null @@ -1,13 +0,0 @@ --- Deleting an agent (e.g. to rotate a leaked key) must not erase the run --- history it reported. History belongs to the repo; the agent is just the --- messenger. Runs keep a nullable pointer that clears on agent deletion. - -alter table public.test_runs - alter column agent_id drop not null; - -alter table public.test_runs - drop constraint test_runs_agent_id_fkey; - -alter table public.test_runs - add constraint test_runs_agent_id_fkey - foreign key (agent_id) references public.agents (id) on delete set null; diff --git a/web/supabase/migrations/20260713000001_telegram_links.sql b/web/supabase/migrations/20260713000001_telegram_links.sql deleted file mode 100644 index b7261bd..0000000 --- a/web/supabase/migrations/20260713000001_telegram_links.sql +++ /dev/null @@ -1,35 +0,0 @@ --- Telegram connect via deep link (replaces the getUpdates chat-ID lookup, --- which leaked other users' chats across the shared bot). --- --- Flow: the dashboard mints a one-time token and shows a t.me/?start= --- link. The user taps it; Telegram sends the bot `/start `; the bot --- webhook matches the token to this row and stamps the chat_id. The dashboard --- then creates the verified alert_channel. Each user only ever learns their --- own chat_id — nothing is shared. - -create table public.telegram_links ( - token text primary key, - user_id uuid not null references public.profiles (id) on delete cascade, - chat_id text, - chat_name text, - created_at timestamptz not null default now(), - expires_at timestamptz not null default now() + interval '15 minutes', - consumed_at timestamptz -); - -create index telegram_links_user_idx on public.telegram_links (user_id); - -alter table public.telegram_links enable row level security; - --- The owner may read their own link (to poll for the chat_id landing) and --- create one. The webhook (service role) stamps chat_id. -create policy "read own telegram link" - on public.telegram_links for select - using ((select auth.uid()) = user_id); - -create policy "create own telegram link" - on public.telegram_links for insert - with check ((select auth.uid()) = user_id); - -grant select, insert on public.telegram_links to authenticated; -grant all on public.telegram_links to service_role; diff --git a/web/supabase/migrations/20260713000002_beta_unlimited_channels.sql b/web/supabase/migrations/20260713000002_beta_unlimited_channels.sql deleted file mode 100644 index 0fd14b7..0000000 --- a/web/supabase/migrations/20260713000002_beta_unlimited_channels.sql +++ /dev/null @@ -1,13 +0,0 @@ --- Free-for-all beta: everyone gets Pro features, no payment. The alert-channel --- limit is enforced by an RLS policy (the DB is the real gate for direct --- PostgREST inserts), so lifting it in app code isn't enough — replace the --- plan-limit insert policy with a plain owner-only one for the beta. --- --- To end the beta and re-enable paid limits, re-apply the policy from --- 20260705000002_channel_limit_policy.sql and set BETA_MODE off. - -drop policy if exists "create own alert channels within plan limit" on public.alert_channels; - -create policy "create own alert channels" - on public.alert_channels for insert - with check ((select auth.uid()) = user_id); diff --git a/web/supabase/migrations/20260713000003_revoke_unused_channel_count.sql b/web/supabase/migrations/20260713000003_revoke_unused_channel_count.sql deleted file mode 100644 index c520fab..0000000 --- a/web/supabase/migrations/20260713000003_revoke_unused_channel_count.sql +++ /dev/null @@ -1,6 +0,0 @@ --- The beta lifted the channel-limit policy (20260713000002), which was the --- only caller of own_alert_channel_count(). Revoke the now-unused EXECUTE from --- authenticated so the SECURITY DEFINER function isn't callable via RPC while --- unused. Re-granting is required when the channel-limit policy is restored to --- end the beta. -revoke execute on function public.own_alert_channel_count() from authenticated; diff --git a/web/supabase/migrations/20260716000001_restore_duration.sql b/web/supabase/migrations/20260716000001_restore_duration.sql deleted file mode 100644 index 18b64f4..0000000 --- a/web/supabase/migrations/20260716000001_restore_duration.sql +++ /dev/null @@ -1,6 +0,0 @@ --- Verified recovery time: how long the restic restore itself took, separate --- from verification. Reported by agents >= v0.1.0; null for older runs and --- for runs that failed before the restore completed. -alter table public.test_runs - add column restore_duration_ms bigint - check (restore_duration_ms is null or restore_duration_ms >= 0); diff --git a/web/supabase/migrations/20260724000001_stripe_events_explicit_deny.sql b/web/supabase/migrations/20260724000001_stripe_events_explicit_deny.sql deleted file mode 100644 index 5819d4c..0000000 --- a/web/supabase/migrations/20260724000001_stripe_events_explicit_deny.sql +++ /dev/null @@ -1,15 +0,0 @@ --- stripe_events is the Stripe webhook idempotency ledger. It is written ONLY --- by the webhook handler via the service-role key (which bypasses RLS); no --- client (anon or authenticated) should ever read or write it. RLS was already --- enabled with no policy, which correctly denies all client access — but an --- implicit deny is indistinguishable from a forgotten policy to a reviewer or --- the Supabase linter (advisor: rls_enabled_no_policy). --- --- This makes the deny-all explicit. It changes no behavior: service_role still --- bypasses RLS, and anon/authenticated remain fully denied. -create policy "stripe_events is service-role only (no client access)" - on public.stripe_events - for all - to authenticated, anon - using (false) - with check (false); diff --git a/web/supabase/migrations/20260917000001_alert_channel_verified_privilege.sql b/web/supabase/migrations/20260917000001_alert_channel_verified_privilege.sql deleted file mode 100644 index 5839f4b..0000000 --- a/web/supabase/migrations/20260917000001_alert_channel_verified_privilege.sql +++ /dev/null @@ -1,31 +0,0 @@ --- alert_channels.verified must not be client-writable. --- --- The table carried a table-level `grant insert, update ... to authenticated` --- and RLS policies that only check user_id, so any signed-in user could POST --- straight to PostgREST with {"verified": true} and skip verification --- entirely. A channel is what makes the product send a message, so that turned --- any account into a sender of attacker-worded email, from our own SES domain, --- to an address nobody confirmed. The alert title and body are submitter --- controlled (repo_label and the check message), and nothing caps agents per --- account. --- --- `verified` means "a message was successfully delivered to this destination". --- That is decided in Node, by sendToChannel actually succeeding, so it cannot --- be enforced by a policy or by a function the user is able to call directly: --- either would be equally spoofable. The privilege is therefore removed from --- `authenticated` outright, and the application flips the flag with the --- service role only after a real send returns. --- --- SELECT and DELETE stay table-level: reading and removing your own channels --- is already fully governed by the existing RLS policies. - -revoke insert, update on public.alert_channels from authenticated; - --- Creating a channel stays a client operation, so the RLS insert policy (and --- with it the plan-limit gate) remains the thing that governs it. `verified` --- is simply not in the list, so it keeps its `default false`. -grant insert (user_id, type, config) on public.alert_channels to authenticated; - --- Editing a channel's destination is allowed; re-verification is triggered by --- the application, which flips `verified` back through the service role. -grant update (config) on public.alert_channels to authenticated; diff --git a/web/tsconfig.json b/web/tsconfig.json deleted file mode 100644 index cf9c65d..0000000 --- a/web/tsconfig.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react-jsx", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - ".next/dev/types/**/*.ts", - "**/*.mts" - ], - "exclude": ["node_modules"] -} diff --git a/web/vercel.json b/web/vercel.json deleted file mode 100644 index 0ac921e..0000000 --- a/web/vercel.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "crons": [ - { - "path": "/api/cron/alerts", - "schedule": "0 6 * * *" - } - ] -} From ed3dbdd18fa7f60b983cdadf171f15f74460cd5f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 15:30:32 +0000 Subject: [PATCH 2/4] feat(agent): replace cloud reporting with local notifications Drop the control-plane client: the register command, run reporting, the daemon heartbeat and the repo fingerprint lookup that only fed it. Add a notify: block to agent.yaml: - ntfy push and a JSON webhook on failure (or every run with when: always) - a Healthchecks-style ping (/start, bare URL on pass, /fail on failure) so a dead agent or broken cron line raises an alert of its own Everything sent goes through RedactForTransport, URLs are treated as bearer secrets and never logged (config errors included), and delivery is best effort: it never changes the run result or exit code. --credentials and --no-report are still accepted as hidden, deprecated no-ops so v0.1 cron lines keep working. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WZju5nfK7jvw8QUVvhKjU2 --- agent/agent.example.yaml | 14 ++ agent/cmd/init.go | 3 + agent/cmd/retired.go | 18 ++ agent/cmd/root.go | 1 - agent/cmd/run.go | 21 +- agent/cmd/test.go | 16 +- agent/e2e/run.sh | 62 +++++- agent/internal/config/config.go | 70 ++++++ agent/internal/config/config_test.go | 41 ++++ agent/internal/notify/notify.go | 284 ++++++++++++++++++++++++ agent/internal/notify/notify_test.go | 321 +++++++++++++++++++++++++++ agent/internal/report/redact_test.go | 2 +- agent/internal/report/report.go | 22 +- agent/internal/verify/verify.go | 7 - 14 files changed, 839 insertions(+), 43 deletions(-) create mode 100644 agent/cmd/retired.go create mode 100644 agent/internal/notify/notify.go create mode 100644 agent/internal/notify/notify_test.go diff --git a/agent/agent.example.yaml b/agent/agent.example.yaml index ac282be..4d81fe6 100644 --- a/agent/agent.example.yaml +++ b/agent/agent.example.yaml @@ -23,3 +23,17 @@ sandbox: dir: "" # Extra free-space requirement on top of the estimated snapshot size. min_free_space: "1GiB" + +# Optional: where to hear about results. The URLs are secrets (anyone who +# has one can post to it), which is one more reason this file is owner-only. +# See docs/notifications.md. +notify: + # Send ntfy/webhook messages on "failure" (default) or "always". + when: failure + # Push to your phone via ntfy. Pick an unguessable topic, or self-host. + ntfy: "" + # POST a JSON summary of the run to any URL. + webhook: "" + # Healthchecks.io-style ping: /start, then the URL on pass or /fail on + # failure. If pings stop arriving, the monitor alerts you. + healthcheck: "" diff --git a/agent/cmd/init.go b/agent/cmd/init.go index cce8905..9ee64c3 100644 --- a/agent/cmd/init.go +++ b/agent/cmd/init.go @@ -101,6 +101,9 @@ recipes: [%s] # schedule: "0 3 * * 0" # uncomment for `+"`restorable run`"+` (weekly, Sundays 3am) sandbox: dir: "" # OS temp dir; point at a bigger volume if needed +# notify: # optional: hear about failures (see docs/notifications.md) +# ntfy: https://ntfy.sh/ +# healthcheck: https://hc-ping.com/ `, repo, passwordEnv, recipeName) if err := os.WriteFile(recipePath, []byte(sug.RecipeYAML), 0o644); err != nil { diff --git a/agent/cmd/retired.go b/agent/cmd/retired.go new file mode 100644 index 0000000..0b9c809 --- /dev/null +++ b/agent/cmd/retired.go @@ -0,0 +1,18 @@ +package cmd + +import "github.com/spf13/cobra" + +// retiredFlagNotice is shown when someone still passes a flag that belonged +// to the hosted dashboard. +const retiredFlagNotice = "the hosted dashboard was retired in v0.2.0, so this flag does nothing; use notify: in agent.yaml for alerts" + +// addRetiredCloudFlags keeps the hosted dashboard's flags accepted, so cron +// lines written for v0.1 keep working after the upgrade. They do nothing, +// are hidden from help, and print a deprecation notice when used. +func addRetiredCloudFlags(cmd *cobra.Command) { + cmd.Flags().String("credentials", "", "") + cmd.Flags().Bool("no-report", false, "") + for _, name := range []string{"credentials", "no-report"} { + _ = cmd.Flags().MarkDeprecated(name, retiredFlagNotice) + } +} diff --git a/agent/cmd/root.go b/agent/cmd/root.go index 4dee74c..c35b66e 100644 --- a/agent/cmd/root.go +++ b/agent/cmd/root.go @@ -18,7 +18,6 @@ func newRootCmd() *cobra.Command { root.AddCommand(newVersionCmd()) root.AddCommand(newTestCmd()) root.AddCommand(newRunCmd()) - root.AddCommand(newRegisterCmd()) root.AddCommand(newInitCmd()) return root } diff --git a/agent/cmd/run.go b/agent/cmd/run.go index 4099465..2026630 100644 --- a/agent/cmd/run.go +++ b/agent/cmd/run.go @@ -10,16 +10,14 @@ import ( "github.com/spf13/cobra" "github.com/restorable-dev/restorable/agent/internal/config" - "github.com/restorable-dev/restorable/agent/internal/report" + "github.com/restorable-dev/restorable/agent/internal/notify" "github.com/restorable-dev/restorable/agent/internal/verify" ) func newRunCmd() *cobra.Command { var ( - cfgPath string - jsonOut bool - credsPath string - noReport bool + cfgPath string + jsonOut bool ) cmd := &cobra.Command{ Use: "run", @@ -39,15 +37,16 @@ func newRunCmd() *cobra.Command { logger := log.New(os.Stderr, "restorable ", log.LstdFlags) ctx := cmd.Context() + notifier := notify.New(cfg.Notify, logger.Printf) doRun := func() { logger.Printf("starting restore test") + notifier.Start(ctx) res := verify.Run(ctx, verify.Options{ Config: cfg, AgentVersion: version, Logf: logger.Printf, }) - maybeReport(ctx, credsPath, noReport, res, logger.Printf) if jsonOut { if err := res.WriteJSON(cmd.OutOrStdout()); err != nil { logger.Printf("write result: %v", err) @@ -59,6 +58,7 @@ func newRunCmd() *cobra.Command { logger.Printf("write result: %v", err) } } + notifier.Finish(ctx, res) logger.Printf("restore test finished: %s", res.Status) } @@ -72,11 +72,7 @@ func newRunCmd() *cobra.Command { } c.Start() logger.Printf("scheduler started (schedule %q), next run %s", cfg.Schedule, c.Entry(id).Next) - - if creds := loadCredentialsQuiet(credsPath); creds != nil && !noReport { - logger.Printf("registered with %s, heartbeating every %s", creds.URL, heartbeatInterval) - go heartbeatLoop(ctx, report.NewClient(creds), logger.Printf) - } + logger.Printf("notifications: %s", notifier.Describe()) <-ctx.Done() logger.Printf("shutting down, waiting for any running test to finish") @@ -86,7 +82,6 @@ func newRunCmd() *cobra.Command { } cmd.Flags().StringVarP(&cfgPath, "config", "c", "agent.yaml", "path to agent config file") cmd.Flags().BoolVar(&jsonOut, "json", false, "emit each result as JSON on stdout") - cmd.Flags().StringVar(&credsPath, "credentials", "", "cloud credentials file (default: user config dir)") - cmd.Flags().BoolVar(&noReport, "no-report", false, "never report runs to the control plane") + addRetiredCloudFlags(cmd) return cmd } diff --git a/agent/cmd/test.go b/agent/cmd/test.go index 0585c03..91a83a8 100644 --- a/agent/cmd/test.go +++ b/agent/cmd/test.go @@ -6,6 +6,7 @@ import ( "github.com/spf13/cobra" "github.com/restorable-dev/restorable/agent/internal/config" + "github.com/restorable-dev/restorable/agent/internal/notify" "github.com/restorable-dev/restorable/agent/internal/verify" ) @@ -20,10 +21,8 @@ func (e *exitError) ExitCode() int { return e.code } func newTestCmd() *cobra.Command { var ( - cfgPath string - jsonOut bool - credsPath string - noReport bool + cfgPath string + jsonOut bool ) cmd := &cobra.Command{ Use: "test", @@ -40,12 +39,13 @@ func newTestCmd() *cobra.Command { logf := func(format string, args ...any) { cmd.PrintErrf(format+"\n", args...) } + notifier := notify.New(cfg.Notify, logf) + notifier.Start(cmd.Context()) res := verify.Run(cmd.Context(), verify.Options{ Config: cfg, AgentVersion: version, Logf: logf, }) - maybeReport(cmd.Context(), credsPath, noReport, res, logf) if jsonOut { if err := res.WriteJSON(cmd.OutOrStdout()); err != nil { return err @@ -57,6 +57,9 @@ func newTestCmd() *cobra.Command { return err } } + // After the verdict is printed: a slow endpoint should never hold + // it back, and a failed delivery never changes the exit code. + notifier.Finish(cmd.Context(), res) if code := res.ExitCode(); code != 0 { return &exitError{code: code} } @@ -65,7 +68,6 @@ func newTestCmd() *cobra.Command { } cmd.Flags().StringVarP(&cfgPath, "config", "c", "agent.yaml", "path to agent config file") cmd.Flags().BoolVar(&jsonOut, "json", false, "emit the result as JSON on stdout") - cmd.Flags().StringVar(&credsPath, "credentials", "", "cloud credentials file (default: user config dir)") - cmd.Flags().BoolVar(&noReport, "no-report", false, "skip reporting this run to the control plane") + addRetiredCloudFlags(cmd) return cmd } diff --git a/agent/e2e/run.sh b/agent/e2e/run.sh index d36f7c7..79c6f1b 100755 --- a/agent/e2e/run.sh +++ b/agent/e2e/run.sh @@ -6,8 +6,11 @@ # 2. `restorable test` FAILS when a recipe assertion breaks (exit 1) # 3. `restorable test` ERRORS against a corrupted repo (exit 2) # 4. the sandbox directory is empty after every run, including failures +# 5. notify: pings the healthcheck (/start, /fail, bare URL on pass) and +# pushes to ntfy only on failure by default # -# Requirements: go (to build the agent) and restic. No Docker, no network. +# Requirements: go (to build the agent), restic and python3 (a local fake +# notification endpoint). No Docker, no network beyond localhost. set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" @@ -138,4 +141,61 @@ env -u RESTIC_PASSWORD "$BIN" test --config "$WORK/agent-good.yaml" && fail "exp } assert_sandbox_empty +log "case 5: notify pings the healthcheck and pushes to ntfy on failure" +HOOK_LOG="$WORK/hook.log" +HOOK_PORT_FILE="$WORK/hook.port" +: > "$HOOK_LOG" +python3 - "$HOOK_LOG" > "$HOOK_PORT_FILE" <<'PY' & +import http.server, sys +log_path = sys.argv[1] +class Hook(http.server.BaseHTTPRequestHandler): + def do_POST(self): + n = int(self.headers.get("Content-Length") or 0) + body = self.rfile.read(n).decode("utf-8", "replace").replace("\n", " ") + with open(log_path, "a") as f: + f.write(f"{self.path} | {self.headers.get('Priority') or '-'} | {body}\n") + self.send_response(200) + self.end_headers() + def log_message(self, *args): + pass +srv = http.server.HTTPServer(("127.0.0.1", 0), Hook) +print(srv.server_address[1], flush=True) +srv.serve_forever() +PY +HOOK_PID=$! +trap 'kill "$HOOK_PID" 2>/dev/null || true; rm -rf "$WORK"' EXIT +for _ in $(seq 1 50); do [ -s "$HOOK_PORT_FILE" ] && break; sleep 0.1; done +HOOK="http://127.0.0.1:$(cat "$HOOK_PORT_FILE")" + +cat > "$WORK/agent-notify-broken.yaml" < "$HOOK_LOG" +cat > "$WORK/agent-notify-good.yaml" <. + Ntfy string `yaml:"ntfy"` + // Webhook receives a JSON summary of the run by POST. + Webhook string `yaml:"webhook"` + // Healthcheck is a Healthchecks.io-style ping URL: /start when a run + // begins, the bare URL on pass, /fail on a failed or incomplete run. + Healthcheck string `yaml:"healthcheck"` +} + var envNameRe = regexp.MustCompile(`^[A-Za-z_][A-Za-z0-9_]*$`) // Load reads, defaults, and validates a config file. Recipe paths are @@ -76,6 +107,9 @@ func Load(path string) (*Config, error) { if cfg.PasswordEnv == "" { cfg.PasswordEnv = DefaultPasswordEnv } + if cfg.Notify.When == "" { + cfg.Notify.When = NotifyOnFailure + } base := filepath.Dir(path) for i, r := range cfg.Recipes { if !filepath.IsAbs(r) { @@ -111,6 +145,42 @@ func (c *Config) validate() error { return fmt.Errorf("recipe file %s: %w", r, err) } } + return c.Notify.validate() +} + +func (n *NotifyConfig) validate() error { + if n.When != NotifyOnFailure && n.When != NotifyAlways { + return fmt.Errorf("notify.when %q must be %q or %q", n.When, NotifyOnFailure, NotifyAlways) + } + endpoints := []struct{ key, value string }{ + {"notify.ntfy", n.Ntfy}, + {"notify.webhook", n.Webhook}, + {"notify.healthcheck", n.Healthcheck}, + } + for _, e := range endpoints { + if e.value == "" { + continue + } + if err := checkEndpoint(e.value); err != nil { + return fmt.Errorf("%s: %w", e.key, err) + } + } + return nil +} + +// checkEndpoint accepts absolute http(s) URLs. Its errors never quote the URL, +// because the URL is the secret. +func checkEndpoint(raw string) error { + u, err := url.Parse(raw) + if err != nil { + return errors.New("not a valid URL") + } + if u.Scheme != "http" && u.Scheme != "https" { + return fmt.Errorf("scheme must be http or https, got %q", u.Scheme) + } + if u.Host == "" { + return errors.New("URL has no host") + } return nil } diff --git a/agent/internal/config/config_test.go b/agent/internal/config/config_test.go index ec81a7e..c956e94 100644 --- a/agent/internal/config/config_test.go +++ b/agent/internal/config/config_test.go @@ -56,6 +56,28 @@ func TestLoad(t *testing.T) { {name: "bad size", yaml: "repo: /r\nsandbox:\n min_free_space: lots\n", wantErr: "min_free_space"}, {name: "bad password env name", yaml: "repo: /r\npassword_env: \"1BAD-NAME\"\n", wantErr: "password_env"}, {name: "missing recipe file", yaml: "repo: /r\nrecipes: [nope.yaml]\n", wantErr: "recipe file"}, + { + name: "notify defaults to failure-only", + yaml: "repo: /r\nnotify:\n ntfy: https://ntfy.sh/topic\n", + check: func(t *testing.T, c *Config) { + if c.Notify.When != NotifyOnFailure { + t.Errorf("Notify.When = %q, want %q", c.Notify.When, NotifyOnFailure) + } + }, + }, + { + name: "notify with every endpoint", + yaml: "repo: /r\nnotify:\n when: always\n ntfy: https://ntfy.sh/topic\n webhook: http://10.0.0.5:8080/hook\n healthcheck: https://hc-ping.com/abc?create=1\n", + check: func(t *testing.T, c *Config) { + if c.Notify.When != NotifyAlways || c.Notify.Webhook == "" || c.Notify.Healthcheck == "" { + t.Errorf("Notify = %+v", c.Notify) + } + }, + }, + {name: "notify bad when", yaml: "repo: /r\nnotify:\n when: sometimes\n", wantErr: "notify.when"}, + {name: "notify bad scheme", yaml: "repo: /r\nnotify:\n webhook: ftp://host/hook\n", wantErr: "notify.webhook"}, + {name: "notify no host", yaml: "repo: /r\nnotify:\n ntfy: https:///topic\n", wantErr: "notify.ntfy"}, + {name: "notify relative URL", yaml: "repo: /r\nnotify:\n healthcheck: hc-ping.com/abc\n", wantErr: "notify.healthcheck"}, } for _, tt := range tests { @@ -121,3 +143,22 @@ func TestParseSize(t *testing.T) { }) } } + +// A notify URL is a bearer secret, so a config error must name the field +// without echoing the URL back into logs or terminal scrollback. +func TestNotifyErrorsDoNotLeakURL(t *testing.T) { + const secret = "s3cr3t-ping-key" + for _, yaml := range []string{ + "repo: /r\nnotify:\n healthcheck: \"ftp://hc-ping.com/" + secret + "\"\n", + "repo: /r\nnotify:\n healthcheck: \"https://hc ping.com/" + secret + "\"\n", + "repo: /r\nnotify:\n webhook: \"/" + secret + "\"\n", + } { + _, err := Load(writeConfig(t, yaml)) + if err == nil { + t.Fatalf("Load() succeeded for %q, want error", yaml) + } + if strings.Contains(err.Error(), secret) { + t.Errorf("error leaks the URL: %v", err) + } + } +} diff --git a/agent/internal/notify/notify.go b/agent/internal/notify/notify.go new file mode 100644 index 0000000..4dba236 --- /dev/null +++ b/agent/internal/notify/notify.go @@ -0,0 +1,284 @@ +// Package notify tells you how a restore test went: an ntfy push, a JSON +// webhook, and a Healthchecks-style ping that turns a dead agent into an +// alert of its own. +// +// Delivery is best effort. A failed notification is logged and never changes +// the run's outcome or the process exit code. +// +// Everything sent here leaves the machine, so every message goes through +// report.RedactForTransport first: a check message can quote rows from the +// restored database, and a repo string can carry credentials. +package notify + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "maps" + "net/http" + "net/url" + "strings" + "time" + "unicode/utf8" + + "github.com/restorable-dev/restorable/agent/internal/config" + "github.com/restorable-dev/restorable/agent/internal/report" +) + +const ( + // requestTimeout bounds each delivery, so a slow endpoint can delay the + // end of a run by seconds, never hang it. + requestTimeout = 15 * time.Second + // maxNtfyBody keeps a message under ntfy's 4096-byte limit with room to + // spare for multi-byte characters. + maxNtfyBody = 3500 + // maxChecksListed caps the per-check lines in a text summary. + maxChecksListed = 10 +) + +// Notifier delivers run outcomes to the endpoints in the agent config. +type Notifier struct { + cfg config.NotifyConfig + client *http.Client + logf func(format string, args ...any) +} + +// New returns a Notifier for cfg. Delivery failures are reported through +// logf, without the endpoint URL. +func New(cfg config.NotifyConfig, logf func(format string, args ...any)) *Notifier { + return &Notifier{ + cfg: cfg, + client: &http.Client{Timeout: requestTimeout}, + logf: logf, + } +} + +// Describe summarizes what is configured, for a startup log line. It names +// endpoint kinds only, never URLs. +func (n *Notifier) Describe() string { + var parts []string + var messages []string + if n.cfg.Ntfy != "" { + messages = append(messages, "ntfy") + } + if n.cfg.Webhook != "" { + messages = append(messages, "webhook") + } + if len(messages) > 0 { + when := "on failure" + if n.cfg.When == config.NotifyAlways { + when = "after every run" + } + parts = append(parts, strings.Join(messages, " and ")+" "+when) + } + if n.cfg.Healthcheck != "" { + parts = append(parts, "healthcheck ping after every run") + } + if len(parts) == 0 { + return "none configured" + } + return strings.Join(parts, "; ") +} + +// Start tells the healthcheck a run has begun, so the monitor can time it and +// flag one that never finishes. It does nothing without a healthcheck URL. +func (n *Notifier) Start(ctx context.Context) { + if n.cfg.Healthcheck == "" { + return + } + n.post(ctx, "healthcheck start ping", withPath(n.cfg.Healthcheck, "start"), "", nil, nil) +} + +// Finish reports a completed run: always to the healthcheck, and to ntfy and +// the webhook when the run failed or notify.when is "always". +func (n *Notifier) Finish(ctx context.Context, res *report.RunResult) { + text := Summary(res) + passed := res.Status == report.StatusPass + + if n.cfg.Healthcheck != "" { + target := n.cfg.Healthcheck + if !passed { + target = withPath(target, "fail") + } + n.post(ctx, "healthcheck ping", target, "text/plain; charset=utf-8", []byte(text), nil) + } + + if passed && n.cfg.When != config.NotifyAlways { + return + } + if n.cfg.Ntfy != "" { + n.post(ctx, "ntfy notification", n.cfg.Ntfy, "text/plain; charset=utf-8", + []byte(truncateForNtfy(text)), ntfyHeader(res.Status)) + } + if n.cfg.Webhook != "" { + body, err := json.Marshal(newPayload(res, text)) + if err != nil { + n.logf("webhook notification: encode payload: %v", err) + return + } + n.post(ctx, "webhook notification", n.cfg.Webhook, "application/json", body, nil) + } +} + +// post sends one request and logs, rather than returns, any failure. +func (n *Notifier) post(ctx context.Context, what, target, contentType string, body []byte, header http.Header) { + ctx, cancel := context.WithTimeout(ctx, requestTimeout) + defer cancel() + req, err := http.NewRequestWithContext(ctx, http.MethodPost, target, bytes.NewReader(body)) + if err != nil { + n.logf("%s failed: %v", what, withoutURL(err)) + return + } + maps.Copy(req.Header, header) + if contentType != "" { + req.Header.Set("Content-Type", contentType) + } + req.Header.Set("User-Agent", "restorable-agent") + + resp, err := n.client.Do(req) + if err != nil { + n.logf("%s failed: %v", what, withoutURL(err)) + return + } + defer resp.Body.Close() //nolint:errcheck // body drained below, nothing to report + _, _ = io.Copy(io.Discard, io.LimitReader(resp.Body, 64<<10)) + if resp.StatusCode < 200 || resp.StatusCode > 299 { + n.logf("%s failed: HTTP %d", what, resp.StatusCode) + } +} + +// withoutURL drops the request URL from an HTTP client error. Ping URLs, ntfy +// topics and webhook paths are bearer secrets, so they stay out of logs. +func withoutURL(err error) error { + var ue *url.Error + if errors.As(err, &ue) { + return ue.Err + } + return err +} + +// withPath appends one path segment to a ping URL and keeps its query string +// (Healthchecks uses ?create=1 for checks it provisions on first ping). +func withPath(raw, segment string) string { + u, err := url.Parse(raw) + if err != nil { + // Unreachable: config validation rejects unparseable URLs at load. + return raw + } + u.Path = strings.TrimRight(u.Path, "/") + "/" + segment + u.RawPath = "" + return u.String() +} + +func ntfyHeader(status report.Status) http.Header { + h := http.Header{} + switch status { + case report.StatusPass: + h.Set("Title", "Restorable: restore test passed") + h.Set("Tags", "white_check_mark") + case report.StatusFail: + h.Set("Title", "Restorable: restore test FAILED") + h.Set("Tags", "rotating_light") + h.Set("Priority", "high") + default: + h.Set("Title", "Restorable: restore test could not run") + h.Set("Tags", "warning") + h.Set("Priority", "high") + } + return h +} + +// payload is the webhook body. Field names are a public contract; add to it, +// don't rename. +type payload struct { + Event string `json:"event"` + Status report.Status `json:"status"` + Summary string `json:"summary"` + Repo string `json:"repo"` + SnapshotID string `json:"snapshot_id,omitempty"` + Error string `json:"error,omitempty"` + StartedAt time.Time `json:"started_at"` + FinishedAt time.Time `json:"finished_at"` + RestoreDurationMS int64 `json:"restore_duration_ms,omitempty"` + AgentVersion string `json:"agent_version"` + Checks []report.CheckResult `json:"checks"` +} + +func newPayload(res *report.RunResult, summary string) payload { + checks := make([]report.CheckResult, len(res.Checks)) + for i, c := range res.Checks { + c.Message = report.RedactForTransport(c.Message) + checks[i] = c + } + return payload{ + Event: "restore_test.finished", + Status: res.Status, + Summary: summary, + Repo: report.Scrub(res.Repo), + SnapshotID: res.SnapshotID, + Error: report.RedactForTransport(res.Error), + StartedAt: res.StartedAt, + FinishedAt: res.FinishedAt, + RestoreDurationMS: res.RestoreDurationMS, + AgentVersion: res.AgentVersion, + Checks: checks, + } +} + +// Summary renders a run as plain text for a notification. It carries the +// same facts as the terminal output, with every message redacted for +// transport. +func Summary(res *report.RunResult) string { + lines := []string{ + "Restorable: " + strings.ToUpper(string(res.Status)), + "repo: " + report.Scrub(res.Repo), + } + if res.SnapshotID != "" { + id := res.SnapshotID + if len(id) > 8 { + id = id[:8] + } + lines = append(lines, "snapshot: "+id) + } + if res.RestoreDurationMS > 0 { + restore := time.Duration(res.RestoreDurationMS) * time.Millisecond + lines = append(lines, "restore time: "+restore.Round(time.Millisecond).String()) + } + lines = append(lines, "total time: "+res.Duration().Round(time.Millisecond).String()) + if res.Error != "" { + lines = append(lines, "error: "+report.RedactForTransport(res.Error)) + } + for i, c := range res.Checks { + if i == maxChecksListed { + lines = append(lines, fmt.Sprintf("... and %d more check(s)", len(res.Checks)-maxChecksListed)) + break + } + mark := "PASS" + if c.Status != report.StatusPass { + mark = "FAIL" + } + line := fmt.Sprintf("%s %s/%s", mark, c.Recipe, c.Type) + if c.Status != report.StatusPass && c.Message != "" { + line += ": " + report.RedactForTransport(c.Message) + } + lines = append(lines, line) + } + return strings.Join(lines, "\n") +} + +// truncateForNtfy cuts s to at most maxNtfyBody bytes without splitting a +// UTF-8 sequence. +func truncateForNtfy(s string) string { + if len(s) <= maxNtfyBody { + return s + } + const ellipsis = "..." + cut := maxNtfyBody - len(ellipsis) + for cut > 0 && !utf8.RuneStart(s[cut]) { + cut-- + } + return s[:cut] + ellipsis +} diff --git a/agent/internal/notify/notify_test.go b/agent/internal/notify/notify_test.go new file mode 100644 index 0000000..dfc8bf0 --- /dev/null +++ b/agent/internal/notify/notify_test.go @@ -0,0 +1,321 @@ +package notify + +import ( + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/http/httptest" + "strings" + "sync" + "testing" + "time" + + "github.com/restorable-dev/restorable/agent/internal/config" + "github.com/restorable-dev/restorable/agent/internal/report" +) + +// request is what the fake endpoint saw. +type request struct { + Path string + Query string + Header http.Header + Body string +} + +// recorder is a fake endpoint that records every request and answers with +// status. +type recorder struct { + mu sync.Mutex + reqs []request + status int + srv *httptest.Server +} + +func newRecorder(t *testing.T, status int) *recorder { + t.Helper() + rec := &recorder{status: status} + rec.srv = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + body, _ := io.ReadAll(r.Body) + rec.mu.Lock() + rec.reqs = append(rec.reqs, request{ + Path: r.URL.Path, + Query: r.URL.RawQuery, + Header: r.Header.Clone(), + Body: string(body), + }) + rec.mu.Unlock() + w.WriteHeader(rec.status) + })) + t.Cleanup(rec.srv.Close) + return rec +} + +func (r *recorder) url(path string) string { return r.srv.URL + path } + +func (r *recorder) paths() []string { + r.mu.Lock() + defer r.mu.Unlock() + out := make([]string, len(r.reqs)) + for i, q := range r.reqs { + out[i] = q.Path + } + return out +} + +func (r *recorder) find(t *testing.T, path string) request { + t.Helper() + r.mu.Lock() + defer r.mu.Unlock() + for _, q := range r.reqs { + if q.Path == path { + return q + } + } + t.Fatalf("no request to %s; got %v", path, r.paths()) + return request{} +} + +// logSink collects log lines. +type logSink struct { + mu sync.Mutex + lines []string +} + +func (l *logSink) logf(format string, args ...any) { + l.mu.Lock() + defer l.mu.Unlock() + l.lines = append(l.lines, fmt.Sprintf(format, args...)) +} + +func (l *logSink) all() string { + l.mu.Lock() + defer l.mu.Unlock() + return strings.Join(l.lines, "\n") +} + +const leakyDBMessage = `pg_restore failed: ERROR: duplicate key value violates unique constraint "users_email_key" / DETAIL: Key (email)=(alice@example.com) already exists.` + +func passResult() *report.RunResult { + start := time.Date(2026, 11, 16, 3, 0, 0, 0, time.UTC) + return &report.RunResult{ + AgentVersion: "v0.2.0", + Repo: "/srv/backups/restic", + SnapshotID: "cd10c302aabbccdd", + Status: report.StatusPass, + StartedAt: start, + FinishedAt: start.Add(5500 * time.Millisecond), + RestoreDurationMS: 4100, + Checks: []report.CheckResult{ + {Recipe: "nextcloud", Type: "files", Status: report.StatusPass, Message: "2 required path(s) present", DurationMS: 3922}, + }, + } +} + +func failResult() *report.RunResult { + res := passResult() + res.Status = report.StatusFail + res.Repo = "rest:https://backup:hunter2@nas.lan:8000/restic" + res.Checks = append(res.Checks, report.CheckResult{ + Recipe: "app", Type: "postgres", Status: report.StatusFail, Message: leakyDBMessage, DurationMS: 812, + }) + return res +} + +func allEndpoints(rec *recorder, when string) config.NotifyConfig { + return config.NotifyConfig{ + When: when, + Ntfy: rec.url("/ntfy-topic"), + Webhook: rec.url("/hook"), + Healthcheck: rec.url("/ping/abc-uuid"), + } +} + +func TestPassOnFailurePolicyOnlyPingsHealthcheck(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + logs := &logSink{} + New(allEndpoints(rec, config.NotifyOnFailure), logs.logf).Finish(context.Background(), passResult()) + + if got := rec.paths(); len(got) != 1 || got[0] != "/ping/abc-uuid" { + t.Fatalf("requests = %v, want only the success ping", got) + } + if body := rec.find(t, "/ping/abc-uuid").Body; !strings.Contains(body, "Restorable: PASS") { + t.Errorf("ping body = %q, want the run summary", body) + } + if l := logs.all(); l != "" { + t.Errorf("unexpected log output: %s", l) + } +} + +func TestPassAlwaysPolicyNotifiesEverywhere(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + New(allEndpoints(rec, config.NotifyAlways), (&logSink{}).logf).Finish(context.Background(), passResult()) + + for _, p := range []string{"/ping/abc-uuid", "/ntfy-topic", "/hook"} { + rec.find(t, p) + } + if h := rec.find(t, "/ntfy-topic").Header; h.Get("Priority") != "" { + t.Errorf("a pass should use ntfy's default priority, got %q", h.Get("Priority")) + } +} + +func TestFailureNotifiesEverywhereWithRedaction(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + New(allEndpoints(rec, config.NotifyOnFailure), (&logSink{}).logf).Finish(context.Background(), failResult()) + + ping := rec.find(t, "/ping/abc-uuid/fail") + ntfy := rec.find(t, "/ntfy-topic") + hook := rec.find(t, "/hook") + + if ntfy.Header.Get("Priority") != "high" || !strings.Contains(ntfy.Header.Get("Title"), "FAILED") { + t.Errorf("ntfy headers = %v, want high priority and a FAILED title", ntfy.Header) + } + if hook.Header.Get("Content-Type") != "application/json" { + t.Errorf("webhook Content-Type = %q", hook.Header.Get("Content-Type")) + } + + for name, body := range map[string]string{"ping": ping.Body, "ntfy": ntfy.Body, "webhook": hook.Body} { + if strings.Contains(body, "alice@example.com") { + t.Errorf("%s body leaks a row value from the restored database: %s", name, body) + } + if strings.Contains(body, "hunter2") { + t.Errorf("%s body leaks the repository password: %s", name, body) + } + if !strings.Contains(body, "users_email_key") { + t.Errorf("%s body lost the failure reason: %s", name, body) + } + } + + var p payload + if err := json.Unmarshal([]byte(hook.Body), &p); err != nil { + t.Fatalf("webhook body is not JSON: %v", err) + } + if p.Event != "restore_test.finished" || p.Status != report.StatusFail || len(p.Checks) != 2 { + t.Errorf("webhook payload = %+v", p) + } + if p.SnapshotID != "cd10c302aabbccdd" || p.RestoreDurationMS != 4100 || p.AgentVersion != "v0.2.0" { + t.Errorf("webhook payload lost run metadata: %+v", p) + } +} + +func TestErrorStatusCountsAsFailure(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + res := passResult() + res.Status = report.StatusError + res.Error = "find latest snapshot: repository does not exist" + res.Checks = nil + New(allEndpoints(rec, config.NotifyOnFailure), (&logSink{}).logf).Finish(context.Background(), res) + + rec.find(t, "/ping/abc-uuid/fail") + if title := rec.find(t, "/ntfy-topic").Header.Get("Title"); !strings.Contains(title, "could not run") { + t.Errorf("ntfy title = %q", title) + } +} + +func TestStartPing(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + New(allEndpoints(rec, config.NotifyOnFailure), (&logSink{}).logf).Start(context.Background()) + if got := rec.paths(); len(got) != 1 || got[0] != "/ping/abc-uuid/start" { + t.Fatalf("requests = %v, want only the start ping", got) + } +} + +func TestPingKeepsQueryString(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + cfg := config.NotifyConfig{When: config.NotifyOnFailure, Healthcheck: rec.url("/ping/key/backup-check/?create=1")} + New(cfg, (&logSink{}).logf).Finish(context.Background(), failResult()) + + q := rec.find(t, "/ping/key/backup-check/fail") + if q.Query != "create=1" { + t.Errorf("query = %q, want create=1", q.Query) + } +} + +func TestNothingConfiguredSendsNothing(t *testing.T) { + logs := &logSink{} + n := New(config.NotifyConfig{When: config.NotifyAlways}, logs.logf) + n.Start(context.Background()) + n.Finish(context.Background(), failResult()) + if l := logs.all(); l != "" { + t.Errorf("unexpected log output: %s", l) + } + if d := n.Describe(); d != "none configured" { + t.Errorf("Describe() = %q", d) + } +} + +func TestDeliveryFailuresAreLoggedWithoutURL(t *testing.T) { + rec := newRecorder(t, http.StatusInternalServerError) + logs := &logSink{} + New(allEndpoints(rec, config.NotifyOnFailure), logs.logf).Finish(context.Background(), failResult()) + + out := logs.all() + if !strings.Contains(out, "HTTP 500") { + t.Errorf("logs = %q, want the HTTP status", out) + } + + // An unreachable endpoint: the transport error names the URL unless we + // strip it. + dead := httptest.NewServer(http.NotFoundHandler()) + deadURL := dead.URL + dead.Close() + logs = &logSink{} + cfg := config.NotifyConfig{ + When: config.NotifyOnFailure, + Ntfy: deadURL + "/secret-topic", + Healthcheck: deadURL + "/ping/secret-uuid", + } + New(cfg, logs.logf).Finish(context.Background(), failResult()) + out = logs.all() + if !strings.Contains(out, "failed") { + t.Fatalf("logs = %q, want delivery failures", out) + } + for _, secret := range []string{"secret-topic", "secret-uuid", deadURL} { + if strings.Contains(out, secret) { + t.Errorf("log leaks %q: %s", secret, out) + } + } +} + +func TestDescribe(t *testing.T) { + rec := newRecorder(t, http.StatusOK) + got := New(allEndpoints(rec, config.NotifyOnFailure), nil).Describe() + want := "ntfy and webhook on failure; healthcheck ping after every run" + if got != want { + t.Errorf("Describe() = %q, want %q", got, want) + } + if strings.Contains(got, rec.srv.URL) { + t.Errorf("Describe() leaks a URL: %q", got) + } +} + +func TestSummaryCapsCheckList(t *testing.T) { + res := passResult() + res.Checks = nil + for i := range maxChecksListed + 3 { + res.Checks = append(res.Checks, report.CheckResult{Recipe: "r", Type: fmt.Sprintf("files%d", i), Status: report.StatusPass}) + } + s := Summary(res) + if !strings.Contains(s, "... and 3 more check(s)") { + t.Errorf("summary = %q, want a capped check list", s) + } +} + +func TestTruncateForNtfy(t *testing.T) { + long := strings.Repeat("é", maxNtfyBody) // 2 bytes per rune + got := truncateForNtfy(long) + if len(got) > maxNtfyBody { + t.Errorf("len = %d, over %d", len(got), maxNtfyBody) + } + if !strings.HasSuffix(got, "...") { + t.Errorf("missing ellipsis") + } + trimmed := strings.TrimSuffix(got, "...") + if strings.ContainsRune(trimmed, '�') || !strings.HasSuffix(trimmed, "é") { + t.Errorf("cut split a UTF-8 sequence") + } + if short := "ok"; truncateForNtfy(short) != short { + t.Errorf("short strings must pass through unchanged") + } +} diff --git a/agent/internal/report/redact_test.go b/agent/internal/report/redact_test.go index 191f744..d0a7098 100644 --- a/agent/internal/report/redact_test.go +++ b/agent/internal/report/redact_test.go @@ -107,7 +107,7 @@ func TestRedactForTransportBoundsLength(t *testing.T) { // Docker client errors embed the daemon socket path, which on a desktop // install contains the operator's account name. This repo is published under a -// pseudonym, so a username reaching the control plane is a real problem, not a +// pseudonym, so a username reaching a notification is a real problem, not a // cosmetic one. func TestScrubDockerSocketPath(t *testing.T) { in := `start container from mysql:8: Post "http://%2FUsers%2Fdbelle%2F.docker%2Frun%2Fdocker.sock/v1.48/containers/abc/start": terminated signal received` diff --git a/agent/internal/report/report.go b/agent/internal/report/report.go index 4adcd82..3107805 100644 --- a/agent/internal/report/report.go +++ b/agent/internal/report/report.go @@ -1,6 +1,5 @@ // Package report defines run result types, local human/JSON output, and the // scrubbing helpers that keep credentials out of anything the agent emits. -// The control-plane client arrives in Phase 3. package report import ( @@ -36,16 +35,13 @@ type CheckResult struct { // RunResult is the outcome of one full restore-verification run. type RunResult struct { - AgentVersion string `json:"agent_version"` - Repo string `json:"repo"` - // RepoFingerprint, when set, is the stable per-repository fingerprint - // (from restic's repo ID). Empty falls back to hashing the repo string. - RepoFingerprint string `json:"-"` - SnapshotID string `json:"snapshot_id,omitempty"` - Status Status `json:"status"` - Error string `json:"error,omitempty"` - StartedAt time.Time `json:"started_at"` - FinishedAt time.Time `json:"finished_at"` + AgentVersion string `json:"agent_version"` + Repo string `json:"repo"` + SnapshotID string `json:"snapshot_id,omitempty"` + Status Status `json:"status"` + Error string `json:"error,omitempty"` + StartedAt time.Time `json:"started_at"` + FinishedAt time.Time `json:"finished_at"` // RestoreDurationMS is how long the restic restore itself took, separate // from verification. Zero when the run failed before the restore finished. RestoreDurationMS int64 `json:"restore_duration_ms,omitempty"` @@ -64,7 +60,7 @@ var credRe = regexp.MustCompile(`([a-zA-Z][a-zA-Z0-9+.-]*://)[^\s]+@`) // Post "http://%2FUsers%2Falice%2F.docker%2Frun%2Fdocker.sock/v1.48/…" // // That path contains the operator's account name, which has no business -// travelling to the control plane or sitting in a log. Matching on the +// travelling in a notification or sitting in a log. Matching on the // docker.sock suffix keeps this from touching anything else. var dockerSockRe = regexp.MustCompile(`(?i)https?://[^/"\s]*docker\.sock`) @@ -109,7 +105,7 @@ var mysqlRowValueRe = regexp.MustCompile(`(?i)\b(Duplicate entry|value:)\s+'[^'] // RedactForTransport prepares a check message to leave the machine. Check // messages are the one field that can embed raw command output from the -// user's restored databases, so anything sent to the control plane is stripped +// user's restored databases, so anything sent in a notification is stripped // of DB detail segments, scrubbed of URL credentials, and length-bounded. // Local stdout keeps the full text. func RedactForTransport(msg string) string { diff --git a/agent/internal/verify/verify.go b/agent/internal/verify/verify.go index 0681efd..ba6a136 100644 --- a/agent/internal/verify/verify.go +++ b/agent/internal/verify/verify.go @@ -73,13 +73,6 @@ func Run(ctx context.Context, opts Options) *report.RunResult { return fail("%v", err) } - // Fingerprint the repo by its canonical restic ID so the same repo is - // never counted twice for being addressed two ways (relative vs absolute - // path, trailing slash). Best-effort: falls back to the repo string. - if id, idErr := runner.RepoID(ctx); idErr == nil && id != "" { - res.RepoFingerprint = report.FingerprintID(id) - } - logf("looking up latest snapshot in %s", report.Scrub(cfg.Repo)) snap, err := runner.LatestSnapshot(ctx) if err != nil { From cf5b00bbf6b1038cc22e93b3151e5e9b4363853b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 15:30:32 +0000 Subject: [PATCH 3/4] docs: open-source-only README, notifications guide, security notes Replace the cloud, billing and alerts pages with docs/notifications.md, document notify: in the config reference and quickstart, note the retired register command and flags, and rewrite SECURITY.md's data-egress section for notifications. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WZju5nfK7jvw8QUVvhKjU2 --- README.md | 50 +++++++------ SECURITY.md | 40 +++++------ docs/README.md | 22 +++--- docs/agent-configuration.md | 8 +++ docs/commands.md | 24 ++++--- docs/notifications.md | 135 +++++++++++++++++++++++------------- docs/quickstart.md | 20 +++--- 7 files changed, 170 insertions(+), 129 deletions(-) diff --git a/README.md b/README.md index d4f14f9..1e5fa90 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,13 @@ restorable: PASS Works fully standalone — single binary, no account, cron-friendly exit codes. Because every test is a real restore, you also get your **measured recovery -time** — how long being back online actually takes, not a guess. An optional -cloud dashboard adds scheduling history, recovery-time tracking, stale-backup -detection, and alerts (Telegram, Discord, ntfy, email). +time** — how long being back online actually takes, not a guess. Optional +notifications push failures to your phone and catch the agent itself going +quiet. + +Free and open source (MIT). There's no hosted service and no account: the +hosted dashboard from v0.1 was retired in v0.2.0, and its alerting and +dead-agent detection now run from the agent itself. ## Why @@ -105,23 +109,24 @@ and `sqlite` don't. are a compile error, not a code-review promise. - **Sandboxes are always destroyed** — on success, failure, and panic. Disk space is checked *before* any restore begins. -- **Your data never leaves your machine.** Standalone mode talks to nobody. - Cloud mode reports only pass/fail metadata: a repository fingerprint - (SHA-256 of the credential-scrubbed location), snapshot IDs, check - results, timings. Never file contents, never passwords. The agent is - pull-based over HTTPS and listens on no ports. +- **Your data never leaves your machine.** With no `notify:` block the agent + talks to nothing but your repository. With one, it sends a redacted run + summary only to the URLs you configured. Never file contents, never + passwords, and it listens on no ports. -## Cloud dashboard (optional) +## Notifications (optional) -The hosted dashboard adds run history across repos, alerting on failure, -stale-backup detection (fires when your *testing* silently dies — the -meta-failure). +```yaml +notify: + ntfy: https://ntfy.sh/ # push on failure + webhook: https://example.com/hook # JSON summary on failure + healthcheck: https://hc-ping.com/ # pinged every run +``` -**It is all free during the open beta.** Every Pro feature, no card, no -trial clock. The plans below are what it will cost when the beta ends. -Free: 1 repo, monthly tests, 1 alert channel. Pro ($8/mo or $80/yr): -unlimited repos, any schedule, all channels, 12-month history. The agent -works forever without any of it. +The healthcheck ping is the one to set up first. Failure alerts can't tell +you that tests stopped running at all; a dead-man's-switch monitor like +[Healthchecks.io](https://healthchecks.io) can. See +[notifications](docs/notifications.md). ## Docs @@ -131,9 +136,8 @@ works forever without any of it. [files](docs/recipes-files.md) · [databases](docs/recipes-databases.md) · [docker-app](docs/recipes-docker-app.md) · -[Alerts](docs/alerts.md) · -[Cloud](docs/cloud.md) · -[Plans](docs/billing.md) +[Notifications](docs/notifications.md) · +[Security](SECURITY.md) ## Building from source @@ -142,9 +146,9 @@ git clone https://github.com/restorable-dev/restorable && cd restorable/agent go build -o restorable . ``` -Repo layout: [`/agent`](agent/) Go agent · [`/web`](web/) control plane -(Next.js + Supabase) · [`/recipes`](recipes/) shipped recipes · -[`/docs`](docs/) documentation. +Repo layout: [`/agent`](agent/) Go agent · [`/recipes`](recipes/) shipped +recipes · [`/docs`](docs/) documentation. The retired dashboard (`web/`) is in +git history before v0.2.0. ## License diff --git a/SECURITY.md b/SECURITY.md index 2c355ba..7997737 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -20,8 +20,8 @@ and leave the details out. | Version | Supported | | ------- | --------- | -| 0.1.x | Yes | -| < 0.1.1 | No | +| 0.2.x | Yes | +| 0.1.x | No: upgrade (the hosted dashboard it reported to is gone) | Anything before v0.1.1 was built with a Go toolchain carrying known stdlib vulnerabilities, and those releases have been pulled. There's no auto-update by @@ -42,17 +42,19 @@ guarantee. Free space is checked before a restore starts. An oversized snapshot fails with a clear error rather than filling your disk. -The contents of your files never leave your machine. Connected to the hosted -control plane, the agent sends pass/fail, timings, snapshot IDs, recipe and -check names, check messages, error strings, and a label for the repository. +The contents of your files never leave your machine. There is no hosted +service: the hosted dashboard was retired in v0.2.0. The only outbound +connections are to your restic backend and to the notification URLs you put in +`notify:`, if any. To those, the agent sends pass/fail, timings, a snapshot ID, +recipe and check names, check messages, error strings, and your repository +string. Be aware of what those last three carry, because it is more than "metadata" -suggests. The repository label is your repo string with credentials stripped, -so it still contains the host and path, and it appears in the title of every -alert sent to whatever channels you connect. Check messages can name paths from -inside the snapshot: a checksum mismatch says which file differed. If either is -more than you want reaching a third-party chat service, run the agent -standalone and skip the cloud entirely. +suggests. The repository string has credentials stripped, but it still contains +the host and path. Check messages can name paths from inside the snapshot: a +checksum mismatch says which file differed. If either is more than you want +reaching ntfy or a webhook, use only the `healthcheck` ping and keep the details +in your local logs. Strings go through scrubbing and redaction before they're logged or transmitted, including errors from cleanup failures. Credentials embedded in @@ -64,14 +66,12 @@ CONTEXT, MySQL inlines them in the error itself, and both are removed. Be aware this part is pattern matching against known shapes rather than a guarantee. It has been wrong twice, so assume a database engine can invent a new way to quote your data that we have not covered yet. If a database failure -must never carry row values off the machine under any circumstances, run the -agent standalone and skip the cloud. That is the only version of this promise -that does not depend on us keeping up. +must never carry row values off the machine under any circumstances, don't +configure ntfy or a webhook. That is the only version of this promise that does +not depend on us keeping up. -The agent polls outbound over HTTPS and opens no inbound ports. - -Cloud is optional either way. `restorable test --config agent.yaml` runs the -whole local loop without an account. +The agent opens no inbound ports, and `restorable test --config agent.yaml` +runs the whole loop without an account or any network beyond your repository. ## Known advisories @@ -93,10 +93,6 @@ which has published nothing but betas so far. I'm not moving this onto a beta dependency over two advisories it doesn't exercise. When moby/moby/v2 goes stable the agent migrates and this section goes away. -Dev dependencies of the web control plane may carry their own advisories. Those -don't ship. `npm audit --omit=dev` on the production tree is the number that -matters and it should read zero. - ## Out of scope Bugs in restic itself go to [restic](https://github.com/restic/restic). Same for diff --git a/docs/README.md b/docs/README.md index 185c060..daca31f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,18 +1,14 @@ # Docs -User-facing documentation source. Pages are added in the same phase as the -feature they document (see CLAUDE.md engineering conventions). +User-facing documentation for the Restorable agent. -- [Quickstart](quickstart.md) — install → first green test in under 10 minutes -- [Agent configuration](agent-configuration.md) — `agent.yaml` reference, +- [Quickstart](quickstart.md): install → first green test in under 10 minutes +- [Agent configuration](agent-configuration.md): `agent.yaml` reference, disk-space pre-flight, read-only guarantee -- [Commands](commands.md) — `restorable test`, `restorable run`, exit codes -- [The `files` recipe check](recipes-files.md) — asserting restored content -- [Database checks](recipes-databases.md) — `postgres`, `mysql`, `sqlite` -- [The `docker-app` check](recipes-docker-app.md) — boot the real app on +- [Commands](commands.md): `restorable test`, `restorable run`, exit codes +- [The `files` recipe check](recipes-files.md): asserting restored content +- [Database checks](recipes-databases.md): `postgres`, `mysql`, `sqlite` +- [The `docker-app` check](recipes-docker-app.md): boot the real app on restored data -- [Cloud dashboard](cloud.md) — registering agents, what data leaves your - machine (and what never does) -- [Alerts](alerts.md) — channels, incident dedup, staleness windows -- [Plans & billing](billing.md) — free vs Pro, how limits behave, graceful - downgrades +- [Notifications](notifications.md): ntfy, webhooks, and a healthcheck + ping that catches a dead agent diff --git a/docs/agent-configuration.md b/docs/agent-configuration.md index f64cbdf..34d2192 100644 --- a/docs/agent-configuration.md +++ b/docs/agent-configuration.md @@ -34,6 +34,14 @@ sandbox: # Extra free-space floor for the pre-flight disk check, on top of the # estimated snapshot size (accepts 500MB, 2GiB, ...). min_free_space: "1GiB" + +# Optional. Where to hear about results; see notifications.md. Every URL is +# a secret and is never logged. http and https only. +notify: + when: failure # or "always" (default: failure) + ntfy: https://ntfy.sh/ # phone push + webhook: https://example.com/hook # POST of a JSON summary + healthcheck: https://hc-ping.com/ # pinged on every run ``` ## Disk-space pre-flight diff --git a/docs/commands.md b/docs/commands.md index 5f3452b..f2332c7 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -28,6 +28,7 @@ Runs one full restore-verification cycle and exits: 4. Restores the snapshot into a disposable sandbox directory. 5. Runs every recipe check. 6. Destroys the sandbox — on every path out, including failures and panics. +7. Sends any [notifications](notifications.md) configured in `notify:`. ```sh restorable test --config agent.yaml # human-readable result @@ -35,7 +36,11 @@ restorable test --config agent.yaml --json # machine-readable result on stdout ``` Progress goes to stderr, the result to stdout, so `--json` output is safe to -pipe. Exit codes are cron-friendly: +pipe. + +### Exit codes + +Cron-friendly: | Code | Meaning | |---|---| @@ -43,7 +48,8 @@ pipe. Exit codes are cron-friendly: | 1 | Verification failed — the restore or its contents are not what they should be | | 2 | Could not test — configuration, repository, or infrastructure problem | -No account or network connectivity is required; this works fully offline. +No account or network connectivity is required; this works fully offline +unless you configure notifications. ## `restorable run` @@ -58,15 +64,13 @@ cleaning up the sandbox. restorable run --config agent.yaml ``` -## `restorable register` - -Connects the agent to the cloud dashboard using a one-time token minted -there. Optional — see [cloud.md](cloud.md). After registering, `test` and -`run` report results automatically (`--no-report` skips). +## Retired in v0.2.0 -```sh -restorable register --url https:// --token rrt_… --name my-box -``` +`restorable register` and the hosted dashboard it connected to are gone. The +`--credentials` and `--no-report` flags are still accepted on `test` and `run` +so existing cron lines keep working, but they do nothing and print a +deprecation notice. Use [`notify:`](notifications.md) for alerts. A leftover +`credentials.json` in your user config directory can be deleted. ## `restorable version` diff --git a/docs/notifications.md b/docs/notifications.md index 8f91ba0..a238309 100644 --- a/docs/notifications.md +++ b/docs/notifications.md @@ -1,50 +1,85 @@ -# Alerts - -Restorable alerts you when something needs attention — and tells you when it -recovers. Three conditions are watched: - -| Alert | Fires when | -|---|---| -| Restore test failed | A run reports `fail` or `error` | -| Backup tests gone quiet | No successful test within the repo's staleness window | -| Agent silent | A registered agent hasn't checked in for 24 hours | - -**One alert per incident.** A failing test alerts once, not on every retry. -When the condition clears — a passing run, tests resuming, the agent -returning — you get a single recovery notice and the incident closes. A new -problem after that opens a new incident. - -## Staleness window - -By default the window is inferred: 1.5× the gap between your two most recent -runs, with a 24-hour minimum (a repo with fewer than two runs is never -stale). Set an explicit window per repo (`stale_after`) if your cadence is -irregular. This is the meta-failure catcher: it fires when the *watcher* -dies — agent crashed, cron broken, machine off. - -Daemon agents (`restorable run`) heartbeat every 6 hours, so a weekly test -schedule never looks like a dead agent. If your agent runs from system cron -instead, agent-silence alerts can be disabled per agent -(`alert_when_silent`). - -## Channels - -Configure on **Dashboard → Alerts**. Every channel must pass a **Test** -before it receives real alerts. - -- **Telegram** — click *Connect with Telegram*: it opens the Restorable bot, - you press Start, and your chat is linked automatically. No bot setup, no - chat IDs. (You don't create a bot — everyone shares the one Restorable bot, - and your alerts go only to your chat.) -- **Discord** — create a webhook in your server's channel settings and paste - its URL. -- **ntfy** — pick a topic; self-hosted servers are supported (https only). -- **Email** — delivered via AWS SES. - -## Cron - -Stale and silent detection run from `/api/cron/alerts`, authenticated with -`CRON_SECRET`. Two schedulers call it: a GitHub Actions workflow -(`.github/workflows/cron-alerts.yml`) hourly, and a Vercel cron -(`vercel.json`) daily as a backstop. If alerts seem late, check the Actions -workflow first: scheduled workflows get disabled after repository inactivity. +# Notifications + +A restore test that fails silently is worse than no test, so the agent can +tell you how each run went. Add a `notify:` block to `agent.yaml`: + +```yaml +notify: + when: failure # or "always" + ntfy: https://ntfy.sh/ + webhook: https://example.com/hooks/restorable + healthcheck: https://hc-ping.com/ +``` + +Every endpoint is optional. With none set, the agent reports through stdout +and its [exit code](commands.md#exit-codes) only, which is enough if cron +already mails you on failure. + +| Endpoint | When it fires | What it sends | +|---|---|---| +| `ntfy` | Failed or incomplete runs (every run with `when: always`) | A push with a title, priority `high` on failure, and a text summary | +| `webhook` | Same as ntfy | `POST` of a JSON summary | +| `healthcheck` | Every run | `/start` when a run begins, then the bare URL on pass or `/fail` on failure | + +Delivery is best effort. Each request times out after 15 seconds, a failed +delivery is logged to stderr, and nothing about notifications ever changes +the run's result or exit code. + +## Catching a dead agent + +Alerts on failure can't tell you that tests stopped running: a crashed +daemon, a broken cron line or a machine that's off all look like silence. +The `healthcheck` ping covers that. Point it at a dead-man's-switch monitor +and set the expected period to your test schedule plus some grace: + +- [Healthchecks.io](https://healthchecks.io) (free tier, or self-host it) +- Anything that speaks the same protocol: a ping URL, `/start` and `/fail` + +If a ping doesn't arrive on time, the monitor alerts you through whatever +channels it supports. The `/start` signal also lets it measure how long each +restore test takes and flag one that hangs. + +## ntfy + +[ntfy](https://ntfy.sh) pushes to your phone with no account. Topics on the +public server are readable by anyone who knows the name, so use a long random +topic, or self-host ntfy and put it behind auth (`https://user:pass@ntfy.example.com/topic` +works; the credentials are never logged). + +## Webhook payload + +```json +{ + "event": "restore_test.finished", + "status": "fail", + "summary": "Restorable: FAIL\nrepo: /srv/backups/restic\n...", + "repo": "/srv/backups/restic", + "snapshot_id": "cd10c302...", + "error": "", + "started_at": "2026-11-16T03:00:00Z", + "finished_at": "2026-11-16T03:00:05.5Z", + "restore_duration_ms": 4100, + "agent_version": "v0.2.0", + "checks": [ + {"recipe": "app", "type": "files", "status": "fail", + "message": "required path \"config.php\" not found in restored snapshot", + "duration_ms": 12} + ] +} +``` + +`status` is `pass`, `fail` (a check failed) or `error` (the test couldn't +run). Fields may be added in later versions; existing ones won't be renamed. + +## What leaves your machine + +Only what's listed above, and only to URLs you configure. File contents and +the repository password never do. Before anything is sent, the agent strips +credentials from repository URLs and removes row values that database errors +quote (Postgres `DETAIL`/`CONTEXT` lines, MySQL's inlined values). That +redaction matches known error shapes, so read [SECURITY.md](../SECURITY.md) +for its limits. + +The notification URLs themselves are secrets (anyone holding one can post to +it). They are never written to logs, and `restorable init` creates +`agent.yaml` with owner-only permissions. diff --git a/docs/quickstart.md b/docs/quickstart.md index dd8f1c5..13a420f 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -103,21 +103,19 @@ Or run the built-in daemon — add `schedule: "0 3 * * 0"` to `agent.yaml` and: restorable run ``` -## 5. Optional: alerts + dashboard (3 min) +## 5. Optional: get told when it fails (2 min) -Create an account at [restorable.dev](https://restorable.dev), mint a -registration token under -**Agents**, and connect: +Add a `notify:` block to `agent.yaml`. The two most useful endpoints: -```sh -restorable register --url https://restorable.dev --token rrt_… +```yaml +notify: + ntfy: https://ntfy.sh/ # phone push on failure + healthcheck: https://hc-ping.com/ # alerts you if tests stop running ``` -Every test now reports pass/fail metadata (never your data) to your -dashboard; add a Telegram/Discord/ntfy/email channel under **Alerts** and -you'll hear about failures — and about backups that quietly stop being -tested — without checking anything. See [alerts](alerts.md) and -[what leaves your machine](cloud.md). +The healthcheck catches the failure nothing else can: the test silently not +running at all. See [notifications](notifications.md) for the webhook option +and exactly what gets sent. ## Troubleshooting From 37638a79853306980f74f22101a13a4630afac3b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 15:35:42 +0000 Subject: [PATCH 4/4] ci(e2e): run the S3 e2e against SeaweedFS MinIO withdrew its images from Docker Hub (Sept 11 2026) and quay.io now answers 401 for every tag, so the pinned MinIO image no longer pulls and the S3 e2e fails on main too. Swap in SeaweedFS (chrislusf/seaweedfs:4.22) and use bucket creation as the readiness check. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WZju5nfK7jvw8QUVvhKjU2 --- .github/workflows/ci.yml | 2 +- agent/e2e/run-s3.sh | 29 ++++++++++++++++++----------- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3311dca..6c2ab4b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,5 +60,5 @@ jobs: - name: Run e2e (docker + postgres recipe) run: agent/e2e/run-docker.sh - - name: Run e2e (S3 / MinIO backend) + - name: Run e2e (S3 backend via SeaweedFS) run: agent/e2e/run-s3.sh diff --git a/agent/e2e/run-s3.sh b/agent/e2e/run-s3.sh index 4258dcb..f6b7dde 100755 --- a/agent/e2e/run-s3.sh +++ b/agent/e2e/run-s3.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Proves the agent works against an S3 backend (the most common remote restic # repo — covers AWS S3, MinIO, Wasabi, and Backblaze B2's S3 API). Uses a -# throwaway MinIO container as the S3 endpoint. +# throwaway SeaweedFS container as the S3 endpoint. (It used MinIO until MinIO +# withdrew its public images from Docker Hub and quay.io in September 2026.) # # Requirements: go, restic, docker, aws CLI, python3. set -euo pipefail @@ -15,19 +16,25 @@ trap cleanup EXIT log() { printf '\n==> %s\n' "$*"; } fail() { printf 'E2E FAIL: %s\n' "$*" >&2; exit 1; } -log "starting MinIO (S3 endpoint)" -docker run -d --name "$NAME" -p 9101:9000 \ - -e MINIO_ROOT_USER=testaccess -e MINIO_ROOT_PASSWORD=testsecret123 \ - quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z server /data >/dev/null -for i in $(seq 1 30); do - curl -sf -o /dev/null http://localhost:9101/minio/health/live && break +log "starting SeaweedFS (S3 endpoint)" +export AWS_ACCESS_KEY_ID=testaccess AWS_SECRET_ACCESS_KEY=testsecret123 AWS_DEFAULT_REGION=us-east-1 +# The same keys the clients sign with: newer SeaweedFS releases enforce them, +# older ones run open. Either way the requests below succeed. +docker run -d --name "$NAME" -p 9101:8333 \ + -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY \ + chrislusf/seaweedfs:4.22 \ + server -s3 -dir=/data -ip.bind=0.0.0.0 -master.volumeSizeLimitMB=256 >/dev/null +# master, volume, filer and s3 start in sequence; the bucket call is the +# readiness check that matters. +for i in $(seq 1 60); do + aws --endpoint-url http://localhost:9101 s3 mb s3://backups >/dev/null 2>&1 && break sleep 1 - [ "$i" = 30 ] && fail "MinIO did not come up" + if [ "$i" = 60 ]; then + docker logs --tail 50 "$NAME" >&2 || true + fail "SeaweedFS S3 endpoint did not come up" + fi done -export AWS_ACCESS_KEY_ID=testaccess AWS_SECRET_ACCESS_KEY=testsecret123 AWS_DEFAULT_REGION=us-east-1 -aws --endpoint-url http://localhost:9101 s3 mb s3://backups >/dev/null - log "building agent + fixture" BIN="$WORK/restorable" (cd "$ROOT" && go build -o "$BIN" .)