diff --git a/.gitignore b/.gitignore index d941175..c16a0bf 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ node_modules/ dist/ dev-dist/ .wrangler/ +# cf build output + generated types +.cloudflare/ .turbo/ .dev.vars *.local diff --git a/CLAUDE.md b/CLAUDE.md index 9d68968..5f184eb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -124,6 +124,16 @@ Use Conventional Commits with a type **and** scope: `(): --local`. **Any binding/var/route change goes in both files.** +- D1 migrations: `pnpm migrate` / `node scripts/migrate.mjs ` run `cf d1 migrations apply ` (remote unless `--local`). +- `annex-api`'s `DocCollabRoom` is declared as `exports.durableObject({ storage: "legacy-kv" })` - it was created with `new_classes` (KV-backed). Never change it to `"sqlite"`. +- The frontend package depends on Vite, so `cf build` would run `vite build` instead of Wrangler; its deploy is `pnpm build && pnpm build:worker (cf-wrangler build) && cf deploy --prebuilt`. +- Secrets are still set with `npx wrangler secret put --name `; `cf deploy` keeps existing secrets. + ## Local D1 State The dev servers use a shared wrangler state at the **monorepo root** (`/.wrangler/state`), not inside each package. This is set via `--persist-to ../../.wrangler/state` in each package's dev script. diff --git a/README.md b/README.md index e5067a0..e07a738 100644 --- a/README.md +++ b/README.md @@ -190,19 +190,19 @@ secrets (a bare `secret put` is refused until the latest version is deployed): ```bash cd packages/api -npx wrangler deploy +pnpm run deploy # cf deploy npx wrangler secret put R2_ACCESS_KEY_ID npx wrangler secret put R2_SECRET_ACCESS_KEY ``` Enter each value at the interactive prompt (do **not** pipe it in via PowerShell - it appends a CRLF and corrupts the secret). Then set the two vars -in `packages/api/wrangler.toml` (`R2_BUCKET_NAME` is already there): +in `packages/api/cloudflare.config.ts` (`R2_BUCKET_NAME` is already there), and +mirror them in `packages/api/wrangler.toml` `[vars]` (still used by local dev): -```toml -[vars] -R2_BUCKET_NAME = "cubedocs-assets" -R2_ACCOUNT_ID = "" +```ts +R2_BUCKET_NAME: bindings.text("cubedocs-assets"), +R2_ACCOUNT_ID: bindings.text(""), ``` All four values must be present, or presigning stays off and video uses the diff --git a/docs/oauth/README.md b/docs/oauth/README.md index 4d12567..eef4c2c 100644 --- a/docs/oauth/README.md +++ b/docs/oauth/README.md @@ -62,7 +62,7 @@ Annex secret is ever shared with a connected service. `auth` - e.g. `AAAA auth 100::` (a placeholder; the Worker route handles the request, the record just makes the hostname resolve to Cloudflare's edge). The `auth.cubityfir.st/oauth/*` and `/.well-known/*` routes in - `packages/auth/wrangler.toml` attach the auth worker to those paths only - + `packages/auth/cloudflare.config.ts` attach the auth worker to those paths only - nothing else on the auth worker is reachable at that host. 3. **Apply the migration** (creates `oauth_clients` + `oauth_codes`): @@ -76,9 +76,9 @@ Annex secret is ever shared with a connected service. `loadCurrentSession`, so the auth/api/admin triple-redeploy rule does *not* apply here - but auth, api, and frontend each changed): ```bash - cd packages/auth && npx wrangler deploy # endpoints + routes + migration - cd packages/api && npx wrangler deploy # /oauth/authorize proxy - cd packages/frontend && pnpm build && npx wrangler deploy # /oauth/authorize SPA page + cd packages/auth && pnpm run deploy # endpoints + routes (cf deploy) + cd packages/api && pnpm run deploy # /oauth/authorize proxy + cd packages/frontend && pnpm run deploy # /oauth/authorize SPA page ``` 5. **Smoke-test discovery + JWKS:** diff --git a/memories/Custom-Domains.md b/memories/Custom-Domains.md index 46b3be7..4de1632 100644 --- a/memories/Custom-Domains.md +++ b/memories/Custom-Domains.md @@ -58,8 +58,8 @@ Custom hostnames are created **non-wildcard** (`wildcard: false`) with **TXT DCV 1. **Enable Cloudflare for SaaS** on the `yourannex.com` zone (paid add-on). 2. **CNAME target**: create a proxied record `publish.yourannex.com AAAA 100::` (orange cloud) - the hostname customers point their CNAME at. 3. **Fallback origin**: set the zone's SaaS fallback origin to `publish.yourannex.com` (the same proxied record doubles as the fallback origin, so the apex stays free). Must reach **Active**. -4. **Worker route**: add `*/*` → `annex-frontend` on the `yourannex.com` zone (the "Workers as your fallback origin" pattern). This is declared in `packages/frontend/wrangler.toml` (`pattern="*/*" zone_name="yourannex.com"`), so deploying the frontend creates it. -5. **Config** (`packages/api/wrangler.toml`): `CF_ZONE_ID = "397deb54a68d306201a295d1793fe84c"`, `CUSTOM_DOMAIN_CNAME_TARGET = "publish.yourannex.com"`, and `wrangler secret put CF_API_TOKEN` (token scoped to the **yourannex.com** zone with **SSL and Certificates: Edit**). +4. **Worker route**: add `*/*` → `annex-frontend` on the `yourannex.com` zone (the "Workers as your fallback origin" pattern). This is declared in `packages/frontend/cloudflare.config.ts` (`triggers.fetch({ pattern: "*/*", zone: "yourannex.com" })`, mirrored in `wrangler.toml`), so deploying the frontend creates it. +5. **Config** (`packages/api/cloudflare.config.ts`, mirrored in `wrangler.toml`): `CF_ZONE_ID = "397deb54a68d306201a295d1793fe84c"`, `CUSTOM_DOMAIN_CNAME_TARGET = "publish.yourannex.com"`, and `wrangler secret put CF_API_TOKEN` (token scoped to the **yourannex.com** zone with **SSL and Certificates: Edit**). 6. Customers then add: a **CNAME** `their.domain → publish.yourannex.com`, plus the **TXT** ownership + SSL-DCV records shown in Site Settings. **Cleanup of the old shared-zone setup:** delete the stale `*/*` Worker route on the `cubityfir.st` zone (wrangler won't remove it - it only manages routes in the frontend toml, which now targets `yourannex.com`). No carve-out routes (`*.cubityfir.st/*` → None) are needed once `cubityfir.st` has no `*/*`. diff --git a/memories/Ink-Stripe.md b/memories/Ink-Stripe.md index aaba329..bc69e59 100644 --- a/memories/Ink-Stripe.md +++ b/memories/Ink-Stripe.md @@ -100,7 +100,7 @@ The CLI prints a `whsec_...` at startup - that's what goes in `STRIPE_WEBHOOK_SE ## Production setup -- `STRIPE_INK_PRICE_ID` is in `packages/auth/wrangler.toml` `[vars]` (live price id - committed). `.dev.vars` overrides locally to the test-mode price id. +- `STRIPE_INK_PRICE_ID` is a `bindings.text` var in `packages/auth/cloudflare.config.ts` (mirrored in `wrangler.toml` `[vars]`) (live price id - committed). `.dev.vars` overrides locally to the test-mode price id. - `STRIPE_SECRET_KEY` and `STRIPE_WEBHOOK_SECRET` set via `wrangler secret put` on the auth worker. `STRIPE_SECRET_KEY` also on admin worker. - Webhook endpoint URL in Stripe Dashboard: `https://docs.cubityfir.st/stripe/webhook`. Subscribed events: `checkout.session.completed`, `customer.subscription.created/updated/deleted`, `invoice.paid`, `invoice.payment_failed`. - Customer Portal must be configured separately in **live** mode (Settings → Billing → Customer portal). Test mode and live mode have different portal configs. diff --git a/memories/Oidc-Provider.md b/memories/Oidc-Provider.md index f6350e5..d1840e1 100644 --- a/memories/Oidc-Provider.md +++ b/memories/Oidc-Provider.md @@ -9,7 +9,7 @@ Generalizes the single-purpose admin handoff (`admin_handoffs`, 0009). - **Issuer** = `https://auth.cubityfir.st` (dedicated identity host, decoupled from the app origin which may migrate). The auth worker serves `/oauth/{token,userinfo,jwks}` + `/.well-known/openid-configuration` there - directly via two `wrangler.toml` routes (`auth.cubityfir.st/oauth/*`, + directly via two routes in `packages/auth/cloudflare.config.ts` (`auth.cubityfir.st/oauth/*`, `/.well-known/*`). Needs a **proxied** DNS record for `auth.cubityfir.st` on the `cubityfir.st` zone. - **authorization_endpoint** = `https://docs.cubityfir.st/oauth/authorize` - a diff --git a/package.json b/package.json index 714131c..502a1a3 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "concurrently \"pnpm --filter frontend build\" \"pnpm --filter api build\" \"pnpm --filter auth build\" \"pnpm --filter @annex/admin build\"", "deploy": "concurrently \"pnpm --filter frontend deploy\" \"pnpm --filter api deploy\" \"pnpm --filter auth deploy\" \"pnpm --filter @annex/admin deploy\"", "typecheck": "concurrently \"pnpm --filter frontend typecheck\" \"pnpm --filter api typecheck\" \"pnpm --filter auth typecheck\" \"pnpm --filter @annex/admin typecheck\" \"pnpm --filter @annex/admin-frontend typecheck\" \"pnpm --filter @annex/mcp typecheck\"", -"migrate": "pnpm --filter api migrate && pnpm --filter auth migrate", + "migrate": "pnpm --filter api migrate && pnpm --filter auth migrate", "migrations:local": "node scripts/migrate.mjs local", "migrations:remote": "node scripts/migrate.mjs remote", "test": "concurrently \"pnpm --filter api test\" \"pnpm --filter auth test\" \"pnpm --filter frontend test\" \"pnpm --filter @annex/mcp test\" && pnpm test:e2e", @@ -18,7 +18,7 @@ "devDependencies": { "concurrently": "^9.0.0", "typescript": "^5.5.0", - "wrangler": "^4.101.0" + "wrangler": "^4.156.0" }, "packageManager": "pnpm@10.32.1", "pnpm": { diff --git a/packages/admin/cloudflare.config.ts b/packages/admin/cloudflare.config.ts new file mode 100644 index 0000000..8495fa5 --- /dev/null +++ b/packages/admin/cloudflare.config.ts @@ -0,0 +1,105 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +export default defineConfig({ + accountId: "d843ae90cab33e54f4d284bc65d2fd6a", + worker: { + name: "annex-admin", + // Keep in lockstep with the auth worker's compatibilityDate: this worker + // imports auth source (session.ts/jwt.ts) cross-package, so runtime-behavior + // differences between dates would make shared code behave differently per + // worker. + compatibilityDate: "2026-02-24", + entrypoint: "src/index.ts", + workersDev: false, + // Asset directory (./dist, built by `pnpm build` from ./frontend) is a + // build setting - see wrangler.config.ts. + assets: { + htmlHandling: "auto-trailing-slash", + notFoundHandling: "single-page-application", + }, + domains: [ + "admin.cubityfir.st", + ], + triggers: [ + // Hourly: performs account deletions scheduled from the Users page once + // their grace window has passed (src/lib/userDeletion.ts + // runDueUserDeletions). + triggers.scheduled({ + schedule: "17 * * * *", + }), + ], + env: { + // Cloudflare-for-SaaS custom domains - used to release a site's custom + // hostname when an admin removes a domain or deletes the site (mirrors + // the api worker). MUST match the api worker's values (the dedicated + // yourannex.com zone - see memories/Custom-Domains.md), and CF_API_TOKEN + // must be scoped to that zone. When CF_ZONE_ID / CF_API_TOKEN are unset, + // the CF call is a safe no-op (the DB row is still removed). + CF_ZONE_ID: bindings.text("397deb54a68d306201a295d1793fe84c"), + CUSTOM_DOMAIN_CNAME_TARGET: bindings.text("cname.yourannex.com"), + DB: bindings.d1({ + name: "cubedocs-main", + id: "267490be-7141-4d00-ab23-152742f2f6ef", + }), + // Read+write: unlike the API worker's read-only-by-convention AUTH_DB + // binding, the admin worker writes users (moderation/ + // force_password_change), user_moderation_events, user_preferences + // (badges), user_billing (grant columns), and admin_audit_log directly. + // Credential/session/oauth_clients writes still go through the AUTH + // service binding. Migrations live only in packages/auth/migrations/. + AUTH_DB: bindings.d1({ + name: "cubedocs-auth", + id: "db327d85-b8c2-4fed-adaa-25e748778c86", + }), + ASSETS: bindings.r2({ + name: "cubedocs-assets", + }), + AUTH: bindings.worker({ + worker: "annex-auth", + }), + // GA ratelimit bindings - simulated locally in dev. See the auth + // worker's cloudflare.config.ts. + // IP-keyed coarse abuse cap across every authenticated admin API route. + // Generous enough for an operator clicking around the dashboard; only + // bites scripted abuse with a stolen admin token. + RATE_LIMITER_ADMIN: bindings.rateLimit({ + namespace: "2001", + simple: { + limit: 60, + period: 60, + }, + }), + // Tighter, separate bucket for the unauthenticated handoff-exchange + // proxy (the only pre-auth endpoint that hits the auth worker + DB). + RATE_LIMITER_ADMIN_HANDOFF: bindings.rateLimit({ + namespace: "2002", + simple: { + limit: 10, + period: 60, + }, + }), + // Separate budget for the public avatar route: a 25-row dashboard page + // costs 25 avatar fetches, which previously drained the shared admin + // API budget and started 429ing the operator after ~2 searches/min. + RATE_LIMITER_AVATAR: bindings.rateLimit({ + namespace: "2003", + simple: { + limit: 300, + period: 60, + }, + }), + SITE_ASSETS: bindings.assets(), + // Secrets (set via `npx wrangler secret put --name annex-admin`; + // existing secrets are kept across `cf deploy`): + // JWT_SECRET (same value as the auth worker's JWT_SECRET - the + // admin worker verifies sessions inline against + // AUTH_DB instead of calling auth's /verify route) + // STRIPE_SECRET_KEY (sk_test_... or sk_live_... - same value as auth + // worker; only used for admin-driven cancellations + // triggered from the user details panel) + // CF_API_TOKEN (same token as the api worker - zone-scoped, SSL + // and Certificates: Edit; only used to release a + // custom hostname on admin-driven site delete) + }, + }, +}); diff --git a/packages/admin/package.json b/packages/admin/package.json index 88f583a..5f8bb3b 100644 --- a/packages/admin/package.json +++ b/packages/admin/package.json @@ -2,10 +2,11 @@ "name": "@annex/admin", "version": "0.0.1", "private": true, + "type": "module", "scripts": { "dev": "concurrently \"cd frontend && pnpm dev\" \"pnpm exec wrangler dev --port 8789 --persist-to ../../.wrangler/state\"", "build": "cd frontend && pnpm build", - "deploy": "pnpm build && pnpm exec wrangler deploy", + "deploy": "pnpm build && cf deploy", "typecheck": "tsc --noEmit", "test": "vitest run" }, @@ -16,8 +17,10 @@ "devDependencies": { "@cloudflare/workers-types": "^4.0.0", "@types/node": "^22.19.15", + "cf": "1.0.0-beta.26", "concurrently": "^9.2.1", "typescript": "^5.5.0", - "vitest": "^4.1.6" + "vitest": "^4.1.6", + "wrangler": "^4.156.0" } } diff --git a/packages/admin/src/index.ts b/packages/admin/src/index.ts index 4f828a5..01ca324 100644 --- a/packages/admin/src/index.ts +++ b/packages/admin/src/index.ts @@ -20,7 +20,7 @@ export interface Env { // schema change to users/sessions/user_billing/user_preferences columns // read by loadCurrentSession requires redeploying auth + api + admin. JWT_SECRET: string; - // IP-keyed rate limiters (Cloudflare ratelimit bindings - see wrangler.toml). + // IP-keyed rate limiters (Cloudflare ratelimit bindings - see cloudflare.config.ts). // RATE_LIMITER_ADMIN gates every authenticated admin API route; // RATE_LIMITER_ADMIN_HANDOFF gates the unauthenticated exchange proxy; // RATE_LIMITER_AVATAR gates the public avatar route on its own budget so @@ -214,7 +214,7 @@ export { app }; export default { fetch: app.fetch, - // Hourly cron (see wrangler.toml [triggers]): performs account deletions + // Hourly cron (see cloudflare.config.ts triggers): performs account deletions // scheduled from the Users page once their grace window has passed. async scheduled(_controller: ScheduledController, env: Env, ctx: ExecutionContext): Promise { ctx.waitUntil( diff --git a/packages/admin/src/routes/oauth.ts b/packages/admin/src/routes/oauth.ts index 64ae9b2..76ba556 100644 --- a/packages/admin/src/routes/oauth.ts +++ b/packages/admin/src/routes/oauth.ts @@ -9,7 +9,7 @@ import type { AppEnv } from "../index"; // and write is forwarded. Note the admin worker does write OTHER auth-DB // tables directly (users moderation, user_preferences badges, user_billing // grants, admin_audit_log) - see the AUTH_DB write-boundary note in -// wrangler.toml / CLAUDE.md. `enforceAdmin` has already validated the +// cloudflare.config.ts / CLAUDE.md. `enforceAdmin` has already validated the // session; the auth worker re-checks it as defence in depth. const oauthRouter = new Hono(); diff --git a/packages/admin/wrangler.config.ts b/packages/admin/wrangler.config.ts new file mode 100644 index 0000000..8da29cc --- /dev/null +++ b/packages/admin/wrangler.config.ts @@ -0,0 +1,15 @@ +import { defineWranglerConfig } from "wrangler/experimental-config"; + +// Wrangler build settings for `cf build` / `cf deploy` (Worker config and +// bindings live in cloudflare.config.ts). +// +// Local dev (`pnpm dev`) still runs `wrangler dev --persist-to ../../.wrangler/state` +// against wrangler.toml: every worker must share one local state dir (the api +// worker reads the auth DB via AUTH_DB), and `cf dev` cannot set a persist +// directory yet (it always uses /.wrangler/state). +export default defineWranglerConfig({ + // Built by `pnpm build` (the admin SPA in ./frontend). + assetsDirectory: "./dist", + // Match the previous `wrangler deploy` default (no source map upload). + uploadSourceMaps: false, +}); diff --git a/packages/admin/wrangler.toml b/packages/admin/wrangler.toml index 178b2de..b408aec 100644 --- a/packages/admin/wrangler.toml +++ b/packages/admin/wrangler.toml @@ -1,3 +1,11 @@ +# NOTE: `cf build` / `cf deploy` (and Workers Builds) read ./cloudflare.config.ts +# (+ ./wrangler.config.ts for build settings) - that is the deploy source of truth. +# This file is kept for Wrangler commands that still need a config: local dev +# (`wrangler dev --persist-to ../../.wrangler/state`, because `cf dev` can't share +# one persist dir across workers yet) and `npx wrangler d1 execute --local` +# used by the e2e suites and ops scripts. Keep every binding/var change mirrored +# in both files. + name = "annex-admin" main = "src/index.ts" # Keep in lockstep with the auth worker's compatibility_date: this worker diff --git a/packages/api/cloudflare.config.ts b/packages/api/cloudflare.config.ts new file mode 100644 index 0000000..b188b08 --- /dev/null +++ b/packages/api/cloudflare.config.ts @@ -0,0 +1,130 @@ +import { bindings, defineConfig, exports, triggers } from "cf/config"; + +// D1 migrations for `DB` live in ./migrations (the `cf d1 migrations apply` +// default `--dir`). Apply them with `pnpm migrate` (local) or +// `node scripts/migrate.mjs remote` from the repo root. + +export default defineConfig({ + accountId: "d843ae90cab33e54f4d284bc65d2fd6a", + worker: { + name: "annex-api", + compatibilityDate: "2026-02-24", + compatibilityFlags: [ + "nodejs_compat", + ], + entrypoint: "src/index.ts", + workersDev: false, + triggers: [ + // Daily revision-retention sweep (pruneDocRevisions in lib/docOps.ts): + // doc revisions older than 90 days are pruned, always keeping each + // doc's newest. + triggers.scheduled({ + schedule: "0 4 * * *", + }), + ], + // Replaces the Wrangler `[[migrations]]` history (tag "v1", + // new_classes = ["DocCollabRoom"]). DocCollabRoom was created with + // `new_classes`, so its live namespace is KV-backed - it MUST stay + // "legacy-kv" (the namespace reports use_sqlite = false; "sqlite" is only + // valid for brand-new namespaces). + exports: { + DocCollabRoom: exports.durableObject({ storage: "legacy-kv" }), + }, + env: { + ENVIRONMENT: bindings.text("production"), + // Cloudflare for SaaS custom domains (see memories/Custom-Domains.md). + // These live on the DEDICATED `yourannex.com` zone, kept separate from + // cubityfir.st so the SaaS `*/*` catch-all route can't shadow our own + // hosts (it once hijacked i.cubityfir.st). CUSTOM_DOMAIN_CNAME_TARGET is + // the proxied hostname customers CNAME their domain to; CF_ZONE_ID is the + // yourannex.com zone id. When CF_ZONE_ID or CF_API_TOKEN is unset, the + // custom-domain endpoints report "not configured" and never call + // Cloudflare. + CUSTOM_DOMAIN_CNAME_TARGET: bindings.text("publish.yourannex.com"), + CF_ZONE_ID: bindings.text("397deb54a68d306201a295d1793fe84c"), + // Direct-from-R2 presigned video streaming (see lib/r2Presign.ts). The + // bucket name matches the ASSETS R2 binding below. R2_ACCOUNT_ID is the + // CF account id; R2_ACCESS_KEY_ID / R2_SECRET_ACCESS_KEY are secrets + // (an R2 API token with Object Read for cubedocs-assets). When any of + // the four is unset, video falls back to the in-Worker token streaming + // route. + R2_BUCKET_NAME: bindings.text("cubedocs-assets"), + R2_ACCOUNT_ID: bindings.text("d843ae90cab33e54f4d284bc65d2fd6a"), + DB: bindings.d1({ + name: "cubedocs-main", + id: "267490be-7141-4d00-ab23-152742f2f6ef", + }), + // Read-only access to the auth DB so this worker can verify sessions + // inline (one D1 batch read of users + sessions) instead of + // round-tripping through the auth worker's /verify route on every + // request. Migrations live with the auth worker - never apply + // migrations to cubedocs-auth from this package. + AUTH_DB: bindings.d1({ + name: "cubedocs-auth", + id: "db327d85-b8c2-4fed-adaa-25e748778c86", + }), + // Cloudflare Flagship feature flags. Shared app with the auth worker. + // Flags in use: + // api (default on) - killswitch for the whole /v1 public API surface (v1.ts). + // custom-theming (default off) - per-user gate for custom themes (index.ts). + // ai-summaries (default on) - killswitch for the OpenAI summarize endpoint (routes/ai.ts). + // realtime-collab (default on) - killswitch for new collab WS connections (handleCollabUpgrade). + // NOTE: local dev DOES serve this binding with the real flag state, so a + // flag flipped in the Flagship dashboard affects local dev too. The + // per-call code defaults only apply when the binding itself is missing. + FLAGS: bindings.flagship({ + id: "08fb610f-b8ed-4a60-afcf-7f5fe6b9f948", + }), + ASSETS: bindings.r2({ + name: "cubedocs-assets", + }), + // Service binding to auth worker (zero-latency internal calls). + AUTH: bindings.worker({ + worker: "annex-auth", + }), + DOC_COLLAB: bindings.durableObject({ + worker: "annex-api", + exportName: "DocCollabRoom", + }), + // Per-user limiter for the invite-by-email lookup. The auth worker's + // /lookup also has its own coarser IP-keyed limiter - this one caps any + // single account from scraping the email→user map even when multiple + // users share an IP (office NAT). + RATE_LIMITER_INVITE_LOOKUP: bindings.rateLimit({ + namespace: "2001", + simple: { + limit: 8, + period: 60, + }, + }), + // Per-API-key limiter for the public /v1 surface, keyed by + // `apikey:`. Caps abuse / runaway scripts on a single scoped key + // without touching the interactive JWT routes. + RATE_LIMITER_API: bindings.rateLimit({ + namespace: "2002", + simple: { + limit: 120, + period: 60, + }, + }), + // Per-IP limiter for the public "Report Site" endpoint (routes/public.ts + // handlePublicReport). Reports are rare, deliberate actions - a human + // files one or two; anything faster is a script. + RATE_LIMITER_REPORT: bindings.rateLimit({ + namespace: "2003", + simple: { + limit: 3, + period: 60, + }, + }), + // Secrets (set via `npx wrangler secret put --name annex-api`; + // existing secrets are kept across `cf deploy`): + // JWT_SECRET (same value as auth worker - used for local JWT verification) + // OPENAI_API_KEY (OpenAI API key for AI summarisation feature) + // CF_API_TOKEN (Cloudflare token scoped to the zone with "SSL and + // Certificates: Edit" - used to create/poll custom hostnames) + // R2_ACCESS_KEY_ID (presigned video streaming, see above) + // R2_SECRET_ACCESS_KEY (presigned video streaming, see above) + }, + }, +}); diff --git a/packages/api/package.json b/packages/api/package.json index abad5e6..119d50d 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -2,11 +2,12 @@ "name": "@annex/api", "version": "0.0.1", "private": true, + "type": "module", "scripts": { "dev": "pnpm exec wrangler dev --port 8787 --persist-to ../../.wrangler/state", - "migrate": "pnpm exec wrangler d1 migrations apply cubedocs-main --local --persist-to ../../.wrangler/state", + "migrate": "cf d1 migrations apply 267490be-7141-4d00-ab23-152742f2f6ef --local --persist-to ../../.wrangler/state", "build": "tsc", - "deploy": "pnpm exec wrangler deploy", + "deploy": "cf deploy", "typecheck": "tsc --noEmit", "test": "vitest run", "test:integration": "vitest run --config vitest.integration.config.ts" @@ -21,7 +22,9 @@ "devDependencies": { "@cloudflare/workers-types": "^4.0.0", "@types/node": "^22.0.0", + "cf": "1.0.0-beta.26", "typescript": "^5.5.0", - "vitest": "^4.1.6" + "vitest": "^4.1.6", + "wrangler": "^4.156.0" } } diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 776e696..a1db0b2 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -62,7 +62,7 @@ export interface Env { } export default { - // Daily cron (see wrangler.toml [triggers]): revision retention. Keeps each + // Daily cron (see cloudflare.config.ts triggers): revision retention. Keeps each // doc's newest revision unconditionally; see pruneDocRevisions. async scheduled(_controller: ScheduledController, env: Env, ctx: ExecutionContext): Promise { ctx.waitUntil( diff --git a/packages/api/wrangler.config.ts b/packages/api/wrangler.config.ts new file mode 100644 index 0000000..ab8ecc4 --- /dev/null +++ b/packages/api/wrangler.config.ts @@ -0,0 +1,13 @@ +import { defineWranglerConfig } from "wrangler/experimental-config"; + +// Wrangler build settings for `cf build` / `cf deploy` (Worker config and +// bindings live in cloudflare.config.ts). +// +// Local dev (`pnpm dev`) still runs `wrangler dev --persist-to ../../.wrangler/state` +// against wrangler.toml: every worker must share one local state dir (the api +// worker reads the auth DB via AUTH_DB), and `cf dev` cannot set a persist +// directory yet (it always uses /.wrangler/state). +export default defineWranglerConfig({ + // Match the previous `wrangler deploy` default (no source map upload). + uploadSourceMaps: false, +}); diff --git a/packages/api/wrangler.toml b/packages/api/wrangler.toml index ef7d81a..8969e8a 100644 --- a/packages/api/wrangler.toml +++ b/packages/api/wrangler.toml @@ -1,3 +1,11 @@ +# NOTE: `cf build` / `cf deploy` (and Workers Builds) read ./cloudflare.config.ts +# (+ ./wrangler.config.ts for build settings) - that is the deploy source of truth. +# This file is kept for Wrangler commands that still need a config: local dev +# (`wrangler dev --persist-to ../../.wrangler/state`, because `cf dev` can't share +# one persist dir across workers yet) and `npx wrangler d1 execute --local` +# used by the e2e suites and ops scripts. Keep every binding/var change mirrored +# in both files. + name = "annex-api" main = "src/index.ts" compatibility_date = "2026-02-24" diff --git a/packages/auth/cloudflare.config.ts b/packages/auth/cloudflare.config.ts new file mode 100644 index 0000000..3ec31ac --- /dev/null +++ b/packages/auth/cloudflare.config.ts @@ -0,0 +1,133 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +// D1 migrations for `DB` live in ./migrations (the `cf d1 migrations apply` +// default `--dir`). Apply them with `pnpm migrate` (local) or +// `node scripts/migrate.mjs remote` from the repo root. + +export default defineConfig({ + accountId: "d843ae90cab33e54f4d284bc65d2fd6a", + worker: { + name: "annex-auth", + compatibilityDate: "2026-02-24", + compatibilityFlags: [ + "nodejs_compat", + ], + entrypoint: "src/index.ts", + workersDev: false, + triggers: [ + // "Sign in with Annex" OIDC provider - public endpoints on a DEDICATED + // identity host so the issuer is decoupled from the app origin + // (docs.cubityfir.st), which may migrate. Only /oauth/* and /.well-known/* + // are exposed here; nothing else on the auth worker is reachable at + // auth.cubityfir.st. Requires a proxied DNS record for `auth.cubityfir.st` + // on the cubityfir.st zone (see docs/oauth/README.md). The browser-facing + // authorization page lives on the app origin (OIDC_AUTHORIZE_URL). + triggers.fetch({ + pattern: "auth.cubityfir.st/oauth/*", + zone: "cubityfir.st", + }), + triggers.fetch({ + pattern: "auth.cubityfir.st/.well-known/*", + zone: "cubityfir.st", + }), + // Weekly sweep of long-dead session rows (see scheduled handler). + triggers.scheduled({ + schedule: "0 3 * * SUN", + }), + ], + env: { + JWT_ISSUER: bindings.text("https://auth.cubedocs.com"), + ADMIN_APP_ORIGIN: bindings.text("https://admin.cubityfir.st"), + APP_ORIGIN: bindings.text("https://docs.cubityfir.st"), + // "Sign in with Annex" OIDC provider. OIDC_ISSUER is the `iss` of every + // token and the base for discovery + // (https://auth.cubityfir.st/.well-known/openid-configuration). + // OIDC_AUTHORIZE_URL is the browser-facing authorize page on the app + // origin (the user's Annex session lives there, not on the issuer host). + OIDC_ISSUER: bindings.text("https://auth.cubityfir.st"), + OIDC_AUTHORIZE_URL: bindings.text("https://docs.cubityfir.st/oauth/authorize"), + WEBAUTHN_RP_ID: bindings.text("docs.cubityfir.st"), + WEBAUTHN_RP_NAME: bindings.text("Annex"), + WEBAUTHN_ORIGIN: bindings.text("https://docs.cubityfir.st"), + // Stripe price id for the Annex Ink supporter tier ($5/mo recurring). + // Not a secret - safe to commit. + STRIPE_INK_PRICE_ID: bindings.text("price_1TVJk5Rckd4Ls9nPHpnY4tAN"), + DB: bindings.d1({ + name: "cubedocs-auth", + id: "db327d85-b8c2-4fed-adaa-25e748778c86", + }), + // Cloudflare Flagship feature flags. Shares the same app as the API + // worker so a single source governs both. Flags in use: + // signup (default on) - when false, /register is refused (handleRegister). + // email-verification (default off) - gates registration verification emails, + // blocks unverified logins, and selects the + // confirm-first email-change flow (register.ts / + // login.ts / change-email.ts). + // NOTE: local dev DOES serve this binding with the real flag state, so a + // flag flipped in the Flagship dashboard affects local dev too (e.g. a + // disabled `signup` flag blocks the e2e suites, which register accounts). + // The per-call code defaults only apply when the binding itself is missing. + // Exception: `email-verification` is never enforced on a localhost + // deployment - isEmailVerificationEnabled (verification.ts) bypasses it so + // dashboard flips can't break local login/e2e; set + // DEV_EMAIL_VERIFICATION=true in .dev.vars to opt back in. + FLAGS: bindings.flagship({ + id: "08fb610f-b8ed-4a60-afcf-7f5fe6b9f948", + }), + EMAIL: bindings.sendEmail({ + allowedSenderAddresses: [ + "noreply@docs.cubityfir.st", + ], + }), + // Rate limiters use the GA ratelimit binding: simulated locally in dev + // instead of proxying to Cloudflare - the remote proxy breaks requests + // that arrive via cross-process service bindings. + // Coarse abuse cap, IP-keyed. Per-user limiting for authenticated callers + // happens on the API worker (see RATE_LIMITER_INVITE_LOOKUP there). + RATE_LIMITER_LOOKUP: bindings.rateLimit({ + namespace: "1001", + simple: { + limit: 30, + period: 60, + }, + }), + RATE_LIMITER_AUTH: bindings.rateLimit({ + namespace: "1002", + simple: { + limit: 10, + period: 60, + }, + }), + RATE_LIMITER_EMAIL_VERIFY: bindings.rateLimit({ + namespace: "1003", + simple: { + limit: 3, + period: 60, + }, + }), + // OIDC token endpoint (/oauth/token). Server-to-server, so a single + // connected service exchanges every user's code from one egress IP - + // needs a far higher ceiling than the interactive login limiter. + // IP-keyed (CF-Connecting-IP is real on the directly-routed + // auth.cubityfir.st host). + RATE_LIMITER_OIDC: bindings.rateLimit({ + namespace: "1004", + simple: { + limit: 100, + period: 60, + }, + }), + // Secrets (set via `npx wrangler secret put --name annex-auth`; + // existing secrets are kept across `cf deploy`): + // JWT_SECRET + // TURNSTILE_SECRET + // STRIPE_SECRET_KEY (sk_test_... or sk_live_...) + // STRIPE_WEBHOOK_SECRET (whsec_... - generated by Stripe when you + // register the /stripe/webhook endpoint) + // OIDC_PRIVATE_KEY (RS256 signing key - RSA private JWK as a JSON + // string. Generate with + // `node scripts/gen-oidc-key.mjs`. The public + // half is published at /oauth/jwks.) + }, + }, +}); diff --git a/packages/auth/package.json b/packages/auth/package.json index 987054f..05eca29 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -2,11 +2,12 @@ "name": "@annex/auth", "version": "0.0.1", "private": true, + "type": "module", "scripts": { "dev": "pnpm exec wrangler dev --port 8788 --persist-to ../../.wrangler/state", - "migrate": "pnpm exec wrangler d1 migrations apply cubedocs-auth --local --persist-to ../../.wrangler/state", + "migrate": "cf d1 migrations apply db327d85-b8c2-4fed-adaa-25e748778c86 --local --persist-to ../../.wrangler/state", "build": "tsc", - "deploy": "pnpm exec wrangler deploy", + "deploy": "cf deploy", "typecheck": "tsc --noEmit", "test": "vitest run" }, @@ -18,7 +19,9 @@ "devDependencies": { "@cloudflare/workers-types": "^4.0.0", "@types/zxcvbn": "^4.4.5", + "cf": "1.0.0-beta.26", "typescript": "^5.5.0", - "vitest": "^4.1.6" + "vitest": "^4.1.6", + "wrangler": "^4.156.0" } } diff --git a/packages/auth/wrangler.config.ts b/packages/auth/wrangler.config.ts new file mode 100644 index 0000000..ab8ecc4 --- /dev/null +++ b/packages/auth/wrangler.config.ts @@ -0,0 +1,13 @@ +import { defineWranglerConfig } from "wrangler/experimental-config"; + +// Wrangler build settings for `cf build` / `cf deploy` (Worker config and +// bindings live in cloudflare.config.ts). +// +// Local dev (`pnpm dev`) still runs `wrangler dev --persist-to ../../.wrangler/state` +// against wrangler.toml: every worker must share one local state dir (the api +// worker reads the auth DB via AUTH_DB), and `cf dev` cannot set a persist +// directory yet (it always uses /.wrangler/state). +export default defineWranglerConfig({ + // Match the previous `wrangler deploy` default (no source map upload). + uploadSourceMaps: false, +}); diff --git a/packages/auth/wrangler.toml b/packages/auth/wrangler.toml index b8d1fee..6580e6f 100644 --- a/packages/auth/wrangler.toml +++ b/packages/auth/wrangler.toml @@ -1,3 +1,11 @@ +# NOTE: `cf build` / `cf deploy` (and Workers Builds) read ./cloudflare.config.ts +# (+ ./wrangler.config.ts for build settings) - that is the deploy source of truth. +# This file is kept for Wrangler commands that still need a config: local dev +# (`wrangler dev --persist-to ../../.wrangler/state`, because `cf dev` can't share +# one persist dir across workers yet) and `npx wrangler d1 execute --local` +# used by the e2e suites and ops scripts. Keep every binding/var change mirrored +# in both files. + name = "annex-auth" main = "src/index.ts" compatibility_date = "2026-02-24" diff --git a/packages/frontend/cloudflare.config.ts b/packages/frontend/cloudflare.config.ts new file mode 100644 index 0000000..ae1b6b9 --- /dev/null +++ b/packages/frontend/cloudflare.config.ts @@ -0,0 +1,48 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +// .env.production only holds Vite build-time (VITE_*) public values; it is not +// a Worker secret file and is read by `vite build`, not by cf. + +export default defineConfig({ + accountId: "d843ae90cab33e54f4d284bc65d2fd6a", + worker: { + name: "annex-frontend", + compatibilityDate: "2026-02-24", + entrypoint: "worker/index.ts", + // Asset directory (./dist, built by `pnpm build`) is a build setting - see + // wrangler.config.ts. + domains: [ + "docs.cubityfir.st", + ], + triggers: [ + // Cloudflare-for-SaaS catch-all, on the DEDICATED `yourannex.com` zone. + // Customer custom domains (their.domain -> publish.yourannex.com) arrive + // as custom hostnames on that zone; this `*/*` route hands them to + // annex-frontend in host-mode. Required - without it, custom hostnames + // hit the originless fallback origin and return 522. The zone is + // dedicated to SaaS routing (nothing else lives on it), so `*/*` is safe + // here: it can't shadow our own infra the way it did on cubityfir.st + // (where it once hijacked i.cubityfir.st). The app itself still serves + // on docs.cubityfir.st via the exact custom domain above. + // NOTE: the OLD `*/*` route on the cubityfir.st zone must be deleted in + // the dashboard - deploys only manage the routes in this file and won't + // remove it. See memories/Custom-Domains.md. + triggers.fetch({ + pattern: "*/*", + zone: "yourannex.com", + }), + ], + env: { + API: bindings.worker({ + worker: "annex-api", + }), + // Service binding to the auth worker - used only for Stripe webhook + // forwarding (/stripe/webhook). The auth worker is otherwise reached + // via the api worker's own AUTH binding for authenticated calls. + AUTH: bindings.worker({ + worker: "annex-auth", + }), + ASSETS: bindings.assets(), + }, + }, +}); diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 5d6279b..96049ed 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -6,7 +6,8 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", - "deploy": "pnpm build && pnpm exec wrangler deploy", + "build:worker": "cf-wrangler build", + "deploy": "pnpm build && pnpm build:worker && cf deploy --prebuilt", "typecheck": "tsc --noEmit", "preview": "vite preview", "test": "vitest run" @@ -81,12 +82,14 @@ "@types/topojson-specification": "^1.0.5", "@types/zxcvbn": "^4.4.5", "@vitejs/plugin-react": "^4.3.0", + "cf": "1.0.0-beta.26", "jsdom": "^25.0.0", "tailwindcss": "^4.0.0", "typescript": "^5.5.0", "vite": "^6.4.2", "vite-plugin-pwa": "^1.2.0", "vitest": "^4.1.6", - "workbox-window": "^7.4.0" + "workbox-window": "^7.4.0", + "wrangler": "^4.156.0" } } diff --git a/packages/frontend/wrangler.config.ts b/packages/frontend/wrangler.config.ts new file mode 100644 index 0000000..985cba7 --- /dev/null +++ b/packages/frontend/wrangler.config.ts @@ -0,0 +1,16 @@ +import { defineWranglerConfig } from "wrangler/experimental-config"; + +// Wrangler build settings for the Worker in worker/index.ts (Worker config and +// bindings live in cloudflare.config.ts). +// +// This package also depends on Vite (for the SPA), so `cf build` / `cf dev` +// would detect it as a Vite framework project and run `vite` instead of +// Wrangler. Build the Worker with `pnpm build:worker` (`cf-wrangler build`) +// and deploy that Build Output with `cf deploy --prebuilt` - see the `deploy` +// script in package.json. +export default defineWranglerConfig({ + // Built by `pnpm build` (tsc -b && vite build). + assetsDirectory: "./dist", + // Match the previous `wrangler deploy` default (no source map upload). + uploadSourceMaps: false, +}); diff --git a/packages/frontend/wrangler.toml b/packages/frontend/wrangler.toml index a79024c..a58a0b3 100644 --- a/packages/frontend/wrangler.toml +++ b/packages/frontend/wrangler.toml @@ -1,3 +1,11 @@ +# NOTE: `cf build` / `cf deploy` (and Workers Builds) read ./cloudflare.config.ts +# (+ ./wrangler.config.ts for build settings) - that is the deploy source of truth. +# This file is kept for Wrangler commands that still need a config: local dev +# (`wrangler dev --persist-to ../../.wrangler/state`, because `cf dev` can't share +# one persist dir across workers yet) and `npx wrangler d1 execute --local` +# used by the e2e suites and ops scripts. Keep every binding/var change mirrored +# in both files. + name = "annex-frontend" main = "worker/index.ts" compatibility_date = "2026-02-24" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8d6eeb6..59a9d5b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,8 +29,8 @@ importers: specifier: ^5.5.0 version: 5.9.3 wrangler: - specifier: ^4.101.0 - version: 4.101.0 + specifier: ^4.156.0 + version: 4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15) e2e: devDependencies: @@ -53,6 +53,9 @@ importers: '@types/node': specifier: ^22.19.15 version: 22.19.15 + cf: + specifier: 1.0.0-beta.26 + version: 1.0.0-beta.26(@types/node@22.19.15) concurrently: specifier: ^9.2.1 version: 9.2.1 @@ -62,6 +65,9 @@ importers: vitest: specifier: ^4.1.6 version: 4.1.6(@types/node@22.19.15)(jsdom@25.0.1)(vite@6.4.2(@types/node@22.19.15)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.51.0)(terser@5.48.0)) + wrangler: + specifier: ^4.156.0 + version: 4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15) packages/admin/frontend: dependencies: @@ -166,12 +172,18 @@ importers: '@types/node': specifier: ^22.0.0 version: 22.19.15 + cf: + specifier: 1.0.0-beta.26 + version: 1.0.0-beta.26(@types/node@22.19.15) typescript: specifier: ^5.5.0 version: 5.9.3 vitest: specifier: ^4.1.6 version: 4.1.6(@types/node@22.19.15)(jsdom@25.0.1)(vite@6.4.2(@types/node@22.19.15)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.51.0)(terser@5.48.0)) + wrangler: + specifier: ^4.156.0 + version: 4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15) packages/auth: dependencies: @@ -191,12 +203,18 @@ importers: '@types/zxcvbn': specifier: ^4.4.5 version: 4.4.5 + cf: + specifier: 1.0.0-beta.26 + version: 1.0.0-beta.26(@types/node@22.19.15) typescript: specifier: ^5.5.0 version: 5.9.3 vitest: specifier: ^4.1.6 version: 4.1.6(@types/node@22.19.15)(jsdom@25.0.1)(vite@6.4.2(@types/node@22.19.15)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.51.0)(terser@5.48.0)) + wrangler: + specifier: ^4.156.0 + version: 4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15) packages/frontend: dependencies: @@ -402,6 +420,9 @@ importers: '@vitejs/plugin-react': specifier: ^4.3.0 version: 4.7.0(vite@6.4.2(@types/node@22.19.15)(jiti@2.6.1)(lightningcss@1.31.1)(sass@1.51.0)(terser@5.48.0)) + cf: + specifier: 1.0.0-beta.26 + version: 1.0.0-beta.26(@types/node@22.19.15) jsdom: specifier: ^25.0.0 version: 25.0.1 @@ -423,6 +444,9 @@ importers: workbox-window: specifier: ^7.4.0 version: 7.4.0 + wrangler: + specifier: ^4.156.0 + version: 4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15) packages/mcp: dependencies: @@ -1072,12 +1096,21 @@ packages: '@chevrotain/utils@11.0.3': resolution: {integrity: sha512-YslZMgtJUyuMbZ+aKvfF3x1f5liK4mWNxghFRv7jqRR9C3R3fAOGTTKvxXDa2Y1s9zSbcpuO0cAxDYsc9SrXoQ==} + '@cloudflare/build-output-utils@0.9.6': + resolution: {integrity: sha512-JjNSJPctyGbQn4XDXzsqy1/M/xdNAh3XRPj0c/4KY1BYCUWA/ejcrnj3nuTHyoN8Zl+RmVIThIj+am29jTV+kQ==} + + '@cloudflare/config@0.29.0': + resolution: {integrity: sha512-0sD73G6xRdz6/9DXNcAuLv6VbnNiWA09zo7VwhPyaa3ysIGvLMXJR5G19r3+iG5ZIB9ErGMwqgprVOVaYKsIpw==} + '@cloudflare/kv-asset-handler@0.5.0': resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} engines: {node: '>=22.0.0'} - '@cloudflare/unenv-preset@2.16.1': - resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} + '@cloudflare/runtime-types@0.1.19': + resolution: {integrity: sha512-3ZQe25s1Uqo2HtWpz+ovBe0IhqS5od4Ja4Uf6z/hjTbdS9JJ2jnYxOcF6x3ioHuG2A7g3GK6e6ADtelMaCETzg==} + + '@cloudflare/unenv-preset@2.16.2': + resolution: {integrity: sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==} peerDependencies: unenv: 2.0.0-rc.24 workerd: '>1.20260305.0 <2.0.0-0' @@ -1085,32 +1118,32 @@ packages: workerd: optional: true - '@cloudflare/workerd-darwin-64@1.20260616.1': - resolution: {integrity: sha512-8QaDRQABkwkwoeviNiyScol7EQgXfGsPNSyUn52GiXObthY4XPiokoJsgDSDNcAelHjEvDLmdvQBHPK8YvGn4A==} + '@cloudflare/workerd-darwin-64@1.20261023.1': + resolution: {integrity: sha512-lsEx0i7nR0PNG/erUFFHmQmiidEhLfDE5uQmAL9421/y4/ycuxDDOSaxu3VGGYFFPK5sduyUeMmjIlX4CwOBFg==} engines: {node: '>=16'} cpu: [x64] os: [darwin] - '@cloudflare/workerd-darwin-arm64@1.20260616.1': - resolution: {integrity: sha512-xEhiZQ62CBJ+vyKSmM13rkK/wB1kLP5sKFkF3+P+3R/c2bmnSG3Vcd5FfXUu9V0PdC+KlR02nByvZjqEw2N6Ag==} + '@cloudflare/workerd-darwin-arm64@1.20261023.1': + resolution: {integrity: sha512-5e79fHgabdDD8EgmjOhJ1S+xMsf6DbC7fL7IgTBizMnzOp0P2isDn7pYmUxI9AJZE9FVQ4RUilH/I36YNg+GQQ==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] - '@cloudflare/workerd-linux-64@1.20260616.1': - resolution: {integrity: sha512-p5laSYPiRUMHaLkneaZ9ZfIkNpmEnGFwgYmXtfcHJutTfEd8o3IBnsUVRSbPL+phcshKqmapLsQSxDEX6WSFfA==} + '@cloudflare/workerd-linux-64@1.20261023.1': + resolution: {integrity: sha512-VHQ6jKFSihjR2+x1buby8XTdBLLJztVnYiB7OLOTYO8aDXB+c1Rd2410PdgFuFYc4AgFEk6PCJLyCLL5L1KBnw==} engines: {node: '>=16'} cpu: [x64] os: [linux] - '@cloudflare/workerd-linux-arm64@1.20260616.1': - resolution: {integrity: sha512-XQ7GonEl8ORvbz5fhe8Eyw2t/j09Li0KbXJxaldA318E+syF+PPTc4IRQudgqPWzzdzkH5nF7PuMOGySLSjFFw==} + '@cloudflare/workerd-linux-arm64@1.20261023.1': + resolution: {integrity: sha512-ilpRHzfDN8YFRM5CLRKuFw40x/LJBS89yVdhdQmxehlVDuBqjKpJB++zPFbTgKRRFaNupgnXc8RHktXAIhgCmQ==} engines: {node: '>=16'} cpu: [arm64] os: [linux] - '@cloudflare/workerd-windows-64@1.20260616.1': - resolution: {integrity: sha512-RaDVF9bSbPiPTq6vHYrgnv1TcQEcYnOr0WB3hWJ4yg2fBfpi2ygU6cYPuFeDwyFE9aPW5S6FBAkNmpKYueK4DQ==} + '@cloudflare/workerd-windows-64@1.20261023.1': + resolution: {integrity: sha512-279WLVjNsMycAwr0EZNiNEf0l2SY6NUtsN80NwZzbTHzakmiN+WSx4w38muxPm+PAU0oSPPAPXKVD+H6Hya8xw==} engines: {node: '>=16'} cpu: [x64] os: [win32] @@ -1189,8 +1222,8 @@ packages: '@date-fns/tz@1.4.1': resolution: {integrity: sha512-P5LUNhtbj6YfI3iJjw5EL9eUAG6OitD0W3fWQcpQjDRc/QIsL0tRNuO1PcDvPccWL1fSTXXdE1ds+l95DV/OFA==} - '@emnapi/runtime@1.11.1': - resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==} + '@emnapi/runtime@1.11.3': + resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} '@esbuild/aix-ppc64@0.25.12': resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} @@ -1198,8 +1231,8 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.27.3': - resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] @@ -1210,8 +1243,8 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.27.3': - resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} engines: {node: '>=18'} cpu: [arm64] os: [android] @@ -1222,8 +1255,8 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.27.3': - resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} engines: {node: '>=18'} cpu: [arm] os: [android] @@ -1234,8 +1267,8 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.27.3': - resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} engines: {node: '>=18'} cpu: [x64] os: [android] @@ -1246,8 +1279,8 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.27.3': - resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] @@ -1258,8 +1291,8 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.27.3': - resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} engines: {node: '>=18'} cpu: [x64] os: [darwin] @@ -1270,8 +1303,8 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.27.3': - resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] @@ -1282,8 +1315,8 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.27.3': - resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] @@ -1294,8 +1327,8 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.27.3': - resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} engines: {node: '>=18'} cpu: [arm64] os: [linux] @@ -1306,8 +1339,8 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.27.3': - resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} engines: {node: '>=18'} cpu: [arm] os: [linux] @@ -1318,8 +1351,8 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.27.3': - resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} engines: {node: '>=18'} cpu: [ia32] os: [linux] @@ -1330,8 +1363,8 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.27.3': - resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} engines: {node: '>=18'} cpu: [loong64] os: [linux] @@ -1342,8 +1375,8 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.27.3': - resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] @@ -1354,8 +1387,8 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.27.3': - resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] @@ -1366,8 +1399,8 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.27.3': - resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] @@ -1378,8 +1411,8 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.27.3': - resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} engines: {node: '>=18'} cpu: [s390x] os: [linux] @@ -1390,8 +1423,8 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.27.3': - resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} engines: {node: '>=18'} cpu: [x64] os: [linux] @@ -1402,8 +1435,8 @@ packages: cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-arm64@0.27.3': - resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] @@ -1414,8 +1447,8 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.27.3': - resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] @@ -1426,8 +1459,8 @@ packages: cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-arm64@0.27.3': - resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] @@ -1438,8 +1471,8 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.27.3': - resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] @@ -1450,8 +1483,8 @@ packages: cpu: [arm64] os: [openharmony] - '@esbuild/openharmony-arm64@0.27.3': - resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} engines: {node: '>=18'} cpu: [arm64] os: [openharmony] @@ -1462,8 +1495,8 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.27.3': - resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} engines: {node: '>=18'} cpu: [x64] os: [sunos] @@ -1474,8 +1507,8 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.27.3': - resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} engines: {node: '>=18'} cpu: [arm64] os: [win32] @@ -1486,8 +1519,8 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.27.3': - resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} engines: {node: '>=18'} cpu: [ia32] os: [win32] @@ -1498,8 +1531,8 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.27.3': - resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -1557,152 +1590,161 @@ packages: resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} engines: {node: '>=18'} - '@img/sharp-darwin-arm64@0.34.5': - resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-darwin-arm64@0.35.5': + resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==} + engines: {node: '>=20.9.0'} cpu: [arm64] os: [darwin] - '@img/sharp-darwin-x64@0.34.5': - resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} + engines: {node: '>=20.9.0'} cpu: [x64] os: [darwin] - '@img/sharp-libvips-darwin-arm64@1.2.4': - resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} + '@img/sharp-freebsd-wasm32@0.35.5': + resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==} + engines: {node: '>=20.9.0'} + os: [freebsd] + + '@img/sharp-libvips-darwin-arm64@1.3.4': + resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==} cpu: [arm64] os: [darwin] - '@img/sharp-libvips-darwin-x64@1.2.4': - resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==} + '@img/sharp-libvips-darwin-x64@1.3.4': + resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==} cpu: [x64] os: [darwin] - '@img/sharp-libvips-linux-arm64@1.2.4': - resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==} + '@img/sharp-libvips-linux-arm64@1.3.4': + resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==} cpu: [arm64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-arm@1.2.4': - resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==} + '@img/sharp-libvips-linux-arm@1.3.4': + resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==} cpu: [arm] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-ppc64@1.2.4': - resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==} + '@img/sharp-libvips-linux-ppc64@1.3.4': + resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==} cpu: [ppc64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-riscv64@1.2.4': - resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==} + '@img/sharp-libvips-linux-riscv64@1.3.4': + resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==} cpu: [riscv64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-s390x@1.2.4': - resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==} + '@img/sharp-libvips-linux-s390x@1.3.4': + resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==} cpu: [s390x] os: [linux] libc: [glibc] - '@img/sharp-libvips-linux-x64@1.2.4': - resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==} + '@img/sharp-libvips-linux-x64@1.3.4': + resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==} cpu: [x64] os: [linux] libc: [glibc] - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': - resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==} + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==} cpu: [arm64] os: [linux] libc: [musl] - '@img/sharp-libvips-linuxmusl-x64@1.2.4': - resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==} + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==} cpu: [x64] os: [linux] libc: [musl] - '@img/sharp-linux-arm64@0.34.5': - resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linux-arm64@0.35.5': + resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} + engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] libc: [glibc] - '@img/sharp-linux-arm@0.34.5': - resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linux-arm@0.35.5': + resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} + engines: {node: '>=20.9.0'} cpu: [arm] os: [linux] libc: [glibc] - '@img/sharp-linux-ppc64@0.34.5': - resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linux-ppc64@0.35.5': + resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} + engines: {node: '>=20.9.0'} cpu: [ppc64] os: [linux] libc: [glibc] - '@img/sharp-linux-riscv64@0.34.5': - resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linux-riscv64@0.35.5': + resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} + engines: {node: '>=20.9.0'} cpu: [riscv64] os: [linux] libc: [glibc] - '@img/sharp-linux-s390x@0.34.5': - resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linux-s390x@0.35.5': + resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} + engines: {node: '>=20.9.0'} cpu: [s390x] os: [linux] libc: [glibc] - '@img/sharp-linux-x64@0.34.5': - resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linux-x64@0.35.5': + resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} + engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] libc: [glibc] - '@img/sharp-linuxmusl-arm64@0.34.5': - resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linuxmusl-arm64@0.35.5': + resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} + engines: {node: '>=20.9.0'} cpu: [arm64] os: [linux] libc: [musl] - '@img/sharp-linuxmusl-x64@0.34.5': - resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-linuxmusl-x64@0.35.5': + resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} + engines: {node: '>=20.9.0'} cpu: [x64] os: [linux] libc: [musl] - '@img/sharp-wasm32@0.34.5': - resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-wasm32@0.35.5': + resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} + engines: {node: '>=20.9.0'} + + '@img/sharp-webcontainers-wasm32@0.35.5': + resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==} + engines: {node: '>=20.9.0'} cpu: [wasm32] - '@img/sharp-win32-arm64@0.34.5': - resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-win32-arm64@0.35.5': + resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==} + engines: {node: '>=20.9.0'} cpu: [arm64] os: [win32] - '@img/sharp-win32-ia32@0.34.5': - resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-win32-ia32@0.35.5': + resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==} + engines: {node: ^20.9.0} cpu: [ia32] os: [win32] - '@img/sharp-win32-x64@0.34.5': - resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} + engines: {node: '>=20.9.0'} cpu: [x64] os: [win32] @@ -3615,6 +3657,11 @@ packages: ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + cf@1.0.0-beta.26: + resolution: {integrity: sha512-StQUwvWubehIWMTqlUbfRNuUgO9qzE4ns7AMa0NbE2eJrOV32E9DwZxfxhqu4aADbE9kKXOt/XuqDC3mM3gC3w==} + engines: {node: ^22.23.0 || ^24.22.0 || ^26.12.0} + hasBin: true + chai@6.2.2: resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} @@ -4122,8 +4169,8 @@ packages: engines: {node: '>=18'} hasBin: true - esbuild@0.27.3: - resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} hasBin: true @@ -5041,10 +5088,9 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - miniflare@4.20260616.0: - resolution: {integrity: sha512-cEpzoNgSWjedzYmhJvttUPmL4Jk6nSzzeNNi118T5zwnmYP9fnM8UXwFU/Qa/1qoQ4SzGqtM1Q7tinHvHvIGtw==} + miniflare@5.20261023.3-beta: + resolution: {integrity: sha512-thdXzlktu5GE1o/BlmMAPeJ0Cu6Tu5LpMbRlyfRrpVvMRrhd6p52TMqcITCZZLVzt1UO92VGBkLDhLOpryUAyQ==} engines: {node: '>=22.0.0'} - hasBin: true minimatch@10.2.5: resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} @@ -5559,8 +5605,8 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - semver@7.8.4: - resolution: {integrity: sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==} + semver@7.8.5: + resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} engines: {node: '>=10'} hasBin: true @@ -5591,9 +5637,14 @@ packages: setprototypeof@1.2.0: resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} - sharp@0.34.5: - resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==} - engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + sharp@0.35.5: + resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==} + engines: {node: '>=20.9.0'} + peerDependencies: + '@types/node': '*' + peerDependenciesMeta: + '@types/node': + optional: true shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} @@ -5900,8 +5951,8 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici@7.24.8: - resolution: {integrity: sha512-6KQ/+QxK49Z/p3HO6E5ZCZWNnCasyZLa5ExaVYyvPxUwKtbCPMKELJOqh7EqOle0t9cH/7d2TaaTRRa6Nhs4YQ==} + undici@7.30.1: + resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} engines: {node: '>=20.18.1'} unenv@2.0.0-rc.24: @@ -6232,20 +6283,20 @@ packages: workbox-window@7.4.0: resolution: {integrity: sha512-/bIYdBLAVsNR3v7gYGaV4pQW3M3kEPx5E8vDxGvxo6khTrGtSSCS7QiFKv9ogzBgZiy0OXLP9zO28U/1nF1mfw==} - workerd@1.20260616.1: - resolution: {integrity: sha512-aRGWYxviSjYZwyu97pCr5GyJ9ObpgmNcfZZs3/o+kG7Wz3SBTqA8d8uhNueY5u7ADeUp2ibJvK6mXkFLrUmPgg==} + workerd@1.20261023.1: + resolution: {integrity: sha512-NeofJFyaYNpqKpFRJW3ApuonaerPd6/JWlfTtLDYf2A6ygqrDEFnYgEXmc0hhOxqnJsSM+kXJN6VebPojzRrsg==} engines: {node: '>=16'} hasBin: true world-atlas@2.0.2: resolution: {integrity: sha512-IXfV0qwlKXpckz1FhwXVwKRjiIhOnWttOskm5CtxMsjgE/MXAYRHWJqgXOpM8IkcPBoXnyTU5lFHcYa5ChG0LQ==} - wrangler@4.101.0: - resolution: {integrity: sha512-dZDDiRcT7MiA09lBDxWKmiL/iybEZ+SZe3IZmnVx1m1n1DOo730vOY5SeO7z9xFK8a/+vhGKDYB8mDXrvzEr5g==} + wrangler@4.156.0: + resolution: {integrity: sha512-kVLAShuLiNgE3jcrmXcymDf/iPKDPrSxACe5ueugW/33HeNB9E9CkKYchudCeBwgmsnl4k+1zt4NO7vqb/fRuQ==} engines: {node: '>=22.0.0'} hasBin: true peerDependencies: - '@cloudflare/workers-types': ^4.20260616.1 + '@cloudflare/workers-types': ^5.20261023.1 peerDependenciesMeta: '@cloudflare/workers-types': optional: true @@ -6269,6 +6320,18 @@ packages: utf-8-validate: optional: true + ws@8.21.0: + resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + xml-name-validator@5.0.0: resolution: {integrity: sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==} engines: {node: '>=18'} @@ -6319,6 +6382,9 @@ packages: peerDependencies: zod: ^3.25.28 || ^4 + zod@4.6.6: + resolution: {integrity: sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA==} + zod@4.6.7: resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} @@ -7166,27 +7232,44 @@ snapshots: '@chevrotain/utils@11.0.3': {} + '@cloudflare/build-output-utils@0.9.6': + dependencies: + '@cloudflare/config': 0.29.0 + + '@cloudflare/config@0.29.0': + dependencies: + zod: 4.6.6 + '@cloudflare/kv-asset-handler@0.5.0': {} - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260616.1)': + '@cloudflare/runtime-types@0.1.19(@types/node@22.19.15)': + dependencies: + miniflare: 5.20261023.3-beta(@types/node@22.19.15) + workerd: 1.20261023.1 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + + '@cloudflare/unenv-preset@2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261023.1)': dependencies: unenv: 2.0.0-rc.24 optionalDependencies: - workerd: 1.20260616.1 + workerd: 1.20261023.1 - '@cloudflare/workerd-darwin-64@1.20260616.1': + '@cloudflare/workerd-darwin-64@1.20261023.1': optional: true - '@cloudflare/workerd-darwin-arm64@1.20260616.1': + '@cloudflare/workerd-darwin-arm64@1.20261023.1': optional: true - '@cloudflare/workerd-linux-64@1.20260616.1': + '@cloudflare/workerd-linux-64@1.20261023.1': optional: true - '@cloudflare/workerd-linux-arm64@1.20260616.1': + '@cloudflare/workerd-linux-arm64@1.20261023.1': optional: true - '@cloudflare/workerd-windows-64@1.20260616.1': + '@cloudflare/workerd-windows-64@1.20261023.1': optional: true '@cloudflare/workers-types@4.20260313.1': {} @@ -7311,7 +7394,7 @@ snapshots: '@date-fns/tz@1.4.1': {} - '@emnapi/runtime@1.11.1': + '@emnapi/runtime@1.11.3': dependencies: tslib: 2.8.1 optional: true @@ -7319,157 +7402,157 @@ snapshots: '@esbuild/aix-ppc64@0.25.12': optional: true - '@esbuild/aix-ppc64@0.27.3': + '@esbuild/aix-ppc64@0.28.2': optional: true '@esbuild/android-arm64@0.25.12': optional: true - '@esbuild/android-arm64@0.27.3': + '@esbuild/android-arm64@0.28.2': optional: true '@esbuild/android-arm@0.25.12': optional: true - '@esbuild/android-arm@0.27.3': + '@esbuild/android-arm@0.28.2': optional: true '@esbuild/android-x64@0.25.12': optional: true - '@esbuild/android-x64@0.27.3': + '@esbuild/android-x64@0.28.2': optional: true '@esbuild/darwin-arm64@0.25.12': optional: true - '@esbuild/darwin-arm64@0.27.3': + '@esbuild/darwin-arm64@0.28.2': optional: true '@esbuild/darwin-x64@0.25.12': optional: true - '@esbuild/darwin-x64@0.27.3': + '@esbuild/darwin-x64@0.28.2': optional: true '@esbuild/freebsd-arm64@0.25.12': optional: true - '@esbuild/freebsd-arm64@0.27.3': + '@esbuild/freebsd-arm64@0.28.2': optional: true '@esbuild/freebsd-x64@0.25.12': optional: true - '@esbuild/freebsd-x64@0.27.3': + '@esbuild/freebsd-x64@0.28.2': optional: true '@esbuild/linux-arm64@0.25.12': optional: true - '@esbuild/linux-arm64@0.27.3': + '@esbuild/linux-arm64@0.28.2': optional: true '@esbuild/linux-arm@0.25.12': optional: true - '@esbuild/linux-arm@0.27.3': + '@esbuild/linux-arm@0.28.2': optional: true '@esbuild/linux-ia32@0.25.12': optional: true - '@esbuild/linux-ia32@0.27.3': + '@esbuild/linux-ia32@0.28.2': optional: true '@esbuild/linux-loong64@0.25.12': optional: true - '@esbuild/linux-loong64@0.27.3': + '@esbuild/linux-loong64@0.28.2': optional: true '@esbuild/linux-mips64el@0.25.12': optional: true - '@esbuild/linux-mips64el@0.27.3': + '@esbuild/linux-mips64el@0.28.2': optional: true '@esbuild/linux-ppc64@0.25.12': optional: true - '@esbuild/linux-ppc64@0.27.3': + '@esbuild/linux-ppc64@0.28.2': optional: true '@esbuild/linux-riscv64@0.25.12': optional: true - '@esbuild/linux-riscv64@0.27.3': + '@esbuild/linux-riscv64@0.28.2': optional: true '@esbuild/linux-s390x@0.25.12': optional: true - '@esbuild/linux-s390x@0.27.3': + '@esbuild/linux-s390x@0.28.2': optional: true '@esbuild/linux-x64@0.25.12': optional: true - '@esbuild/linux-x64@0.27.3': + '@esbuild/linux-x64@0.28.2': optional: true '@esbuild/netbsd-arm64@0.25.12': optional: true - '@esbuild/netbsd-arm64@0.27.3': + '@esbuild/netbsd-arm64@0.28.2': optional: true '@esbuild/netbsd-x64@0.25.12': optional: true - '@esbuild/netbsd-x64@0.27.3': + '@esbuild/netbsd-x64@0.28.2': optional: true '@esbuild/openbsd-arm64@0.25.12': optional: true - '@esbuild/openbsd-arm64@0.27.3': + '@esbuild/openbsd-arm64@0.28.2': optional: true '@esbuild/openbsd-x64@0.25.12': optional: true - '@esbuild/openbsd-x64@0.27.3': + '@esbuild/openbsd-x64@0.28.2': optional: true '@esbuild/openharmony-arm64@0.25.12': optional: true - '@esbuild/openharmony-arm64@0.27.3': + '@esbuild/openharmony-arm64@0.28.2': optional: true '@esbuild/sunos-x64@0.25.12': optional: true - '@esbuild/sunos-x64@0.27.3': + '@esbuild/sunos-x64@0.28.2': optional: true '@esbuild/win32-arm64@0.25.12': optional: true - '@esbuild/win32-arm64@0.27.3': + '@esbuild/win32-arm64@0.28.2': optional: true '@esbuild/win32-ia32@0.25.12': optional: true - '@esbuild/win32-ia32@0.27.3': + '@esbuild/win32-ia32@0.28.2': optional: true '@esbuild/win32-x64@0.25.12': optional: true - '@esbuild/win32-x64@0.27.3': + '@esbuild/win32-x64@0.28.2': optional: true '@excalidraw/excalidraw@0.18.1(@types/react-dom@19.2.3(@types/react@19.2.14))(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': @@ -7558,98 +7641,108 @@ snapshots: '@img/colour@1.1.0': {} - '@img/sharp-darwin-arm64@0.34.5': + '@img/sharp-darwin-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.2.4 + '@img/sharp-libvips-darwin-arm64': 1.3.4 optional: true - '@img/sharp-darwin-x64@0.34.5': + '@img/sharp-darwin-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.2.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + optional: true + + '@img/sharp-freebsd-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-libvips-darwin-arm64@1.2.4': + '@img/sharp-libvips-darwin-arm64@1.3.4': optional: true - '@img/sharp-libvips-darwin-x64@1.2.4': + '@img/sharp-libvips-darwin-x64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm64@1.2.4': + '@img/sharp-libvips-linux-arm64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm@1.2.4': + '@img/sharp-libvips-linux-arm@1.3.4': optional: true - '@img/sharp-libvips-linux-ppc64@1.2.4': + '@img/sharp-libvips-linux-ppc64@1.3.4': optional: true - '@img/sharp-libvips-linux-riscv64@1.2.4': + '@img/sharp-libvips-linux-riscv64@1.3.4': optional: true - '@img/sharp-libvips-linux-s390x@1.2.4': + '@img/sharp-libvips-linux-s390x@1.3.4': optional: true - '@img/sharp-libvips-linux-x64@1.2.4': + '@img/sharp-libvips-linux-x64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.2.4': + '@img/sharp-libvips-linuxmusl-x64@1.3.4': optional: true - '@img/sharp-linux-arm64@0.34.5': + '@img/sharp-linux-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.2.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 optional: true - '@img/sharp-linux-arm@0.34.5': + '@img/sharp-linux-arm@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.2.4 + '@img/sharp-libvips-linux-arm': 1.3.4 optional: true - '@img/sharp-linux-ppc64@0.34.5': + '@img/sharp-linux-ppc64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.2.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 optional: true - '@img/sharp-linux-riscv64@0.34.5': + '@img/sharp-linux-riscv64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.2.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 optional: true - '@img/sharp-linux-s390x@0.34.5': + '@img/sharp-linux-s390x@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.2.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 optional: true - '@img/sharp-linux-x64@0.34.5': + '@img/sharp-linux-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.2.4 + '@img/sharp-libvips-linux-x64': 1.3.4 optional: true - '@img/sharp-linuxmusl-arm64@0.34.5': + '@img/sharp-linuxmusl-arm64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 optional: true - '@img/sharp-linuxmusl-x64@0.34.5': + '@img/sharp-linuxmusl-x64@0.35.5': optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 optional: true - '@img/sharp-wasm32@0.34.5': + '@img/sharp-wasm32@0.35.5': dependencies: - '@emnapi/runtime': 1.11.1 + '@emnapi/runtime': 1.11.3 optional: true - '@img/sharp-win32-arm64@0.34.5': + '@img/sharp-webcontainers-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 + optional: true + + '@img/sharp-win32-arm64@0.35.5': optional: true - '@img/sharp-win32-ia32@0.34.5': + '@img/sharp-win32-ia32@0.35.5': optional: true - '@img/sharp-win32-x64@0.34.5': + '@img/sharp-win32-x64@0.35.5': optional: true '@isaacs/cliui@9.0.0': {} @@ -9633,6 +9726,18 @@ snapshots: ccount@2.0.1: {} + cf@1.0.0-beta.26(@types/node@22.19.15): + dependencies: + '@cloudflare/build-output-utils': 0.9.6 + '@cloudflare/config': 0.29.0 + '@cloudflare/runtime-types': 0.1.19(@types/node@22.19.15) + blake3-wasm: 2.1.5 + miniflare: 5.20261023.3-beta(@types/node@22.19.15) + transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + chai@6.2.2: {} chalk@4.1.2: @@ -10227,34 +10332,34 @@ snapshots: '@esbuild/win32-ia32': 0.25.12 '@esbuild/win32-x64': 0.25.12 - esbuild@0.27.3: + esbuild@0.28.2: optionalDependencies: - '@esbuild/aix-ppc64': 0.27.3 - '@esbuild/android-arm': 0.27.3 - '@esbuild/android-arm64': 0.27.3 - '@esbuild/android-x64': 0.27.3 - '@esbuild/darwin-arm64': 0.27.3 - '@esbuild/darwin-x64': 0.27.3 - '@esbuild/freebsd-arm64': 0.27.3 - '@esbuild/freebsd-x64': 0.27.3 - '@esbuild/linux-arm': 0.27.3 - '@esbuild/linux-arm64': 0.27.3 - '@esbuild/linux-ia32': 0.27.3 - '@esbuild/linux-loong64': 0.27.3 - '@esbuild/linux-mips64el': 0.27.3 - '@esbuild/linux-ppc64': 0.27.3 - '@esbuild/linux-riscv64': 0.27.3 - '@esbuild/linux-s390x': 0.27.3 - '@esbuild/linux-x64': 0.27.3 - '@esbuild/netbsd-arm64': 0.27.3 - '@esbuild/netbsd-x64': 0.27.3 - '@esbuild/openbsd-arm64': 0.27.3 - '@esbuild/openbsd-x64': 0.27.3 - '@esbuild/openharmony-arm64': 0.27.3 - '@esbuild/sunos-x64': 0.27.3 - '@esbuild/win32-arm64': 0.27.3 - '@esbuild/win32-ia32': 0.27.3 - '@esbuild/win32-x64': 0.27.3 + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 escalade@3.2.0: {} @@ -11404,15 +11509,16 @@ snapshots: min-indent@1.0.1: {} - miniflare@4.20260616.0: + miniflare@5.20261023.3-beta(@types/node@22.19.15): dependencies: '@cspotcode/source-map-support': 0.8.1 - sharp: 0.34.5 - undici: 7.24.8 - workerd: 1.20260616.1 - ws: 8.20.1 + sharp: 0.35.5(@types/node@22.19.15) + undici: 7.30.1 + workerd: 1.20261023.1 + ws: 8.21.0 youch: 4.1.0-beta.10 transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate @@ -12043,7 +12149,7 @@ snapshots: semver@6.3.1: {} - semver@7.8.4: {} + semver@7.8.5: {} send@1.2.1: dependencies: @@ -12096,36 +12202,38 @@ snapshots: setprototypeof@1.2.0: {} - sharp@0.34.5: + sharp@0.35.5(@types/node@22.19.15): dependencies: '@img/colour': 1.1.0 detect-libc: 2.1.2 - semver: 7.8.4 + semver: 7.8.5 optionalDependencies: - '@img/sharp-darwin-arm64': 0.34.5 - '@img/sharp-darwin-x64': 0.34.5 - '@img/sharp-libvips-darwin-arm64': 1.2.4 - '@img/sharp-libvips-darwin-x64': 1.2.4 - '@img/sharp-libvips-linux-arm': 1.2.4 - '@img/sharp-libvips-linux-arm64': 1.2.4 - '@img/sharp-libvips-linux-ppc64': 1.2.4 - '@img/sharp-libvips-linux-riscv64': 1.2.4 - '@img/sharp-libvips-linux-s390x': 1.2.4 - '@img/sharp-libvips-linux-x64': 1.2.4 - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 - '@img/sharp-linux-arm': 0.34.5 - '@img/sharp-linux-arm64': 0.34.5 - '@img/sharp-linux-ppc64': 0.34.5 - '@img/sharp-linux-riscv64': 0.34.5 - '@img/sharp-linux-s390x': 0.34.5 - '@img/sharp-linux-x64': 0.34.5 - '@img/sharp-linuxmusl-arm64': 0.34.5 - '@img/sharp-linuxmusl-x64': 0.34.5 - '@img/sharp-wasm32': 0.34.5 - '@img/sharp-win32-arm64': 0.34.5 - '@img/sharp-win32-ia32': 0.34.5 - '@img/sharp-win32-x64': 0.34.5 + '@img/sharp-darwin-arm64': 0.35.5 + '@img/sharp-darwin-x64': 0.35.5 + '@img/sharp-freebsd-wasm32': 0.35.5 + '@img/sharp-libvips-darwin-arm64': 1.3.4 + '@img/sharp-libvips-darwin-x64': 1.3.4 + '@img/sharp-libvips-linux-arm': 1.3.4 + '@img/sharp-libvips-linux-arm64': 1.3.4 + '@img/sharp-libvips-linux-ppc64': 1.3.4 + '@img/sharp-libvips-linux-riscv64': 1.3.4 + '@img/sharp-libvips-linux-s390x': 1.3.4 + '@img/sharp-libvips-linux-x64': 1.3.4 + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + '@img/sharp-linux-arm': 0.35.5 + '@img/sharp-linux-arm64': 0.35.5 + '@img/sharp-linux-ppc64': 0.35.5 + '@img/sharp-linux-riscv64': 0.35.5 + '@img/sharp-linux-s390x': 0.35.5 + '@img/sharp-linux-x64': 0.35.5 + '@img/sharp-linuxmusl-arm64': 0.35.5 + '@img/sharp-linuxmusl-x64': 0.35.5 + '@img/sharp-webcontainers-wasm32': 0.35.5 + '@img/sharp-win32-arm64': 0.35.5 + '@img/sharp-win32-ia32': 0.35.5 + '@img/sharp-win32-x64': 0.35.5 + '@types/node': 22.19.15 shebang-command@2.0.0: dependencies: @@ -12466,7 +12574,7 @@ snapshots: undici-types@6.21.0: {} - undici@7.24.8: {} + undici@7.30.1: {} unenv@2.0.0-rc.24: dependencies: @@ -12844,29 +12952,31 @@ snapshots: '@types/trusted-types': 2.0.7 workbox-core: 7.4.0 - workerd@1.20260616.1: + workerd@1.20261023.1: optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260616.1 - '@cloudflare/workerd-darwin-arm64': 1.20260616.1 - '@cloudflare/workerd-linux-64': 1.20260616.1 - '@cloudflare/workerd-linux-arm64': 1.20260616.1 - '@cloudflare/workerd-windows-64': 1.20260616.1 + '@cloudflare/workerd-darwin-64': 1.20261023.1 + '@cloudflare/workerd-darwin-arm64': 1.20261023.1 + '@cloudflare/workerd-linux-64': 1.20261023.1 + '@cloudflare/workerd-linux-arm64': 1.20261023.1 + '@cloudflare/workerd-windows-64': 1.20261023.1 world-atlas@2.0.2: {} - wrangler@4.101.0: + wrangler@4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15): dependencies: '@cloudflare/kv-asset-handler': 0.5.0 - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260616.1) + '@cloudflare/unenv-preset': 2.16.2(unenv@2.0.0-rc.24)(workerd@1.20261023.1) blake3-wasm: 2.1.5 - esbuild: 0.27.3 - miniflare: 4.20260616.0 + esbuild: 0.28.2 + miniflare: 5.20261023.3-beta(@types/node@22.19.15) path-to-regexp: 6.3.0 unenv: 2.0.0-rc.24 - workerd: 1.20260616.1 + workerd: 1.20261023.1 optionalDependencies: + '@cloudflare/workers-types': 4.20260313.1 fsevents: 2.3.3 transitivePeerDependencies: + - '@types/node' - bufferutil - utf-8-validate @@ -12880,6 +12990,8 @@ snapshots: ws@8.20.1: {} + ws@8.21.0: {} + xml-name-validator@5.0.0: {} xmlchars@2.2.0: {} @@ -12933,6 +13045,8 @@ snapshots: dependencies: zod: 4.6.7 + zod@4.6.6: {} + zod@4.6.7: {} zustand@4.5.7(@types/react@19.2.14)(react@19.2.4): diff --git a/scripts/migrate.mjs b/scripts/migrate.mjs index 5c8175a..884f4ec 100644 --- a/scripts/migrate.mjs +++ b/scripts/migrate.mjs @@ -26,26 +26,32 @@ function run(label, cmd, cwd) { const apiDir = resolve(root, "packages/api"); const authDir = resolve(root, "packages/auth"); +// `cf d1 migrations apply` takes the database ID (see each package's +// cloudflare.config.ts) and reads ./migrations by default. It applies to the +// remote database unless --local is passed. +const API_DB_ID = "267490be-7141-4d00-ab23-152742f2f6ef"; // cubedocs-main +const AUTH_DB_ID = "db327d85-b8c2-4fed-adaa-25e748778c86"; // cubedocs-auth + if (mode === "local") { run( "API local migrations", - "npx wrangler d1 migrations apply cubedocs-main --local --persist-to ../../.wrangler/state", + `npx cf d1 migrations apply ${API_DB_ID} --local --persist-to ../../.wrangler/state`, apiDir ); run( "Auth local migrations", - "npx wrangler d1 migrations apply cubedocs-auth --local --persist-to ../../.wrangler/state", + `npx cf d1 migrations apply ${AUTH_DB_ID} --local --persist-to ../../.wrangler/state`, authDir ); } else { run( "API remote migrations", - "npx wrangler d1 migrations apply cubedocs-main --remote", + `npx cf d1 migrations apply ${API_DB_ID}`, apiDir ); run( "Auth remote migrations", - "npx wrangler d1 migrations apply cubedocs-auth --remote", + `npx cf d1 migrations apply ${AUTH_DB_ID}`, authDir ); }