diff --git a/.github/workflows/voice-line-worker-deploy.yml b/.github/workflows/voice-line-worker-deploy.yml new file mode 100644 index 0000000000..cc83efd768 --- /dev/null +++ b/.github/workflows/voice-line-worker-deploy.yml @@ -0,0 +1,109 @@ +# Upload an immutable candidate only. Promotion is a separate approved workflow. +name: Voice line Worker upload + +on: + workflow_dispatch: + +permissions: + contents: read + actions: read + +concurrency: + group: voice-line-worker-upload + cancel-in-progress: false + +jobs: + verify-environment: + if: github.repository == 'developing-today/code' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 5 + outputs: + name: ${{ steps.verify.outputs.name }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + persist-credentials: false + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 + with: + node-version: 24.22.0 + - name: Require existing protected Voice Line environment + id: verify + env: + GH_TOKEN: ${{ github.token }} + VOICE_LINE_ENVIRONMENT: voice-line-worker-upload + run: | + set -euo pipefail + node pm-stack/voice-line-worker/scripts/check-environment.mjs "$VOICE_LINE_ENVIRONMENT" + echo "name=$VOICE_LINE_ENVIRONMENT" >> "$GITHUB_OUTPUT" + + upload: + needs: verify-environment + if: github.repository == 'developing-today/code' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 20 + environment: + name: ${{ needs.verify-environment.outputs.name }} + env: + CF_SEND_TELEMETRY: "false" + WRANGLER_SEND_METRICS: "false" + CLOUDFLARE_CI_OVERRIDE_WORKER_NAME: '' + WRANGLER_CI_OVERRIDE_NAME: '' + CF_WORKER_NAME: '' + CLOUDFLARE_WORKER_NAME: '' + WRANGLER_WORKER_NAME: '' + CF_MODE: '' + CLOUDFLARE_ENV: '' + WRANGLER_ENV: '' + CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + persist-credentials: false + + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 + with: + node-version: 24.22.0 + + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 + + - name: Stage the pinned CI toolchain without replacing operator files + working-directory: pm-stack/voice-line-worker + run: | + set -euo pipefail + mkdir -p -- .cloudflare + mkdir -m 700 -- .cloudflare/voice-line-release + install -m 644 -- ci/package.json ci/bun.lock .cloudflare/voice-line-release/ + cp -R -- src scripts test cloudflare.config.ts tsconfig.json .cloudflare/voice-line-release/ + install -m 644 -- ci/deployment-config.check.mjs .cloudflare/voice-line-release/test/deployment-config.test.mjs + + - name: Install worker dependencies + working-directory: pm-stack/voice-line-worker/.cloudflare/voice-line-release + run: bun install --frozen-lockfile --ignore-scripts + + - name: Test offline worker and deployment contracts + working-directory: pm-stack/voice-line-worker/.cloudflare/voice-line-release + run: | + bun test + node --test test/{deployment-config,deploy-contract,release-safety}.test.mjs + bun run typecheck + + - name: Build the Worker with cf + working-directory: pm-stack/voice-line-worker/.cloudflare/voice-line-release + run: npm run cf:build + + - name: Upload an immutable Workers Version (no traffic change) + working-directory: pm-stack/voice-line-worker/.cloudflare/voice-line-release + run: npm run upload + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_VOICE_LINE_UPLOAD_TOKEN }} + VOICE_LINE_UPLOAD_RECEIPT: ${{ runner.temp }}/voice-line-upload-receipt.json + + - name: Save the exact structured upload receipt + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: voice-line-upload-${{ github.run_id }}-${{ github.run_attempt }} + path: ${{ runner.temp }}/voice-line-upload-receipt.json + retention-days: 14 + if-no-files-found: error diff --git a/.github/workflows/voice-line-worker-promote.yml b/.github/workflows/voice-line-worker-promote.yml new file mode 100644 index 0000000000..1fb7222579 --- /dev/null +++ b/.github/workflows/voice-line-worker-promote.yml @@ -0,0 +1,133 @@ +# Promote only a previously uploaded exact version, after environment approval. +name: Voice line Worker promote + +on: + workflow_dispatch: + inputs: + version_id: + description: Cloudflare Workers Version UUID printed by the upload run + required: true + type: string + source_sha: + description: Full 40-character source commit SHA printed by the upload run + required: true + type: string + upload_run_id: + description: GitHub Actions run ID printed by the upload run + required: true + type: string + upload_run_attempt: + description: Attempt number printed by the upload run + required: true + type: string + expected_current_version_id: + description: Current 100% serving Version UUID (compare-and-check) + required: true + type: string + +permissions: + contents: read + actions: read + +concurrency: + group: voice-line-worker-promotion + cancel-in-progress: false + +jobs: + verify-environment: + if: github.repository == 'developing-today/code' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 5 + outputs: + name: ${{ steps.verify.outputs.name }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + persist-credentials: false + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 + with: + node-version: 24.22.0 + - name: Require existing protected Voice Line environment + id: verify + env: + GH_TOKEN: ${{ github.token }} + VOICE_LINE_ENVIRONMENT: voice-line-worker-production + run: | + set -euo pipefail + node pm-stack/voice-line-worker/scripts/check-environment.mjs "$VOICE_LINE_ENVIRONMENT" + echo "name=$VOICE_LINE_ENVIRONMENT" >> "$GITHUB_OUTPUT" + + promote: + needs: verify-environment + if: github.repository == 'developing-today/code' && github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 15 + environment: + name: ${{ needs.verify-environment.outputs.name }} + env: + CF_SEND_TELEMETRY: "false" + WRANGLER_SEND_METRICS: "false" + CLOUDFLARE_CI_OVERRIDE_WORKER_NAME: '' + WRANGLER_CI_OVERRIDE_NAME: '' + CF_WORKER_NAME: '' + CLOUDFLARE_WORKER_NAME: '' + WRANGLER_WORKER_NAME: '' + CF_MODE: '' + CLOUDFLARE_ENV: '' + WRANGLER_ENV: '' + CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} + CANDIDATE_VERSION_ID: ${{ inputs.version_id }} + CANDIDATE_SOURCE_SHA: ${{ inputs.source_sha }} + CANDIDATE_UPLOAD_RUN_ID: ${{ inputs.upload_run_id }} + CANDIDATE_UPLOAD_RUN_ATTEMPT: ${{ inputs.upload_run_attempt }} + EXPECTED_CURRENT_VERSION_ID: ${{ inputs.expected_current_version_id }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.sha }} + fetch-depth: 0 + persist-credentials: false + + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 + with: + node-version: 24.22.0 + + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 + + - name: Stage the pinned CI toolchain without replacing operator files + working-directory: pm-stack/voice-line-worker + run: | + set -euo pipefail + mkdir -p -- .cloudflare + mkdir -m 700 -- .cloudflare/voice-line-release + install -m 644 -- ci/package.json ci/bun.lock .cloudflare/voice-line-release/ + cp -R -- src scripts test cloudflare.config.ts tsconfig.json .cloudflare/voice-line-release/ + install -m 644 -- ci/deployment-config.check.mjs .cloudflare/voice-line-release/test/deployment-config.test.mjs + + - name: Install worker dependencies + working-directory: pm-stack/voice-line-worker/.cloudflare/voice-line-release + run: bun install --frozen-lockfile --ignore-scripts + + - name: Validate receipt selector + run: | + set -euo pipefail + [[ "$CANDIDATE_UPLOAD_RUN_ID" =~ ^[1-9][0-9]{0,19}$ ]] + [[ "$CANDIDATE_UPLOAD_RUN_ATTEMPT" =~ ^[1-9][0-9]{0,19}$ ]] + + - name: Read exact successful upload attempt receipt + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: voice-line-upload-${{ inputs.upload_run_id }}-${{ inputs.upload_run_attempt }} + repository: developing-today/code + run-id: ${{ inputs.upload_run_id }} + github-token: ${{ github.token }} + path: ${{ runner.temp }}/voice-line-receipt + + - name: Verify exact candidate provenance and serving version, then promote + working-directory: pm-stack/voice-line-worker/.cloudflare/voice-line-release + run: npm run promote + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_VOICE_LINE_PROMOTION_TOKEN }} + GH_TOKEN: ${{ github.token }} + VOICE_LINE_UPLOAD_RECEIPT: ${{ runner.temp }}/voice-line-receipt/voice-line-upload-receipt.json diff --git a/pm-stack/voice-line-worker/.gitignore b/pm-stack/voice-line-worker/.gitignore new file mode 100644 index 0000000000..e233a391c1 --- /dev/null +++ b/pm-stack/voice-line-worker/.gitignore @@ -0,0 +1 @@ +.cloudflare/ diff --git a/pm-stack/voice-line-worker/README.md b/pm-stack/voice-line-worker/README.md index faf3a9b934..70439bccb3 100644 --- a/pm-stack/voice-line-worker/README.md +++ b/pm-stack/voice-line-worker/README.md @@ -46,13 +46,80 @@ bunx tsc --noEmit bunx wrangler dev # local: AI binding runs remote against the account ``` +The checked-in `wrangler.toml` remains the local-development configuration. +Production changes use the pinned Cloudflare `cf` CLI and separate upload and +promotion workflows. Uploading creates an immutable Workers Version and does +not change traffic. Promotion is an explicit, separately approved operation. +The workflows stage their pinned cf/Build Output toolchain from `ci/` in a +disposable directory. This does not replace the package, lockfile, or +`wrangler.toml` used by the existing operator commands. + +Use the manual GitHub Actions workflow for version uploads once both protected +environments are configured. +It creates a version tagged with the full source SHA, upload run ID, and +attempt, with the full source SHA in its message. Its receipt binds the UUID +reported by cf to the Worker, an account fingerprint, and the upload attempt; +it is published as an Actions artifact. Upload does not create a deployment +or change the serving split. Check provider Version URL settings separately: +an upload-only operation is not isolated from production resources. + +GitHub Actions uploads only from a manually dispatched run on `main`; it runs +the offline tests and build first. Promotion is a different manual workflow, +also limited to `main`, and requires the uploaded Version UUID, its full source +SHA, upload run ID and attempt, and the expected currently serving Version +UUID. Before promotion the workflow checks that the source commit is reachable +from `main`, the candidate +has the exact SHA and upload-run tag plus the full-SHA message, the referenced +upload run succeeded from the expected workflow on `main` at that SHA, +Cloudflare marks it deployable, and the +currently serving deployment is a single 100% version matching the supplied +expected ID. It checks the serving version again immediately before promotion +and verifies that the exact deployment returned by cf is the latest active +deployment and serves the candidate at 100%. The immediate recheck is not an +atomic compare-and-swap against other writers; keep the release window free of +out-of-band deployment changes. + +Before enabling either workflow, configure these repository environments +(environment protection and secrets cannot be declared in workflow YAML). +A preflight with only the GitHub workflow read token against the GitHub deployment environment API +halts before the deploy job attaches a missing or insufficiently protected +environment: + +1. `voice-line-worker-upload`: allow deployments from `main` only; require an + independent reviewer, prevent self-review, and disallow administrator + bypass; add the environment secret + `CLOUDFLARE_VOICE_LINE_UPLOAD_TOKEN`. +2. `voice-line-worker-production`: allow deployments from `main` only; require + an independent reviewer, prevent self-review, and disallow administrator + bypass; add the environment secret + `CLOUDFLARE_VOICE_LINE_PROMOTION_TOKEN`. +3. Set the non-secret environment variable `CLOUDFLARE_ACCOUNT_ID` in both + environments. + +Create separate Cloudflare API tokens with the Individual Workers Editor role +scoped only to the existing `voice-line` Worker. Store them only as the named +environment secrets above. These workflows do not read generic repository or +organization token secrets. The upload job receives only its environment +secret; the promotion job receives only its own secret after the production +environment approval passes. + +No voice call or health request is part of either workflow; promotion verifies +the Cloudflare deployment read-back only. + +### Existing operator path + +If the protected release workflows are not ready, the existing, manually +authorized operator path is still `bun run deploy` from this directory. +That runs the locked Wrangler against `wrangler.toml` and changes serving +traffic. It is not a substitute for approving a production deployment. + Deploy needs (account-side, one time): 1. A Turso database for the ledger; set its URL in `wrangler.toml` (`TURSO_URL` var) — the schema is created idempotently at runtime. 2. `wrangler secret put TURSO_TOKEN` and `wrangler secret put STATUS_INGEST_TOKEN`. -3. `bun run deploy`, then push a first queue snapshot: +3. Push a first queue snapshot: `curl -X POST /ingest-status -H "Authorization: Bearer $STATUS_INGEST_TOKEN" -d '{"queued":0,"claimed":0,"parked":0,"blocked":0}'` ## Protocol diff --git a/pm-stack/voice-line-worker/ci/bun.lock b/pm-stack/voice-line-worker/ci/bun.lock new file mode 100644 index 0000000000..063fce35e9 --- /dev/null +++ b/pm-stack/voice-line-worker/ci/bun.lock @@ -0,0 +1,366 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "voice-line-worker", + "devDependencies": { + "@cloudflare/workers-types": "^5.20261112.1", + "cf": "1.0.0-rc.2", + "typescript": "^7.0.2", + "wrangler": "4.166.0", + }, + }, + }, + "packages": { + "@cloudflare/build-output-utils": ["@cloudflare/build-output-utils@1.0.0-rc.1", "", { "dependencies": { "@cloudflare/config": "1.0.0-rc.1" } }, "sha512-IrzZL1UEdVMZPRarrKu2VpnL3MIeNVhCItTebB88SwQ1YJ4mLAe1kQtXmIH7MpdgDYnxAsTZXMtuw9q5jRWCcw=="], + + "@cloudflare/config": ["@cloudflare/config@1.0.0-rc.1", "", { "dependencies": { "zod": "4.6.6" } }, "sha512-NQgB+fQbk8IU0iJ6/G9LCSQjJ7JuyRn5CALrPKnQ8vxqayOJlX+av9adhLCMYBeC80ocncW1Gy7quv00uLV3LQ=="], + + "@cloudflare/kv-asset-handler": ["@cloudflare/kv-asset-handler@0.5.1", "", {}, "sha512-48OysfSW3MkQY1XjkhkpPkgrEkOvgfoyHzA2eyX5wpzFpijC02uWigv3hkNdJdT3C7ybW/U17yYHXeR68pLeww=="], + + "@cloudflare/runtime-types": ["@cloudflare/runtime-types@0.1.30", "", { "dependencies": { "miniflare": "5.20261117.0-beta", "workerd": "1.20261117.1" } }, "sha512-p68T70lDZT7Vyv5c2SDzB0uqVRVCtj/3WMgXVQESnWVyTybcCwXRM9Ekmh2rQ+aPGhtIWiACvd8pX2yGA9Z5mw=="], + + "@cloudflare/unenv-preset": ["@cloudflare/unenv-preset@2.16.2", "https://registry.npmmirror.com/@cloudflare/unenv-preset/-/unenv-preset-2.16.2.tgz", { "peerDependencies": { "unenv": "2.0.0-rc.24", "workerd": ">1.20260305.0 <2.0.0-0" }, "optionalPeers": ["workerd"] }, "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ=="], + + "@cloudflare/workerd-darwin-64": ["@cloudflare/workerd-darwin-64@1.20261119.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-yotoiTGXCl1gTRX+y5ZWSAmzAg6CcBJXhJL6C1DGWUhsjjezNe8FdzraNsefVTOeKsOid2EC+hqOzewczKLvmQ=="], + + "@cloudflare/workerd-darwin-arm64": ["@cloudflare/workerd-darwin-arm64@1.20261119.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-VPOmfEmMubvw4SPcg/yDgamQXsiVAENgxeCJO8pDggRJFaF93SP0g/hktD8sbfmWBS19BO1kX1EsdgHSgRL9jA=="], + + "@cloudflare/workerd-linux-64": ["@cloudflare/workerd-linux-64@1.20261119.1", "", { "os": "linux", "cpu": "x64" }, "sha512-aaDf78smiN12Uuwtg6TG6iLVS61sLpy/7DC5PYORf2+TCYw/bygcaqqb8zQJ+XwZ3xYhm/Ws80c/yMMhCMTFYA=="], + + "@cloudflare/workerd-linux-arm64": ["@cloudflare/workerd-linux-arm64@1.20261119.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-LkyAvTMcKqRUP73HRScWWwTSz3pw09um1hxR+rcGdvsGzao8IR59XXTp/tul6kFdVBL2mD8U3X6j2O8t7I4viw=="], + + "@cloudflare/workerd-windows-64": ["@cloudflare/workerd-windows-64@1.20261119.1", "", { "os": "win32", "cpu": "x64" }, "sha512-y4RO3QFNWt4j4uq2kmP5tklTvdA3qOA0PXuA66vsCmEtZYYb71ldefJcq5Dt0jrexKf/i4BBaLXZMVYLnohb0g=="], + + "@cloudflare/workers-types": ["@cloudflare/workers-types@5.20261116.1", "https://registry.npmmirror.com/@cloudflare/workers-types/-/workers-types-5.20261116.1.tgz", {}, "sha512-bym4dNT9Hnm+goedLTTTH85T6S4wOJJaOpKgk9MlEGU18/JKsChN+wHvSWUAIy5YVSm6LnuaUu3d3N4K0m8Dtg=="], + + "@cloudflare/workers-utils": ["@cloudflare/workers-utils@0.56.0", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "chalk": "5.3.0", "dotenv": "16.3.1", "undici": "7.30.2" }, "peerDependencies": { "vitest": "^4.1.0 || ^5.0.0" }, "optionalPeers": ["vitest"] }, "sha512-Fw3/zR+pQp+5hKn1CHIRkCYz49fyAb2qRqCq01jBGqlKL0rRnZyXYD4j0h9cjaWPYYQUOe5y6L7BNp2ZwsHg5A=="], + + "@cspotcode/source-map-support": ["@cspotcode/source-map-support@0.8.1", "https://registry.npmmirror.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", { "dependencies": { "@jridgewell/trace-mapping": "0.3.9" } }, "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw=="], + + "@emnapi/runtime": ["@emnapi/runtime@1.11.3", "https://registry.npmmirror.com/@emnapi/runtime/-/runtime-1.11.3.tgz", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="], + + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.2", "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", { "os": "aix", "cpu": "ppc64" }, "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.28.2", "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.28.2.tgz", { "os": "android", "cpu": "arm" }, "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", { "os": "android", "cpu": "arm64" }, "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.28.2.tgz", { "os": "android", "cpu": "x64" }, "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", { "os": "darwin", "cpu": "arm64" }, "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", { "os": "darwin", "cpu": "x64" }, "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", { "os": "freebsd", "cpu": "arm64" }, "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", { "os": "freebsd", "cpu": "x64" }, "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", { "os": "linux", "cpu": "arm" }, "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", { "os": "linux", "cpu": "arm64" }, "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", { "os": "linux", "cpu": "ia32" }, "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", { "os": "linux", "cpu": "none" }, "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", { "os": "linux", "cpu": "none" }, "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", { "os": "linux", "cpu": "ppc64" }, "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", { "os": "linux", "cpu": "none" }, "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", { "os": "linux", "cpu": "s390x" }, "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", { "os": "linux", "cpu": "x64" }, "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ=="], + + "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", { "os": "none", "cpu": "arm64" }, "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", { "os": "none", "cpu": "x64" }, "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw=="], + + "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", { "os": "openbsd", "cpu": "arm64" }, "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", { "os": "openbsd", "cpu": "x64" }, "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw=="], + + "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", { "os": "none", "cpu": "arm64" }, "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", { "os": "sunos", "cpu": "x64" }, "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.2", "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", { "os": "win32", "cpu": "arm64" }, "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.2", "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", { "os": "win32", "cpu": "ia32" }, "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.2", "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", { "os": "win32", "cpu": "x64" }, "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g=="], + + "@img/colour": ["@img/colour@1.1.0", "https://registry.npmmirror.com/@img/colour/-/colour-1.1.0.tgz", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="], + + "@img/sharp-darwin-arm64": ["@img/sharp-darwin-arm64@0.35.5", "https://registry.npmmirror.com/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.3.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg=="], + + "@img/sharp-darwin-x64": ["@img/sharp-darwin-x64@0.35.5", "https://registry.npmmirror.com/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.3.4" }, "os": "darwin", "cpu": "x64" }, "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw=="], + + "@img/sharp-freebsd-wasm32": ["@img/sharp-freebsd-wasm32@0.35.5", "https://registry.npmmirror.com/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "os": "freebsd" }, "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw=="], + + "@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", { "os": "darwin", "cpu": "arm64" }, "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw=="], + + "@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", { "os": "darwin", "cpu": "x64" }, "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ=="], + + "@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", { "os": "linux", "cpu": "arm" }, "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw=="], + + "@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", { "os": "linux", "cpu": "arm64" }, "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A=="], + + "@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", { "os": "linux", "cpu": "ppc64" }, "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ=="], + + "@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", { "os": "linux", "cpu": "none" }, "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q=="], + + "@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-s390x@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", { "os": "linux", "cpu": "s390x" }, "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ=="], + + "@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", { "os": "linux", "cpu": "x64" }, "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw=="], + + "@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", { "os": "linux", "cpu": "arm64" }, "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA=="], + + "@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.3.4", "https://registry.npmmirror.com/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", { "os": "linux", "cpu": "x64" }, "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg=="], + + "@img/sharp-linux-arm": ["@img/sharp-linux-arm@0.35.5", "https://registry.npmmirror.com/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.4" }, "os": "linux", "cpu": "arm" }, "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ=="], + + "@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.35.5", "https://registry.npmmirror.com/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64" }, "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ=="], + + "@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc64@0.35.5", "https://registry.npmmirror.com/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA=="], + + "@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.5", "https://registry.npmmirror.com/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.4" }, "os": "linux", "cpu": "none" }, "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ=="], + + "@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.5", "https://registry.npmmirror.com/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.4" }, "os": "linux", "cpu": "s390x" }, "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA=="], + + "@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.35.5", "https://registry.npmmirror.com/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.4" }, "os": "linux", "cpu": "x64" }, "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog=="], + + "@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm64@0.35.5", "https://registry.npmmirror.com/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" }, "os": "linux", "cpu": "arm64" }, "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg=="], + + "@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x64@0.35.5", "https://registry.npmmirror.com/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.4" }, "os": "linux", "cpu": "x64" }, "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A=="], + + "@img/sharp-wasm32": ["@img/sharp-wasm32@0.35.5", "https://registry.npmmirror.com/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", { "dependencies": { "@emnapi/runtime": "^1.11.3" } }, "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ=="], + + "@img/sharp-webcontainers-wasm32": ["@img/sharp-webcontainers-wasm32@0.35.5", "https://registry.npmmirror.com/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", { "dependencies": { "@img/sharp-wasm32": "0.35.5" }, "cpu": "none" }, "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA=="], + + "@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.35.5", "https://registry.npmmirror.com/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", { "os": "win32", "cpu": "arm64" }, "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q=="], + + "@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.35.5", "https://registry.npmmirror.com/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", { "os": "win32", "cpu": "ia32" }, "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A=="], + + "@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.35.5", "https://registry.npmmirror.com/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", { "os": "win32", "cpu": "x64" }, "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg=="], + + "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.3", "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz", {}, "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.6.0", "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", {}, "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw=="], + + "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.9", "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", { "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" } }, "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ=="], + + "@poppinss/colors": ["@poppinss/colors@4.1.6", "https://registry.npmmirror.com/@poppinss/colors/-/colors-4.1.6.tgz", { "dependencies": { "kleur": "^4.1.5" } }, "sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg=="], + + "@poppinss/dumper": ["@poppinss/dumper@0.6.5", "https://registry.npmmirror.com/@poppinss/dumper/-/dumper-0.6.5.tgz", { "dependencies": { "@poppinss/colors": "^4.1.5", "@sindresorhus/is": "^7.0.2", "supports-color": "^10.0.0" } }, "sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw=="], + + "@poppinss/exception": ["@poppinss/exception@1.2.3", "https://registry.npmmirror.com/@poppinss/exception/-/exception-1.2.3.tgz", {}, "sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw=="], + + "@sindresorhus/is": ["@sindresorhus/is@7.2.0", "https://registry.npmmirror.com/@sindresorhus/is/-/is-7.2.0.tgz", {}, "sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw=="], + + "@speed-highlight/core": ["@speed-highlight/core@1.2.24", "https://registry.npmmirror.com/@speed-highlight/core/-/core-1.2.24.tgz", {}, "sha512-qeW2e1l78afw8VhRPfPQ1Gjj+KU5XFQ/OFV5ti6eTa9bruO7mJyZtA4vw0ofqmA3tKCkROE9xLk3VZoeRc98nw=="], + + "@types/node": ["@types/node@18.19.130", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg=="], + + "@types/node-fetch": ["@types/node-fetch@2.6.13", "", { "dependencies": { "@types/node": "*", "form-data": "^4.0.4" } }, "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw=="], + + "@types/yargs": ["@types/yargs@17.0.24", "", { "dependencies": { "@types/yargs-parser": "*" } }, "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw=="], + + "@types/yargs-parser": ["@types/yargs-parser@21.0.3", "", {}, "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ=="], + + "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="], + + "@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="], + + "@typescript/typescript-darwin-x64": ["@typescript/typescript-darwin-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", { "os": "darwin", "cpu": "x64" }, "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA=="], + + "@typescript/typescript-freebsd-arm64": ["@typescript/typescript-freebsd-arm64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", { "os": "freebsd", "cpu": "arm64" }, "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ=="], + + "@typescript/typescript-freebsd-x64": ["@typescript/typescript-freebsd-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", { "os": "freebsd", "cpu": "x64" }, "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw=="], + + "@typescript/typescript-linux-arm": ["@typescript/typescript-linux-arm@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", { "os": "linux", "cpu": "arm" }, "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ=="], + + "@typescript/typescript-linux-arm64": ["@typescript/typescript-linux-arm64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", { "os": "linux", "cpu": "arm64" }, "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ=="], + + "@typescript/typescript-linux-loong64": ["@typescript/typescript-linux-loong64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", { "os": "linux", "cpu": "none" }, "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ=="], + + "@typescript/typescript-linux-mips64el": ["@typescript/typescript-linux-mips64el@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", { "os": "linux", "cpu": "none" }, "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA=="], + + "@typescript/typescript-linux-ppc64": ["@typescript/typescript-linux-ppc64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", { "os": "linux", "cpu": "ppc64" }, "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA=="], + + "@typescript/typescript-linux-riscv64": ["@typescript/typescript-linux-riscv64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", { "os": "linux", "cpu": "none" }, "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ=="], + + "@typescript/typescript-linux-s390x": ["@typescript/typescript-linux-s390x@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", { "os": "linux", "cpu": "s390x" }, "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw=="], + + "@typescript/typescript-linux-x64": ["@typescript/typescript-linux-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", { "os": "linux", "cpu": "x64" }, "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A=="], + + "@typescript/typescript-netbsd-arm64": ["@typescript/typescript-netbsd-arm64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", { "os": "none", "cpu": "arm64" }, "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA=="], + + "@typescript/typescript-netbsd-x64": ["@typescript/typescript-netbsd-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", { "os": "none", "cpu": "x64" }, "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA=="], + + "@typescript/typescript-openbsd-arm64": ["@typescript/typescript-openbsd-arm64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", { "os": "openbsd", "cpu": "arm64" }, "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ=="], + + "@typescript/typescript-openbsd-x64": ["@typescript/typescript-openbsd-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", { "os": "openbsd", "cpu": "x64" }, "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg=="], + + "@typescript/typescript-sunos-x64": ["@typescript/typescript-sunos-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", { "os": "sunos", "cpu": "x64" }, "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g=="], + + "@typescript/typescript-win32-arm64": ["@typescript/typescript-win32-arm64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", { "os": "win32", "cpu": "arm64" }, "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ=="], + + "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "https://registry.npmmirror.com/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="], + + "abort-controller": ["abort-controller@3.0.0", "", { "dependencies": { "event-target-shim": "^5.0.0" } }, "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg=="], + + "agentkeepalive": ["agentkeepalive@4.6.0", "", { "dependencies": { "humanize-ms": "^1.2.1" } }, "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ=="], + + "asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="], + + "blake3-wasm": ["blake3-wasm@2.1.5", "https://registry.npmmirror.com/blake3-wasm/-/blake3-wasm-2.1.5.tgz", {}, "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g=="], + + "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], + + "cf": ["cf@1.0.0-rc.2", "", { "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" } }, "sha512-dOqCCL2eYPXU9+Q/i6urS9NxWqd3fstzbbGKtLCR07mJV2sQoEOZclm/85uoLF+k3ZaxIvPxrr6O4r2LqwF3uA=="], + + "chalk": ["chalk@5.3.0", "", {}, "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w=="], + + "cloudflare": ["cloudflare@5.2.0", "", { "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", "abort-controller": "^3.0.0", "agentkeepalive": "^4.2.1", "form-data-encoder": "1.7.2", "formdata-node": "^4.3.2", "node-fetch": "^2.6.7" } }, "sha512-dVzqDpPFYR9ApEC9e+JJshFJZXcw4HzM8W+3DHzO5oy9+8rLC53G7x6fEf9A7/gSuSCxuvndzui5qJKftfIM9A=="], + + "combined-stream": ["combined-stream@1.0.8", "", { "dependencies": { "delayed-stream": "~1.0.0" } }, "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg=="], + + "cookie": ["cookie@1.1.1", "https://registry.npmmirror.com/cookie/-/cookie-1.1.1.tgz", {}, "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ=="], + + "delayed-stream": ["delayed-stream@1.0.0", "", {}, "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="], + + "detect-libc": ["detect-libc@2.1.2", "https://registry.npmmirror.com/detect-libc/-/detect-libc-2.1.2.tgz", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], + + "devtools-protocol": ["devtools-protocol@0.0.1182435", "", {}, "sha512-EmlkWb62wSbQNE1gRZZsi4KZYRaF5Skpp183LhRU7+sadKR06O1dHCjZmFSEG6Kv7P6S/UYLxcY3NlYwqKM99w=="], + + "dotenv": ["dotenv@16.3.1", "", {}, "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ=="], + + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], + + "error-stack-parser-es": ["error-stack-parser-es@1.0.5", "https://registry.npmmirror.com/error-stack-parser-es/-/error-stack-parser-es-1.0.5.tgz", {}, "sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA=="], + + "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], + + "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], + + "es-object-atoms": ["es-object-atoms@1.1.2", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw=="], + + "es-set-tostringtag": ["es-set-tostringtag@2.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="], + + "esbuild": ["esbuild@0.28.2", "https://registry.npmmirror.com/esbuild/-/esbuild-0.28.2.tgz", { "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" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA=="], + + "event-target-shim": ["event-target-shim@5.0.1", "", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="], + + "form-data": ["form-data@4.0.6", "", { "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "hasown": "^2.0.4", "mime-types": "^2.1.35" } }, "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ=="], + + "form-data-encoder": ["form-data-encoder@1.7.2", "", {}, "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A=="], + + "formdata-node": ["formdata-node@4.4.1", "", { "dependencies": { "node-domexception": "1.0.0", "web-streams-polyfill": "4.0.0-beta.3" } }, "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ=="], + + "fsevents": ["fsevents@2.3.3", "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], + + "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], + + "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], + + "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], + + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], + + "has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="], + + "hasown": ["hasown@2.0.4", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A=="], + + "humanize-ms": ["humanize-ms@1.2.1", "", { "dependencies": { "ms": "^2.0.0" } }, "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ=="], + + "kleur": ["kleur@4.1.5", "https://registry.npmmirror.com/kleur/-/kleur-4.1.5.tgz", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="], + + "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], + + "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + + "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], + + "miniflare": ["miniflare@5.20261117.0-beta", "", { "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" }, "peerDependencies": { "kerberos": "^2.0.0" }, "optionalPeers": ["kerberos"] }, "sha512-D2ygY04wQUmbpwgBhj828piErZoj7UMlXNGr4EWQp/c1PNGHyYOh0dMIyobjwOXiD5Ifl1EaEVAoNuBHK+qtkw=="], + + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "node-domexception": ["node-domexception@1.0.0", "", {}, "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="], + + "node-fetch": ["node-fetch@2.7.0", "", { "dependencies": { "whatwg-url": "^5.0.0" }, "peerDependencies": { "encoding": "^0.1.0" }, "optionalPeers": ["encoding"] }, "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A=="], + + "path-to-regexp": ["path-to-regexp@6.3.0", "https://registry.npmmirror.com/path-to-regexp/-/path-to-regexp-6.3.0.tgz", {}, "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ=="], + + "pathe": ["pathe@2.0.3", "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + + "semver": ["semver@7.8.6", "https://registry.npmmirror.com/semver/-/semver-7.8.6.tgz", { "bin": { "semver": "bin/semver.js" } }, "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw=="], + + "sharp": ["sharp@0.35.5", "https://registry.npmmirror.com/sharp/-/sharp-0.35.5.tgz", { "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" }, "peerDependencies": { "@types/node": "*" }, "optionalPeers": ["@types/node"] }, "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g=="], + + "supports-color": ["supports-color@10.2.2", "https://registry.npmmirror.com/supports-color/-/supports-color-10.2.2.tgz", {}, "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g=="], + + "tr46": ["tr46@0.0.3", "", {}, "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="], + + "tslib": ["tslib@2.9.1", "https://registry.npmmirror.com/tslib/-/tslib-2.9.1.tgz", {}, "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA=="], + + "typescript": ["typescript@7.0.2", "https://registry.npmmirror.com/typescript/-/typescript-7.0.2.tgz", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="], + + "undici": ["undici@7.30.2", "", {}, "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA=="], + + "undici-types": ["undici-types@5.26.5", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="], + + "unenv": ["unenv@2.0.0-rc.24", "https://registry.npmmirror.com/unenv/-/unenv-2.0.0-rc.24.tgz", { "dependencies": { "pathe": "^2.0.3" } }, "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw=="], + + "web-streams-polyfill": ["web-streams-polyfill@4.0.0-beta.3", "", {}, "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug=="], + + "webidl-conversions": ["webidl-conversions@3.0.1", "", {}, "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="], + + "whatwg-url": ["whatwg-url@5.0.0", "", { "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw=="], + + "workerd": ["workerd@1.20261119.1", "", { "optionalDependencies": { "@cloudflare/workerd-darwin-64": "1.20261119.1", "@cloudflare/workerd-darwin-arm64": "1.20261119.1", "@cloudflare/workerd-linux-64": "1.20261119.1", "@cloudflare/workerd-linux-arm64": "1.20261119.1", "@cloudflare/workerd-windows-64": "1.20261119.1" }, "hasInstallScript": true, "bin": { "workerd": "bin/workerd" } }, "sha512-lalSvY+ad5asqMgzA/DfrZo7wvuvOHJc/aS1UctUrwu76fJE/LkSKJlprfBu0LeU79Qai5d+xFooQA9CIfj+dQ=="], + + "wrangler": ["wrangler@4.166.0", "", { "dependencies": { "@cloudflare/kv-asset-handler": "0.5.1", "@cloudflare/unenv-preset": "2.16.2", "@cloudflare/workers-utils": "0.56.0", "@cspotcode/source-map-support": "0.8.1", "@types/yargs": "17.0.24", "cloudflare": "5.2.0", "devtools-protocol": "0.0.1182435", "esbuild": "0.28.2", "miniflare": "5.20261119.0-beta", "path-to-regexp": "6.3.0", "undici": "7.30.2", "unenv": "2.0.0-rc.24", "workerd": "1.20261119.1" }, "optionalDependencies": { "fsevents": "2.3.3" }, "peerDependencies": { "@cloudflare/workers-types": "^5.20261119.1" }, "optionalPeers": ["@cloudflare/workers-types"], "bin": { "wrangler": "bin/wrangler.js", "wrangler2": "bin/wrangler.js", "cf-wrangler": "bin/cf-wrangler.js" } }, "sha512-qMz0sHGXqEC0Va8T6dAaG0ggp9tCcuHHYMUQzRKbtZg6+MPAPb6oBu1757IaeugNJHPAz+twHiA+zDyXWQLsLw=="], + + "ws": ["ws@8.21.0", "https://registry.npmmirror.com/ws/-/ws-8.21.0.tgz", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g=="], + + "youch": ["youch@4.1.0-beta.10", "https://registry.npmmirror.com/youch/-/youch-4.1.0-beta.10.tgz", { "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" } }, "sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ=="], + + "youch-core": ["youch-core@0.3.3", "https://registry.npmmirror.com/youch-core/-/youch-core-0.3.3.tgz", { "dependencies": { "@poppinss/exception": "^1.2.2", "error-stack-parser-es": "^1.0.5" } }, "sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA=="], + + "zod": ["zod@4.6.6", "", {}, "sha512-4UmzQUF5fxvfcYHlbjBmejU+w+hbDnWFx4aS8kBx7nPBHcO2SqPbpAG8snbdg+Xse4pRefR98hgjFgIMCI/UhA=="], + + "@cloudflare/runtime-types/workerd": ["workerd@1.20261117.1", "", { "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" }, "hasInstallScript": true, "bin": { "workerd": "bin/workerd" } }, "sha512-iakDbGVtJRiErpWSM5fYT0z3spJ2Mo1x/POsEajBNLqUbTRwm8vMqbB7g8zPN2tzs6eZYNiO5ECyEnAXO9Foxw=="], + + "miniflare/undici": ["undici@7.30.1", "https://registry.npmmirror.com/undici/-/undici-7.30.1.tgz", {}, "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg=="], + + "miniflare/workerd": ["workerd@1.20261117.1", "", { "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" }, "hasInstallScript": true, "bin": { "workerd": "bin/workerd" } }, "sha512-iakDbGVtJRiErpWSM5fYT0z3spJ2Mo1x/POsEajBNLqUbTRwm8vMqbB7g8zPN2tzs6eZYNiO5ECyEnAXO9Foxw=="], + + "wrangler/miniflare": ["miniflare@5.20261119.0-beta", "", { "dependencies": { "@cspotcode/source-map-support": "0.8.1", "sharp": "0.35.5", "undici": "7.30.2", "workerd": "1.20261119.1", "ws": "8.21.0", "youch": "4.1.0-beta.10" }, "peerDependencies": { "kerberos": "^2.0.0" }, "optionalPeers": ["kerberos"] }, "sha512-HdNQIUPgde5Yg0qFaI6iiYd0aOxAgKQTXDstkBN2G1tPBdslNrUKdySwaGdBix0IFd+yh8M0gkqzw68dIZ2Ugw=="], + + "@cloudflare/runtime-types/workerd/@cloudflare/workerd-darwin-64": ["@cloudflare/workerd-darwin-64@1.20261117.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-qfAYw6iPoey0BmPsp4z5ARWOa+XSBD3gQzmcBI2ql9pKTSA5eEC8F1oI6BIk/FVguhomfSn5gS4RzbWhTd/EpQ=="], + + "@cloudflare/runtime-types/workerd/@cloudflare/workerd-darwin-arm64": ["@cloudflare/workerd-darwin-arm64@1.20261117.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-cInx5Cr9O27oW+ujyI49lTRQZra/lMgWUFiKmGY3jxDncATSxzfQ6udXHkVvK4//1/PfxQTDyMjdQUIN8m6Aqg=="], + + "@cloudflare/runtime-types/workerd/@cloudflare/workerd-linux-64": ["@cloudflare/workerd-linux-64@1.20261117.1", "", { "os": "linux", "cpu": "x64" }, "sha512-gZLA8X11m/luZwn+YA3+mDu61vdxNJzpksP/QZqjydKTQ+VUCulsK5gtn9Bqst1p3KJu2kafQpJ1nDQv4B23jA=="], + + "@cloudflare/runtime-types/workerd/@cloudflare/workerd-linux-arm64": ["@cloudflare/workerd-linux-arm64@1.20261117.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-gxWngFojq41ULKNKb9rpWYvKotN5hT2I/xot+Bpy31cXzrwcTgtDLSMb2t75sW5BJxH7hihFvikgYb577kB3Zg=="], + + "@cloudflare/runtime-types/workerd/@cloudflare/workerd-windows-64": ["@cloudflare/workerd-windows-64@1.20261117.1", "", { "os": "win32", "cpu": "x64" }, "sha512-0OR2Btx5EDonOKvvuGDq8rxBSggxoF1ThQjbZN3vsu3GlaF/oXW5f9/iB78OgV0CzMPTi+hZgzc1NR95UJCURA=="], + + "miniflare/workerd/@cloudflare/workerd-darwin-64": ["@cloudflare/workerd-darwin-64@1.20261117.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-qfAYw6iPoey0BmPsp4z5ARWOa+XSBD3gQzmcBI2ql9pKTSA5eEC8F1oI6BIk/FVguhomfSn5gS4RzbWhTd/EpQ=="], + + "miniflare/workerd/@cloudflare/workerd-darwin-arm64": ["@cloudflare/workerd-darwin-arm64@1.20261117.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-cInx5Cr9O27oW+ujyI49lTRQZra/lMgWUFiKmGY3jxDncATSxzfQ6udXHkVvK4//1/PfxQTDyMjdQUIN8m6Aqg=="], + + "miniflare/workerd/@cloudflare/workerd-linux-64": ["@cloudflare/workerd-linux-64@1.20261117.1", "", { "os": "linux", "cpu": "x64" }, "sha512-gZLA8X11m/luZwn+YA3+mDu61vdxNJzpksP/QZqjydKTQ+VUCulsK5gtn9Bqst1p3KJu2kafQpJ1nDQv4B23jA=="], + + "miniflare/workerd/@cloudflare/workerd-linux-arm64": ["@cloudflare/workerd-linux-arm64@1.20261117.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-gxWngFojq41ULKNKb9rpWYvKotN5hT2I/xot+Bpy31cXzrwcTgtDLSMb2t75sW5BJxH7hihFvikgYb577kB3Zg=="], + + "miniflare/workerd/@cloudflare/workerd-windows-64": ["@cloudflare/workerd-windows-64@1.20261117.1", "", { "os": "win32", "cpu": "x64" }, "sha512-0OR2Btx5EDonOKvvuGDq8rxBSggxoF1ThQjbZN3vsu3GlaF/oXW5f9/iB78OgV0CzMPTi+hZgzc1NR95UJCURA=="], + } +} diff --git a/pm-stack/voice-line-worker/ci/deployment-config.check.mjs b/pm-stack/voice-line-worker/ci/deployment-config.check.mjs new file mode 100644 index 0000000000..ff84cd6ca3 --- /dev/null +++ b/pm-stack/voice-line-worker/ci/deployment-config.check.mjs @@ -0,0 +1,22 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import config from "../cloudflare.config.ts"; + +test("cf config preserves the deployed Worker bindings and SQLite Durable Object", () => { + assert.equal(config.worker.name, "voice-line"); + assert.equal(config.worker.compatibilityDate, "2025-09-15"); + assert.equal(config.worker.workersDev, true); + assert.equal(config.worker.env.TURSO_URL.value, "https://voice-line-ledger-dezren39.aws-us-east-1.turso.io"); + assert.equal(config.worker.env.TURSO_TOKEN.type, "secret"); + assert.equal(config.worker.env.STATUS_INGEST_TOKEN.type, "secret"); + assert.deepEqual(config.worker.env.VOICE_SESSIONS, { + type: "durable-object", + worker: "voice-line", + exportName: "VoiceSession", + }); + assert.deepEqual(config.worker.env.AI, { type: "ai" }); + assert.deepEqual(config.worker.exports.VoiceSession, { + type: "durable-object", + storage: "sqlite", + }); +}); diff --git a/pm-stack/voice-line-worker/ci/package.json b/pm-stack/voice-line-worker/ci/package.json new file mode 100644 index 0000000000..d4f1f6c063 --- /dev/null +++ b/pm-stack/voice-line-worker/ci/package.json @@ -0,0 +1,21 @@ +{ + "description": "Basement voice line step 1 (#9800): push-to-talk WebSocket in a Durable Object, Workers AI Whisper STT + MeloTTS speech out (Cloudflare-direct), silence trim/VAD before transcription, one read-only queue-state intent, Turso session ledger.", + "devDependencies": { + "@cloudflare/workers-types": "^5.20261112.1", + "cf": "1.0.0-rc.2", + "typescript": "^7.0.2", + "wrangler": "4.166.0" + }, + "name": "voice-line-worker", + "private": true, + "scripts": { + "cf:build": "cf build", + "upload": "node scripts/upload-version.mjs", + "promote": "node scripts/promote-version.mjs", + "dev": "wrangler dev", + "test": "bun test", + "typecheck": "tsc --noEmit" + }, + "type": "module", + "version": "0.1.0" +} diff --git a/pm-stack/voice-line-worker/cloudflare.config.ts b/pm-stack/voice-line-worker/cloudflare.config.ts new file mode 100644 index 0000000000..d0b7c6b13f --- /dev/null +++ b/pm-stack/voice-line-worker/cloudflare.config.ts @@ -0,0 +1,25 @@ +import { bindings, defineConfig, exports } from "cf/config"; + +export default defineConfig({ + worker: { + name: "voice-line", + compatibilityDate: "2025-09-15", + entrypoint: "src/index.ts", + workersDev: true, + env: { + TURSO_URL: bindings.text("https://voice-line-ledger-dezren39.aws-us-east-1.turso.io"), + TURSO_TOKEN: bindings.secret(), + STATUS_INGEST_TOKEN: bindings.secret(), + VOICE_SESSIONS: bindings.durableObject({ + worker: "voice-line", + exportName: "VoiceSession", + }), + AI: bindings.ai({}), + }, + exports: { + VoiceSession: exports.durableObject({ + storage: "sqlite", + }), + }, + }, +}); diff --git a/pm-stack/voice-line-worker/scripts/check-environment.mjs b/pm-stack/voice-line-worker/scripts/check-environment.mjs new file mode 100644 index 0000000000..37d6677101 --- /dev/null +++ b/pm-stack/voice-line-worker/scripts/check-environment.mjs @@ -0,0 +1,22 @@ +// This runs with only a GitHub read token, before the job attaches an +// environment (which could otherwise implicitly create a missing one). +import { releaseRepository, uploadEnvironment, promotionEnvironment, validateEnvironment } from "../src/deploy-contract.mjs"; + +const [environment, ...extra] = process.argv.slice(2); +if (extra.length || !(environment === uploadEnvironment || environment === promotionEnvironment) + || process.env.GITHUB_REPOSITORY !== releaseRepository || process.env.GITHUB_REF !== "refs/heads/main" + || process.env.GITHUB_EVENT_NAME !== "workflow_dispatch" || !process.env.GH_TOKEN) { + throw new Error("Voice Line environment guard requires the exact manual main workflow"); +} +const endpoint = `https://api.github.com/repos/${releaseRepository}/environments/${environment}`; +async function read(url) { + const res = await fetch(url, { + headers: { authorization: `Bearer ${process.env.GH_TOKEN}`, accept: "application/vnd.github+json" }, + redirect: "error", + signal: AbortSignal.timeout(15_000), + }); + if (!res.ok) throw new Error(`Voice Line environment protection is unavailable (HTTP ${res.status})`); + return res.json(); +} +const [structure, policy] = await Promise.all([read(endpoint), read(`${endpoint}/deployment-branch-policies?per_page=2`)]); +validateEnvironment(environment, structure, policy); diff --git a/pm-stack/voice-line-worker/scripts/promote-version.mjs b/pm-stack/voice-line-worker/scripts/promote-version.mjs new file mode 100644 index 0000000000..0c0619964d --- /dev/null +++ b/pm-stack/voice-line-worker/scripts/promote-version.mjs @@ -0,0 +1,126 @@ +// Promote one exact, previously uploaded version after checking provenance and +// the expected currently serving version. This script is only called by the +// approval-gated main-branch workflow. +import { execFileSync } from "node:child_process"; +import { createHash } from "node:crypto"; +import { readFile } from "node:fs/promises"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +import { + currentFullRolloutVersionId, + deployableVersionIds, + deploymentCreatedId, + exactHandoff, + exactWorkerId, + parseCfJson, + releaseRepository, + releaseWorker, + requireExactVersion, + parseDeploymentItems, + parseVersionItems, + uploadRunMatchesProvenance, + validatePromotionInputs, + verifyLatestDeployment, +} from "../src/deploy-contract.mjs"; + +const here = dirname(fileURLToPath(import.meta.url)); +const workerDir = resolve(here, ".."); +const workerName = releaseWorker; +if (process.env.GITHUB_REPOSITORY !== releaseRepository || process.env.GITHUB_REF !== "refs/heads/main" + || process.env.GITHUB_EVENT_NAME !== "workflow_dispatch") throw new Error("promotion requires the exact manual main workflow"); +const accountId = requiredEnv("CLOUDFLARE_ACCOUNT_ID"); +if (!/^[a-f0-9]{32}$/.test(accountId)) throw new Error("CLOUDFLARE_ACCOUNT_ID is invalid"); +const apiToken = requiredEnv("CLOUDFLARE_API_TOKEN"); +const githubToken = requiredEnv("GH_TOKEN"); +const versionId = requiredEnv("CANDIDATE_VERSION_ID"); +const sourceSha = requiredEnv("CANDIDATE_SOURCE_SHA").toLowerCase(); +const uploadRunId = requiredEnv("CANDIDATE_UPLOAD_RUN_ID"); +const uploadRunAttempt = requiredEnv("CANDIDATE_UPLOAD_RUN_ATTEMPT"); +const expectedCurrentVersionId = requiredEnv("EXPECTED_CURRENT_VERSION_ID"); +validatePromotionInputs({ versionId, sourceSha, uploadRunId, uploadRunAttempt, expectedCurrentVersionId }); + +const handoff = JSON.parse(await readFile(requiredEnv("VOICE_LINE_UPLOAD_RECEIPT"), "utf8")); + +const uploadRunResponse = await fetch( + `https://api.github.com/repos/${releaseRepository}/actions/runs/${encodeURIComponent(uploadRunId)}`, + { + headers: { + authorization: `Bearer ${githubToken}`, + accept: "application/vnd.github+json", + "x-github-api-version": "2022-11-28", + }, + redirect: "error", + signal: AbortSignal.timeout(15_000), + }, +); +if (!uploadRunResponse.ok) throw new Error(`upload-run provenance check failed with HTTP ${uploadRunResponse.status}`); +const uploadRun = await uploadRunResponse.json(); +if (!uploadRunMatchesProvenance(uploadRun, sourceSha, uploadRunId, uploadRunAttempt)) { + throw new Error("the referenced upload run is not a successful main-branch upload of this exact source SHA and attempt"); +} + +// Only a commit reachable from the checked-out main branch can be promoted. +execFileSync("git", ["cat-file", "-e", `${sourceSha}^{commit}`], { cwd: workerDir, stdio: "ignore" }); +execFileSync("git", ["merge-base", "--is-ancestor", sourceSha, "origin/main"], { cwd: workerDir, stdio: "ignore" }); + +const workerId = exactWorkerId(parseCfJson(runCf(["-q", "workers", "get", "--worker", workerName]))); +exactHandoff(handoff, { + worker: workerName, workerIdHash: createHash("sha256").update(workerId).digest("hex"), accountHash: createHash("sha256").update(accountId).digest("hex"), + versionId, sourceSha, uploadRunId, uploadRunAttempt, +}); +const versions = parseVersionItems(runCf(["-q", "workers", "versions", "list", "--worker", workerId, "--per-page", "100"])); +requireExactVersion(versions, versionId, sourceSha, uploadRunId, uploadRunAttempt); + +const deployableResponse = await fetch( + `https://api.cloudflare.com/client/v4/accounts/${encodeURIComponent(accountId)}/workers/scripts/${encodeURIComponent(workerName)}/versions?deployable=true`, + { headers: { authorization: `Bearer ${apiToken}` }, redirect: "error", signal: AbortSignal.timeout(15_000) }, +); +if (!deployableResponse.ok) throw new Error(`deployable-version check failed with HTTP ${deployableResponse.status}`); +const deployablePayload = await deployableResponse.json(); +if (!deployableVersionIds(deployablePayload).includes(versionId)) { + throw new Error(`version ${versionId} is not in the deployable set`); +} + +assertExpectedCurrentDeployment(); +// Repeat the read immediately before the mutating API command to fail closed +// if another deployment changed the serving version during the checks above. +assertExpectedCurrentDeployment(); + +const newDeployment = parseCfJson(runCf([ + "-q", "workers", "deployments", "create", + "--worker", workerName, + "--strategy", "percentage", + "--versions", JSON.stringify([{ version_id: versionId, percentage: 100 }]), +])); +const deploymentId = deploymentCreatedId(newDeployment, versionId); + +const after = parseDeploymentItems(runCf(["-q", "workers", "deployments", "list", "--worker", workerName])); +verifyLatestDeployment(after, deploymentId, versionId); +console.log(`Promoted version ${versionId} from ${sourceSha}; exact deployment ${deploymentId} serves 100%.`); + +function assertExpectedCurrentDeployment() { + const deployments = parseDeploymentItems(runCf(["-q", "workers", "deployments", "list", "--worker", workerName])); + const current = currentFullRolloutVersionId(deployments); + if (current !== expectedCurrentVersionId) { + throw new Error(`currently serving version is ${current ?? "not a single-version 100% rollout"}, expected ${expectedCurrentVersionId}; refusing promotion`); + } +} + +function runCf(args) { + const binary = resolve(workerDir, "node_modules/cf/bin/cf"); + const { GH_TOKEN: _githubToken, ...env } = process.env; + try { + return execFileSync(process.execPath, [binary, ...args], { + cwd: workerDir, env, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"], + }); + } catch { + throw new Error("cf promotion or verification failed; inspect provider state before retrying"); + } +} + +function requiredEnv(name) { + const value = process.env[name]; + if (!value) throw new Error(`${name} is required`); + return value; +} diff --git a/pm-stack/voice-line-worker/scripts/upload-version.mjs b/pm-stack/voice-line-worker/scripts/upload-version.mjs new file mode 100644 index 0000000000..e77480e3a2 --- /dev/null +++ b/pm-stack/voice-line-worker/scripts/upload-version.mjs @@ -0,0 +1,63 @@ +// Upload a prebuilt Worker Version without creating or changing a deployment. +import { execFileSync } from "node:child_process"; +import { createHash } from "node:crypto"; +import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises"; +import { tmpdir } from "node:os"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +import { exactWorkerId, parseCfJson, parseVersionItems, releaseRepository, releaseWorker, requireExactVersion, uploadedVersionId } from "../src/deploy-contract.mjs"; + +const here = dirname(fileURLToPath(import.meta.url)); +const workerDir = resolve(here, ".."); +if (process.env.GITHUB_REPOSITORY !== releaseRepository || process.env.GITHUB_REF !== "refs/heads/main" + || process.env.GITHUB_EVENT_NAME !== "workflow_dispatch") throw new Error("the upload requires the exact manual main workflow"); +const sha = requiredEnv("GITHUB_SHA"); +if (!/^[a-f0-9]{40}$/.test(sha)) throw new Error("GITHUB_SHA must be a full commit SHA"); +const runId = requiredEnv("GITHUB_RUN_ID"); +const runAttempt = requiredEnv("GITHUB_RUN_ATTEMPT"); +if (!/^[1-9]\d{0,19}$/.test(runId) || !/^[1-9]\d{0,19}$/.test(runAttempt)) { + throw new Error("GITHUB_RUN_ID and GITHUB_RUN_ATTEMPT must identify the upload workflow run"); +} +const accountId = requiredEnv("CLOUDFLARE_ACCOUNT_ID"); +if (!/^[a-f0-9]{32}$/.test(accountId)) throw new Error("CLOUDFLARE_ACCOUNT_ID is invalid"); +requiredEnv("CLOUDFLARE_API_TOKEN"); +const handoffPath = requiredEnv("VOICE_LINE_UPLOAD_RECEIPT"); +const workerId = exactWorkerId(parseCfJson(runCf(["-q", "workers", "get", "--worker", releaseWorker]))); + +const tag = `git-${sha}-r${runId}-a${runAttempt}`; +const message = `git ${sha}`; +const temp = await mkdtemp(resolve(tmpdir(), "voice-line-upload-")); +try { + const output = resolve(temp, "cf-output.jsonl"); + runCf(["-q", "workers", "versions", "create", "--prebuilt", "--worker", releaseWorker, "--tag", tag, "--message", message], + { ...process.env, WRANGLER_OUTPUT_FILE_PATH: output }); + const lines = (await readFile(output, "utf8")).trim().split("\n"); + const versionId = uploadedVersionId(lines.map((line) => JSON.parse(line))); + const versions = parseVersionItems(runCf(["-q", "workers", "versions", "list", "--worker", workerId, "--per-page", "100"])); + requireExactVersion(versions, versionId, sha, runId, runAttempt); + const accountHash = createHash("sha256").update(accountId).digest("hex"); + await writeFile(handoffPath, JSON.stringify({ + worker: releaseWorker, workerIdHash: createHash("sha256").update(workerId).digest("hex"), accountHash, versionId, sourceSha: sha, uploadRunId: runId, uploadRunAttempt: runAttempt, + }) + "\n", { mode: 0o600, flag: "wx" }); + console.log(`Uploaded candidate version ${versionId} from ${sha}, run ${runId} (attempt ${runAttempt}). No traffic changed.`); +} finally { + await rm(temp, { recursive: true, force: true }); +} + +function runCf(args, env = process.env) { + const binary = resolve(workerDir, "node_modules/cf/bin/cf"); + try { + return execFileSync(process.execPath, [binary, ...args], { + cwd: workerDir, env, encoding: "utf8", stdio: ["ignore", "pipe", "pipe"], + }); + } catch { + throw new Error("cf upload or verification failed; inspect provider state before retrying"); + } +} + +function requiredEnv(name) { + const value = process.env[name]; + if (!value) throw new Error(`${name} is required`); + return value; +} diff --git a/pm-stack/voice-line-worker/src/deploy-contract.mjs b/pm-stack/voice-line-worker/src/deploy-contract.mjs new file mode 100644 index 0000000000..406d47916f --- /dev/null +++ b/pm-stack/voice-line-worker/src/deploy-contract.mjs @@ -0,0 +1,176 @@ +const uuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; +export const releaseRepository = "developing-today/code"; +export const releaseWorker = "voice-line"; +const uploadWorkflow = ".github/workflows/voice-line-worker-deploy.yml"; +export const uploadEnvironment = "voice-line-worker-upload"; +export const promotionEnvironment = "voice-line-worker-production"; +const integerInput = /^[1-9]\d{0,19}$/; + +/** Parse cf's JSON output even when it prefixes human-readable progress. */ +export function parseCfJson(output) { + const text = output.trim(); + try { + return JSON.parse(text); + } catch { + for (const marker of ["{", "["]) { + for (let index = text.indexOf(marker); index >= 0; index = text.indexOf(marker, index + 1)) { + try { + return JSON.parse(text.slice(index)); + } catch { + // Continue until the first complete JSON value is found. + } + } + } + throw new Error(`could not parse cf JSON output`); + } +} + +function itemsFrom(parsed, label) { + if (Array.isArray(parsed)) return parsed; + if (parsed?.success === false) throw new Error(`Cloudflare rejected ${label} listing`); + if (Array.isArray(parsed?.result)) return parsed.result; + if (Array.isArray(parsed?.result?.items)) return parsed.result.items; + if (Array.isArray(parsed?.items)) return parsed.items; + if (Array.isArray(parsed?.result?.[label])) return parsed.result[label]; + if (Array.isArray(parsed?.[label])) return parsed[label]; + throw new Error(`unexpected ${label} output`); +} + +export function parseVersionItems(output) { + return itemsFrom(parseCfJson(output), "versions"); +} + +export function parseDeploymentItems(output) { + return itemsFrom(parseCfJson(output), "deployments"); +} + +function versionTag(version) { + return version.annotations?.["workers/tag"] + ?? version.metadata?.annotations?.["workers/tag"] + ?? version.metadata?.tag; +} + +function createdAt(version) { + const raw = version.metadata?.created_on ?? version.created_on ?? version.createdOn ?? 0; + const time = typeof raw === "number" ? raw : Date.parse(raw); + return Number.isFinite(time) ? time : 0; +} + +export function versionForTag(versions, tag) { + return versions.filter((version) => version.id && versionTag(version) === tag) + .sort((left, right) => createdAt(right) - createdAt(left))[0] ?? null; +} + +export function deployableVersionIds(payload) { + if (payload?.success === false) throw new Error("Cloudflare rejected the deployable-version check"); + const result = payload?.result; + const candidates = Array.isArray(result) ? result : (result?.items ?? []); + if (!Array.isArray(candidates)) throw new Error("unexpected deployable-version response shape"); + return candidates.flatMap((version) => typeof version?.id === "string" ? [version.id] : []); +} + +export function deploymentIsFullRollout(deployments, versionId) { + const latest = deployments[0]; + if (!Array.isArray(latest?.versions) || latest.versions.length !== 1) return false; + const [version] = latest.versions; + return version?.version_id === versionId && version.percentage === 100; +} + +export function currentFullRolloutVersionId(deployments) { + const latest = deployments[0]; + if (!Array.isArray(latest?.versions) || latest.versions.length !== 1) return null; + const [version] = latest.versions; + return typeof version?.version_id === "string" && version.percentage === 100 + ? version.version_id + : null; +} + +export function versionMatchesProvenance(version, sha, runId, runAttempt) { + const tag = versionTag(version); + const message = version.annotations?.["workers/message"] + ?? version.metadata?.annotations?.["workers/message"]; + return tag === `git-${sha}-r${runId}-a${runAttempt}` && message === `git ${sha}`; +} + +export function uploadRunMatchesProvenance(run, sha, runId, runAttempt) { + return run?.path === uploadWorkflow + && run.repository?.full_name === releaseRepository + && run.head_repository?.full_name === releaseRepository + && run.event === "workflow_dispatch" + && run.head_branch === "main" + && run.head_sha?.toLowerCase() === sha.toLowerCase() + && String(run.id) === runId + && String(run.run_attempt) === runAttempt + && run.status === "completed" + && run.conclusion === "success"; +} + +export function validatePromotionInputs({ versionId, sourceSha, uploadRunId, uploadRunAttempt, expectedCurrentVersionId }) { + if (!uuid.test(versionId)) throw new Error("version_id must be a Cloudflare Version UUID"); + if (!/^[a-f0-9]{40}$/i.test(sourceSha)) throw new Error("source_sha must be a full 40-character commit SHA"); + if (!integerInput.test(uploadRunId)) throw new Error("upload_run_id must be a positive GitHub Actions run ID"); + if (!integerInput.test(uploadRunAttempt)) throw new Error("upload_run_attempt must be a positive run attempt"); + if (!uuid.test(expectedCurrentVersionId)) throw new Error("expected_current_version_id must be a Cloudflare Version UUID"); +} + +export function validateEnvironment(environment, structure, policies) { + if (!(environment === uploadEnvironment || environment === promotionEnvironment) + || structure?.name !== environment || !Number.isSafeInteger(structure.id) || structure.id <= 0 + || structure.can_admins_bypass !== false || structure.deployment_branch_policy?.protected_branches !== false + || structure.deployment_branch_policy.custom_branch_policies !== true) { + throw new Error("Voice Line environment is missing or not protected"); + } + const reviewer = structure.protection_rules?.filter((rule) => rule?.type === "required_reviewers"); + if (reviewer?.length !== 1 || reviewer[0].prevent_self_review !== true || !Array.isArray(reviewer[0].reviewers) + || !reviewer[0].reviewers.some((record) => ["User", "Team"].includes(record.type) && Number.isSafeInteger(record.reviewer?.id) + && record.reviewer.id > 0)) throw new Error("Voice Line environment lacks independent reviewer protection"); + const rules = policies?.branch_policies; + if (policies?.total_count !== 1 || !Array.isArray(rules) || rules.length !== 1 + || rules[0]?.type !== "branch" || rules[0]?.name !== "main") { + throw new Error("Voice Line environment must allow only main and no tags"); + } +} + +export function exactWorkerId(result) { + if (result?.success !== true || result.result?.name !== releaseWorker || !/^[a-f0-9]{32}$/.test(result.result.id)) { + throw new Error("Cloudflare did not verify the exact existing Voice Line Worker"); + } + return result.result.id; +} + +// The cf version uploader's structured output file is distinct from stdout. +export function uploadedVersionId(receipts) { + if (!Array.isArray(receipts) || receipts.length !== 1) throw new Error("expected exactly one cf version-upload receipt"); + const row = receipts[0]; + if (row?.type !== "version-upload" || row.version !== 1 || row.worker_name !== releaseWorker + || !uuid.test(row.version_id)) throw new Error("cf version-upload receipt does not match the exact Worker"); + return row.version_id; +} + +export function requireExactVersion(versions, versionId, sha, runId, runAttempt) { + const rows = versions.filter((row) => row?.id === versionId); + if (rows.length !== 1 || !versionMatchesProvenance(rows[0], sha, runId, runAttempt)) { + throw new Error("exact version ID in receipt does not match Worker version provenance"); + } +} + +export function deploymentCreatedId(receipt, versionId) { + if (receipt?.success !== true || !uuid.test(receipt.result?.id) + || !deploymentIsFullRollout([receipt.result], versionId)) { + throw new Error("cf deployment receipt is not the exact 100% candidate"); + } + return receipt.result.id; +} + +export function verifyLatestDeployment(deployments, deploymentId, versionId) { + if (deployments[0]?.id !== deploymentId || deployments.filter((row) => row?.id === deploymentId).length !== 1 + || !deploymentIsFullRollout(deployments, versionId)) { + throw new Error("latest active deployment is not the returned deployment at 100% candidate traffic"); + } +} + +export function exactHandoff(handoff, expected) { + const keys = ["worker", "workerIdHash", "accountHash", "versionId", "sourceSha", "uploadRunId", "uploadRunAttempt"]; + if (!handoff || Object.keys(handoff).length !== keys.length + || keys.some((key) => handoff[key] !== expected[key])) throw new Error("upload receipt does not match the requested provenance"); +} diff --git a/pm-stack/voice-line-worker/test/deploy-contract.test.mjs b/pm-stack/voice-line-worker/test/deploy-contract.test.mjs new file mode 100644 index 0000000000..d50fc24c1b --- /dev/null +++ b/pm-stack/voice-line-worker/test/deploy-contract.test.mjs @@ -0,0 +1,106 @@ +import assert from "node:assert/strict"; +import test from "node:test"; + +import { + deployableVersionIds, + deploymentIsFullRollout, + currentFullRolloutVersionId, + parseCfJson, + parseDeploymentItems, + parseVersionItems, + versionForTag, + versionMatchesProvenance, + uploadRunMatchesProvenance, + validatePromotionInputs, +} from "../src/deploy-contract.mjs"; + +test("parses cf JSON after progress output", () => { + assert.deepEqual(parseCfJson('Creating version…\n{"result":{"id":"v1"}}'), { result: { id: "v1" } }); +}); + +test("rejects malformed cf output", () => { + assert.throws(() => parseCfJson("not JSON"), /could not parse cf JSON output/); +}); + +test("finds the newest version matching the commit tag", () => { + const versions = [ + { id: "old", annotations: { "workers/tag": "git-deadbeef1234" }, created_on: "2026-01-01T00:00:00Z" }, + { id: "new", metadata: { annotations: { "workers/tag": "git-deadbeef1234" }, created_on: "2026-02-01T00:00:00Z" } }, + { id: "other", annotations: { "workers/tag": "git-aabbccdd1122" } }, + ]; + assert.equal(versionForTag(versions, "git-deadbeef1234").id, "new"); + assert.equal(versionForTag(versions, "missing"), null); +}); + +test("requires exact version tag and message provenance for promotion", () => { + const sha = "deadbeef1234" + "a".repeat(28); + assert.equal(versionMatchesProvenance({ + id: "candidate", + annotations: { "workers/tag": `git-${sha}-r12345-a2`, "workers/message": `git ${sha}` }, + }, sha, "12345", "2"), true); + assert.equal(versionMatchesProvenance({ + id: "spoofed", + annotations: { "workers/tag": `git-${sha}-r12345-a1`, "workers/message": `git ${sha}` }, + }, sha, "12345", "2"), false); +}); + +test("accepts only a successful main upload run for the exact commit and attempt", () => { + const sha = "a".repeat(40); + const run = { + path: ".github/workflows/voice-line-worker-deploy.yml", + repository: { full_name: "developing-today/code" }, + head_repository: { full_name: "developing-today/code" }, + id: 12345, + event: "workflow_dispatch", + head_branch: "main", + head_sha: sha, + run_attempt: 2, + status: "completed", + conclusion: "success", + }; + assert.equal(uploadRunMatchesProvenance(run, sha, "12345", "2"), true); + assert.equal(uploadRunMatchesProvenance({ ...run, path: ".github/workflows/other.yml@main" }, sha, "12345", "2"), false); + assert.equal(uploadRunMatchesProvenance({ ...run, conclusion: "failure" }, sha, "12345", "2"), false); + assert.equal(uploadRunMatchesProvenance(run, sha, "12345", "1"), false); +}); + +test("accepts API deployable versions and refuses absent versions", () => { + assert.deepEqual(deployableVersionIds({ result: { items: [{ id: "v1" }] } }), ["v1"]); + assert.deepEqual(deployableVersionIds({ result: [] }), []); + assert.throws(() => deployableVersionIds({ success: false }), /rejected the deployable-version check/); +}); + +test("requires a sole 100 percent rollout of the requested version", () => { + assert.equal(deploymentIsFullRollout([{ versions: [{ version_id: "v1", percentage: 100 }] }], "v1"), true); + assert.equal(deploymentIsFullRollout([{ versions: [{ version_id: "v1", percentage: 99 }] }], "v1"), false); + assert.equal(deploymentIsFullRollout([{ versions: [{ version_id: "v1", percentage: 50 }, { version_id: "v2", percentage: 50 }] }], "v1"), false); + assert.equal(deploymentIsFullRollout([], "v1"), false); +}); + +test("identifies only an unambiguous current 100 percent deployment", () => { + assert.equal(currentFullRolloutVersionId([{ versions: [{ version_id: "v1", percentage: 100 }] }]), "v1"); + assert.equal(currentFullRolloutVersionId([{ versions: [{ version_id: "v1", percentage: 99 }] }]), null); + assert.equal(currentFullRolloutVersionId([{ versions: [{ version_id: "v1", percentage: 50 }, { version_id: "v2", percentage: 50 }] }]), null); + assert.equal(currentFullRolloutVersionId([]), null); +}); + +test("promotion inputs require exact SHA and UUID values", () => { + const values = { + versionId: "123e4567-e89b-42d3-a456-426614174000", + sourceSha: "a".repeat(40), + uploadRunId: "12345", + uploadRunAttempt: "2", + expectedCurrentVersionId: "123e4567-e89b-42d3-a456-426614174001", + }; + assert.doesNotThrow(() => validatePromotionInputs(values)); + assert.throws(() => validatePromotionInputs({ ...values, versionId: "latest" }), /Version UUID/); + assert.throws(() => validatePromotionInputs({ ...values, sourceSha: "deadbeef" }), /full 40-character/); + assert.throws(() => validatePromotionInputs({ ...values, uploadRunId: "-1" }), /positive GitHub Actions run ID/); + assert.throws(() => validatePromotionInputs({ ...values, expectedCurrentVersionId: "latest" }), /expected_current_version_id/); +}); + +test("parses version and deployment list output shapes", () => { + assert.deepEqual(parseVersionItems('{"result":{"items":[{"id":"v1"}]}}'), [{ id: "v1" }]); + assert.deepEqual(parseDeploymentItems('{"result":[{"id":"d1"}]}'), [{ id: "d1" }]); + assert.throws(() => parseVersionItems("{}"), /unexpected versions output/); +}); diff --git a/pm-stack/voice-line-worker/test/release-safety.test.mjs b/pm-stack/voice-line-worker/test/release-safety.test.mjs new file mode 100644 index 0000000000..6e8a31bfe0 --- /dev/null +++ b/pm-stack/voice-line-worker/test/release-safety.test.mjs @@ -0,0 +1,71 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { + deploymentCreatedId, exactHandoff, exactWorkerId, parseDeploymentItems, requireExactVersion, uploadedVersionId, + uploadRunMatchesProvenance, validateEnvironment, verifyLatestDeployment, +} from "../src/deploy-contract.mjs"; + +const worker = "voice-line"; +const workerId = "a".repeat(32); +const repo = "developing-today/code"; +const environment = "voice-line-worker-production"; +const v1 = "123e4567-e89b-42d3-a456-426614174000"; +const v2 = "123e4567-e89b-42d3-a456-426614174001"; +const d1 = "123e4567-e89b-42d3-a456-426614174002"; +const d2 = "123e4567-e89b-42d3-a456-426614174003"; +const sha = "a".repeat(40), run = "12345", attempt = "2"; +const version = (id) => ({ id, annotations: { "workers/tag": `git-${sha}-r${run}-a${attempt}`, "workers/message": `git ${sha}` } }); +const deployed = (id, version_id = v1) => ({ id, versions: [{ version_id, percentage: 100 }] }); + +test("pinned cf receipt oracle identifies exactly the returned Worker version, not another matching tag", () => { + const receipt = { type: "version-upload", version: 1, worker_name: worker, version_id: v1 }; + assert.equal(uploadedVersionId([receipt]), v1); + assert.doesNotThrow(() => requireExactVersion([version(v2), version(v1)], v1, sha, run, attempt)); + for (const shape of [[], [receipt, receipt], [{ ...receipt, worker_name: "other" }], [{ ...receipt, version_id: null }]]) { + assert.throws(() => uploadedVersionId(shape), /receipt/); + } + assert.throws(() => requireExactVersion([version(v2)], v1, sha, run, attempt), /exact version ID/); + assert.throws(() => requireExactVersion([version(v1), version(v1)], v1, sha, run, attempt), /exact version ID/); +}); + +test("legacy deployment envelope oracle verifies the returned deployment, rejects stale history and split", () => { + assert.equal(deploymentCreatedId({ success: true, result: deployed(d1) }, v1), d1); + const entries = parseDeploymentItems(JSON.stringify({ success: true, result: { deployments: [deployed(d1), deployed(d2)] } })); + assert.doesNotThrow(() => verifyLatestDeployment(entries, d1, v1)); + assert.throws(() => verifyLatestDeployment(entries, d2, v1), /latest active/); + assert.throws(() => verifyLatestDeployment([deployed(d1), deployed(d1)], d1, v1), /latest active/); + const split = { id: d1, versions: [{ version_id: v1, percentage: 50 }, { version_id: v2, percentage: 50 }] }; + assert.throws(() => deploymentCreatedId({ success: true, result: split }, v1), /100%/); + assert.throws(() => deploymentCreatedId({ success: false, result: deployed(d1) }, v1), /100%/); +}); + +test("GitHub run and artifact must name the exact repo, file, account fingerprint, Worker, SHA, version and attempt", () => { + const gh = { + path: ".github/workflows/voice-line-worker-deploy.yml", repository: { full_name: repo }, head_repository: { full_name: repo }, + id: Number(run), run_attempt: Number(attempt), event: "workflow_dispatch", head_branch: "main", + head_sha: sha, status: "completed", conclusion: "success", + }; + assert.equal(uploadRunMatchesProvenance(gh, sha, run, attempt), true); + assert.equal(uploadRunMatchesProvenance({ ...gh, head_repository: { full_name: "other/code" } }, sha, run, attempt), false); + assert.equal(uploadRunMatchesProvenance({ ...gh, path: gh.path + "@main" }, sha, run, attempt), false); + assert.equal(exactWorkerId({ success: true, result: { name: worker, id: workerId } }), workerId); + assert.throws(() => exactWorkerId({ success: true, result: { name: "other-worker", id: workerId } }), /exact existing/); + const handoff = { worker, workerIdHash: "c".repeat(64), accountHash: "b".repeat(64), versionId: v1, sourceSha: sha, uploadRunId: run, uploadRunAttempt: attempt }; + assert.doesNotThrow(() => exactHandoff(handoff, handoff)); + for (const key of Object.keys(handoff)) assert.throws(() => exactHandoff({ ...handoff, [key]: "wrong" }, handoff), /provenance/); +}); + +test("environment policy oracle fails closed before a job can attach missing or weaker protection", () => { + const env = { + name: environment, id: 17, can_admins_bypass: false, + deployment_branch_policy: { protected_branches: false, custom_branch_policies: true }, + protection_rules: [{ type: "required_reviewers", prevent_self_review: true, reviewers: [{ type: "User", reviewer: { id: 1 } }] }], + }; + const rules = { total_count: 1, branch_policies: [{ name: "main", type: "branch" }] }; + assert.doesNotThrow(() => validateEnvironment(environment, env, rules)); + assert.throws(() => validateEnvironment(environment, null, rules), /not protected/); + assert.throws(() => validateEnvironment(environment, { ...env, can_admins_bypass: true }, rules), /not protected/); + assert.throws(() => validateEnvironment(environment, { ...env, protection_rules: [] }, rules), /reviewer protection/); + assert.throws(() => validateEnvironment(environment, env, { total_count: 2, branch_policies: rules.branch_policies }), /only main/); + assert.throws(() => validateEnvironment(environment, env, { total_count: 1, branch_policies: [{ name: "main", type: "tag" }] }), /no tags/); +});