From b6bccbf6d4abb50a30e8c696dda6a27c760c6ad2 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sun, 22 Nov 2026 13:17:52 +0000 Subject: [PATCH 1/4] Deploy cf container probe through cf versions --- .github/workflows/cf-container-hello.yml | 47 ++++++++++++++++++++++++ pkgs/cf-container-hello/README.md | 20 ++++++++++ pkgs/cf-container-hello/deploy-args.mjs | 30 +++++++++++++++ pkgs/cf-container-hello/deploy.mjs | 40 ++++++++++++++++++++ pkgs/cf-container-hello/package.json | 3 +- 5 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 pkgs/cf-container-hello/deploy-args.mjs create mode 100644 pkgs/cf-container-hello/deploy.mjs diff --git a/.github/workflows/cf-container-hello.yml b/.github/workflows/cf-container-hello.yml index d773141153..87fbae1783 100644 --- a/.github/workflows/cf-container-hello.yml +++ b/.github/workflows/cf-container-hello.yml @@ -35,6 +35,20 @@ on: # .github/ci-policy.md "Nightly main CI"). - cron: "17 7 * * *" workflow_dispatch: + inputs: + operation: + description: "Choose the standalone probe operation" + required: true + type: choice + default: test + options: + - test + - publish-image + - activate + version_id: + description: "Worker version ID returned by publish-image (activate only)" + required: false + type: string permissions: contents: read @@ -50,6 +64,7 @@ concurrency: jobs: test: + if: github.event_name != 'workflow_dispatch' || inputs.operation == 'test' name: test runs-on: ubuntu-latest timeout-minutes: 10 @@ -73,3 +88,35 @@ jobs: - name: Run the #955 hardening suite working-directory: pkgs/cf-container-hello run: npm test + + publish-image: + if: github.event_name == 'workflow_dispatch' && inputs.operation == 'publish-image' + name: publish image reference + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Report image + working-directory: pkgs/cf-container-hello + run: node deploy.mjs publish-image + + activate: + if: github.event_name == 'workflow_dispatch' && inputs.operation == 'activate' + name: activate probe Worker + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + - name: Set up Node + uses: actions/setup-node@v7 + with: + node-version: 24 + - name: Install dependencies + working-directory: pkgs/cf-container-hello + run: npm ci + - name: Activate Worker + working-directory: pkgs/cf-container-hello + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + run: npm run deploy -- activate --version "${{ inputs.version_id }}" diff --git a/pkgs/cf-container-hello/README.md b/pkgs/cf-container-hello/README.md index c8bc846890..1fee44be37 100644 --- a/pkgs/cf-container-hello/README.md +++ b/pkgs/cf-container-hello/README.md @@ -58,6 +58,26 @@ pkgs/lab-ops-hub) crawler image recipe is what the probe runs. npm test # python3 -m unittest discover -s test -p "test_*.py" ``` +## Publishing and activation + +This package keeps its standalone `cf-container-hello` Worker identity. The +`HelloContainer` and `HelloLite` bindings use Cloudflare's official +`hello-world:v1` image, already present in the Cloudflare registry. There is +no locally built image to upload. `npm run publish-image` records that image +reference without changing the registry. `npm run publish-image` uses the +pinned Cloudflare `cf@1.0.0-beta.20 workers versions create` command to upload +a Worker version without activating it. Then activate that specific version +with `npm run deploy -- activate --version `. The manual workflow exposes +these as separate operations and accepts the uploaded version ID for activate. +Use `--dry-run` on publish-image to validate locally without an upload; +activation dry-run makes no API call. + +The workflow's manual `operation` input offers `test`, `publish-image`, and +`activate` as separate choices. Both upload and activation use the pinned cf +CLI and the `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` repository +secrets. The uploaded image reference remains the official hello-world image; +this flow versions the Worker bundle, it does not publish an OCI image. + `test/test_probe_hardening.py` pins the #955 regression: the production validator the probe now runs refuses `file://`, loopback, private-IP and redirect-to-private targets; no stale crawler copy exists in this diff --git a/pkgs/cf-container-hello/deploy-args.mjs b/pkgs/cf-container-hello/deploy-args.mjs new file mode 100644 index 0000000000..d84119a930 --- /dev/null +++ b/pkgs/cf-container-hello/deploy-args.mjs @@ -0,0 +1,30 @@ +// Strict CLI parser so typos cannot silently trigger a live Worker deploy. +export const USAGE = [ + "usage: deploy.mjs publish-image [--dry-run]", + " deploy.mjs activate --version [--dry-run]", +].join("\n"); + +export function parseArgs(argv) { + const [command, ...args] = argv; + if (!["publish-image", "activate"].includes(command)) { + throw new Error(`expected publish-image or activate\n${USAGE}`); + } + let dryRun = false; + let version = null; + for (let i = 0; i < args.length; i += 1) { + const arg = args[i]; + if (arg === "--dry-run" && !dryRun) { + dryRun = true; + continue; + } + if (arg === "--version" && command === "activate" && version === null) { + const value = args[i + 1]; + if (!value || value.startsWith("-")) throw new Error(`--version needs an id\n${USAGE}`); + version = value; + i += 1; + continue; + } + throw new Error(`unrecognized argument ${JSON.stringify(arg)}\n${USAGE}`); + } + return { command, dryRun, version }; +} diff --git a/pkgs/cf-container-hello/deploy.mjs b/pkgs/cf-container-hello/deploy.mjs new file mode 100644 index 0000000000..592f6f7ea7 --- /dev/null +++ b/pkgs/cf-container-hello/deploy.mjs @@ -0,0 +1,40 @@ +// Standalone deploy entrypoint for the known-good Cloudflare container probe. +// Image publication and Worker activation are separate commands by design: +// deploy.mjs publish-image [--dry-run] +// deploy.mjs activate [--dry-run] +// The probe uses Cloudflare's official hello-world image; there is no local +// image recipe to publish. `publish-image` uploads a Worker version with cf; +// `activate --version ` separately puts that existing version live. +// +// Every command-line form is checked before subprocesses or network access. +import { execFileSync } from "node:child_process"; +import { parseArgs } from "./deploy-args.mjs"; + +let options; +try { + options = parseArgs(process.argv.slice(2)); +} catch (error) { + console.error(`deploy.mjs: ${error.message}`); + process.exit(2); +} + +const WORKER = "cf-container-hello"; +if (options.command === "publish-image") { + const args = ["cf@1.0.0-beta.20", "workers", "versions", "create", "--worker-id", WORKER]; + if (options.dryRun) args.push("--dry-run"); + execFileSync("npx", args, { stdio: "inherit" }); + process.exit(0); +} +if (options.dryRun) { + console.error("activation dry-run is a no-op; no Cloudflare API call made"); + process.exit(0); +} +if (!options.version) { + console.error("activate requires --version from publish-image output"); + process.exit(2); +} +const versions = JSON.stringify([{ version_id: options.version, percentage: 100 }]); +execFileSync("npx", [ + "cf@1.0.0-beta.20", "workers", "deployments", "create", + "--worker-id", WORKER, "--strategy", "percentage", "--versions", versions, +], { stdio: "inherit" }); diff --git a/pkgs/cf-container-hello/package.json b/pkgs/cf-container-hello/package.json index 222f7ee9e3..5fd1edf916 100644 --- a/pkgs/cf-container-hello/package.json +++ b/pkgs/cf-container-hello/package.json @@ -3,7 +3,8 @@ "version": "0.0.1", "private": true, "scripts": { - "deploy": "wrangler deploy", + "deploy": "node deploy.mjs activate", + "publish-image": "node deploy.mjs publish-image", "test": "python3 -m unittest discover -s test -p \"test_*.py\"" }, "dependencies": { From 0c7e64c6d3aebc080f1d2326ab5c4943b0c805c3 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sun, 22 Nov 2026 13:42:27 +0000 Subject: [PATCH 2/4] Harden probe version promotion workflow --- .github/workflows/cf-container-hello.yml | 23 ++++++++++--- pkgs/cf-container-hello/README.md | 17 +++++----- pkgs/cf-container-hello/deploy-args.mjs | 3 ++ pkgs/cf-container-hello/deploy.mjs | 32 ++++++++++++++++++- .../test/test_workflow_deploy_guard.py | 31 ++++++++++++++++++ 5 files changed, 93 insertions(+), 13 deletions(-) create mode 100644 pkgs/cf-container-hello/test/test_workflow_deploy_guard.py diff --git a/.github/workflows/cf-container-hello.yml b/.github/workflows/cf-container-hello.yml index 87fbae1783..ae1d7a9132 100644 --- a/.github/workflows/cf-container-hello.yml +++ b/.github/workflows/cf-container-hello.yml @@ -90,20 +90,26 @@ jobs: run: npm test publish-image: - if: github.event_name == 'workflow_dispatch' && inputs.operation == 'publish-image' + if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.operation == 'publish-image' name: publish image reference runs-on: ubuntu-latest + environment: cf-container-hello steps: - name: Checkout uses: actions/checkout@v7 - name: Report image working-directory: pkgs/cf-container-hello + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CF_CONTAINER_HELLO_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + CF_VERSION_TAG: git-${{ github.sha }} run: node deploy.mjs publish-image activate: - if: github.event_name == 'workflow_dispatch' && inputs.operation == 'activate' + if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.operation == 'activate' name: activate probe Worker runs-on: ubuntu-latest + environment: cf-container-hello steps: - name: Checkout uses: actions/checkout@v7 @@ -114,9 +120,18 @@ jobs: - name: Install dependencies working-directory: pkgs/cf-container-hello run: npm ci + - name: Validate version ID + env: + CF_VERSION_ID: ${{ inputs.version_id }} + run: | + if [[ ! "$CF_VERSION_ID" =~ ^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}$ ]]; then + echo "version_id must be a UUID" >&2 + exit 2 + fi - name: Activate Worker working-directory: pkgs/cf-container-hello env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CF_CONTAINER_HELLO_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - run: npm run deploy -- activate --version "${{ inputs.version_id }}" + CF_VERSION_TAG: git-${{ github.sha }} + run: npm run deploy -- activate --version "$CF_VERSION_ID" diff --git a/pkgs/cf-container-hello/README.md b/pkgs/cf-container-hello/README.md index 1fee44be37..85ff8305ba 100644 --- a/pkgs/cf-container-hello/README.md +++ b/pkgs/cf-container-hello/README.md @@ -63,19 +63,20 @@ npm test # python3 -m unittest discover -s test -p "test_*.py" This package keeps its standalone `cf-container-hello` Worker identity. The `HelloContainer` and `HelloLite` bindings use Cloudflare's official `hello-world:v1` image, already present in the Cloudflare registry. There is -no locally built image to upload. `npm run publish-image` records that image -reference without changing the registry. `npm run publish-image` uses the -pinned Cloudflare `cf@1.0.0-beta.20 workers versions create` command to upload -a Worker version without activating it. Then activate that specific version -with `npm run deploy -- activate --version `. The manual workflow exposes -these as separate operations and accepts the uploaded version ID for activate. +no locally built image to upload. `npm run publish-image` uses the pinned +Cloudflare `cf@1.0.0-beta.20 workers versions create` command to upload a +Worker version tagged with the commit SHA, without activating it. Then activate +that specific version with `npm run deploy -- activate --version `. The +manual workflow verifies that version's tag matches the current main commit, +then reads back deployments to confirm the version serves at 100%. Use `--dry-run` on publish-image to validate locally without an upload; activation dry-run makes no API call. The workflow's manual `operation` input offers `test`, `publish-image`, and `activate` as separate choices. Both upload and activation use the pinned cf -CLI and the `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` repository -secrets. The uploaded image reference remains the official hello-world image; +CLI and the `CF_CONTAINER_HELLO_API_TOKEN` secret in the protected +`cf-container-hello` environment. The uploaded image reference remains the +official hello-world image; this flow versions the Worker bundle, it does not publish an OCI image. `test/test_probe_hardening.py` pins the #955 regression: the production diff --git a/pkgs/cf-container-hello/deploy-args.mjs b/pkgs/cf-container-hello/deploy-args.mjs index d84119a930..e2dc8e5526 100644 --- a/pkgs/cf-container-hello/deploy-args.mjs +++ b/pkgs/cf-container-hello/deploy-args.mjs @@ -20,6 +20,9 @@ export function parseArgs(argv) { if (arg === "--version" && command === "activate" && version === null) { const value = args[i + 1]; if (!value || value.startsWith("-")) throw new Error(`--version needs an id\n${USAGE}`); + if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value)) { + throw new Error(`--version must be a UUID\n${USAGE}`); + } version = value; i += 1; continue; diff --git a/pkgs/cf-container-hello/deploy.mjs b/pkgs/cf-container-hello/deploy.mjs index 592f6f7ea7..5aede8b0a3 100644 --- a/pkgs/cf-container-hello/deploy.mjs +++ b/pkgs/cf-container-hello/deploy.mjs @@ -20,7 +20,8 @@ try { const WORKER = "cf-container-hello"; if (options.command === "publish-image") { - const args = ["cf@1.0.0-beta.20", "workers", "versions", "create", "--worker-id", WORKER]; + const tag = requireEnv("CF_VERSION_TAG"); + const args = ["cf@1.0.0-beta.20", "workers", "versions", "create", "--worker-id", WORKER, "--tag", tag]; if (options.dryRun) args.push("--dry-run"); execFileSync("npx", args, { stdio: "inherit" }); process.exit(0); @@ -33,8 +34,37 @@ if (!options.version) { console.error("activate requires --version from publish-image output"); process.exit(2); } +const expectedTag = requireEnv("CF_VERSION_TAG"); +const versionsOut = execFileSync("npx", ["cf@1.0.0-beta.20", "workers", "versions", "list", "--worker-id", WORKER], { encoding: "utf8" }); +const listed = parseJsonOutput(versionsOut); +const available = Array.isArray(listed) ? listed : listed.result ?? listed.versions; +const target = available?.find((version) => version.id === options.version); +if (!target || target.annotations?.["workers/tag"] !== expectedTag) { + throw new Error(`version ${options.version} is not an upload from this workflow commit (${expectedTag})`); +} const versions = JSON.stringify([{ version_id: options.version, percentage: 100 }]); execFileSync("npx", [ "cf@1.0.0-beta.20", "workers", "deployments", "create", "--worker-id", WORKER, "--strategy", "percentage", "--versions", versions, ], { stdio: "inherit" }); +const deploymentsOut = execFileSync("npx", ["cf@1.0.0-beta.20", "workers", "deployments", "list", "--worker-id", WORKER], { encoding: "utf8" }); +const deploymentData = parseJsonOutput(deploymentsOut); +const deployments = Array.isArray(deploymentData) ? deploymentData : deploymentData.result ?? deploymentData.deployments; +const latest = deployments?.[0]; +if (!latest?.versions?.some((version) => version.version_id === options.version && version.percentage === 100)) { + throw new Error(`deployment readback did not confirm version ${options.version} at 100%`); +} + +function requireEnv(name) { + const value = process.env[name]; + if (!value) throw new Error(`${name} is required`); + return value; +} + +function parseJsonOutput(output) { + try { + return JSON.parse(output); + } catch { + throw new Error(`cf returned unexpected non-JSON output: ${output.slice(0, 200)}`); + } +} diff --git a/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py b/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py new file mode 100644 index 0000000000..d0a382d585 --- /dev/null +++ b/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py @@ -0,0 +1,31 @@ +"""Structural safety guard for the manual standalone probe deploy workflow.""" +from pathlib import Path +import unittest + + +WORKFLOW = Path(__file__).resolve().parents[3] / ".github/workflows/cf-container-hello.yml" + + +class WorkflowDeployGuardTest(unittest.TestCase): + def test_manual_mutations_are_main_only_and_use_dedicated_environment(self): + workflow = WORKFLOW.read_text() + self.assertIn("github.ref == 'refs/heads/main' && inputs.operation == 'publish-image'", workflow) + self.assertIn("github.ref == 'refs/heads/main' && inputs.operation == 'activate'", workflow) + self.assertIn("environment: cf-container-hello", workflow) + self.assertIn("secrets.CF_CONTAINER_HELLO_API_TOKEN", workflow) + self.assertNotIn("secrets.CLOUDFLARE_API_TOKEN", workflow) + activation = workflow.split(" activate:\n", 1)[1] + + def test_version_input_is_env_mapped_validated_before_credentialed_step(self): + workflow = WORKFLOW.read_text() + activation = workflow.split(" activate:\n", 1)[1] + self.assertNotIn('${{ inputs.version_id }}"', activation) + self.assertIn("CF_VERSION_ID: ${{ inputs.version_id }}", activation) + self.assertIn("version_id must be a UUID", activation) + self.assertLess(activation.index("- name: Validate version ID"), activation.index("- name: Activate Worker")) + self.assertIn('activate --version "$CF_VERSION_ID"', activation) + self.assertIn("CF_VERSION_TAG: git-${{ github.sha }}", activation) + + +if __name__ == "__main__": + unittest.main() From df94943e19bf70325da4b5563e1d8cf57741a81c Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 07:26:57 +0000 Subject: [PATCH 3/4] Keep probe release staging manual and fail closed --- .github/workflows/cf-container-hello.yml | 78 +- pkgs/cf-container-hello/README.md | 33 +- pkgs/cf-container-hello/deploy-args.mjs | 33 - pkgs/cf-container-hello/deploy.mjs | 70 - pkgs/cf-container-hello/package.json | 3 +- .../release-tools/package-lock.json | 1652 +++++++++++++++++ .../release-tools/package.json | 10 + .../release-tools/verify-config.mjs | 18 + .../test/test_workflow_deploy_guard.py | 46 +- 9 files changed, 1748 insertions(+), 195 deletions(-) delete mode 100644 pkgs/cf-container-hello/deploy-args.mjs delete mode 100644 pkgs/cf-container-hello/deploy.mjs create mode 100644 pkgs/cf-container-hello/release-tools/package-lock.json create mode 100644 pkgs/cf-container-hello/release-tools/package.json create mode 100644 pkgs/cf-container-hello/release-tools/verify-config.mjs diff --git a/.github/workflows/cf-container-hello.yml b/.github/workflows/cf-container-hello.yml index ae1d7a9132..ace2bdda06 100644 --- a/.github/workflows/cf-container-hello.yml +++ b/.github/workflows/cf-container-hello.yml @@ -36,19 +36,11 @@ on: - cron: "17 7 * * *" workflow_dispatch: inputs: - operation: - description: "Choose the standalone probe operation" + stage_versions: + description: "Build and dry-run an unpromoted Worker Version (no upload)" required: true - type: choice - default: test - options: - - test - - publish-image - - activate - version_id: - description: "Worker version ID returned by publish-image (activate only)" - required: false - type: string + type: boolean + default: false permissions: contents: read @@ -64,7 +56,6 @@ concurrency: jobs: test: - if: github.event_name != 'workflow_dispatch' || inputs.operation == 'test' name: test runs-on: ubuntu-latest timeout-minutes: 10 @@ -89,49 +80,34 @@ jobs: working-directory: pkgs/cf-container-hello run: npm test - publish-image: - if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.operation == 'publish-image' - name: publish image reference - runs-on: ubuntu-latest - environment: cf-container-hello - steps: - - name: Checkout - uses: actions/checkout@v7 - - name: Report image - working-directory: pkgs/cf-container-hello - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CF_CONTAINER_HELLO_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - CF_VERSION_TAG: git-${{ github.sha }} - run: node deploy.mjs publish-image - - activate: - if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' && inputs.operation == 'activate' - name: activate probe Worker - runs-on: ubuntu-latest - environment: cf-container-hello + stage-versions: + if: github.event_name == 'workflow_dispatch' && inputs.stage_versions == true && github.repository == 'developing-today/code' && github.ref == 'refs/heads/main' + name: validate Worker Version staging (dry-run) + runs-on: ubuntu-24.04 + timeout-minutes: 15 steps: - - name: Checkout + - name: Checkout main source uses: actions/checkout@v7 - name: Set up Node uses: actions/setup-node@v7 with: - node-version: 24 - - name: Install dependencies + node-version: 24.22.0 + - name: Install isolated pinned cf toolchain + working-directory: pkgs/cf-container-hello/release-tools + run: | + npm ci --no-audit --no-fund + test ! -e ../node_modules + ln -s release-tools/node_modules ../node_modules + test "$(../node_modules/.bin/cf --version)" = "1.0.0-rc.1" + - name: Verify standalone probe bindings and image refs working-directory: pkgs/cf-container-hello - run: npm ci - - name: Validate version ID - env: - CF_VERSION_ID: ${{ inputs.version_id }} run: | - if [[ ! "$CF_VERSION_ID" =~ ^[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}$ ]]; then - echo "version_id must be a UUID" >&2 - exit 2 - fi - - name: Activate Worker + node release-tools/verify-config.mjs + - name: Dry-run Workers Versions upload only working-directory: pkgs/cf-container-hello - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CF_CONTAINER_HELLO_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - CF_VERSION_TAG: git-${{ github.sha }} - run: npm run deploy -- activate --version "$CF_VERSION_ID" + run: >- + ./release-tools/node_modules/.bin/cf workers versions create + --worker cf-container-hello + --tag "git-${GITHUB_SHA::12}" + --message "git ${GITHUB_SHA}" + --dry-run diff --git a/pkgs/cf-container-hello/README.md b/pkgs/cf-container-hello/README.md index 85ff8305ba..bdc0a98934 100644 --- a/pkgs/cf-container-hello/README.md +++ b/pkgs/cf-container-hello/README.md @@ -58,26 +58,19 @@ pkgs/lab-ops-hub) crawler image recipe is what the probe runs. npm test # python3 -m unittest discover -s test -p "test_*.py" ``` -## Publishing and activation - -This package keeps its standalone `cf-container-hello` Worker identity. The -`HelloContainer` and `HelloLite` bindings use Cloudflare's official -`hello-world:v1` image, already present in the Cloudflare registry. There is -no locally built image to upload. `npm run publish-image` uses the pinned -Cloudflare `cf@1.0.0-beta.20 workers versions create` command to upload a -Worker version tagged with the commit SHA, without activating it. Then activate -that specific version with `npm run deploy -- activate --version `. The -manual workflow verifies that version's tag matches the current main commit, -then reads back deployments to confirm the version serves at 100%. -Use `--dry-run` on publish-image to validate locally without an upload; -activation dry-run makes no API call. - -The workflow's manual `operation` input offers `test`, `publish-image`, and -`activate` as separate choices. Both upload and activation use the pinned cf -CLI and the `CF_CONTAINER_HELLO_API_TOKEN` secret in the protected -`cf-container-hello` environment. The uploaded image reference remains the -official hello-world image; -this flow versions the Worker bundle, it does not publish an OCI image. +## Versions staging preview + +The workflow has an optional manual `stage_versions` input, defaulting to +false. If enabled on the trusted `main` branch, it installs the isolated, +lockfile-pinned `cf`/Wrangler toolchain, checks this Worker's image pins and +SQLite Durable Object exports, then runs `cf workers versions create --dry-run`. +It does not upload a version or activate one; the normal `npm run deploy` +operator path remains `wrangler deploy`. + +The crawler image pin is the `:v5` tag. Cloudflare's available version and +container metadata does not establish an immutable image digest, so this +preview cannot prove a release receipt or promotion candidate. Real staging +and promotion remain blocked until an immutable image digest can be verified. `test/test_probe_hardening.py` pins the #955 regression: the production validator the probe now runs refuses `file://`, loopback, private-IP diff --git a/pkgs/cf-container-hello/deploy-args.mjs b/pkgs/cf-container-hello/deploy-args.mjs deleted file mode 100644 index e2dc8e5526..0000000000 --- a/pkgs/cf-container-hello/deploy-args.mjs +++ /dev/null @@ -1,33 +0,0 @@ -// Strict CLI parser so typos cannot silently trigger a live Worker deploy. -export const USAGE = [ - "usage: deploy.mjs publish-image [--dry-run]", - " deploy.mjs activate --version [--dry-run]", -].join("\n"); - -export function parseArgs(argv) { - const [command, ...args] = argv; - if (!["publish-image", "activate"].includes(command)) { - throw new Error(`expected publish-image or activate\n${USAGE}`); - } - let dryRun = false; - let version = null; - for (let i = 0; i < args.length; i += 1) { - const arg = args[i]; - if (arg === "--dry-run" && !dryRun) { - dryRun = true; - continue; - } - if (arg === "--version" && command === "activate" && version === null) { - const value = args[i + 1]; - if (!value || value.startsWith("-")) throw new Error(`--version needs an id\n${USAGE}`); - if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value)) { - throw new Error(`--version must be a UUID\n${USAGE}`); - } - version = value; - i += 1; - continue; - } - throw new Error(`unrecognized argument ${JSON.stringify(arg)}\n${USAGE}`); - } - return { command, dryRun, version }; -} diff --git a/pkgs/cf-container-hello/deploy.mjs b/pkgs/cf-container-hello/deploy.mjs deleted file mode 100644 index 5aede8b0a3..0000000000 --- a/pkgs/cf-container-hello/deploy.mjs +++ /dev/null @@ -1,70 +0,0 @@ -// Standalone deploy entrypoint for the known-good Cloudflare container probe. -// Image publication and Worker activation are separate commands by design: -// deploy.mjs publish-image [--dry-run] -// deploy.mjs activate [--dry-run] -// The probe uses Cloudflare's official hello-world image; there is no local -// image recipe to publish. `publish-image` uploads a Worker version with cf; -// `activate --version ` separately puts that existing version live. -// -// Every command-line form is checked before subprocesses or network access. -import { execFileSync } from "node:child_process"; -import { parseArgs } from "./deploy-args.mjs"; - -let options; -try { - options = parseArgs(process.argv.slice(2)); -} catch (error) { - console.error(`deploy.mjs: ${error.message}`); - process.exit(2); -} - -const WORKER = "cf-container-hello"; -if (options.command === "publish-image") { - const tag = requireEnv("CF_VERSION_TAG"); - const args = ["cf@1.0.0-beta.20", "workers", "versions", "create", "--worker-id", WORKER, "--tag", tag]; - if (options.dryRun) args.push("--dry-run"); - execFileSync("npx", args, { stdio: "inherit" }); - process.exit(0); -} -if (options.dryRun) { - console.error("activation dry-run is a no-op; no Cloudflare API call made"); - process.exit(0); -} -if (!options.version) { - console.error("activate requires --version from publish-image output"); - process.exit(2); -} -const expectedTag = requireEnv("CF_VERSION_TAG"); -const versionsOut = execFileSync("npx", ["cf@1.0.0-beta.20", "workers", "versions", "list", "--worker-id", WORKER], { encoding: "utf8" }); -const listed = parseJsonOutput(versionsOut); -const available = Array.isArray(listed) ? listed : listed.result ?? listed.versions; -const target = available?.find((version) => version.id === options.version); -if (!target || target.annotations?.["workers/tag"] !== expectedTag) { - throw new Error(`version ${options.version} is not an upload from this workflow commit (${expectedTag})`); -} -const versions = JSON.stringify([{ version_id: options.version, percentage: 100 }]); -execFileSync("npx", [ - "cf@1.0.0-beta.20", "workers", "deployments", "create", - "--worker-id", WORKER, "--strategy", "percentage", "--versions", versions, -], { stdio: "inherit" }); -const deploymentsOut = execFileSync("npx", ["cf@1.0.0-beta.20", "workers", "deployments", "list", "--worker-id", WORKER], { encoding: "utf8" }); -const deploymentData = parseJsonOutput(deploymentsOut); -const deployments = Array.isArray(deploymentData) ? deploymentData : deploymentData.result ?? deploymentData.deployments; -const latest = deployments?.[0]; -if (!latest?.versions?.some((version) => version.version_id === options.version && version.percentage === 100)) { - throw new Error(`deployment readback did not confirm version ${options.version} at 100%`); -} - -function requireEnv(name) { - const value = process.env[name]; - if (!value) throw new Error(`${name} is required`); - return value; -} - -function parseJsonOutput(output) { - try { - return JSON.parse(output); - } catch { - throw new Error(`cf returned unexpected non-JSON output: ${output.slice(0, 200)}`); - } -} diff --git a/pkgs/cf-container-hello/package.json b/pkgs/cf-container-hello/package.json index 5fd1edf916..222f7ee9e3 100644 --- a/pkgs/cf-container-hello/package.json +++ b/pkgs/cf-container-hello/package.json @@ -3,8 +3,7 @@ "version": "0.0.1", "private": true, "scripts": { - "deploy": "node deploy.mjs activate", - "publish-image": "node deploy.mjs publish-image", + "deploy": "wrangler deploy", "test": "python3 -m unittest discover -s test -p \"test_*.py\"" }, "dependencies": { diff --git a/pkgs/cf-container-hello/release-tools/package-lock.json b/pkgs/cf-container-hello/release-tools/package-lock.json new file mode 100644 index 0000000000..4d8e18e6fe --- /dev/null +++ b/pkgs/cf-container-hello/release-tools/package-lock.json @@ -0,0 +1,1652 @@ +{ + "name": "cf-container-hello-release-tools", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "cf-container-hello-release-tools", + "version": "1.0.0", + "dependencies": { + "@cloudflare/containers": "0.0.31", + "cf": "1.0.0-rc.1", + "wrangler": "4.163.0" + } + }, + "node_modules/@cloudflare/build-output-utils": { + "version": "1.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@cloudflare/build-output-utils/-/build-output-utils-1.0.0-rc.1.tgz", + "integrity": "sha512-IrzZL1UEdVMZPRarrKu2VpnL3MIeNVhCItTebB88SwQ1YJ4mLAe1kQtXmIH7MpdgDYnxAsTZXMtuw9q5jRWCcw==", + "license": "MIT", + "dependencies": { + "@cloudflare/config": "1.0.0-rc.1" + } + }, + "node_modules/@cloudflare/config": { + "version": "1.0.0-rc.1", + "resolved": "https://registry.npmjs.org/@cloudflare/config/-/config-1.0.0-rc.1.tgz", + "integrity": "sha512-NQgB+fQbk8IU0iJ6/G9LCSQjJ7JuyRn5CALrPKnQ8vxqayOJlX+av9adhLCMYBeC80ocncW1Gy7quv00uLV3LQ==", + "license": "MIT", + "dependencies": { + "zod": "4.6.6" + } + }, + "node_modules/@cloudflare/containers": { + "version": "0.0.31", + "resolved": "https://registry.npmjs.org/@cloudflare/containers/-/containers-0.0.31.tgz", + "integrity": "sha512-zHxW6/JMzvK9To98OcNg2d3eiZUZRg11pARmQpJJyQdIQ0eQ/dh/Wpufx+HGd0k/xjMdrFP77YnOeopxdzsgng==", + "license": "ISC" + }, + "node_modules/@cloudflare/kv-asset-handler": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.5.0.tgz", + "integrity": "sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==", + "license": "MIT OR Apache-2.0", + "engines": { + "node": ">=22.0.0" + } + }, + "node_modules/@cloudflare/runtime-types": { + "version": "0.1.30", + "resolved": "https://registry.npmjs.org/@cloudflare/runtime-types/-/runtime-types-0.1.30.tgz", + "integrity": "sha512-p68T70lDZT7Vyv5c2SDzB0uqVRVCtj/3WMgXVQESnWVyTybcCwXRM9Ekmh2rQ+aPGhtIWiACvd8pX2yGA9Z5mw==", + "license": "MIT", + "dependencies": { + "miniflare": "5.20261117.0-beta", + "workerd": "1.20261117.1" + } + }, + "node_modules/@cloudflare/unenv-preset": { + "version": "2.16.2", + "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.2.tgz", + "integrity": "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==", + "license": "MIT OR Apache-2.0", + "peerDependencies": { + "unenv": "2.0.0-rc.24", + "workerd": ">1.20260305.0 <2.0.0-0" + }, + "peerDependenciesMeta": { + "workerd": { + "optional": true + } + } + }, + "node_modules/@cloudflare/workerd-darwin-64": { + "version": "1.20261117.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261117.1.tgz", + "integrity": "sha512-qfAYw6iPoey0BmPsp4z5ARWOa+XSBD3gQzmcBI2ql9pKTSA5eEC8F1oI6BIk/FVguhomfSn5gS4RzbWhTd/EpQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-darwin-arm64": { + "version": "1.20261117.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261117.1.tgz", + "integrity": "sha512-cInx5Cr9O27oW+ujyI49lTRQZra/lMgWUFiKmGY3jxDncATSxzfQ6udXHkVvK4//1/PfxQTDyMjdQUIN8m6Aqg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-linux-64": { + "version": "1.20261117.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261117.1.tgz", + "integrity": "sha512-gZLA8X11m/luZwn+YA3+mDu61vdxNJzpksP/QZqjydKTQ+VUCulsK5gtn9Bqst1p3KJu2kafQpJ1nDQv4B23jA==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-linux-arm64": { + "version": "1.20261117.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261117.1.tgz", + "integrity": "sha512-gxWngFojq41ULKNKb9rpWYvKotN5hT2I/xot+Bpy31cXzrwcTgtDLSMb2t75sW5BJxH7hihFvikgYb577kB3Zg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cloudflare/workerd-windows-64": { + "version": "1.20261117.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261117.1.tgz", + "integrity": "sha512-0OR2Btx5EDonOKvvuGDq8rxBSggxoF1ThQjbZN3vsu3GlaF/oXW5f9/iB78OgV0CzMPTi+hZgzc1NR95UJCURA==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", + "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", + "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", + "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", + "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", + "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", + "cpu": [ + "arm" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", + "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", + "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", + "cpu": [ + "ppc64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", + "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", + "cpu": [ + "riscv64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", + "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", + "cpu": [ + "s390x" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", + "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", + "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", + "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", + "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", + "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", + "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", + "cpu": [ + "ppc64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", + "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", + "cpu": [ + "riscv64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", + "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", + "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", + "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", + "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", + "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", + "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", + "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", + "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", + "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", + "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@poppinss/colors": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@poppinss/colors/-/colors-4.1.6.tgz", + "integrity": "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==", + "license": "MIT", + "dependencies": { + "kleur": "^4.1.5" + } + }, + "node_modules/@poppinss/dumper": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@poppinss/dumper/-/dumper-0.6.5.tgz", + "integrity": "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==", + "license": "MIT", + "dependencies": { + "@poppinss/colors": "^4.1.5", + "@sindresorhus/is": "^7.0.2", + "supports-color": "^10.0.0" + } + }, + "node_modules/@poppinss/exception": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@poppinss/exception/-/exception-1.2.3.tgz", + "integrity": "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==", + "license": "MIT" + }, + "node_modules/@sindresorhus/is": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-7.2.0.tgz", + "integrity": "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@speed-highlight/core": { + "version": "1.2.24", + "resolved": "https://registry.npmjs.org/@speed-highlight/core/-/core-1.2.24.tgz", + "integrity": "sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw==", + "license": "CC0-1.0" + }, + "node_modules/blake3-wasm": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz", + "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==", + "license": "MIT" + }, + "node_modules/cf": { + "version": "1.0.0-rc.1", + "resolved": "https://registry.npmjs.org/cf/-/cf-1.0.0-rc.1.tgz", + "integrity": "sha512-mQ9X/FVE1QP2ebXVF/9tlbqoO0TB3tKxUJocaWsic6IuNvThmJc/Ou/4ABJNB/Sj8HxEzvrjT1PRqjySVO5YoA==", + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cloudflare/build-output-utils": "1.0.0-rc.1", + "@cloudflare/config": "1.0.0-rc.1", + "@cloudflare/runtime-types": "0.1.30", + "blake3-wasm": "2.1.5", + "miniflare": "5.20261117.0-beta" + }, + "bin": { + "cf": "bin/cf", + "cloudflare": "bin/cf" + }, + "engines": { + "node": "^22.23.0 || ^24.22.0 || ^26.12.0" + } + }, + "node_modules/cookie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", + "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/error-stack-parser-es": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz", + "integrity": "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "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" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/miniflare": { + "version": "5.20261117.0-beta", + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261117.0-beta.tgz", + "integrity": "sha512-D2ygY04wQUmbpwgBhj828piErZoj7UMlXNGr4EWQp/c1PNGHyYOh0dMIyobjwOXiD5Ifl1EaEVAoNuBHK+qtkw==", + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "sharp": "0.35.5", + "undici": "7.30.1", + "workerd": "1.20261117.1", + "ws": "8.21.0", + "youch": "4.1.0-beta.10" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "kerberos": "^2.0.0" + }, + "peerDependenciesMeta": { + "kerberos": { + "optional": true + } + } + }, + "node_modules/path-to-regexp": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", + "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", + "license": "MIT" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sharp": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", + "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", + "license": "Apache-2.0", + "dependencies": { + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.35.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" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "license": "0BSD", + "optional": true + }, + "node_modules/undici": { + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/unenv": { + "version": "2.0.0-rc.24", + "resolved": "https://registry.npmjs.org/unenv/-/unenv-2.0.0-rc.24.tgz", + "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==", + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3" + } + }, + "node_modules/workerd": { + "version": "1.20261117.1", + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261117.1.tgz", + "integrity": "sha512-iakDbGVtJRiErpWSM5fYT0z3spJ2Mo1x/POsEajBNLqUbTRwm8vMqbB7g8zPN2tzs6eZYNiO5ECyEnAXO9Foxw==", + "hasInstallScript": true, + "license": "Apache-2.0", + "bin": { + "workerd": "bin/workerd" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "@cloudflare/workerd-darwin-64": "1.20261117.1", + "@cloudflare/workerd-darwin-arm64": "1.20261117.1", + "@cloudflare/workerd-linux-64": "1.20261117.1", + "@cloudflare/workerd-linux-arm64": "1.20261117.1", + "@cloudflare/workerd-windows-64": "1.20261117.1" + } + }, + "node_modules/wrangler": { + "version": "4.163.0", + "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.163.0.tgz", + "integrity": "sha512-EBM/QOpQsce6LenEDv1nXsK+AX9BYfAhE5yHosriPhFZPj47Z0usk6oGYWgPpLPa5qYDzhm9EDzaDD/WI5lzOA==", + "license": "MIT OR Apache-2.0", + "dependencies": { + "@cloudflare/kv-asset-handler": "0.5.0", + "@cloudflare/unenv-preset": "2.16.2", + "@cspotcode/source-map-support": "0.8.1", + "blake3-wasm": "2.1.5", + "esbuild": "0.28.2", + "miniflare": "5.20261116.0-beta", + "path-to-regexp": "6.3.0", + "unenv": "2.0.0-rc.24", + "workerd": "1.20261116.1" + }, + "bin": { + "cf-wrangler": "bin/cf-wrangler.js", + "wrangler": "bin/wrangler.js", + "wrangler2": "bin/wrangler.js" + }, + "engines": { + "node": ">=22.12.0" + }, + "optionalDependencies": { + "fsevents": "2.3.3" + }, + "peerDependencies": { + "@cloudflare/workers-types": "^5.20261116.1" + }, + "peerDependenciesMeta": { + "@cloudflare/workers-types": { + "optional": true + } + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-64": { + "version": "1.20261116.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261116.1.tgz", + "integrity": "sha512-+zzaR7CQXcT10Tbor784vI80+rO0NEy/jkTL7ZJP6PYmwjdDj2udk+sN9Ui1nqDs+frYYUtB+7nI7kycONFb0Q==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-darwin-arm64": { + "version": "1.20261116.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261116.1.tgz", + "integrity": "sha512-jOZBuQL3FdFC9FcVzfSDEWu1/jx3/asrQAU7TydMop8kdZWhqT4dslE3rC6cMait6w32XaglzEtV6OM1Ove9ZA==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-64": { + "version": "1.20261116.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261116.1.tgz", + "integrity": "sha512-/HnEV29Ykg3t9X6llrnlOJ9+N+cXFNsuPTTdRiE1L/hXIkI39o1RZVjEgj3GtyWtpuhsJ1mNLrNshrEjCvzk0w==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-linux-arm64": { + "version": "1.20261116.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261116.1.tgz", + "integrity": "sha512-hH73ERVfyoQ19DzbjPv/Gp4klU6F7gpx99JIlkmelC3vfsXPpsJdJsNAJA8LIxILa+gfH7tfxSSciCzr+0vqOQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/@cloudflare/workerd-windows-64": { + "version": "1.20261116.1", + "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261116.1.tgz", + "integrity": "sha512-eUxFymDyGt3jYjE3/OsNZlSYM5jjCKx8h4nlGRdljtK1fRUT+llI8COE/1gaqMppS6x8qN6tc8vcyRXT4pxqxw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/wrangler/node_modules/miniflare": { + "version": "5.20261116.0-beta", + "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261116.0-beta.tgz", + "integrity": "sha512-vQozfXz0eh4VlXJPsn/sxV3siRHmhl5kghZplFsTAt7+8gSPmjbZkYQEA4VudmcN9HTbI8pOqPynckIaIenwPg==", + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "0.8.1", + "sharp": "0.35.5", + "undici": "7.30.1", + "workerd": "1.20261116.1", + "ws": "8.21.0", + "youch": "4.1.0-beta.10" + }, + "engines": { + "node": ">=22.12.0" + }, + "peerDependencies": { + "kerberos": "^2.0.0" + }, + "peerDependenciesMeta": { + "kerberos": { + "optional": true + } + } + }, + "node_modules/wrangler/node_modules/workerd": { + "version": "1.20261116.1", + "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261116.1.tgz", + "integrity": "sha512-w3uPBuALjYs4n/p6x5SodorOe5y1bsBZ3RYeH1g0W5l73vT+yPGI7/WtxfzXbxZqpeCZ0/RfEwgD8Pc43uzu+w==", + "hasInstallScript": true, + "license": "Apache-2.0", + "bin": { + "workerd": "bin/workerd" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "@cloudflare/workerd-darwin-64": "1.20261116.1", + "@cloudflare/workerd-darwin-arm64": "1.20261116.1", + "@cloudflare/workerd-linux-64": "1.20261116.1", + "@cloudflare/workerd-linux-arm64": "1.20261116.1", + "@cloudflare/workerd-windows-64": "1.20261116.1" + } + }, + "node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", + "license": "MIT", + "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 + } + } + }, + "node_modules/youch": { + "version": "4.1.0-beta.10", + "resolved": "https://registry.npmjs.org/youch/-/youch-4.1.0-beta.10.tgz", + "integrity": "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==", + "license": "MIT", + "dependencies": { + "@poppinss/colors": "^4.1.5", + "@poppinss/dumper": "^0.6.4", + "@speed-highlight/core": "^1.2.7", + "cookie": "^1.0.2", + "youch-core": "^0.3.3" + } + }, + "node_modules/youch-core": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/youch-core/-/youch-core-0.3.3.tgz", + "integrity": "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==", + "license": "MIT", + "dependencies": { + "@poppinss/exception": "^1.2.2", + "error-stack-parser-es": "^1.0.5" + } + }, + "node_modules/zod": { + "version": "4.6.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.6.tgz", + "integrity": "sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/pkgs/cf-container-hello/release-tools/package.json b/pkgs/cf-container-hello/release-tools/package.json new file mode 100644 index 0000000000..d1374f3358 --- /dev/null +++ b/pkgs/cf-container-hello/release-tools/package.json @@ -0,0 +1,10 @@ +{ + "name": "cf-container-hello-release-tools", + "private": true, + "version": "1.0.0", + "dependencies": { + "@cloudflare/containers": "0.0.31", + "cf": "1.0.0-rc.1", + "wrangler": "4.163.0" + } +} diff --git a/pkgs/cf-container-hello/release-tools/verify-config.mjs b/pkgs/cf-container-hello/release-tools/verify-config.mjs new file mode 100644 index 0000000000..a416f6d90f --- /dev/null +++ b/pkgs/cf-container-hello/release-tools/verify-config.mjs @@ -0,0 +1,18 @@ +// Fail closed on identity, container image pins, and SQLite Durable Object +// class exports before a staged Build Output is considered. +import { readFileSync } from "node:fs"; + +const config = readFileSync(new URL("../wrangler.jsonc", import.meta.url), "utf8"); +const source = readFileSync(new URL("../src/index.ts", import.meta.url), "utf8"); +const mustContain = (value, pattern, description) => { + if (!pattern.test(value)) throw new Error(`probe config verification failed: ${description}`); +}; + +mustContain(config, /"name"\s*:\s*"cf-container-hello"/, "standalone Worker identity"); +mustContain(config, /"class_name"\s*:\s*"CrawlerProbe"[\s\S]*?"image"\s*:\s*"registry\.cloudflare\.com\/[^"\s]+\/lab-ops-hub-crawlercontainer:v5"/, "CrawlerProbe v5 image"); +mustContain(config, /"new_sqlite_classes"\s*:\s*\[\s*"HelloContainer"\s*\]/, "HelloContainer SQLite export"); +mustContain(config, /"new_sqlite_classes"\s*:\s*\[\s*"CrawlerProbe"\s*,\s*"HelloLite"\s*\]/, "CrawlerProbe and HelloLite SQLite exports"); +for (const name of ["HelloContainer", "CrawlerProbe", "HelloLite"]) { + mustContain(source, new RegExp(`export class ${name}\\s+extends Container`), `${name} source export`); +} +console.log("verified standalone identity, CrawlerProbe :v5 pin, and all SQLite container exports"); diff --git a/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py b/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py index d0a382d585..86c77af16f 100644 --- a/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py +++ b/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py @@ -1,30 +1,38 @@ -"""Structural safety guard for the manual standalone probe deploy workflow.""" +"""Structural safety guard for the standalone probe Versions staging workflow.""" +import json from pathlib import Path import unittest -WORKFLOW = Path(__file__).resolve().parents[3] / ".github/workflows/cf-container-hello.yml" +REPO = Path(__file__).resolve().parents[3] +WORKFLOW = REPO / ".github/workflows/cf-container-hello.yml" class WorkflowDeployGuardTest(unittest.TestCase): - def test_manual_mutations_are_main_only_and_use_dedicated_environment(self): + def test_versions_staging_is_manual_default_off_and_main_only(self): workflow = WORKFLOW.read_text() - self.assertIn("github.ref == 'refs/heads/main' && inputs.operation == 'publish-image'", workflow) - self.assertIn("github.ref == 'refs/heads/main' && inputs.operation == 'activate'", workflow) - self.assertIn("environment: cf-container-hello", workflow) - self.assertIn("secrets.CF_CONTAINER_HELLO_API_TOKEN", workflow) - self.assertNotIn("secrets.CLOUDFLARE_API_TOKEN", workflow) - activation = workflow.split(" activate:\n", 1)[1] - - def test_version_input_is_env_mapped_validated_before_credentialed_step(self): - workflow = WORKFLOW.read_text() - activation = workflow.split(" activate:\n", 1)[1] - self.assertNotIn('${{ inputs.version_id }}"', activation) - self.assertIn("CF_VERSION_ID: ${{ inputs.version_id }}", activation) - self.assertIn("version_id must be a UUID", activation) - self.assertLess(activation.index("- name: Validate version ID"), activation.index("- name: Activate Worker")) - self.assertIn('activate --version "$CF_VERSION_ID"', activation) - self.assertIn("CF_VERSION_TAG: git-${{ github.sha }}", activation) + self.assertIn("stage_versions:", workflow) + self.assertIn("default: false", workflow) + self.assertIn("github.event_name == 'workflow_dispatch'", workflow) + self.assertIn("github.repository == 'developing-today/code'", workflow) + self.assertIn("github.ref == 'refs/heads/main'", workflow) + + def test_staging_has_pinned_toolchain_and_cannot_upload_or_promote(self): + staging = WORKFLOW.read_text().split(" stage-versions:\n", 1)[1] + self.assertIn("node-version: 24.22.0", staging) + self.assertIn("npm ci --no-audit --no-fund", staging) + self.assertIn("--dry-run", staging) + self.assertNotIn("environment:", staging) + self.assertNotIn("secrets.", staging) + self.assertNotIn("deployments create", staging) + + def test_operator_deploy_contract_and_container_mapping_remain(self): + package = json.loads((REPO / "pkgs/cf-container-hello/package.json").read_text()) + self.assertEqual(package["scripts"]["deploy"], "wrangler deploy") + config = (REPO / "pkgs/cf-container-hello/wrangler.jsonc").read_text() + self.assertIn("lab-ops-hub-crawlercontainer:v5", config) + self.assertIn('["HelloContainer"]', config) + self.assertIn('["CrawlerProbe", "HelloLite"]', config) if __name__ == "__main__": From 9c7b7bd963b6a978f996da11ad11a84fe6a65528 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 07:46:44 +0000 Subject: [PATCH 4/4] Add native Build Output parity gate for probe --- .github/workflows/cf-container-hello.yml | 24 +++--- pkgs/cf-container-hello/cloudflare.config.ts | 74 +++++++++++++++++++ .../release-tools/verify-build.mjs | 25 +++++++ .../test/test_workflow_deploy_guard.py | 9 +++ 4 files changed, 123 insertions(+), 9 deletions(-) create mode 100644 pkgs/cf-container-hello/cloudflare.config.ts create mode 100644 pkgs/cf-container-hello/release-tools/verify-build.mjs diff --git a/.github/workflows/cf-container-hello.yml b/.github/workflows/cf-container-hello.yml index ace2bdda06..58ab8f713f 100644 --- a/.github/workflows/cf-container-hello.yml +++ b/.github/workflows/cf-container-hello.yml @@ -99,15 +99,21 @@ jobs: test ! -e ../node_modules ln -s release-tools/node_modules ../node_modules test "$(../node_modules/.bin/cf --version)" = "1.0.0-rc.1" - - name: Verify standalone probe bindings and image refs + - name: Build and verify exact Worker output, then dry-run Versions upload working-directory: pkgs/cf-container-hello run: | + set -euo pipefail node release-tools/verify-config.mjs - - name: Dry-run Workers Versions upload only - working-directory: pkgs/cf-container-hello - run: >- - ./release-tools/node_modules/.bin/cf workers versions create - --worker cf-container-hello - --tag "git-${GITHUB_SHA::12}" - --message "git ${GITHUB_SHA}" - --dry-run + saved_package="$RUNNER_TEMP/cf-container-hello-package.json" + cp package.json "$saved_package" + restore_package() { cp "$saved_package" package.json; } + trap restore_package EXIT + npm pkg set 'devDependencies.wrangler=4.163.0' + node_modules/.bin/cf build + node release-tools/verify-build.mjs + node_modules/.bin/cf workers versions create \ + --worker cf-container-hello \ + --prebuilt \ + --tag "git-${GITHUB_SHA::12}" \ + --message "git ${GITHUB_SHA}" \ + --dry-run diff --git a/pkgs/cf-container-hello/cloudflare.config.ts b/pkgs/cf-container-hello/cloudflare.config.ts new file mode 100644 index 0000000000..3d8c20821d --- /dev/null +++ b/pkgs/cf-container-hello/cloudflare.config.ts @@ -0,0 +1,74 @@ +// CI-only cf Build Output source. The operator path remains wrangler.jsonc and +// `npm run deploy`; this native config exists only for credential-free parity +// checks before a Versions staging dry-run. +import { bindings, defineConfig, defineContainer, exports } from "cf/config"; + +const hello = defineContainer({ + name: "cf-container-hello-hello", + schedulingPolicy: "durable-object", + images: { + v1: { reference: "registry.cloudflare.com/234b866b99ce2b142d7963d8d139cbfa/hello-world:v1" }, + }, +}); +const crawler = defineContainer({ + name: "cf-container-hello-crawler-probe", + schedulingPolicy: "durable-object", + images: { + v5: { reference: "registry.cloudflare.com/234b866b99ce2b142d7963d8d139cbfa/lab-ops-hub-crawlercontainer:v5" }, + }, +}); +const lite = defineContainer({ + name: "cf-container-hello-lite", + schedulingPolicy: "durable-object", + images: { + v1: { reference: "registry.cloudflare.com/234b866b99ce2b142d7963d8d139cbfa/hello-world:v1" }, + }, +}); + +export default defineConfig({ + worker: { + name: "cf-container-hello", + compatibilityDate: "2026-10-01", + entrypoint: "src/index.ts", + observability: { enabled: true }, + env: { + HELLO_CONTAINER: bindings.durableObject({ worker: "cf-container-hello", exportName: "HelloContainer" }), + CRAWLER_PROBE: bindings.durableObject({ worker: "cf-container-hello", exportName: "CrawlerProbe" }), + HELLO_LITE: bindings.durableObject({ worker: "cf-container-hello", exportName: "HelloLite" }), + }, + exports: { + HelloContainer: exports.durableObject({ storage: "sqlite", container: hello }), + CrawlerProbe: exports.durableObject({ storage: "sqlite", container: crawler }), + HelloLite: exports.durableObject({ storage: "sqlite", container: lite }), + }, + // Preserve the two migration groups from the operator Wrangler config in + // effective Build Output metadata for the parity gate. + unsafe: { + metadata: { + containers: [ + { + class_name: "HelloContainer", + image: "registry.cloudflare.com/234b866b99ce2b142d7963d8d139cbfa/hello-world:v1", + max_instances: 2, + }, + { + class_name: "CrawlerProbe", + image: "registry.cloudflare.com/234b866b99ce2b142d7963d8d139cbfa/lab-ops-hub-crawlercontainer:v5", + max_instances: 1, + }, + { + class_name: "HelloLite", + image: "registry.cloudflare.com/234b866b99ce2b142d7963d8d139cbfa/hello-world:v1", + instance_type: "lite", + max_instances: 1, + }, + ], + migrations: [ + { new_sqlite_classes: ["HelloContainer"], tag: "v1" }, + { new_sqlite_classes: ["CrawlerProbe", "HelloLite"], tag: "v2" }, + ], + }, + }, + }, + containers: [hello, crawler, lite], +}); diff --git a/pkgs/cf-container-hello/release-tools/verify-build.mjs b/pkgs/cf-container-hello/release-tools/verify-build.mjs new file mode 100644 index 0000000000..8fe70daf2b --- /dev/null +++ b/pkgs/cf-container-hello/release-tools/verify-build.mjs @@ -0,0 +1,25 @@ +// Compare cf's effective Build Output against the preserved Wrangler source. +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; + +const wrangler = JSON.parse(readFileSync(new URL("../wrangler.jsonc", import.meta.url), "utf8")); +const output = JSON.parse(readFileSync(new URL("../.cloudflare/output/v1/workers/default/worker.config.json", import.meta.url), "utf8")); + +assert.equal(output.name, wrangler.name); +assert.equal(output.compatibilityDate, wrangler.compatibility_date); +assert.deepEqual(output.observability, wrangler.observability); +assert.deepEqual(output.env, { + HELLO_CONTAINER: { type: "durable-object", worker: wrangler.name, exportName: "HelloContainer" }, + CRAWLER_PROBE: { type: "durable-object", worker: wrangler.name, exportName: "CrawlerProbe" }, + HELLO_LITE: { type: "durable-object", worker: wrangler.name, exportName: "HelloLite" }, +}); +assert.deepEqual(output.unsafe?.metadata?.containers, wrangler.containers); +assert.deepEqual(output.unsafe?.metadata?.migrations, wrangler.migrations); +const serialized = JSON.stringify(output); +for (const name of ["HelloContainer", "CrawlerProbe", "HelloLite"]) { + assert.ok(serialized.includes(name), `Build Output must include ${name}`); +} +assert.ok(serialized.includes("lab-ops-hub-crawlercontainer:v5"), "Build Output must preserve CrawlerProbe :v5 image"); +assert.ok(serialized.includes("new_sqlite_classes"), "Build Output must preserve SQLite migration groups"); + +console.log("cf Build Output matches Worker identity, bindings, container refs, and both SQLite migration groups"); diff --git a/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py b/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py index 86c77af16f..02aede8b6d 100644 --- a/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py +++ b/pkgs/cf-container-hello/test/test_workflow_deploy_guard.py @@ -34,6 +34,15 @@ def test_operator_deploy_contract_and_container_mapping_remain(self): self.assertIn('["HelloContainer"]', config) self.assertIn('["CrawlerProbe", "HelloLite"]', config) + def test_native_build_gate_precedes_prebuilt_versions_dry_run(self): + workflow = WORKFLOW.read_text().split(" stage-versions:\n", 1)[1] + self.assertLess(workflow.index("node_modules/.bin/cf build"), workflow.index("node release-tools/verify-build.mjs")) + self.assertLess(workflow.index("node release-tools/verify-build.mjs"), workflow.index("cf workers versions create")) + versions = workflow.split("cf workers versions create", 1)[1] + self.assertIn("--prebuilt", versions) + self.assertIn("--dry-run", versions) + self.assertNotIn("--versions", versions) + if __name__ == "__main__": unittest.main()