From 7162d6318e6890845a6bafc028951307007c1806 Mon Sep 17 00:00:00 2001 From: Michael Burr Date: Fri, 6 Nov 2026 18:29:23 +0000 Subject: [PATCH 1/2] chore(deploy): run cf migrate on all four workers Raw output of `cf migrate` (cf 1.0.0-beta.18) for packages/{auth,api,admin,frontend}/wrangler.toml. Follow-up items are resolved in the next commit. --- packages/admin/cloudflare.config.ts | 62 ++ packages/admin/package.json | 4 +- packages/admin/wrangler.config.ts | 5 + packages/api/cloudflare.config.ts | 97 +++ packages/auth/cloudflare.config.ts | 88 +++ packages/auth/package.json | 1 + packages/frontend/cloudflare.config.ts | 32 + packages/frontend/package.json | 4 +- packages/frontend/wrangler.config.ts | 5 + pnpm-lock.yaml | 789 ++++++++++++++++++++++++- 10 files changed, 1077 insertions(+), 10 deletions(-) create mode 100644 packages/admin/cloudflare.config.ts create mode 100644 packages/admin/wrangler.config.ts create mode 100644 packages/api/cloudflare.config.ts create mode 100644 packages/auth/cloudflare.config.ts create mode 100644 packages/frontend/cloudflare.config.ts create mode 100644 packages/frontend/wrangler.config.ts diff --git a/packages/admin/cloudflare.config.ts b/packages/admin/cloudflare.config.ts new file mode 100644 index 0000000..fecf002 --- /dev/null +++ b/packages/admin/cloudflare.config.ts @@ -0,0 +1,62 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +export default defineConfig({ + worker: { + name: "annex-admin", + compatibilityDate: "2026-02-24", + entrypoint: "src/index.ts", + workersDev: false, + assets: { + htmlHandling: "auto-trailing-slash", + notFoundHandling: "single-page-application", + }, + domains: [ + "admin.cubityfir.st", + ], + triggers: [ + triggers.scheduled({ + schedule: "17 * * * *", + }), + ], + env: { + 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", + }), + 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", + }), + RATE_LIMITER_ADMIN: bindings.rateLimit({ + namespace: "2001", + simple: { + limit: 60, + period: 60, + }, + }), + RATE_LIMITER_ADMIN_HANDOFF: bindings.rateLimit({ + namespace: "2002", + simple: { + limit: 10, + period: 60, + }, + }), + RATE_LIMITER_AVATAR: bindings.rateLimit({ + namespace: "2003", + simple: { + limit: 300, + period: 60, + }, + }), + SITE_ASSETS: bindings.assets(), + }, + }, +}); diff --git a/packages/admin/package.json b/packages/admin/package.json index 88f583a..7cf1dea 100644 --- a/packages/admin/package.json +++ b/packages/admin/package.json @@ -16,8 +16,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/wrangler.config.ts b/packages/admin/wrangler.config.ts new file mode 100644 index 0000000..a9e813d --- /dev/null +++ b/packages/admin/wrangler.config.ts @@ -0,0 +1,5 @@ +import { defineWranglerConfig } from "wrangler/experimental-config"; + +export default defineWranglerConfig({ + assetsDirectory: "./dist", +}); diff --git a/packages/api/cloudflare.config.ts b/packages/api/cloudflare.config.ts new file mode 100644 index 0000000..11b6389 --- /dev/null +++ b/packages/api/cloudflare.config.ts @@ -0,0 +1,97 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +/** + * This migration needs manual work. Resolve every TODO in this file, then remove the error below. + */ +/** + * TODO(@cloudflare): cf migrate: d1_databases.0: The options `migrations_dir` at `d1_databases.0` require manual migration. + */ +/** + * TODO(@cloudflare): cf migrate: durable_objects.bindings.0: Durable Object bindings require manual review after migration. + * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports + */ +/** + * TODO(@cloudflare): cf migrate: migrations: Wrangler Durable Object migrations are unsupported. Replace them with an exports lifecycle declaration, for example `exports: { MyDurableObject: exports.durableObject({ storage: "sqlite" }) }`. + * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports + */ +/** + * TODO(@cloudflare): cf migrate: Automatic dependency installation was disabled. Install `cf@latest` before using the generated configuration. + */ +throw new Error("Migration incomplete. Resolve every cf migrate TODO in `cloudflare.config.ts`."); + +export default defineConfig({ + worker: { + name: "annex-api", + compatibilityDate: "2026-02-24", + compatibilityFlags: [ + "nodejs_compat", + ], + entrypoint: "src/index.ts", + workersDev: false, + triggers: [ + triggers.scheduled({ + schedule: "0 4 * * *", + }), + ], + env: { + ENVIRONMENT: bindings.text("production"), + CUSTOM_DOMAIN_CNAME_TARGET: bindings.text("publish.yourannex.com"), + CF_ZONE_ID: bindings.text("397deb54a68d306201a295d1793fe84c"), + 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", + }), + AUTH_DB: bindings.d1({ + name: "cubedocs-auth", + id: "db327d85-b8c2-4fed-adaa-25e748778c86", + }), + FLAGS: bindings.flagship({ + id: "08fb610f-b8ed-4a60-afcf-7f5fe6b9f948", + }), + ASSETS: bindings.r2({ + name: "cubedocs-assets", + }), + AUTH: bindings.worker({ + worker: "annex-auth", + }), + DOC_COLLAB: bindings.durableObject({ + worker: "annex-api", + exportName: "DocCollabRoom", + }), + RATE_LIMITER_INVITE_LOOKUP: bindings.rateLimit({ + namespace: "2001", + simple: { + limit: 8, + period: 60, + }, + }), + RATE_LIMITER_API: bindings.rateLimit({ + namespace: "2002", + simple: { + limit: 120, + period: 60, + }, + }), + RATE_LIMITER_REPORT: bindings.rateLimit({ + namespace: "2003", + simple: { + limit: 3, + period: 60, + }, + }), + }, + /** + * TODO(@cloudflare): cf migrate: The options `migrations_dir` at `d1_databases.0` require manual migration. + */ + /** + * TODO(@cloudflare): cf migrate: Durable Object bindings require manual review after migration. + * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports + */ + /** + * TODO(@cloudflare): cf migrate: Wrangler Durable Object migrations are unsupported. Replace them with an exports lifecycle declaration, for example `exports: { MyDurableObject: exports.durableObject({ storage: "sqlite" }) }`. + * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports + */ + }, +}); diff --git a/packages/auth/cloudflare.config.ts b/packages/auth/cloudflare.config.ts new file mode 100644 index 0000000..f17fce8 --- /dev/null +++ b/packages/auth/cloudflare.config.ts @@ -0,0 +1,88 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +/** + * This migration needs manual work. Resolve every TODO in this file, then remove the error below. + */ +/** + * TODO(@cloudflare): cf migrate: d1_databases.0: The options `migrations_dir` at `d1_databases.0` require manual migration. + */ +throw new Error("Migration incomplete. Resolve every cf migrate TODO in `cloudflare.config.ts`."); + +export default defineConfig({ + worker: { + name: "annex-auth", + compatibilityDate: "2026-02-24", + compatibilityFlags: [ + "nodejs_compat", + ], + entrypoint: "src/index.ts", + workersDev: false, + triggers: [ + triggers.fetch({ + pattern: "auth.cubityfir.st/oauth/*", + zone: "cubityfir.st", + }), + triggers.fetch({ + pattern: "auth.cubityfir.st/.well-known/*", + zone: "cubityfir.st", + }), + 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"), + 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_INK_PRICE_ID: bindings.text("price_1TVJk5Rckd4Ls9nPHpnY4tAN"), + DB: bindings.d1({ + name: "cubedocs-auth", + id: "db327d85-b8c2-4fed-adaa-25e748778c86", + }), + FLAGS: bindings.flagship({ + id: "08fb610f-b8ed-4a60-afcf-7f5fe6b9f948", + }), + EMAIL: bindings.sendEmail({ + allowedSenderAddresses: [ + "noreply@docs.cubityfir.st", + ], + }), + 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, + }, + }), + RATE_LIMITER_OIDC: bindings.rateLimit({ + namespace: "1004", + simple: { + limit: 100, + period: 60, + }, + }), + }, + /** + * TODO(@cloudflare): cf migrate: The options `migrations_dir` at `d1_databases.0` require manual migration. + */ + }, +}); diff --git a/packages/auth/package.json b/packages/auth/package.json index 987054f..952e0e4 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -18,6 +18,7 @@ "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" } diff --git a/packages/frontend/cloudflare.config.ts b/packages/frontend/cloudflare.config.ts new file mode 100644 index 0000000..2cdad00 --- /dev/null +++ b/packages/frontend/cloudflare.config.ts @@ -0,0 +1,32 @@ +import { bindings, defineConfig, triggers } from "cf/config"; + +/** + * Secret-like files were detected but not read or migrated: .env.production. Only `secrets.required` entries are migrated. + * @see https://developers.cloudflare.com/workers/configuration/secrets/ + */ + +export default defineConfig({ + worker: { + name: "annex-frontend", + compatibilityDate: "2026-02-24", + entrypoint: "worker/index.ts", + domains: [ + "docs.cubityfir.st", + ], + triggers: [ + triggers.fetch({ + pattern: "*/*", + zone: "yourannex.com", + }), + ], + env: { + API: bindings.worker({ + worker: "annex-api", + }), + AUTH: bindings.worker({ + worker: "annex-auth", + }), + ASSETS: bindings.assets(), + }, + }, +}); diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 5d6279b..34f2131 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -81,12 +81,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..a9e813d --- /dev/null +++ b/packages/frontend/wrangler.config.ts @@ -0,0 +1,5 @@ +import { defineWranglerConfig } from "wrangler/experimental-config"; + +export default defineWranglerConfig({ + assetsDirectory: "./dist", +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8d6eeb6..aab694d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: @@ -191,6 +197,9 @@ 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 @@ -402,6 +411,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 +435,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,10 +1087,19 @@ 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/runtime-types@0.1.19': + resolution: {integrity: sha512-3ZQe25s1Uqo2HtWpz+ovBe0IhqS5od4Ja4Uf6z/hjTbdS9JJ2jnYxOcF6x3ioHuG2A7g3GK6e6ADtelMaCETzg==} + '@cloudflare/unenv-preset@2.16.1': resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} peerDependencies: @@ -1085,36 +1109,75 @@ packages: workerd: optional: true + '@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' + peerDependenciesMeta: + workerd: + optional: true + '@cloudflare/workerd-darwin-64@1.20260616.1': resolution: {integrity: sha512-8QaDRQABkwkwoeviNiyScol7EQgXfGsPNSyUn52GiXObthY4XPiokoJsgDSDNcAelHjEvDLmdvQBHPK8YvGn4A==} engines: {node: '>=16'} cpu: [x64] os: [darwin] + '@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==} engines: {node: '>=16'} cpu: [arm64] os: [darwin] + '@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==} engines: {node: '>=16'} cpu: [x64] os: [linux] + '@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==} engines: {node: '>=16'} cpu: [arm64] os: [linux] + '@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==} engines: {node: '>=16'} cpu: [x64] os: [win32] + '@cloudflare/workerd-windows-64@1.20261023.1': + resolution: {integrity: sha512-279WLVjNsMycAwr0EZNiNEf0l2SY6NUtsN80NwZzbTHzakmiN+WSx4w38muxPm+PAU0oSPPAPXKVD+H6Hya8xw==} + engines: {node: '>=16'} + cpu: [x64] + os: [win32] + '@cloudflare/workers-types@4.20260313.1': resolution: {integrity: sha512-jMEeX3RKfOSVqqXRKr/ulgglcTloeMzSH3FdzIfqJHtvc12/ELKd5Ldsg8ZHahKX/4eRxYdw3kbzb8jLXbq/jQ==} @@ -1189,8 +1252,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==} @@ -1204,6 +1267,12 @@ packages: cpu: [ppc64] os: [aix] + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + '@esbuild/android-arm64@0.25.12': resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} engines: {node: '>=18'} @@ -1216,6 +1285,12 @@ packages: cpu: [arm64] os: [android] + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + '@esbuild/android-arm@0.25.12': resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} engines: {node: '>=18'} @@ -1228,6 +1303,12 @@ packages: cpu: [arm] os: [android] + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + '@esbuild/android-x64@0.25.12': resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} engines: {node: '>=18'} @@ -1240,6 +1321,12 @@ packages: cpu: [x64] os: [android] + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + '@esbuild/darwin-arm64@0.25.12': resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} engines: {node: '>=18'} @@ -1252,6 +1339,12 @@ packages: cpu: [arm64] os: [darwin] + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + '@esbuild/darwin-x64@0.25.12': resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} engines: {node: '>=18'} @@ -1264,6 +1357,12 @@ packages: cpu: [x64] os: [darwin] + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + '@esbuild/freebsd-arm64@0.25.12': resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} engines: {node: '>=18'} @@ -1276,6 +1375,12 @@ packages: cpu: [arm64] os: [freebsd] + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + '@esbuild/freebsd-x64@0.25.12': resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} engines: {node: '>=18'} @@ -1288,6 +1393,12 @@ packages: cpu: [x64] os: [freebsd] + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + '@esbuild/linux-arm64@0.25.12': resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} engines: {node: '>=18'} @@ -1300,6 +1411,12 @@ packages: cpu: [arm64] os: [linux] + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + '@esbuild/linux-arm@0.25.12': resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} engines: {node: '>=18'} @@ -1312,6 +1429,12 @@ packages: cpu: [arm] os: [linux] + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + '@esbuild/linux-ia32@0.25.12': resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} engines: {node: '>=18'} @@ -1324,6 +1447,12 @@ packages: cpu: [ia32] os: [linux] + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + '@esbuild/linux-loong64@0.25.12': resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} engines: {node: '>=18'} @@ -1336,6 +1465,12 @@ packages: cpu: [loong64] os: [linux] + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + '@esbuild/linux-mips64el@0.25.12': resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} engines: {node: '>=18'} @@ -1348,6 +1483,12 @@ packages: cpu: [mips64el] os: [linux] + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + '@esbuild/linux-ppc64@0.25.12': resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} engines: {node: '>=18'} @@ -1360,6 +1501,12 @@ packages: cpu: [ppc64] os: [linux] + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + '@esbuild/linux-riscv64@0.25.12': resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} engines: {node: '>=18'} @@ -1372,6 +1519,12 @@ packages: cpu: [riscv64] os: [linux] + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + '@esbuild/linux-s390x@0.25.12': resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} engines: {node: '>=18'} @@ -1384,6 +1537,12 @@ packages: cpu: [s390x] os: [linux] + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + '@esbuild/linux-x64@0.25.12': resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} engines: {node: '>=18'} @@ -1396,6 +1555,12 @@ packages: cpu: [x64] os: [linux] + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + '@esbuild/netbsd-arm64@0.25.12': resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} engines: {node: '>=18'} @@ -1408,6 +1573,12 @@ packages: cpu: [arm64] os: [netbsd] + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + '@esbuild/netbsd-x64@0.25.12': resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} engines: {node: '>=18'} @@ -1420,6 +1591,12 @@ packages: cpu: [x64] os: [netbsd] + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + '@esbuild/openbsd-arm64@0.25.12': resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} engines: {node: '>=18'} @@ -1432,6 +1609,12 @@ packages: cpu: [arm64] os: [openbsd] + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + '@esbuild/openbsd-x64@0.25.12': resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} engines: {node: '>=18'} @@ -1444,6 +1627,12 @@ packages: cpu: [x64] os: [openbsd] + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + '@esbuild/openharmony-arm64@0.25.12': resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} engines: {node: '>=18'} @@ -1456,6 +1645,12 @@ packages: cpu: [arm64] os: [openharmony] + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + '@esbuild/sunos-x64@0.25.12': resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} engines: {node: '>=18'} @@ -1468,6 +1663,12 @@ packages: cpu: [x64] os: [sunos] + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + '@esbuild/win32-arm64@0.25.12': resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} engines: {node: '>=18'} @@ -1480,6 +1681,12 @@ packages: cpu: [arm64] os: [win32] + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + '@esbuild/win32-ia32@0.25.12': resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} engines: {node: '>=18'} @@ -1492,6 +1699,12 @@ packages: cpu: [ia32] os: [win32] + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + '@esbuild/win32-x64@0.25.12': resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} engines: {node: '>=18'} @@ -1504,6 +1717,12 @@ packages: cpu: [x64] os: [win32] + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@excalidraw/excalidraw@0.18.1': resolution: {integrity: sha512-6i5Gt7IDTOH//qa0Z315Ly5iVRhjWpu2whrlQFqkuwrkKUWgRsMk0P5qdE7bpyDpai7jeLeWYkyj1eVAfni1lw==} peerDependencies: @@ -1563,70 +1782,145 @@ packages: cpu: [arm64] os: [darwin] + '@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} cpu: [x64] os: [darwin] + '@img/sharp-darwin-x64@0.35.5': + resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [darwin] + + '@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.2.4': resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} cpu: [arm64] os: [darwin] + '@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==} cpu: [x64] os: [darwin] + '@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==} cpu: [arm64] os: [linux] libc: [glibc] + '@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==} cpu: [arm] os: [linux] libc: [glibc] + '@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==} cpu: [ppc64] os: [linux] libc: [glibc] + '@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==} cpu: [riscv64] os: [linux] libc: [glibc] + '@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==} cpu: [s390x] os: [linux] libc: [glibc] + '@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==} cpu: [x64] os: [linux] libc: [glibc] + '@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==} cpu: [arm64] os: [linux] libc: [musl] + '@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==} cpu: [x64] os: [linux] libc: [musl] + '@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} @@ -1634,6 +1928,13 @@ packages: os: [linux] libc: [glibc] + '@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} @@ -1641,6 +1942,13 @@ packages: os: [linux] libc: [glibc] + '@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} @@ -1648,6 +1956,13 @@ packages: os: [linux] libc: [glibc] + '@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} @@ -1655,6 +1970,13 @@ packages: os: [linux] libc: [glibc] + '@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} @@ -1662,6 +1984,13 @@ packages: os: [linux] libc: [glibc] + '@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} @@ -1669,6 +1998,13 @@ packages: os: [linux] libc: [glibc] + '@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} @@ -1676,6 +2012,13 @@ packages: os: [linux] libc: [musl] + '@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} @@ -1683,29 +2026,63 @@ packages: os: [linux] libc: [musl] + '@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} cpu: [wasm32] + '@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} cpu: [arm64] os: [win32] + '@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} cpu: [ia32] os: [win32] + '@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} cpu: [x64] os: [win32] + '@img/sharp-win32-x64@0.35.5': + resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} + engines: {node: '>=20.9.0'} + cpu: [x64] + os: [win32] + '@isaacs/cliui@9.0.0': resolution: {integrity: sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==} engines: {node: '>=18'} @@ -3615,6 +3992,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'} @@ -4127,6 +4509,11 @@ packages: engines: {node: '>=18'} hasBin: true + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -5046,6 +5433,10 @@ packages: engines: {node: '>=22.0.0'} hasBin: true + miniflare@5.20261023.3-beta: + resolution: {integrity: sha512-thdXzlktu5GE1o/BlmMAPeJ0Cu6Tu5LpMbRlyfRrpVvMRrhd6p52TMqcITCZZLVzt1UO92VGBkLDhLOpryUAyQ==} + engines: {node: '>=22.0.0'} + minimatch@10.2.5: resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} engines: {node: 18 || 20 || >=22} @@ -5559,8 +5950,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 @@ -5595,6 +5986,15 @@ packages: 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==} engines: {node: '>=8'} @@ -5904,6 +6304,10 @@ packages: resolution: {integrity: sha512-6KQ/+QxK49Z/p3HO6E5ZCZWNnCasyZLa5ExaVYyvPxUwKtbCPMKELJOqh7EqOle0t9cH/7d2TaaTRRa6Nhs4YQ==} engines: {node: '>=20.18.1'} + undici@7.30.1: + resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} + engines: {node: '>=20.18.1'} + unenv@2.0.0-rc.24: resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} @@ -6237,6 +6641,11 @@ packages: engines: {node: '>=16'} hasBin: true + 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==} @@ -6250,6 +6659,16 @@ packages: '@cloudflare/workers-types': optional: true + wrangler@4.156.0: + resolution: {integrity: sha512-kVLAShuLiNgE3jcrmXcymDf/iPKDPrSxACe5ueugW/33HeNB9E9CkKYchudCeBwgmsnl4k+1zt4NO7vqb/fRuQ==} + engines: {node: '>=22.0.0'} + hasBin: true + peerDependencies: + '@cloudflare/workers-types': ^5.20261023.1 + peerDependenciesMeta: + '@cloudflare/workers-types': + optional: true + wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -6269,6 +6688,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 +6750,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,29 +7600,67 @@ 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/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.1(unenv@2.0.0-rc.24)(workerd@1.20260616.1)': dependencies: unenv: 2.0.0-rc.24 optionalDependencies: workerd: 1.20260616.1 + '@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.20261023.1 + '@cloudflare/workerd-darwin-64@1.20260616.1': optional: true + '@cloudflare/workerd-darwin-64@1.20261023.1': + optional: true + '@cloudflare/workerd-darwin-arm64@1.20260616.1': optional: true + '@cloudflare/workerd-darwin-arm64@1.20261023.1': + optional: true + '@cloudflare/workerd-linux-64@1.20260616.1': optional: true + '@cloudflare/workerd-linux-64@1.20261023.1': + optional: true + '@cloudflare/workerd-linux-arm64@1.20260616.1': optional: true + '@cloudflare/workerd-linux-arm64@1.20261023.1': + optional: true + '@cloudflare/workerd-windows-64@1.20260616.1': optional: true + '@cloudflare/workerd-windows-64@1.20261023.1': + optional: true + '@cloudflare/workers-types@4.20260313.1': {} '@codemirror/autocomplete@6.20.2': @@ -7311,7 +7783,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 @@ -7322,156 +7794,234 @@ snapshots: '@esbuild/aix-ppc64@0.27.3': optional: true + '@esbuild/aix-ppc64@0.28.2': + optional: true + '@esbuild/android-arm64@0.25.12': optional: true '@esbuild/android-arm64@0.27.3': optional: true + '@esbuild/android-arm64@0.28.2': + optional: true + '@esbuild/android-arm@0.25.12': optional: true '@esbuild/android-arm@0.27.3': optional: true + '@esbuild/android-arm@0.28.2': + optional: true + '@esbuild/android-x64@0.25.12': optional: true '@esbuild/android-x64@0.27.3': optional: true + '@esbuild/android-x64@0.28.2': + optional: true + '@esbuild/darwin-arm64@0.25.12': optional: true '@esbuild/darwin-arm64@0.27.3': optional: true + '@esbuild/darwin-arm64@0.28.2': + optional: true + '@esbuild/darwin-x64@0.25.12': optional: true '@esbuild/darwin-x64@0.27.3': optional: true + '@esbuild/darwin-x64@0.28.2': + optional: true + '@esbuild/freebsd-arm64@0.25.12': optional: true '@esbuild/freebsd-arm64@0.27.3': optional: true + '@esbuild/freebsd-arm64@0.28.2': + optional: true + '@esbuild/freebsd-x64@0.25.12': optional: true '@esbuild/freebsd-x64@0.27.3': optional: true + '@esbuild/freebsd-x64@0.28.2': + optional: true + '@esbuild/linux-arm64@0.25.12': optional: true '@esbuild/linux-arm64@0.27.3': optional: true + '@esbuild/linux-arm64@0.28.2': + optional: true + '@esbuild/linux-arm@0.25.12': optional: true '@esbuild/linux-arm@0.27.3': optional: true + '@esbuild/linux-arm@0.28.2': + optional: true + '@esbuild/linux-ia32@0.25.12': optional: true '@esbuild/linux-ia32@0.27.3': optional: true + '@esbuild/linux-ia32@0.28.2': + optional: true + '@esbuild/linux-loong64@0.25.12': optional: true '@esbuild/linux-loong64@0.27.3': optional: true + '@esbuild/linux-loong64@0.28.2': + optional: true + '@esbuild/linux-mips64el@0.25.12': optional: true '@esbuild/linux-mips64el@0.27.3': optional: true + '@esbuild/linux-mips64el@0.28.2': + optional: true + '@esbuild/linux-ppc64@0.25.12': optional: true '@esbuild/linux-ppc64@0.27.3': optional: true + '@esbuild/linux-ppc64@0.28.2': + optional: true + '@esbuild/linux-riscv64@0.25.12': optional: true '@esbuild/linux-riscv64@0.27.3': optional: true + '@esbuild/linux-riscv64@0.28.2': + optional: true + '@esbuild/linux-s390x@0.25.12': optional: true '@esbuild/linux-s390x@0.27.3': optional: true + '@esbuild/linux-s390x@0.28.2': + optional: true + '@esbuild/linux-x64@0.25.12': optional: true '@esbuild/linux-x64@0.27.3': optional: true + '@esbuild/linux-x64@0.28.2': + optional: true + '@esbuild/netbsd-arm64@0.25.12': optional: true '@esbuild/netbsd-arm64@0.27.3': optional: true + '@esbuild/netbsd-arm64@0.28.2': + optional: true + '@esbuild/netbsd-x64@0.25.12': optional: true '@esbuild/netbsd-x64@0.27.3': optional: true + '@esbuild/netbsd-x64@0.28.2': + optional: true + '@esbuild/openbsd-arm64@0.25.12': optional: true '@esbuild/openbsd-arm64@0.27.3': optional: true + '@esbuild/openbsd-arm64@0.28.2': + optional: true + '@esbuild/openbsd-x64@0.25.12': optional: true '@esbuild/openbsd-x64@0.27.3': optional: true + '@esbuild/openbsd-x64@0.28.2': + optional: true + '@esbuild/openharmony-arm64@0.25.12': optional: true '@esbuild/openharmony-arm64@0.27.3': optional: true + '@esbuild/openharmony-arm64@0.28.2': + optional: true + '@esbuild/sunos-x64@0.25.12': optional: true '@esbuild/sunos-x64@0.27.3': optional: true + '@esbuild/sunos-x64@0.28.2': + optional: true + '@esbuild/win32-arm64@0.25.12': optional: true '@esbuild/win32-arm64@0.27.3': optional: true + '@esbuild/win32-arm64@0.28.2': + optional: true + '@esbuild/win32-ia32@0.25.12': optional: true '@esbuild/win32-ia32@0.27.3': optional: true + '@esbuild/win32-ia32@0.28.2': + optional: true + '@esbuild/win32-x64@0.25.12': optional: true '@esbuild/win32-x64@0.27.3': optional: true + '@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)': dependencies: '@braintree/sanitize-url': 6.0.2 @@ -7563,95 +8113,199 @@ snapshots: '@img/sharp-libvips-darwin-arm64': 1.2.4 optional: true + '@img/sharp-darwin-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-darwin-arm64': 1.3.4 + optional: true + '@img/sharp-darwin-x64@0.34.5': optionalDependencies: '@img/sharp-libvips-darwin-x64': 1.2.4 optional: true + '@img/sharp-darwin-x64@0.35.5': + optionalDependencies: + '@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': optional: true + '@img/sharp-libvips-darwin-arm64@1.3.4': + optional: true + '@img/sharp-libvips-darwin-x64@1.2.4': optional: true + '@img/sharp-libvips-darwin-x64@1.3.4': + optional: true + '@img/sharp-libvips-linux-arm64@1.2.4': optional: true + '@img/sharp-libvips-linux-arm64@1.3.4': + optional: true + '@img/sharp-libvips-linux-arm@1.2.4': optional: true + '@img/sharp-libvips-linux-arm@1.3.4': + optional: true + '@img/sharp-libvips-linux-ppc64@1.2.4': optional: true + '@img/sharp-libvips-linux-ppc64@1.3.4': + optional: true + '@img/sharp-libvips-linux-riscv64@1.2.4': optional: true + '@img/sharp-libvips-linux-riscv64@1.3.4': + optional: true + '@img/sharp-libvips-linux-s390x@1.2.4': optional: true + '@img/sharp-libvips-linux-s390x@1.3.4': + optional: true + '@img/sharp-libvips-linux-x64@1.2.4': optional: true + '@img/sharp-libvips-linux-x64@1.3.4': + optional: true + '@img/sharp-libvips-linuxmusl-arm64@1.2.4': optional: true + '@img/sharp-libvips-linuxmusl-arm64@1.3.4': + optional: true + '@img/sharp-libvips-linuxmusl-x64@1.2.4': optional: true + '@img/sharp-libvips-linuxmusl-x64@1.3.4': + optional: true + '@img/sharp-linux-arm64@0.34.5': optionalDependencies: '@img/sharp-libvips-linux-arm64': 1.2.4 optional: true + '@img/sharp-linux-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.3.4 + optional: true + '@img/sharp-linux-arm@0.34.5': optionalDependencies: '@img/sharp-libvips-linux-arm': 1.2.4 optional: true + '@img/sharp-linux-arm@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-arm': 1.3.4 + optional: true + '@img/sharp-linux-ppc64@0.34.5': optionalDependencies: '@img/sharp-libvips-linux-ppc64': 1.2.4 optional: true + '@img/sharp-linux-ppc64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-ppc64': 1.3.4 + optional: true + '@img/sharp-linux-riscv64@0.34.5': optionalDependencies: '@img/sharp-libvips-linux-riscv64': 1.2.4 optional: true + '@img/sharp-linux-riscv64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-riscv64': 1.3.4 + optional: true + '@img/sharp-linux-s390x@0.34.5': optionalDependencies: '@img/sharp-libvips-linux-s390x': 1.2.4 optional: true + '@img/sharp-linux-s390x@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-s390x': 1.3.4 + optional: true + '@img/sharp-linux-x64@0.34.5': optionalDependencies: '@img/sharp-libvips-linux-x64': 1.2.4 optional: true + '@img/sharp-linux-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linux-x64': 1.3.4 + optional: true + '@img/sharp-linuxmusl-arm64@0.34.5': optionalDependencies: '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 optional: true + '@img/sharp-linuxmusl-arm64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 + optional: true + '@img/sharp-linuxmusl-x64@0.34.5': optionalDependencies: '@img/sharp-libvips-linuxmusl-x64': 1.2.4 optional: true + '@img/sharp-linuxmusl-x64@0.35.5': + optionalDependencies: + '@img/sharp-libvips-linuxmusl-x64': 1.3.4 + optional: true + '@img/sharp-wasm32@0.34.5': dependencies: - '@emnapi/runtime': 1.11.1 + '@emnapi/runtime': 1.11.3 + optional: true + + '@img/sharp-wasm32@0.35.5': + dependencies: + '@emnapi/runtime': 1.11.3 + optional: true + + '@img/sharp-webcontainers-wasm32@0.35.5': + dependencies: + '@img/sharp-wasm32': 0.35.5 optional: true '@img/sharp-win32-arm64@0.34.5': optional: true + '@img/sharp-win32-arm64@0.35.5': + optional: true + '@img/sharp-win32-ia32@0.34.5': optional: true + '@img/sharp-win32-ia32@0.35.5': + optional: true + '@img/sharp-win32-x64@0.34.5': optional: true + '@img/sharp-win32-x64@0.35.5': + optional: true + '@isaacs/cliui@9.0.0': {} '@jridgewell/gen-mapping@0.3.13': @@ -9633,6 +10287,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: @@ -10256,6 +10922,35 @@ snapshots: '@esbuild/win32-ia32': 0.27.3 '@esbuild/win32-x64': 0.27.3 + esbuild@0.28.2: + optionalDependencies: + '@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: {} escape-html@1.0.3: {} @@ -11416,6 +12111,19 @@ snapshots: - bufferutil - utf-8-validate + miniflare@5.20261023.3-beta(@types/node@22.19.15): + dependencies: + '@cspotcode/source-map-support': 0.8.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 + minimatch@10.2.5: dependencies: brace-expansion: 5.0.6 @@ -12043,7 +12751,7 @@ snapshots: semver@6.3.1: {} - semver@7.8.4: {} + semver@7.8.5: {} send@1.2.1: dependencies: @@ -12100,7 +12808,7 @@ snapshots: 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 @@ -12127,6 +12835,39 @@ snapshots: '@img/sharp-win32-ia32': 0.34.5 '@img/sharp-win32-x64': 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.5 + optionalDependencies: + '@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: shebang-regex: 3.0.0 @@ -12468,6 +13209,8 @@ snapshots: undici@7.24.8: {} + undici@7.30.1: {} + unenv@2.0.0-rc.24: dependencies: pathe: 2.0.3 @@ -12852,6 +13595,14 @@ snapshots: '@cloudflare/workerd-linux-arm64': 1.20260616.1 '@cloudflare/workerd-windows-64': 1.20260616.1 + workerd@1.20261023.1: + optionalDependencies: + '@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: @@ -12870,6 +13621,24 @@ snapshots: - bufferutil - utf-8-validate + 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.2(unenv@2.0.0-rc.24)(workerd@1.20261023.1) + blake3-wasm: 2.1.5 + 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.20261023.1 + optionalDependencies: + '@cloudflare/workers-types': 4.20260313.1 + fsevents: 2.3.3 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - utf-8-validate + wrap-ansi@7.0.0: dependencies: ansi-styles: 4.3.0 @@ -12880,6 +13649,8 @@ snapshots: ws@8.20.1: {} + ws@8.21.0: {} + xml-name-validator@5.0.0: {} xmlchars@2.2.0: {} @@ -12933,6 +13704,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): From 0684708b59087a544574acfed4345125795b0072 Mon Sep 17 00:00:00 2001 From: Michael Burr Date: Fri, 6 Nov 2026 18:57:00 +0000 Subject: [PATCH 2/2] chore(deploy): finish cf migration for all four workers Resolve the cf migrate follow-ups and make cloudflare.config.ts the deploy source of truth for annex-{auth,api,admin,frontend}: - api: declare DocCollabRoom via worker.exports with storage "legacy-kv" (created with new_classes; the live namespace reports use_sqlite=false). - D1 migrations_dir: `pnpm migrate` and scripts/migrate.mjs now run `cf d1 migrations apply ` (default --dir ./migrations). - Add accountId so cf never prompts/fails on account selection in CI. - Install cf + wrangler (>=4.136, the cf delegate) in every worker package; bump root wrangler to the same range so the lockfile carries one version. - wrangler.config.ts: uploadSourceMaps: false to match the previous wrangler deploy default; admin/frontend keep assetsDirectory ./dist. - frontend: cf build detects Vite and would run `vite build`, so deploy via `cf-wrangler build` + `cf deploy --prebuilt` (new build:worker script). - deploy scripts use cf deploy; "type": "module" for api/auth/admin. - Port the operational comments from wrangler.toml into the new configs. - Keep wrangler.toml (mirrored) for `wrangler dev --persist-to` (cf dev cannot share one persist dir across workers yet) and `wrangler d1 execute --local` used by e2e/ops scripts; document the split in CLAUDE.md. - Ignore .cloudflare/ build output. --- .gitignore | 2 + CLAUDE.md | 10 + README.md | 12 +- docs/oauth/README.md | 8 +- memories/Custom-Domains.md | 4 +- memories/Ink-Stripe.md | 2 +- memories/Oidc-Provider.md | 2 +- package.json | 4 +- packages/admin/cloudflare.config.ts | 43 ++ packages/admin/package.json | 3 +- packages/admin/src/index.ts | 4 +- packages/admin/src/routes/oauth.ts | 2 +- packages/admin/wrangler.config.ts | 10 + packages/admin/wrangler.toml | 8 + packages/api/cloudflare.config.ts | 93 ++-- packages/api/package.json | 9 +- packages/api/src/index.ts | 2 +- packages/api/wrangler.config.ts | 13 + packages/api/wrangler.toml | 8 + packages/auth/cloudflare.config.ts | 65 ++- packages/auth/package.json | 8 +- packages/auth/wrangler.config.ts | 13 + packages/auth/wrangler.toml | 8 + packages/frontend/cloudflare.config.ts | 24 +- packages/frontend/package.json | 3 +- packages/frontend/wrangler.config.ts | 11 + packages/frontend/wrangler.toml | 8 + pnpm-lock.yaml | 681 +------------------------ scripts/migrate.mjs | 14 +- 29 files changed, 328 insertions(+), 746 deletions(-) create mode 100644 packages/api/wrangler.config.ts create mode 100644 packages/auth/wrangler.config.ts 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 index fecf002..8495fa5 100644 --- a/packages/admin/cloudflare.config.ts +++ b/packages/admin/cloudflare.config.ts @@ -1,11 +1,18 @@ 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", @@ -14,17 +21,32 @@ export default defineConfig({ "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", @@ -35,6 +57,11 @@ export default defineConfig({ 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: { @@ -42,6 +69,8 @@ export default defineConfig({ 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: { @@ -49,6 +78,9 @@ export default defineConfig({ 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: { @@ -57,6 +89,17 @@ export default defineConfig({ }, }), 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 7cf1dea..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" }, 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 index a9e813d..8da29cc 100644 --- a/packages/admin/wrangler.config.ts +++ b/packages/admin/wrangler.config.ts @@ -1,5 +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 index 11b6389..b188b08 100644 --- a/packages/api/cloudflare.config.ts +++ b/packages/api/cloudflare.config.ts @@ -1,25 +1,11 @@ -import { bindings, defineConfig, triggers } from "cf/config"; +import { bindings, defineConfig, exports, triggers } from "cf/config"; -/** - * This migration needs manual work. Resolve every TODO in this file, then remove the error below. - */ -/** - * TODO(@cloudflare): cf migrate: d1_databases.0: The options `migrations_dir` at `d1_databases.0` require manual migration. - */ -/** - * TODO(@cloudflare): cf migrate: durable_objects.bindings.0: Durable Object bindings require manual review after migration. - * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports - */ -/** - * TODO(@cloudflare): cf migrate: migrations: Wrangler Durable Object migrations are unsupported. Replace them with an exports lifecycle declaration, for example `exports: { MyDurableObject: exports.durableObject({ storage: "sqlite" }) }`. - * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports - */ -/** - * TODO(@cloudflare): cf migrate: Automatic dependency installation was disabled. Install `cf@latest` before using the generated configuration. - */ -throw new Error("Migration incomplete. Resolve every cf migrate TODO in `cloudflare.config.ts`."); +// 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", @@ -29,30 +15,70 @@ export default defineConfig({ 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", }), @@ -60,6 +86,10 @@ export default defineConfig({ 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: { @@ -67,6 +97,9 @@ export default defineConfig({ 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: { @@ -74,6 +107,9 @@ export default defineConfig({ 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: { @@ -81,17 +117,14 @@ export default defineConfig({ 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) }, - /** - * TODO(@cloudflare): cf migrate: The options `migrations_dir` at `d1_databases.0` require manual migration. - */ - /** - * TODO(@cloudflare): cf migrate: Durable Object bindings require manual review after migration. - * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports - */ - /** - * TODO(@cloudflare): cf migrate: Wrangler Durable Object migrations are unsupported. Replace them with an exports lifecycle declaration, for example `exports: { MyDurableObject: exports.durableObject({ storage: "sqlite" }) }`. - * @see https://developers.cloudflare.com/workers/runtime-apis/context/#exports - */ }, }); 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 index f17fce8..3ec31ac 100644 --- a/packages/auth/cloudflare.config.ts +++ b/packages/auth/cloudflare.config.ts @@ -1,14 +1,11 @@ import { bindings, defineConfig, triggers } from "cf/config"; -/** - * This migration needs manual work. Resolve every TODO in this file, then remove the error below. - */ -/** - * TODO(@cloudflare): cf migrate: d1_databases.0: The options `migrations_dir` at `d1_databases.0` require manual migration. - */ -throw new Error("Migration incomplete. Resolve every cf migrate TODO in `cloudflare.config.ts`."); +// 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", @@ -18,6 +15,13 @@ export default defineConfig({ 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", @@ -26,6 +30,7 @@ export default defineConfig({ 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", }), @@ -34,16 +39,38 @@ export default defineConfig({ 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", }), @@ -52,6 +79,11 @@ export default defineConfig({ "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: { @@ -73,6 +105,11 @@ export default defineConfig({ 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: { @@ -80,9 +117,17 @@ export default defineConfig({ 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.) }, - /** - * TODO(@cloudflare): cf migrate: The options `migrations_dir` at `d1_databases.0` require manual migration. - */ }, }); diff --git a/packages/auth/package.json b/packages/auth/package.json index 952e0e4..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" }, @@ -20,6 +21,7 @@ "@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 index 2cdad00..ae1b6b9 100644 --- a/packages/frontend/cloudflare.config.ts +++ b/packages/frontend/cloudflare.config.ts @@ -1,19 +1,32 @@ import { bindings, defineConfig, triggers } from "cf/config"; -/** - * Secret-like files were detected but not read or migrated: .env.production. Only `secrets.required` entries are migrated. - * @see https://developers.cloudflare.com/workers/configuration/secrets/ - */ +// .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", @@ -23,6 +36,9 @@ export default defineConfig({ 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", }), diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 34f2131..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" diff --git a/packages/frontend/wrangler.config.ts b/packages/frontend/wrangler.config.ts index a9e813d..985cba7 100644 --- a/packages/frontend/wrangler.config.ts +++ b/packages/frontend/wrangler.config.ts @@ -1,5 +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 aab694d..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: @@ -172,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: @@ -206,6 +212,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/frontend: dependencies: @@ -1100,15 +1109,6 @@ packages: '@cloudflare/runtime-types@0.1.19': resolution: {integrity: sha512-3ZQe25s1Uqo2HtWpz+ovBe0IhqS5od4Ja4Uf6z/hjTbdS9JJ2jnYxOcF6x3ioHuG2A7g3GK6e6ADtelMaCETzg==} - '@cloudflare/unenv-preset@2.16.1': - resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} - peerDependencies: - unenv: 2.0.0-rc.24 - workerd: '>1.20260305.0 <2.0.0-0' - peerDependenciesMeta: - workerd: - optional: true - '@cloudflare/unenv-preset@2.16.2': resolution: {integrity: sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==} peerDependencies: @@ -1118,60 +1118,30 @@ packages: workerd: optional: true - '@cloudflare/workerd-darwin-64@1.20260616.1': - resolution: {integrity: sha512-8QaDRQABkwkwoeviNiyScol7EQgXfGsPNSyUn52GiXObthY4XPiokoJsgDSDNcAelHjEvDLmdvQBHPK8YvGn4A==} - engines: {node: '>=16'} - cpu: [x64] - os: [darwin] - '@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==} - engines: {node: '>=16'} - cpu: [arm64] - os: [darwin] - '@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==} - engines: {node: '>=16'} - cpu: [x64] - os: [linux] - '@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==} - engines: {node: '>=16'} - cpu: [arm64] - os: [linux] - '@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==} - engines: {node: '>=16'} - cpu: [x64] - os: [win32] - '@cloudflare/workerd-windows-64@1.20261023.1': resolution: {integrity: sha512-279WLVjNsMycAwr0EZNiNEf0l2SY6NUtsN80NwZzbTHzakmiN+WSx4w38muxPm+PAU0oSPPAPXKVD+H6Hya8xw==} engines: {node: '>=16'} @@ -1261,12 +1231,6 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.27.3': - resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - '@esbuild/aix-ppc64@0.28.2': resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} engines: {node: '>=18'} @@ -1279,12 +1243,6 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.27.3': - resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - '@esbuild/android-arm64@0.28.2': resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} engines: {node: '>=18'} @@ -1297,12 +1255,6 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.27.3': - resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - '@esbuild/android-arm@0.28.2': resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} engines: {node: '>=18'} @@ -1315,12 +1267,6 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.27.3': - resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - '@esbuild/android-x64@0.28.2': resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} engines: {node: '>=18'} @@ -1333,12 +1279,6 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.27.3': - resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - '@esbuild/darwin-arm64@0.28.2': resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} engines: {node: '>=18'} @@ -1351,12 +1291,6 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.27.3': - resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - '@esbuild/darwin-x64@0.28.2': resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} engines: {node: '>=18'} @@ -1369,12 +1303,6 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.27.3': - resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - '@esbuild/freebsd-arm64@0.28.2': resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} engines: {node: '>=18'} @@ -1387,12 +1315,6 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.27.3': - resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - '@esbuild/freebsd-x64@0.28.2': resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} engines: {node: '>=18'} @@ -1405,12 +1327,6 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.27.3': - resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - '@esbuild/linux-arm64@0.28.2': resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} engines: {node: '>=18'} @@ -1423,12 +1339,6 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.27.3': - resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - '@esbuild/linux-arm@0.28.2': resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} engines: {node: '>=18'} @@ -1441,12 +1351,6 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.27.3': - resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - '@esbuild/linux-ia32@0.28.2': resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} engines: {node: '>=18'} @@ -1459,12 +1363,6 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.27.3': - resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - '@esbuild/linux-loong64@0.28.2': resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} engines: {node: '>=18'} @@ -1477,12 +1375,6 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.27.3': - resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - '@esbuild/linux-mips64el@0.28.2': resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} engines: {node: '>=18'} @@ -1495,12 +1387,6 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.27.3': - resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - '@esbuild/linux-ppc64@0.28.2': resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} engines: {node: '>=18'} @@ -1513,12 +1399,6 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.27.3': - resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - '@esbuild/linux-riscv64@0.28.2': resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} engines: {node: '>=18'} @@ -1531,12 +1411,6 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.27.3': - resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - '@esbuild/linux-s390x@0.28.2': resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} engines: {node: '>=18'} @@ -1549,12 +1423,6 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.27.3': - resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - '@esbuild/linux-x64@0.28.2': resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} engines: {node: '>=18'} @@ -1567,12 +1435,6 @@ packages: cpu: [arm64] os: [netbsd] - '@esbuild/netbsd-arm64@0.27.3': - resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - '@esbuild/netbsd-arm64@0.28.2': resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} engines: {node: '>=18'} @@ -1585,12 +1447,6 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.27.3': - resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - '@esbuild/netbsd-x64@0.28.2': resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} engines: {node: '>=18'} @@ -1603,12 +1459,6 @@ packages: cpu: [arm64] os: [openbsd] - '@esbuild/openbsd-arm64@0.27.3': - resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - '@esbuild/openbsd-arm64@0.28.2': resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} engines: {node: '>=18'} @@ -1621,12 +1471,6 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.27.3': - resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - '@esbuild/openbsd-x64@0.28.2': resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} engines: {node: '>=18'} @@ -1639,12 +1483,6 @@ packages: cpu: [arm64] os: [openharmony] - '@esbuild/openharmony-arm64@0.27.3': - resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openharmony] - '@esbuild/openharmony-arm64@0.28.2': resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} engines: {node: '>=18'} @@ -1657,12 +1495,6 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.27.3': - resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - '@esbuild/sunos-x64@0.28.2': resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} engines: {node: '>=18'} @@ -1675,12 +1507,6 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.27.3': - resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - '@esbuild/win32-arm64@0.28.2': resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} engines: {node: '>=18'} @@ -1693,12 +1519,6 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.27.3': - resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - '@esbuild/win32-ia32@0.28.2': resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} engines: {node: '>=18'} @@ -1711,12 +1531,6 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.27.3': - resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@esbuild/win32-x64@0.28.2': resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} engines: {node: '>=18'} @@ -1776,24 +1590,12 @@ 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} - cpu: [arm64] - os: [darwin] - '@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} - cpu: [x64] - os: [darwin] - '@img/sharp-darwin-x64@0.35.5': resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==} engines: {node: '>=20.9.0'} @@ -1805,129 +1607,64 @@ packages: engines: {node: '>=20.9.0'} os: [freebsd] - '@img/sharp-libvips-darwin-arm64@1.2.4': - resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==} - cpu: [arm64] - os: [darwin] - '@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==} - cpu: [x64] - os: [darwin] - '@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==} - cpu: [arm64] - os: [linux] - libc: [glibc] - '@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==} - cpu: [arm] - os: [linux] - libc: [glibc] - '@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==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - '@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==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - '@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==} - cpu: [s390x] - os: [linux] - libc: [glibc] - '@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==} - cpu: [x64] - os: [linux] - libc: [glibc] - '@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==} - cpu: [arm64] - os: [linux] - libc: [musl] - '@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==} - cpu: [x64] - os: [linux] - libc: [musl] - '@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} - cpu: [arm64] - os: [linux] - libc: [glibc] - '@img/sharp-linux-arm64@0.35.5': resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==} engines: {node: '>=20.9.0'} @@ -1935,13 +1672,6 @@ packages: 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} - cpu: [arm] - os: [linux] - libc: [glibc] - '@img/sharp-linux-arm@0.35.5': resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==} engines: {node: '>=20.9.0'} @@ -1949,13 +1679,6 @@ packages: 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} - cpu: [ppc64] - os: [linux] - libc: [glibc] - '@img/sharp-linux-ppc64@0.35.5': resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==} engines: {node: '>=20.9.0'} @@ -1963,13 +1686,6 @@ packages: 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} - cpu: [riscv64] - os: [linux] - libc: [glibc] - '@img/sharp-linux-riscv64@0.35.5': resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==} engines: {node: '>=20.9.0'} @@ -1977,13 +1693,6 @@ packages: 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} - cpu: [s390x] - os: [linux] - libc: [glibc] - '@img/sharp-linux-s390x@0.35.5': resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==} engines: {node: '>=20.9.0'} @@ -1991,13 +1700,6 @@ packages: 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} - cpu: [x64] - os: [linux] - libc: [glibc] - '@img/sharp-linux-x64@0.35.5': resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==} engines: {node: '>=20.9.0'} @@ -2005,13 +1707,6 @@ packages: 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} - cpu: [arm64] - os: [linux] - libc: [musl] - '@img/sharp-linuxmusl-arm64@0.35.5': resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==} engines: {node: '>=20.9.0'} @@ -2019,13 +1714,6 @@ packages: 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} - cpu: [x64] - os: [linux] - libc: [musl] - '@img/sharp-linuxmusl-x64@0.35.5': resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==} engines: {node: '>=20.9.0'} @@ -2033,11 +1721,6 @@ packages: 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} - cpu: [wasm32] - '@img/sharp-wasm32@0.35.5': resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==} engines: {node: '>=20.9.0'} @@ -2047,36 +1730,18 @@ packages: 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} - cpu: [arm64] - os: [win32] - '@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} - cpu: [ia32] - os: [win32] - '@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} - cpu: [x64] - os: [win32] - '@img/sharp-win32-x64@0.35.5': resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==} engines: {node: '>=20.9.0'} @@ -4504,11 +4169,6 @@ packages: engines: {node: '>=18'} hasBin: true - esbuild@0.27.3: - resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} - engines: {node: '>=18'} - hasBin: true - esbuild@0.28.2: resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} engines: {node: '>=18'} @@ -5428,11 +5088,6 @@ packages: resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} engines: {node: '>=4'} - miniflare@4.20260616.0: - resolution: {integrity: sha512-cEpzoNgSWjedzYmhJvttUPmL4Jk6nSzzeNNi118T5zwnmYP9fnM8UXwFU/Qa/1qoQ4SzGqtM1Q7tinHvHvIGtw==} - engines: {node: '>=22.0.0'} - hasBin: true - miniflare@5.20261023.3-beta: resolution: {integrity: sha512-thdXzlktu5GE1o/BlmMAPeJ0Cu6Tu5LpMbRlyfRrpVvMRrhd6p52TMqcITCZZLVzt1UO92VGBkLDhLOpryUAyQ==} engines: {node: '>=22.0.0'} @@ -5982,10 +5637,6 @@ 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'} @@ -6300,10 +5951,6 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici@7.24.8: - resolution: {integrity: sha512-6KQ/+QxK49Z/p3HO6E5ZCZWNnCasyZLa5ExaVYyvPxUwKtbCPMKELJOqh7EqOle0t9cH/7d2TaaTRRa6Nhs4YQ==} - engines: {node: '>=20.18.1'} - undici@7.30.1: resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} engines: {node: '>=20.18.1'} @@ -6636,11 +6283,6 @@ packages: workbox-window@7.4.0: resolution: {integrity: sha512-/bIYdBLAVsNR3v7gYGaV4pQW3M3kEPx5E8vDxGvxo6khTrGtSSCS7QiFKv9ogzBgZiy0OXLP9zO28U/1nF1mfw==} - workerd@1.20260616.1: - resolution: {integrity: sha512-aRGWYxviSjYZwyu97pCr5GyJ9ObpgmNcfZZs3/o+kG7Wz3SBTqA8d8uhNueY5u7ADeUp2ibJvK6mXkFLrUmPgg==} - engines: {node: '>=16'} - hasBin: true - workerd@1.20261023.1: resolution: {integrity: sha512-NeofJFyaYNpqKpFRJW3ApuonaerPd6/JWlfTtLDYf2A6ygqrDEFnYgEXmc0hhOxqnJsSM+kXJN6VebPojzRrsg==} engines: {node: '>=16'} @@ -6649,16 +6291,6 @@ packages: world-atlas@2.0.2: resolution: {integrity: sha512-IXfV0qwlKXpckz1FhwXVwKRjiIhOnWttOskm5CtxMsjgE/MXAYRHWJqgXOpM8IkcPBoXnyTU5lFHcYa5ChG0LQ==} - wrangler@4.101.0: - resolution: {integrity: sha512-dZDDiRcT7MiA09lBDxWKmiL/iybEZ+SZe3IZmnVx1m1n1DOo730vOY5SeO7z9xFK8a/+vhGKDYB8mDXrvzEr5g==} - engines: {node: '>=22.0.0'} - hasBin: true - peerDependencies: - '@cloudflare/workers-types': ^4.20260616.1 - peerDependenciesMeta: - '@cloudflare/workers-types': - optional: true - wrangler@4.156.0: resolution: {integrity: sha512-kVLAShuLiNgE3jcrmXcymDf/iPKDPrSxACe5ueugW/33HeNB9E9CkKYchudCeBwgmsnl4k+1zt4NO7vqb/fRuQ==} engines: {node: '>=22.0.0'} @@ -7619,45 +7251,24 @@ snapshots: - bufferutil - utf-8-validate - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260616.1)': - dependencies: - unenv: 2.0.0-rc.24 - optionalDependencies: - workerd: 1.20260616.1 - '@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.20261023.1 - '@cloudflare/workerd-darwin-64@1.20260616.1': - optional: true - '@cloudflare/workerd-darwin-64@1.20261023.1': optional: true - '@cloudflare/workerd-darwin-arm64@1.20260616.1': - optional: true - '@cloudflare/workerd-darwin-arm64@1.20261023.1': optional: true - '@cloudflare/workerd-linux-64@1.20260616.1': - optional: true - '@cloudflare/workerd-linux-64@1.20261023.1': optional: true - '@cloudflare/workerd-linux-arm64@1.20260616.1': - optional: true - '@cloudflare/workerd-linux-arm64@1.20261023.1': optional: true - '@cloudflare/workerd-windows-64@1.20260616.1': - optional: true - '@cloudflare/workerd-windows-64@1.20261023.1': optional: true @@ -7791,234 +7402,156 @@ snapshots: '@esbuild/aix-ppc64@0.25.12': optional: true - '@esbuild/aix-ppc64@0.27.3': - optional: true - '@esbuild/aix-ppc64@0.28.2': optional: true '@esbuild/android-arm64@0.25.12': optional: true - '@esbuild/android-arm64@0.27.3': - optional: true - '@esbuild/android-arm64@0.28.2': optional: true '@esbuild/android-arm@0.25.12': optional: true - '@esbuild/android-arm@0.27.3': - optional: true - '@esbuild/android-arm@0.28.2': optional: true '@esbuild/android-x64@0.25.12': optional: true - '@esbuild/android-x64@0.27.3': - optional: true - '@esbuild/android-x64@0.28.2': optional: true '@esbuild/darwin-arm64@0.25.12': optional: true - '@esbuild/darwin-arm64@0.27.3': - optional: true - '@esbuild/darwin-arm64@0.28.2': optional: true '@esbuild/darwin-x64@0.25.12': optional: true - '@esbuild/darwin-x64@0.27.3': - optional: true - '@esbuild/darwin-x64@0.28.2': optional: true '@esbuild/freebsd-arm64@0.25.12': optional: true - '@esbuild/freebsd-arm64@0.27.3': - optional: true - '@esbuild/freebsd-arm64@0.28.2': optional: true '@esbuild/freebsd-x64@0.25.12': optional: true - '@esbuild/freebsd-x64@0.27.3': - optional: true - '@esbuild/freebsd-x64@0.28.2': optional: true '@esbuild/linux-arm64@0.25.12': optional: true - '@esbuild/linux-arm64@0.27.3': - optional: true - '@esbuild/linux-arm64@0.28.2': optional: true '@esbuild/linux-arm@0.25.12': optional: true - '@esbuild/linux-arm@0.27.3': - optional: true - '@esbuild/linux-arm@0.28.2': optional: true '@esbuild/linux-ia32@0.25.12': optional: true - '@esbuild/linux-ia32@0.27.3': - optional: true - '@esbuild/linux-ia32@0.28.2': optional: true '@esbuild/linux-loong64@0.25.12': optional: true - '@esbuild/linux-loong64@0.27.3': - optional: true - '@esbuild/linux-loong64@0.28.2': optional: true '@esbuild/linux-mips64el@0.25.12': optional: true - '@esbuild/linux-mips64el@0.27.3': - optional: true - '@esbuild/linux-mips64el@0.28.2': optional: true '@esbuild/linux-ppc64@0.25.12': optional: true - '@esbuild/linux-ppc64@0.27.3': - optional: true - '@esbuild/linux-ppc64@0.28.2': optional: true '@esbuild/linux-riscv64@0.25.12': optional: true - '@esbuild/linux-riscv64@0.27.3': - optional: true - '@esbuild/linux-riscv64@0.28.2': optional: true '@esbuild/linux-s390x@0.25.12': optional: true - '@esbuild/linux-s390x@0.27.3': - optional: true - '@esbuild/linux-s390x@0.28.2': optional: true '@esbuild/linux-x64@0.25.12': optional: true - '@esbuild/linux-x64@0.27.3': - optional: true - '@esbuild/linux-x64@0.28.2': optional: true '@esbuild/netbsd-arm64@0.25.12': optional: true - '@esbuild/netbsd-arm64@0.27.3': - optional: true - '@esbuild/netbsd-arm64@0.28.2': optional: true '@esbuild/netbsd-x64@0.25.12': optional: true - '@esbuild/netbsd-x64@0.27.3': - optional: true - '@esbuild/netbsd-x64@0.28.2': optional: true '@esbuild/openbsd-arm64@0.25.12': optional: true - '@esbuild/openbsd-arm64@0.27.3': - optional: true - '@esbuild/openbsd-arm64@0.28.2': optional: true '@esbuild/openbsd-x64@0.25.12': optional: true - '@esbuild/openbsd-x64@0.27.3': - optional: true - '@esbuild/openbsd-x64@0.28.2': optional: true '@esbuild/openharmony-arm64@0.25.12': optional: true - '@esbuild/openharmony-arm64@0.27.3': - optional: true - '@esbuild/openharmony-arm64@0.28.2': optional: true '@esbuild/sunos-x64@0.25.12': optional: true - '@esbuild/sunos-x64@0.27.3': - optional: true - '@esbuild/sunos-x64@0.28.2': optional: true '@esbuild/win32-arm64@0.25.12': optional: true - '@esbuild/win32-arm64@0.27.3': - optional: true - '@esbuild/win32-arm64@0.28.2': optional: true '@esbuild/win32-ia32@0.25.12': optional: true - '@esbuild/win32-ia32@0.27.3': - optional: true - '@esbuild/win32-ia32@0.28.2': optional: true '@esbuild/win32-x64@0.25.12': optional: true - '@esbuild/win32-x64@0.27.3': - optional: true - '@esbuild/win32-x64@0.28.2': optional: true @@ -8108,21 +7641,11 @@ snapshots: '@img/colour@1.1.0': {} - '@img/sharp-darwin-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.2.4 - optional: true - '@img/sharp-darwin-arm64@0.35.5': optionalDependencies: '@img/sharp-libvips-darwin-arm64': 1.3.4 optional: true - '@img/sharp-darwin-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.2.4 - optional: true - '@img/sharp-darwin-x64@0.35.5': optionalDependencies: '@img/sharp-libvips-darwin-x64': 1.3.4 @@ -8133,151 +7656,76 @@ snapshots: '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-libvips-darwin-arm64@1.2.4': - optional: true - '@img/sharp-libvips-darwin-arm64@1.3.4': optional: true - '@img/sharp-libvips-darwin-x64@1.2.4': - optional: true - '@img/sharp-libvips-darwin-x64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm64@1.2.4': - optional: true - '@img/sharp-libvips-linux-arm64@1.3.4': optional: true - '@img/sharp-libvips-linux-arm@1.2.4': - optional: true - '@img/sharp-libvips-linux-arm@1.3.4': optional: true - '@img/sharp-libvips-linux-ppc64@1.2.4': - optional: true - '@img/sharp-libvips-linux-ppc64@1.3.4': optional: true - '@img/sharp-libvips-linux-riscv64@1.2.4': - optional: true - '@img/sharp-libvips-linux-riscv64@1.3.4': optional: true - '@img/sharp-libvips-linux-s390x@1.2.4': - optional: true - '@img/sharp-libvips-linux-s390x@1.3.4': optional: true - '@img/sharp-libvips-linux-x64@1.2.4': - optional: true - '@img/sharp-libvips-linux-x64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.2.4': - optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.3.4': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.2.4': - optional: true - '@img/sharp-libvips-linuxmusl-x64@1.3.4': optional: true - '@img/sharp-linux-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.2.4 - optional: true - '@img/sharp-linux-arm64@0.35.5': optionalDependencies: '@img/sharp-libvips-linux-arm64': 1.3.4 optional: true - '@img/sharp-linux-arm@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.2.4 - optional: true - '@img/sharp-linux-arm@0.35.5': optionalDependencies: '@img/sharp-libvips-linux-arm': 1.3.4 optional: true - '@img/sharp-linux-ppc64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.2.4 - optional: true - '@img/sharp-linux-ppc64@0.35.5': optionalDependencies: '@img/sharp-libvips-linux-ppc64': 1.3.4 optional: true - '@img/sharp-linux-riscv64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.2.4 - optional: true - '@img/sharp-linux-riscv64@0.35.5': optionalDependencies: '@img/sharp-libvips-linux-riscv64': 1.3.4 optional: true - '@img/sharp-linux-s390x@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.2.4 - optional: true - '@img/sharp-linux-s390x@0.35.5': optionalDependencies: '@img/sharp-libvips-linux-s390x': 1.3.4 optional: true - '@img/sharp-linux-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.2.4 - optional: true - '@img/sharp-linux-x64@0.35.5': optionalDependencies: '@img/sharp-libvips-linux-x64': 1.3.4 optional: true - '@img/sharp-linuxmusl-arm64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.2.4 - optional: true - '@img/sharp-linuxmusl-arm64@0.35.5': optionalDependencies: '@img/sharp-libvips-linuxmusl-arm64': 1.3.4 optional: true - '@img/sharp-linuxmusl-x64@0.34.5': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.2.4 - optional: true - '@img/sharp-linuxmusl-x64@0.35.5': optionalDependencies: '@img/sharp-libvips-linuxmusl-x64': 1.3.4 optional: true - '@img/sharp-wasm32@0.34.5': - dependencies: - '@emnapi/runtime': 1.11.3 - optional: true - '@img/sharp-wasm32@0.35.5': dependencies: '@emnapi/runtime': 1.11.3 @@ -8288,21 +7736,12 @@ snapshots: '@img/sharp-wasm32': 0.35.5 optional: true - '@img/sharp-win32-arm64@0.34.5': - optional: true - '@img/sharp-win32-arm64@0.35.5': optional: true - '@img/sharp-win32-ia32@0.34.5': - optional: true - '@img/sharp-win32-ia32@0.35.5': optional: true - '@img/sharp-win32-x64@0.34.5': - optional: true - '@img/sharp-win32-x64@0.35.5': optional: true @@ -10893,35 +10332,6 @@ snapshots: '@esbuild/win32-ia32': 0.25.12 '@esbuild/win32-x64': 0.25.12 - esbuild@0.27.3: - 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@0.28.2: optionalDependencies: '@esbuild/aix-ppc64': 0.28.2 @@ -12099,18 +11509,6 @@ snapshots: min-indent@1.0.1: {} - miniflare@4.20260616.0: - dependencies: - '@cspotcode/source-map-support': 0.8.1 - sharp: 0.34.5 - undici: 7.24.8 - workerd: 1.20260616.1 - ws: 8.20.1 - youch: 4.1.0-beta.10 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - miniflare@5.20261023.3-beta(@types/node@22.19.15): dependencies: '@cspotcode/source-map-support': 0.8.1 @@ -12804,37 +12202,6 @@ snapshots: setprototypeof@1.2.0: {} - sharp@0.34.5: - dependencies: - '@img/colour': 1.1.0 - detect-libc: 2.1.2 - 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 - sharp@0.35.5(@types/node@22.19.15): dependencies: '@img/colour': 1.1.0 @@ -13207,8 +12574,6 @@ snapshots: undici-types@6.21.0: {} - undici@7.24.8: {} - undici@7.30.1: {} unenv@2.0.0-rc.24: @@ -13587,14 +12952,6 @@ snapshots: '@types/trusted-types': 2.0.7 workbox-core: 7.4.0 - workerd@1.20260616.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 - workerd@1.20261023.1: optionalDependencies: '@cloudflare/workerd-darwin-64': 1.20261023.1 @@ -13605,22 +12962,6 @@ snapshots: world-atlas@2.0.2: {} - wrangler@4.101.0: - dependencies: - '@cloudflare/kv-asset-handler': 0.5.0 - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260616.1) - blake3-wasm: 2.1.5 - esbuild: 0.27.3 - miniflare: 4.20260616.0 - path-to-regexp: 6.3.0 - unenv: 2.0.0-rc.24 - workerd: 1.20260616.1 - optionalDependencies: - fsevents: 2.3.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - wrangler@4.156.0(@cloudflare/workers-types@4.20260313.1)(@types/node@22.19.15): dependencies: '@cloudflare/kv-asset-handler': 0.5.0 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 ); }