Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

feat(container): add a local Wolfi build for Linux amd64 (#2053)

andy-tang-oai1c98d9556fa3
diff --git a/.dockerignore b/.dockerignore
index 4cdd911d2..9257a53fe 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -15,3 +15,4 @@ sdk/typescript/tests-ts/*.test.ts
**/security-scans
**/state
**/*.log
+docker/wolfi/build
diff --git a/.gitattributes b/.gitattributes
index 628cf9633..89431e09d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -13,3 +13,6 @@
# Bundled dependencies contain intentional whitespace in strings and comments.
github-action/dist/*.cjs linguist-generated=true -whitespace
+
+# This checksum-pinned upstream license contains its original whitespace.
+docker/wolfi/payload/notices/BUBBLEWRAP-COPYING -text -whitespace
diff --git a/docker/README.md b/docker/README.md
index 8f11d4bee..c3cb936f0 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -149,6 +149,9 @@ docker build --target scanner -t codex-security:local .
export CODEX_SECURITY_IMAGE=codex-security:local
```
+For a local Linux amd64 build of the pinned npm release on Wolfi, see the
+[melange and apko recipe](wolfi/README.md).
+
The existing `CODEX_SECURITY_RESULTS` and `CODEX_SECURITY_STATE` settings select
the host directories (default `./results` and `./state`):
diff --git a/docker/wolfi/.gitignore b/docker/wolfi/.gitignore
new file mode 100644
index 000000000..466a6e3a2
--- /dev/null
+++ b/docker/wolfi/.gitignore
@@ -0,0 +1,4 @@
+/.build/
+/build/
+*.rsa
+__pycache__/
diff --git a/docker/wolfi/README.md b/docker/wolfi/README.md
new file mode 100644
index 000000000..26975726a
--- /dev/null
+++ b/docker/wolfi/README.md
@@ -0,0 +1,97 @@
+# Build a local Wolfi scanner image
+
+This recipe packages the published `@openai/[email protected]` for
+Linux amd64. [melange](https://github.com/chainguard-dev/melange) creates
+the scanner APK; [apko](https://github.com/chainguard-dev/apko) assembles it
+with packages from the [public Wolfi repository](https://github.com/wolfi-dev/os).
+The image uses the same entrypoint, UID/GID 10001, and `/input`, `/output`, and
+`/state` directories as the [published scanner](../README.md). It is a local
+alternative to that image. It does not build unreleased changes in this checkout
+or publish tags to a registry.
+
+## Build and inspect
+
+Use a Linux amd64 builder with user namespaces and Bubblewrap, apko 1.4.13,
+melange 0.61.1, Python 3.9 or later, Node.js with npm 11, OpenSSL,
+and Docker for runtime testing. From the repository root:
+
+```sh
+docker/wolfi/build.sh /tmp/codex-security-wolfi
+docker load --input /tmp/codex-security-wolfi/image.tar
+docker run --rm --pull=never --network=none codex-security:wolfi-amd64 --version
+```
+
+Use a new output directory for each build. Alongside the Docker archive,
+the builder writes the signed scanner APK and index, apko locks, SPDX SBOMs,
+a [component inventory](verify-public.py), and a signed `SHA256SUMS`. To verify
+the saved files later, use the public key retained from that build:
+
+```sh
+cd /tmp/codex-security-wolfi
+openssl dgst -sha256 -verify melange.rsa.pub -signature SHA256SUMS.sig SHA256SUMS
+sha256sum --check SHA256SUMS
+```
+
+Each run generates a local signing key, adds its public half to the APK keyring,
+and removes the private key at exit. The key identifies that build; it is not
+an upstream release signature. A new key changes the APK and image digests.
+
+To test that the melange guest can be built without access to Wolfi, run a
+build with the [offline melange wrapper](tests/offline-melange.sh) on a Linux
+builder that permits `unshare --net`:
+
+```sh
+MELANGE="$PWD/docker/wolfi/tests/offline-melange.sh" docker/wolfi/build.sh /tmp/codex-security-offline-guest
+```
+
+The wrapper disconnects melange before it installs the guest packages. Staging
+the inputs and resolving the runtime lock still need the network.
+
+## Run the offline smoke test
+
+On a native Linux amd64 Docker host with AppArmor and user namespaces, load
+the built image and run the following from the repository root. If the
+`codex-security-container` AppArmor profile is already loaded, omit the setup
+and cleanup commands. Otherwise use a disposable test host:
+
+```sh
+sudo apparmor_parser --skip-cache --add docker/codex-security.apparmor
+docker/wolfi/tests/smoke.sh codex-security:wolfi-amd64
+sudo apparmor_parser --skip-cache --remove docker/codex-security.apparmor
+```
+
+The test uses the repository's seccomp profile with a read-only root filesystem,
+no capabilities, and no external network. It exercises the CLI, the native plugin,
+artifact and SARIF output, saved history, and a model turn against a loopback
+fixture. It also checks that a sandboxed child can read the test repository but
+cannot modify it. A real scan needs a compatible model endpoint; the image
+does not include a model.
+
+## Inputs and updates
+
+[builder.yaml](builder.yaml) and [apko.yaml](apko.yaml) list the exact builder
+and runtime packages. [build-inputs.json](build-inputs.json) pins their resolved
+lock identities and Wolfi's signing key. The build downloads the locked builder
+APKs, verifies their bytes, and gives melange only a local, signed index of those
+files. The
+[npm lock](payload/package-lock.json) pins the scanner and dependencies.
+[stage.py](payload/stage.py) checks the target dependency graph, skips npm
+lifecycle scripts, and stages the Linux scanner. [melange.yaml](melange.yaml)
+checks the normalized tar hash before installing it. The APK omits the optional
+voice runtime and plugin binaries for other platforms; it keeps the matching
+Linux addon, Codex, code-mode host, Bubblewrap, ripgrep, and license notices.
+In the image, `/usr/share/licenses/codex-security/SOURCES.json` records the
+sources and hashes of the native files along with the npm dependency inventory.
+The original npm lock is retained, including optional packages for other
+platforms; the inventory lists only packages installed in the image.
+Components keep their upstream licenses.
+
+If the public Wolfi index moves past a pinned version, refresh the affected
+package pins and review the resulting apko locks and component inventory before
+updating the lock digests. For a new scanner release, update the npm dependency
+and lock, the native source and notice pins, the APK version in the
+[package](melange.yaml) and [image](apko.yaml) recipes and build inputs, and the
+smoke test's expected versions. Regenerate the payload with
+`python3 docker/wolfi/payload/stage.py /tmp/wolfi-stage` and update the normalized
+tar hash after reviewing what changed. Build the image and repeat the native
+smoke test for either kind of update.
diff --git a/docker/wolfi/apko.yaml b/docker/wolfi/apko.yaml
new file mode 100644
index 000000000..8c0fdf288
--- /dev/null
+++ b/docker/wolfi/apko.yaml
@@ -0,0 +1,97 @@
+# The image lock binds the public Wolfi packages and the locally signed scanner.
+contents:
+ repositories:
+ - https://packages.wolfi.dev/os
+ build_repositories:
+ - ./packages
+ keyring:
+ - ./wolfi-signing.rsa.pub
+ - ./melange.rsa.pub
+ packages:
+ - busybox=1.38.0-r3
+ - c-ares=1.34.9-r0
+ - ca-certificates-bundle=20261020-r0
+ - codex-security=0.7.0-r1
+ - cyrus-sasl-heimdal-libs=2.1.28-r58
+ - gdbm=1.26-r8
+ - git=2.56.0-r3
+ - glibc-2.44-locale-posix=2.44-r9
+ - glibc-2.44=2.44-r9
+ - heimdal-libs=7.8.0-r54
+ - icu78-data-full=78.3-r4
+ - keyutils-libs=1.6.3-r41
+ - krb5-conf=1.0-r10
+ - krb5-libs=1.22.2-r5
+ - ld-linux-2.44=2.44-r9
+ - libbrotlicommon1=1.2.1-r1
+ - libbrotlidec1=1.2.1-r1
+ - libbrotlienc1=1.2.1-r1
+ - libbz2-1=1.0.8-r27
+ - libcom_err=1.47.4-r4
+ - libcrypt1-2.44=2.44-r9
+ - libcurl-openssl4=8.23.0-r2
+ - libedit=3.1-r20
+ - libexpat1=2.9.0-r0
+ - libffi=3.8.0-r2
+ - libgcc=16.2.0-r1
+ - libicu78=78.3-r4
+ - libidn2=2.3.8-r11
+ - libldap-2.7=2.7.2-r0
+ - libnghttp2-14=1.70.0-r6
+ - libpcre2-8-0=10.49-r1
+ - libpsl=0.23.3-r3
+ - libselinux=3.11-r2
+ - libsepol=3.11-r3
+ - libstdc++=16.2.0-r1
+ - libunistring=1.5-r0
+ - libuuid=2.42.4-r1
+ - libuv=1.53.0-r0
+ - libverto=0.3.2-r10
+ - libxcrypt=4.5.2-r6
+ - mpdecimal=4.0.1-r5
+ - ncurses-terminfo-base=6.6.20261024-r0
+ - ncurses=6.6.20261024-r0
+ - nghttp3=1.18.0-r2
+ - ngtcp2=1.25.0-r6
+ - nodejs-26=26.12.1-r2
+ - openssh-client=10.6_p1-r0
+ - openssl-4.0-libcrypto=4.0.3-r8
+ - openssl-4.0-libssl=4.0.3-r8
+ - openssl-provider-legacy-allowed=4.1.0-r0
+ - py3-pip-wheel=26.2.2-r0
+ - python-3.13-base=3.13.17_git20261023-r0
+ - python-3.13=3.13.17_git20261023-r0
+ - readline=8.3-r3
+ - sqlite-libs=3.54.1-r0
+ - wolfi-baselayout=20230201-r30
+ - xz=5.8.4-r0
+ - zlib=1.3.2.1_rc20260921-r0
+archs:
+ - x86_64
+accounts:
+ groups:
+ - groupname: codex-security
+ gid: 10001
+ users:
+ - username: codex-security
+ uid: 10001
+ gid: 10001
+ homedir: /state
+ shell: /bin/sh
+ run-as: '10001:10001'
+paths:
+ - {path: /input, type: directory, uid: 0, gid: 0, permissions: 0o755}
+ - {path: /output, type: directory, uid: 10001, gid: 10001, permissions: 0o755}
+ - {path: /state, type: directory, uid: 10001, gid: 10001, permissions: 0o755}
+environment:
+ PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ HOME: /state
+ CODEX_HOME: /state
+ CODEX_SECURITY_STATE_DIR: /output/.codex-security-state
+ GIT_TERMINAL_PROMPT: '0'
+ PYTHON: /usr/bin/python3
+ SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
+work-dir: /state
+entrypoint:
+ command: /usr/local/bin/codex-security-entrypoint
+cmd: --help
diff --git a/docker/wolfi/build-inputs.json b/docker/wolfi/build-inputs.json
new file mode 100644
index 000000000..865216d49
--- /dev/null
+++ b/docker/wolfi/build-inputs.json
@@ -0,0 +1,14 @@
+{
+ "wolfi_key_source": "https://packages.wolfi.dev/os/wolfi-signing.rsa.pub",
+ "wolfi_key_sha256": "f0031424cf46f7db780ce63a45f0fd6aa6f85f601e6bb3b7a91fe3d4d5b7d2cc",
+ "repository": "https://packages.wolfi.dev/os",
+ "local_package": "codex-security=0.7.0-r1",
+ "snapshots": {
+ "builder": {
+ "lock_identity_sha256": "77cd79a5f9b66efc5d0f03dee78f2e24b66dc1a5acfc2454ba33e124aeb758a0"
+ },
+ "runtime": {
+ "lock_identity_sha256": "6ed7b6d59587eb43f7e831ca4faca86310d6c2a6438288e2ef5a98b870d5517a"
+ }
+ }
+}
diff --git a/docker/wolfi/build.sh b/docker/wolfi/build.sh
new file mode 100755
index 000000000..92249cf5d
--- /dev/null
+++ b/docker/wolfi/build.sh
@@ -0,0 +1,105 @@
+#!/usr/bin/env bash
+# Build and verify a local linux/amd64 image from the public Wolfi repository.
+set -euo pipefail
+
+usage() {
+ cat <<'EOF'
+Usage: ./build.sh [NEW_OUTPUT_DIR] (default: ./build next to this script)
+Requires Linux with an x86_64-capable melange/bubblewrap runner, melange 0.61.1,
+apko 1.4.13, Python 3.9+, OpenSSL, and npm 11 for payload staging.
+APKO and MELANGE optionally name the installed tool executables.
+STAGED_PAYLOAD optionally names an absolute path to an already staged payload
+matching the hash in melange.yaml. All OS packages come from packages.wolfi.dev.
+Each run generates a new local signing key and removes the private key at exit.
+EOF
+}
+die() { printf '%s\n' "$*" >&2; exit 1; }
+[[ ${1:-} != -h && ${1:-} != --help ]] || { usage; exit 0; }
+[[ $# -le 1 && ${1:-} != -* ]] || { usage >&2; exit 2; }
+root=$(cd "$(dirname "$0")" && pwd -P)
+out=${1:-"$root/build"}
+apko=${APKO:-apko}; melange=${MELANGE:-melange}
+"$apko" version | grep -Eq '^GitVersion:[[:space:]]+v1\.4\.13$' || die 'Expected apko 1.4.13'
+"$melange" version | grep -Eq '^GitVersion:[[:space:]]+v0\.61\.1$' || die 'Expected melange 0.61.1'
+python3 -c 'import sys; sys.exit(0 if sys.version_info >= (3,9) else "Python 3.9+ required")'
+if [[ -n ${STAGED_PAYLOAD:-} ]]; then
+ [[ $STAGED_PAYLOAD == /* && -f $STAGED_PAYLOAD ]] || die 'STAGED_PAYLOAD must be an existing absolute file path'
+else
+ [[ $(npm --version) == 11.* ]] || die 'Expected npm 11'
+fi
+mkdir -p "$(dirname "$out")"
+(umask go-w; mkdir "$out") || die 'Use a new output directory for each build'
+cd "$out"; out=$(pwd -P)
+scratch=$(mktemp -d /tmp/codex-security-build.XXXXXXXX)
+trap 'rm -rf -- "$scratch"' EXIT
+trap 'exit 130' INT; trap 'exit 143' TERM
+unset HTTP_AUTH SOURCE_DATE_EPOCH
+mkdir -p src packages sbom
+cp "$root"/{wolfi-signing.rsa.pub,builder.yaml,apko.yaml,melange.yaml,build-inputs.json} .
+(cd "$scratch"; "$melange" keygen melange.rsa)
+cp "$scratch/melange.rsa.pub" .
+stamp=2026-10-26T11:30:14Z
+# Authenticate the upstream indexes with the reviewed Wolfi key.
+python3 -c 'import hashlib, json, pathlib, sys
+actual = hashlib.sha256(pathlib.Path("wolfi-signing.rsa.pub").read_bytes()).hexdigest()
+if actual != json.load(open("build-inputs.json"))["wolfi_key_sha256"]: sys.exit("Unexpected Wolfi signing key")'
+
+# Verify the lock's origin, architecture, control/data checksums and exact keyring.
+check_lock() {
+ python3 - "$1" "$2" <<'PY'
+import hashlib, json, sys
+from pathlib import Path
+m=json.loads(Path("build-inputs.json").read_text()); which=sys.argv[1]; snap=m["snapshots"][which]
+c=json.loads(Path(sys.argv[2]).read_text())["contents"]; local_spec=m["local_package"]
+rows=[]; local=[]
+for p in c["packages"]:
+ n=p["name"]; v=p["version"]; filename=f"{n}-{v}.apk"
+ if p["architecture"]!="x86_64": raise ValueError(f"Unexpected architecture: {n}")
+ if p["url"]=="./packages/x86_64/"+filename: local.append(n+"="+v)
+ else:
+ if p["url"]!=m["repository"]+"/x86_64/"+filename: raise ValueError(f"Unexpected package URL: {n}")
+ rows.append({k:v for k,v in p.items() if k!="url"})
+rows.sort(key=lambda r:r["name"])
+digest=hashlib.sha256(json.dumps(rows,sort_keys=True,separators=(",",":")).encode()).hexdigest()
+if digest!=snap["lock_identity_sha256"] or local!=([] if which=="builder" else [local_spec]):
+ raise ValueError(f"{which}: package identities differ from the public snapshot")
+keys={(Path(k["name"]).name,k["content"]) for k in c["keyring"]}
+expected={"wolfi-signing.rsa.pub":Path("wolfi-signing.rsa.pub").read_text()}
+if which=="runtime": expected["melange.rsa.pub"]=Path("melange.rsa.pub").read_text()
+if keys!=set(expected.items()): raise ValueError(f"{which}: unrecognized or missing APK signing keys")
+PY
+}
+"$apko" lock builder.yaml --arch x86_64 --output builder.lock.json --cache-dir "$scratch/cache"
+check_lock builder builder.lock.json
+# Sign an index over exactly the APK bytes authenticated by the builder lock.
+snapshot=$scratch/builder-repo
+python3 "$root/snapshot-builder.py" builder.lock.json "$snapshot"
+"$melange" index --arch x86_64 --signing-key "$scratch/melange.rsa" \
+ --output "$snapshot/x86_64/APKINDEX.tar.gz" "$snapshot"/x86_64/*.apk
+if [[ -n ${STAGED_PAYLOAD:-} ]]; then
+ cp "$STAGED_PAYLOAD" src/payload.tar.gz
+else
+ python3 "$root/payload/stage.py" "$out/src"
+fi
+pins=$(python3 -c 'import json; print(",".join(p["name"]+"="+p["version"] for p in json.load(open("builder.lock.json"))["contents"]["packages"]))')
+"$melange" build melange.yaml --source-dir "$out/src" --arch x86_64 --runner bubblewrap \
+ --signing-key "$scratch/melange.rsa" --generate-index --out-dir "$out/packages" \
+ --repository-append "$snapshot" --keyring-append "$out/melange.rsa.pub" --package-append "$pins" \
+ --build-date "$stamp" --apk-cache-dir "$scratch/guest-apk-cache" --cache-dir "$scratch/melange-cache"
+"$apko" lock apko.yaml --arch x86_64 --output image.lock.json --cache-dir "$scratch/cache"
+check_lock runtime image.lock.json
+tag=codex-security:wolfi
+"$apko" build apko.yaml "$tag" .image.unverified.tar --arch x86_64 --lockfile image.lock.json \
+ --cache-dir "$scratch/cache" --vcs=false --sbom-path ./sbom --build-date "$stamp"
+
+python3 "$root/verify-public.py" .image.unverified.tar image.lock.json
+mv .image.unverified.tar image.tar
+# This single detached signature covers the image, locks, SBOMs and signed local APK evidence.
+sha256sum build-inputs.json builder.yaml builder.lock.json apko.yaml image.lock.json melange.yaml \
+ melange.rsa.pub wolfi-signing.rsa.pub verification.json public-components.json image.tar sbom/*.spdx.json \
+ packages/x86_64/APKINDEX.tar.gz packages/x86_64/*.apk > SHA256SUMS
+openssl dgst -sha256 -sign "$scratch/melange.rsa" -out SHA256SUMS.sig SHA256SUMS
+openssl dgst -sha256 -verify melange.rsa.pub -signature SHA256SUMS.sig SHA256SUMS
+sha256sum -c SHA256SUMS
+loaded_tag=$(python3 -c 'import json; print(json.load(open("verification.json"))["tag"])')
+printf 'Built %s: %s/image.tar\n' "$loaded_tag" "$out"
diff --git a/docker/wolfi/builder.yaml b/docker/wolfi/builder.yaml
new file mode 100644
index 000000000..16902cfa1
--- /dev/null
+++ b/docker/wolfi/builder.yaml
@@ -0,0 +1,18 @@
+# Public packages used to populate the local melange repository.
+contents:
+ repositories:
+ - https://packages.wolfi.dev/os
+ keyring:
+ - ./wolfi-signing.rsa.pub
+ packages:
+ - busybox=1.38.0-r3
+ - ca-certificates-bundle=20261020-r0
+ - glibc-2.44=2.44-r9
+ - glibc-2.44-locale-posix=2.44-r9
+ - ld-linux-2.44=2.44-r9
+ - libcrypt1-2.44=2.44-r9
+ - libgcc=16.2.0-r1
+ - libxcrypt=4.5.2-r6
+ - wolfi-baselayout=20230201-r30
+archs:
+ - x86_64
diff --git a/docker/wolfi/melange.yaml b/docker/wolfi/melange.yaml
new file mode 100644
index 000000000..8d92f3444
--- /dev/null
+++ b/docker/wolfi/melange.yaml
@@ -0,0 +1,43 @@
+# Stage once using payload/stage.py; pass that directory as melange --source-dir.
+# build.sh supplies the signed local repository prepared from builder.lock.json.
+package:
+ name: codex-security
+ version: "0.7.0"
+ epoch: 1
+ description: Codex Security repository scanner and bundled Linux amd64 Codex runtime
+ target-architecture: [x86_64]
+ copyright:
+ - license: Apache-2.0
+ # The npm native add-ons are loaded by Node, not system SONAME providers.
+ # Their shared runtime requirements are declared explicitly below.
+ options:
+ no-provides: true
+ no-depends: true
+ dependencies:
+ runtime:
+ - busybox
+ - ca-certificates-bundle
+ - cmd:node
+ - git
+ - glibc
+ - libgcc
+ - openssh-client
+ - python3
+
+environment:
+ contents:
+ packages:
+ - busybox
+
+pipeline:
+ - name: Verify and install the locked Linux scanner payload
+ runs: |
+ set -eu
+ expected=db42f7b5b4d0bfc79975e38778ece88d02d31887a262f8a5c0e5bdfdbbe3563d
+ actual=$(gzip -dc payload.tar.gz | sha256sum)
+ test "${actual%% *}" = "$expected"
+ mkdir -p "${{targets.destdir}}"
+ tar -xzf payload.tar.gz -C "${{targets.destdir}}"
+ test -x "${{targets.destdir}}/usr/bin/codex-security"
+ test -x "${{targets.destdir}}/usr/local/bin/codex-security-entrypoint"
+ test -s "${{targets.destdir}}/usr/share/licenses/codex-security/SOURCES.json"
diff --git a/docker/wolfi/payload/CODEX-NOTICE b/docker/wolfi/payload/CODEX-NOTICE
new file mode 100644
index 000000000..2805899d5
--- /dev/null
+++ b/docker/wolfi/payload/CODEX-NOTICE
@@ -0,0 +1,6 @@
+OpenAI Codex
+Copyright 2025 OpenAI
+
+This project includes code derived from [Ratatui](https://github.com/ratatui/ratatui), licensed under the MIT license.
+Copyright (c) 2016-2022 Florian Dehau
+Copyright (c) 2023-2025 The Ratatui Developers
diff --git a/docker/wolfi/payload/notices/BUBBLEWRAP-COPYING b/docker/wolfi/payload/notices/BUBBLEWRAP-COPYING
new file mode 100644
index 000000000..5bc8fb2c8
--- /dev/null
+++ b/docker/wolfi/payload/notices/BUBBLEWRAP-COPYING
@@ -0,0 +1,481 @@
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the library GPL. It is
+ numbered 2 because it goes with version 2 of the ordinary GPL.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Library General Public License, applies to some
+specially designated Free Software Foundation software, and to any
+other libraries whose authors decide to use it. You can use it for
+your libraries, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if
+you distribute copies of the library, or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link a program with the library, you must provide
+complete object files to the recipients so that they can relink them
+with the library, after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ Our method of protecting your rights has two steps: (1) copyright
+the library, and (2) offer you this license which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ Also, for each distributor's protection, we want to make certain
+that everyone understands that there is no warranty for this free
+library. If the library is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original
+version, so that any problems introduced by others will not reflect on
+the original authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that companies distributing free
+software will individually obtain patent licenses, thus in effect
+transforming the program into proprietary software. To prevent this,
+we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+ Most GNU software, including some libraries, is covered by the ordinary
+GNU General Public License, which was designed for utility programs. This
+license, the GNU Library General Public License, applies to certain
+designated libraries. This license is quite different from the ordinary
+one; be sure to read it in full, and don't assume that anything in it is
+the same as in the ordinary license.
+
+ The reason we have a separate public license for some libraries is that
+they blur the distinction we usually make between modifying or adding to a
+program and simply using it. Linking a program with a library, without
+changing the library, is in some sense simply using the library, and is
+analogous to running a utility program or application program. However, in
+a textual and legal sense, the linked executable is a combined work, a
+derivative of the original library, and the ordinary General Public License
+treats it as such.
+
+ Because of this blurred distinction, using the ordinary General
+Public License for libraries did not effectively promote software
+sharing, because most developers did not use the libraries. We
+concluded that weaker conditions might promote sharing better.
+
+ However, unrestricted linking of non-free programs would deprive the
+users of those programs of all benefit from the free status of the
+libraries themselves. This Library General Public License is intended to
+permit developers of non-free programs to use free libraries, while
+preserving your freedom as a user of such programs to change the free
+libraries that are incorporated in them. (We have not seen how to achieve
+this as regards changes in header files, but we have achieved it as regards
+changes in the actual functions of the Library.) The hope is that this
+will lead to faster development of free libraries.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, while the latter only
+works together with the library.
+
+ Note that it is possible for a library to be covered by the ordinary
+General Public License rather than by this special one.
+
+ GNU LIBRARY GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library which
+contains a notice placed by the copyright holder or other authorized
+party saying it may be distributed under the terms of this Library
+General Public License (also called "this License"). Each licensee is
+addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also compile or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ c) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ d) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the source code distributed need not include anything that is normally
+distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Library General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
diff --git a/docker/wolfi/payload/notices/CFWORKER-LICENSE b/docker/wolfi/payload/notices/CFWORKER-LICENSE
new file mode 100644
index 000000000..85bcd787b
--- /dev/null
+++ b/docker/wolfi/payload/notices/CFWORKER-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jeremy Danyow
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/docker/wolfi/payload/notices/JS-TIKTOKEN-LICENSE b/docker/wolfi/payload/notices/JS-TIKTOKEN-LICENSE
new file mode 100644
index 000000000..83ed1036f
--- /dev/null
+++ b/docker/wolfi/payload/notices/JS-TIKTOKEN-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 OpenAI, Shantanu Jain
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/docker/wolfi/payload/notices/RIPGREP-LICENSE-MIT b/docker/wolfi/payload/notices/RIPGREP-LICENSE-MIT
new file mode 100644
index 000000000..3b0a5dc09
--- /dev/null
+++ b/docker/wolfi/payload/notices/RIPGREP-LICENSE-MIT
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Andrew Gallant
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/docker/wolfi/payload/notices/SAXES-LICENSE b/docker/wolfi/payload/notices/SAXES-LICENSE
new file mode 100644
index 000000000..187f3ba39
--- /dev/null
+++ b/docker/wolfi/payload/notices/SAXES-LICENSE
@@ -0,0 +1,64 @@
+The ISC License
+
+Copyright (c) Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+====
+
+The following license is the one that governed sax, from which saxes
+was forked. Isaac Schlueter is not *directly* involved with saxes so
+don't go bugging him for saxes issues.
+
+The ISC License
+
+Copyright (c) Isaac Z. Schlueter and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+====
+
+`String.fromCodePoint` by Mathias Bynens is no longer used, but it can
+still be found in old commits. It was once used according to terms of
+MIT License, as follows:
+
+ Copyright Mathias Bynens <https://mathiasbynens.be/>
+
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/docker/wolfi/payload/notices/SCALAR-LICENSE b/docker/wolfi/payload/notices/SCALAR-LICENSE
new file mode 100644
index 000000000..05ee3dd23
--- /dev/null
+++ b/docker/wolfi/payload/notices/SCALAR-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023-present Scalar
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/docker/wolfi/payload/notices/YOGA-LICENSE b/docker/wolfi/payload/notices/YOGA-LICENSE
new file mode 100644
index 000000000..b96dcb048
--- /dev/null
+++ b/docker/wolfi/payload/notices/YOGA-LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) Facebook, Inc. and its affiliates.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/docker/wolfi/payload/notices/sources.json b/docker/wolfi/payload/notices/sources.json
new file mode 100644
index 000000000..1acac77d0
--- /dev/null
+++ b/docker/wolfi/payload/notices/sources.json
@@ -0,0 +1,30 @@
+{
+ "BUBBLEWRAP-COPYING": {
+ "source": "https://raw.githubusercontent.com/openai/codex/6aaac694803004a63c6f393d153c96d22521a6b9/codex-rs/vendor/bubblewrap/COPYING",
+ "sha256": "b7993225104d90ddd8024fd838faf300bea5e83d91203eab98e29512acebd69c"
+ },
+ "CFWORKER-LICENSE": {
+ "source": "https://raw.githubusercontent.com/cfworker/cfworker/5409fdc2bd144f68e8b28c61c71fcb16600000a6/LICENSE.md",
+ "sha256": "376944252ab78ca6b41aee44ddea8894927ee67891e77e61eb9d59af63e35094"
+ },
+ "JS-TIKTOKEN-LICENSE": {
+ "source": "https://raw.githubusercontent.com/dqbd/tiktoken/4c8b748e07992c00386f3180af5c574b27b65139/LICENSE",
+ "sha256": "418cb499b436128d653d79941333a5437b7be2ea9213dcc2f04d15d5d2c51d86"
+ },
+ "RIPGREP-LICENSE-MIT": {
+ "source": "https://raw.githubusercontent.com/BurntSushi/ripgrep/e89fff89ac9af12e8d4ce9d5fd07beb408ca730f/LICENSE-MIT",
+ "sha256": "0f96a83840e146e43c0ec96a22ec1f392e0680e6c1226e6f3ba87e0740af850f"
+ },
+ "SAXES-LICENSE": {
+ "source": "https://raw.githubusercontent.com/lddubeau/saxes/211fa0ebec9b628affc09219199639887174bfc3/LICENSE",
+ "sha256": "0fac2374380621b22e6b50451057721a9c52935b02d16d106a9f04897f061d0e"
+ },
+ "SCALAR-LICENSE": {
+ "source": "https://raw.githubusercontent.com/scalar/scalar/71c72fbc1c3860ac741812617057141db2033fcd/LICENSE",
+ "sha256": "380cd0a6ad700e1f821f2a509f0dd9ff835041cee2d43daf5dedc1adb2bcc620"
+ },
+ "YOGA-LICENSE": {
+ "source": "https://raw.githubusercontent.com/react/yoga/042f5013152eb81c1552dec945b88f7b95ca350f/LICENSE",
+ "sha256": "52412d7bc7ce4157ea628bbaacb8829e0a9cb3c58f57f99176126bc8cf2bfc85"
+ }
+}
diff --git a/docker/wolfi/payload/package-lock.json b/docker/wolfi/payload/package-lock.json
new file mode 100644
index 000000000..6f1acc41d
--- /dev/null
+++ b/docker/wolfi/payload/package-lock.json
@@ -0,0 +1,1819 @@
+{
+ "name": "codex-security-image-payload",
+ "version": "0.7.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "codex-security-image-payload",
+ "version": "0.7.0",
+ "dependencies": {
+ "@openai/codex-security": "0.7.0"
+ }
+ },
+ "node_modules/@alcalzone/ansi-tokenize": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@alcalzone/ansi-tokenize/-/ansi-tokenize-0.3.1.tgz",
+ "integrity": "sha512-cUD0PT0YX+rImRhfn7BfMRduP/tX/Zqt/N0dHlAyn2RlcJssCb5KsCJkhln61eh9vuJDkH8wKn3L8zJzzWXPFg==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "is-fullwidth-code-point": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@alcalzone/ansi-tokenize/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/@cfworker/json-schema": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/@cfworker/json-schema/-/json-schema-4.1.1.tgz",
+ "integrity": "sha512-gAmrUZSGtKc3AiBL71iNWxDsyUC5uMaKKGdvzYsBoTW/xi42JQHl7eKV2OYzCUqvc+D2RCcf7EXY2iCyFIk6og==",
+ "license": "MIT"
+ },
+ "node_modules/@graphql-typed-document-node/core": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz",
+ "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
+ }
+ },
+ "node_modules/@inquirer/ansi": {
+ "version": "2.0.9",
+ "resolved": "https://registry.npmjs.org/@inquirer/ansi/-/ansi-2.0.9.tgz",
+ "integrity": "sha512-0Ywt3S8tqM6TWUcsRlBFQ1x+X3/o8kktX0ZiKAnByYb9GFDknnOhse1PVtfiD2BXPI8ar+BWx9PV9R0lQIcygw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ }
+ },
+ "node_modules/@inquirer/checkbox": {
+ "version": "5.2.7",
+ "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-5.2.7.tgz",
+ "integrity": "sha512-/+QmGE/9bvE/EobaZDnzYe+T+QWoJrnmxwBQNtoi2OVSUR9d1znYsNyEoUrOZvFSxDYttrhzRIpXpaLkN+iIsg==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^2.0.9",
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/figures": "^2.0.9",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/confirm": {
+ "version": "6.3.4",
+ "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-6.3.4.tgz",
+ "integrity": "sha512-ZwnaZZDa1zxsyVrN32s447ydMnKcw7e8WWNT+R+Qsu0zAn8Rs6yi9d1B80Kob1Ul2cfUi7t8JD2t4/K7uEZpqA==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/core": {
+ "version": "12.0.5",
+ "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-12.0.5.tgz",
+ "integrity": "sha512-c0ZSnO9oVk/IlEGoZK3u8b3IZQeu9I6jUkXJSQnQEVRXsjKvtAq3AGqFL2LgfJhlzMZne08pZHWRWasIcI3Rew==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^2.0.9",
+ "@inquirer/figures": "^2.0.9",
+ "@inquirer/type": "4.2.0",
+ "cli-width": "^4.1.0",
+ "fast-wrap-ansi": "^0.2.0",
+ "mute-stream": "^3.0.0",
+ "signal-exit": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/editor": {
+ "version": "5.3.5",
+ "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-5.3.5.tgz",
+ "integrity": "sha512-6lU3/pPx5z3lHWejFW061MV4qZooBQYv/+EeGhNOPiP/i+hrYsHfxxBnnDGsAfg8YdLUd69YckoeOjtr3QuAUg==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/external-editor": "^3.0.6",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/expand": {
+ "version": "5.1.7",
+ "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-5.1.7.tgz",
+ "integrity": "sha512-eiJ31YFCaB6fLoJCqLIn8S6eqUyME6vwr8KcP5h8cxmA+bV9RRVPO+kywoxb7G63HduDXV6sN/SM7o2R+ahEcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/external-editor": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-3.0.6.tgz",
+ "integrity": "sha512-rWmw6WG8JZ7LMn/srXEylYGhL6EXXJeROE7/4x4GREh6NgzqJBDbIgpNGsYoLPfobeb4VZtEYzPGnT5EFNYhiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "chardet": "^2.1.1",
+ "iconv-lite": "^0.7.2"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/figures": {
+ "version": "2.0.9",
+ "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-2.0.9.tgz",
+ "integrity": "sha512-EAWgUTGQ/Umgga51dE3B2PUHbufuXarDfg86uVgoSgNHNNQnyFKcOrQLWVqYMghuSyHh8+2HUH0Js9cTC1WAdg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ }
+ },
+ "node_modules/@inquirer/input": {
+ "version": "5.1.8",
+ "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-5.1.8.tgz",
+ "integrity": "sha512-psOSTgkL8y/OtgJJYbqJ0oISr2QBE0U1Ro/qQdA/EKjeJiwiUTQgQmq8o4ESNzVOWthIeh3YLD7BCUR9dKnR5g==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/number": {
+ "version": "4.2.5",
+ "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-4.2.5.tgz",
+ "integrity": "sha512-lEy7LWsdF5qHx5QjHZqabUqM9P7i5uTMCt8GRzqxmwXXKbapKJDA+ucVflVVPAyj4snD5DTAD4L+sct85XOlOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/password": {
+ "version": "5.2.4",
+ "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-5.2.4.tgz",
+ "integrity": "sha512-T7ir3fflSSVCYEVqNyMBq+pIMsilQRtbZcD5gxn6Ewsin5TJWBxrGBdXveWtmeXVAeoInfhS+BhBUZaL4sFSDg==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^2.0.9",
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/prompts": {
+ "version": "8.7.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-8.7.3.tgz",
+ "integrity": "sha512-DHK20kO+H5k/XcJQpHQUpVQbMYHHhZchlGWhZVMUV4WIuRuBW5744hipOtriE1vMqPLgnIyXFMHWKkIbTepa4Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/checkbox": "^5.2.6",
+ "@inquirer/confirm": "^6.3.3",
+ "@inquirer/editor": "^5.3.4",
+ "@inquirer/expand": "^5.1.6",
+ "@inquirer/input": "^5.1.7",
+ "@inquirer/number": "^4.2.4",
+ "@inquirer/password": "^5.2.3",
+ "@inquirer/rawlist": "^5.3.6",
+ "@inquirer/search": "^4.3.4",
+ "@inquirer/select": "^5.2.6"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/rawlist": {
+ "version": "5.3.7",
+ "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-5.3.7.tgz",
+ "integrity": "sha512-XveEe8v3BHj9ec00n+9i8FHjWhXjS6+jCTizYvXCqKUKtgkrq9xid8S5j3mYGW96qfxG3mwNoud3m3v8GDk9Pw==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/search": {
+ "version": "4.3.5",
+ "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-4.3.5.tgz",
+ "integrity": "sha512-kIUecMugEN2YTvTmff+uYz0nAE0f9RFNDVZknfrh264vAQM9P8tnsXiUp7z8XbGuNIBEtFMJhvc9QquawpC46A==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/figures": "^2.0.9",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/select": {
+ "version": "5.2.7",
+ "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-5.2.7.tgz",
+ "integrity": "sha512-pRDWO4dTqSAvFQdO8yclKMtXNDm9K9HmvWB5UZmT3clw2OlOBNXveHzhyFmO/0d0yJMqlPcNITus1Jtpm6t8VQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^2.0.9",
+ "@inquirer/core": "^12.0.5",
+ "@inquirer/figures": "^2.0.9",
+ "@inquirer/type": "4.2.0"
+ },
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/type": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-4.2.0.tgz",
+ "integrity": "sha512-2rnHX8RPo4glJYqnFc/v3nQeIhDcjyRRyaT7MGcfL/8xv/8K03SXYoA2tX06WVSKywWOE/ncbG3dtuzLjR5TCQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=23.5.0 || ^22.13.0 || ^20.17.0"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@linear/sdk": {
+ "version": "98.0.0",
+ "resolved": "https://registry.npmjs.org/@linear/sdk/-/sdk-98.0.0.tgz",
+ "integrity": "sha512-DRakJJiGe4QE2tc49+XQVE0lyeR9CUHJTpCPsx5291LsmDaMvhP8+beCgXQQ7jET+OshHEm2BYtMx6EUt9ZR8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@graphql-typed-document-node/core": "^3.2.0"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@modelcontextprotocol/server": {
+ "version": "2.0.0-alpha.4",
+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.0.0-alpha.4.tgz",
+ "integrity": "sha512-/KEo3ZJ50HlagHp0lz2vPgfBZFtXHu6zTBXT9XqPc+4O9i4+IbBVWKq/a9yAfv/ifp0u3+mRo8SUk5kMKzhN8A==",
+ "license": "MIT",
+ "dependencies": {
+ "zod": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@napi-rs/canvas": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas/-/canvas-1.0.13.tgz",
+ "integrity": "sha512-b87ugZpQ5ViwqVBkjervxpwa0GmJPsKHLBNoZN6GpjWeHzTbDUGryriq+2DYW2XbB+xCqSIINQysC0/I87nPbw==",
+ "license": "MIT",
+ "optional": true,
+ "workspaces": [
+ "e2e/*"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ },
+ "optionalDependencies": {
+ "@napi-rs/canvas-android-arm64": "1.0.13",
+ "@napi-rs/canvas-darwin-arm64": "1.0.13",
+ "@napi-rs/canvas-darwin-x64": "1.0.13",
+ "@napi-rs/canvas-linux-arm-gnueabihf": "1.0.13",
+ "@napi-rs/canvas-linux-arm64-gnu": "1.0.13",
+ "@napi-rs/canvas-linux-arm64-musl": "1.0.13",
+ "@napi-rs/canvas-linux-riscv64-gnu": "1.0.13",
+ "@napi-rs/canvas-linux-x64-gnu": "1.0.13",
+ "@napi-rs/canvas-linux-x64-musl": "1.0.13",
+ "@napi-rs/canvas-win32-arm64-msvc": "1.0.13",
+ "@napi-rs/canvas-win32-x64-msvc": "1.0.13"
+ }
+ },
+ "node_modules/@napi-rs/canvas-android-arm64": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-android-arm64/-/canvas-android-arm64-1.0.13.tgz",
+ "integrity": "sha512-trn7AaDzQ+yeeA0ezhkC7cB1ZDPtp4UYk0EvB5F8qtYL9jEVWtVrU30WOpI52DszoTxaTsCgf5PP4ZVaOlOIHQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-darwin-arm64": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-arm64/-/canvas-darwin-arm64-1.0.13.tgz",
+ "integrity": "sha512-6Y2djEetL8copxfNK6hg7oig/xqTwOchv19hBOm+zBNdKc/02Z3kjZN5wrLzv/l5O04/bAQS6I/AlQpwBlXgPg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-darwin-x64": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-x64/-/canvas-darwin-x64-1.0.13.tgz",
+ "integrity": "sha512-OZoPwwu4TMMg8GTCFBrg8UFExwQTU/55i3uTC/izDat6PHE+ro9dimyQoOboFf91+NY7Pnn70ScR8f8I8+eZXw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-arm-gnueabihf": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm-gnueabihf/-/canvas-linux-arm-gnueabihf-1.0.13.tgz",
+ "integrity": "sha512-dZSYaKROuswU2eUWG5aBKndNVe68elo1YX93xtRax7q658tj8rYE+HwduovWJgs6qwv1r1/CLR60nDeBbyjvyg==",
+ "cpu": [
+ "arm"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-arm64-gnu": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-gnu/-/canvas-linux-arm64-gnu-1.0.13.tgz",
+ "integrity": "sha512-W6FzYE8ADHI93In1vi80KBL6btDtAMuj50Ch5ptkWS8xuntyzbR4h5JDUmXoakxZn2yMInksudTEqVSWoFqFGg==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-arm64-musl": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-musl/-/canvas-linux-arm64-musl-1.0.13.tgz",
+ "integrity": "sha512-+6fQ+rR49hkAa4voh2stLIwQ+4t+gmoseM8Bc53/DlMXb73IKymDPWK9A/NtWeqTW4ijWppYuyuxS2hPI8tzNA==",
+ "cpu": [
+ "arm64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-riscv64-gnu": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-riscv64-gnu/-/canvas-linux-riscv64-gnu-1.0.13.tgz",
+ "integrity": "sha512-17XEMO3t9RW/TtHtSFf2AkaSWuCWdzbPeidz7zrOFawHxoLSJCnpTI1hN5aUvrZNnkNNmt/vZVJCh0ryUaik3A==",
+ "cpu": [
+ "riscv64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-x64-gnu": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-gnu/-/canvas-linux-x64-gnu-1.0.13.tgz",
+ "integrity": "sha512-lc48IwknVHBsNzXn9Xs5OkUsRX38Ml3Z1aOybQ51mMEzZckm8+4A0qROlyYHEoBPzr1kL3IU8ZUAqDb7wtdX8w==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-x64-musl": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-musl/-/canvas-linux-x64-musl-1.0.13.tgz",
+ "integrity": "sha512-bGY1r26S2bs8UNFJcPWcCSNdCFbKep5PATsvtgtC9A5u6SRgr2/jJE/RlhHL5m9ZpixNDhVkLY/5h16Kx5V9YA==",
+ "cpu": [
+ "x64"
+ ],
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-win32-arm64-msvc": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-arm64-msvc/-/canvas-win32-arm64-msvc-1.0.13.tgz",
+ "integrity": "sha512-2vRPBZoaIvJrUkDhZTE2Hn0YrnpJRCWVM3EJACoBKjuWI6WgPxGtUoRMsxRviCsyks8bKTSFdyw14CellnG2qA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-win32-x64-msvc": {
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-x64-msvc/-/canvas-win32-x64-msvc-1.0.13.tgz",
+ "integrity": "sha512-DUlW3lZPz63kYsf8mxgyyZuevhlH0T3/BGP9l+NazhB0F1+gL6D4hqZdnhZpw24DlWmTpATDcyYSZlJOi+DdfQ==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@octokit/auth-token": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-6.0.0.tgz",
+ "integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@octokit/core": {
+ "version": "7.0.8",
+ "resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.8.tgz",
+ "integrity": "sha512-L7y8eYc+AwxGr2PWI4WFt1VG4TiJ66c26BD16mXpYIlXxG0SMigM1+m4aTSlYyBr5BlQsGAlz8uDCoZN4SEMcg==",
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/auth-token": "^6.0.0",
+ "@octokit/graphql": "^9.0.5",
+ "@octokit/request": "^10.0.16",
+ "@octokit/request-error": "^7.1.2",
+ "@octokit/types": "^18.0.0",
+ "before-after-hook": "^4.0.0",
+ "universal-user-agent": "^7.0.0"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@octokit/endpoint": {
+ "version": "11.0.5",
+ "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.5.tgz",
+ "integrity": "sha512-iXa654H3yFafF/ieHkukfbgWo2rmXD2ceD0ZOtrPhw1bc3FDch1d9N/TNs0FQ1/cIbwb7kspUX8jzIs8nzb9DQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/types": "^18.0.0",
+ "universal-user-agent": "^7.0.2"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@octokit/graphql": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.5.tgz",
+ "integrity": "sha512-bt/hm03LeU6Vy7FwTrkkC9p3XGT/lBwClglMqxBSe5/q0E5CdJTXeAqEI0vlw89/LF/G6tryTIH8HirZ3prMVg==",
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/request": "^10.0.16",
+ "@octokit/types": "^18.0.0",
+ "universal-user-agent": "^7.0.0"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@octokit/openapi-types": {
+ "version": "29.0.1",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-29.0.1.tgz",
+ "integrity": "sha512-9qWOMFNxxLokERcms42rU0PTLqQmVs7g5E41TI4mCOxmpFayD1rfC7XxOL55cG9MBZLFlC31BrR37myMKardwg==",
+ "license": "MIT"
+ },
+ "node_modules/@octokit/request": {
+ "version": "10.0.16",
+ "resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.16.tgz",
+ "integrity": "sha512-A0zWGjHzISIb+9ccG8s0dq7LKO5zVpJLRICjgUb+sJxEWqn8RUHB1rD3AE51+PECvXHIxqZ1VVvs4fHTSD9nUQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/endpoint": "^11.0.5",
+ "@octokit/request-error": "^7.1.2",
+ "@octokit/types": "^18.0.0",
+ "content-type": "^3.0.0",
+ "json-with-bigint": "^3.5.12",
+ "universal-user-agent": "^7.0.2"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@octokit/request-error": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.2.tgz",
+ "integrity": "sha512-XZRuT3xZ84D3gYErI1DZvhJ33dCWVV6uzBtWkaBB4TvA/L6eOeTZodxLFVB44bBEEo3vEx7y00UfX1tBLrtLRg==",
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/types": "^18.0.0"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@octokit/types": {
+ "version": "18.0.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-18.0.0.tgz",
+ "integrity": "sha512-l6bAF43PNxkJp6g+W4PjoUSSkxHomXw2nOum5CTftJz1NlV3vu93NImgOYtLf6CbBUb5j+fiuzW0PPQ5JTSvZA==",
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^29.0.1"
+ }
+ },
+ "node_modules/@openai/codex": {
+ "version": "0.164.0",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0.tgz",
+ "integrity": "sha512-TWj7UGyPRe3Pj/A3ddNAxs1te3a/W/xAd+J0LHrrFTmsSfahGMOLF/vn88D3QCIgAT3B1rm1y/Z3NYE0rx6cZQ==",
+ "license": "Apache-2.0",
+ "bin": {
+ "codex": "bin/codex.js"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "optionalDependencies": {
+ "@openai/codex-darwin-arm64": "npm:@openai/[email protected]",
+ "@openai/codex-darwin-x64": "npm:@openai/[email protected]",
+ "@openai/codex-linux-arm64": "npm:@openai/[email protected]",
+ "@openai/codex-linux-x64": "npm:@openai/[email protected]",
+ "@openai/codex-win32-arm64": "npm:@openai/[email protected]",
+ "@openai/codex-win32-x64": "npm:@openai/[email protected]"
+ }
+ },
+ "node_modules/@openai/codex-darwin-arm64": {
+ "name": "@openai/codex",
+ "version": "0.164.0-darwin-arm64",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0-darwin-arm64.tgz",
+ "integrity": "sha512-pDizgOUAtq3/k3AbUFHbaU19WpYKCja+oFpNSTLKrDQj4lTUNSDuTPJip4uQVn2/1EipQdpQrGMOQBVuI1znAA==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@openai/codex-darwin-x64": {
+ "name": "@openai/codex",
+ "version": "0.164.0-darwin-x64",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0-darwin-x64.tgz",
+ "integrity": "sha512-lIe+udnguPGzBezkgbkj2Eaz0YqOhNXT7jja136Fj0sXfI+UKNS2icmaK14GcoRAgeVEpDTtC1ftamWBPmD1zg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@openai/codex-linux-arm64": {
+ "name": "@openai/codex",
+ "version": "0.164.0-linux-arm64",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0-linux-arm64.tgz",
+ "integrity": "sha512-LL5iTQjyDL4YRX44EWqhIfEQ5uGnmgxkQBJSxjZSeJ8L1Og83pdlzUJW/PRJ76oaVwOVgh6HXwuPEiBNEHU4lg==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@openai/codex-linux-x64": {
+ "name": "@openai/codex",
+ "version": "0.164.0-linux-x64",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0-linux-x64.tgz",
+ "integrity": "sha512-XLAoaWsGOT2khzl+P4FYDPTkzAr9W0VFXFaVkqlFdkM0soa1gH/4S0wSD57Ek3HHwkirAEGz2/Mwehseh+l5Mg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@openai/codex-sdk": {
+ "version": "0.164.0",
+ "resolved": "https://registry.npmjs.org/@openai/codex-sdk/-/codex-sdk-0.164.0.tgz",
+ "integrity": "sha512-FyhTWM4Xa8hXpWhkr9MOvROVhBqTeD+s/XCzVLzqSQXTSnGSNkdBWjv0IzZdOO29BX4LwtMjul6ogB8tOME5og==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@openai/codex": "0.164.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@openai/codex-security": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/@openai/codex-security/-/codex-security-0.7.0.tgz",
+ "integrity": "sha512-N8BZ6JyfAWGKwzAdBdIX5AjlsZobXORY15CQ3zMFBQk4CBY9ue4kwnyf+6SdSPaZPHXsWnsuMYZcElMhZBaHPg==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@inquirer/prompts": "8.7.3",
+ "@linear/sdk": "98.0.0",
+ "@octokit/core": "7.0.8",
+ "@openai/codex": "0.164.0",
+ "@openai/codex-sdk": "0.164.0",
+ "ajv": "8.20.0",
+ "fflate": "0.8.3",
+ "incur": "0.7.1",
+ "ink": "8.0.0",
+ "js-tiktoken": "1.0.21",
+ "papaparse": "5.7.0",
+ "pdfjs-dist": "6.4.299",
+ "react": "19.3.1",
+ "saxes": "6.0.0",
+ "semver": "7.8.5",
+ "smol-toml": "1.9.1",
+ "string-width": "8.3.0",
+ "strip-ansi": "7.2.0",
+ "yaml": "2.9.1",
+ "yauzl": "3.4.0",
+ "zod": "4.6.7"
+ },
+ "bin": {
+ "codex-security": "bin/codex-security.mjs",
+ "cs": "bin/codex-security.mjs"
+ },
+ "engines": {
+ "node": "^22.13.0 || ^24.0.0 || ^26.0.0"
+ }
+ },
+ "node_modules/@openai/codex-win32-arm64": {
+ "name": "@openai/codex",
+ "version": "0.164.0-win32-arm64",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0-win32-arm64.tgz",
+ "integrity": "sha512-Zkzt8HNmB/vOnlDo5D7IOlrt5rHaxYQB7iGbNP7bHcXZtrk6gaD7UriwaieGYJpcf8DqAT/0tqzY4xbs8ZwbmQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@openai/codex-win32-x64": {
+ "name": "@openai/codex",
+ "version": "0.164.0-win32-x64",
+ "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.164.0-win32-x64.tgz",
+ "integrity": "sha512-urWPhwh9YavuoAPIkmVYKBTtd5OtGVL4Ki0Fb28dhK/Mz6Pt4LSy+gbRrZFz5+RXrw9ubvXuXDCcd8beYcWhDg==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@scalar/openapi-types": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/@scalar/openapi-types/-/openapi-types-0.8.0.tgz",
+ "integrity": "sha512-WmaxVSfvY5K/TwcG2B2TU1WOe1As1uc2s7myswtP6dBlcjU3hM08SApxv/jmyGaCE8t4gO5BBhmHY4pDUfmr2g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/@toon-format/toon": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@toon-format/toon/-/toon-2.3.1.tgz",
+ "integrity": "sha512-sWqEMeAJGMda9qRrfPKrX3C4c33CO9SJuvJzzrcBEn5sbDB+k6pSLkDsfN0rVnLQwR97MV3sDgVbcxQNsq8xVw==",
+ "license": "MIT"
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.3",
+ "fast-uri": "^3.0.1",
+ "json-schema-traverse": "^1.0.0",
+ "require-from-string": "^2.0.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-escapes": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz",
+ "integrity": "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==",
+ "license": "MIT",
+ "dependencies": {
+ "environment": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "6.4.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz",
+ "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-7.0.0.tgz",
+ "integrity": "sha512-kKvt3m4uwzqL0wlkPd09CmljPJGOZZ4D0fP65sqFSvPkMRKhNi+74MgIJ5QxE6SxqB4t4KyUFGg8+n5zjo6hew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/auto-bind": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-5.0.1.tgz",
+ "integrity": "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg==",
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/before-after-hook": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-4.0.0.tgz",
+ "integrity": "sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==",
+ "license": "Apache-2.0"
+ },
+ "node_modules/chalk": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-6.0.1.tgz",
+ "integrity": "sha512-/Ce6KNm3vIbWdMlNna6RVIZ/ICQxnJxCicet5LBKK9ZffBkqzDw0xh9EiKSljdRtiIQ1S1z4YgcscUUGzNCWrA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chardet": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.2.0.tgz",
+ "integrity": "sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==",
+ "license": "MIT"
+ },
+ "node_modules/cli-boxes": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-4.0.1.tgz",
+ "integrity": "sha512-5IOn+jcCEHEraYolBPs/sT4BxYCe2nHg374OPiItB1O96KZFseS2gthU4twyYzeDcFew4DaUM/xwc5BQf08JJw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.20 <19 || >=20.10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-cursor": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz",
+ "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==",
+ "license": "MIT",
+ "dependencies": {
+ "restore-cursor": "^4.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate": {
+ "version": "6.1.1",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-6.1.1.tgz",
+ "integrity": "sha512-06p9vyLahLa4zkGcgsGxU6iEkSOiuI4fhCH6Emhe2lPAcoUv73n72DnODsnHA+5wwXGnV0n9M9/qOQJSjYhFhw==",
+ "license": "MIT",
+ "dependencies": {
+ "slice-ansi": "^9.0.0",
+ "string-width": "^8.2.0"
+ },
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-width": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",
+ "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/code-excerpt": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",
+ "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==",
+ "license": "MIT",
+ "dependencies": {
+ "convert-to-spaces": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-3.1.1.tgz",
+ "integrity": "sha512-GW4qUsfFo59d0HbUibDlWv5wPz+vAAcaTWbKIuKCf0JkC7wWkSyf8f13IpXn5JkeMlB2P8iTSSIjwXljorg2vA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/convert-to-spaces": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz",
+ "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==",
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/environment": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/es-toolkit": {
+ "version": "1.53.0",
+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.0.tgz",
+ "integrity": "sha512-3+AYXp9fmJ/UhHBMYj2/U+RaUouMD90SzoItyDOB2Za7W6dB7fQApFGnZPl2MF6K8/Tv1koh1JyirSx/kju6Pw==",
+ "license": "MIT",
+ "workspaces": [
+ "docs",
+ "benchmarks",
+ "tests/types",
+ "tests/browser-compat"
+ ]
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
+ "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "license": "MIT"
+ },
+ "node_modules/fast-string-truncated-width": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz",
+ "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==",
+ "license": "MIT"
+ },
+ "node_modules/fast-string-width": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz",
+ "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-string-truncated-width": "^3.0.2"
+ }
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz",
+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/fast-wrap-ansi": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz",
+ "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-string-width": "^3.0.2"
+ }
+ },
+ "node_modules/fflate": {
+ "version": "0.8.3",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz",
+ "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==",
+ "license": "MIT"
+ },
+ "node_modules/get-east-asian-width": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz",
+ "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/graphql": {
+ "version": "17.0.2",
+ "resolved": "https://registry.npmjs.org/graphql/-/graphql-17.0.2.tgz",
+ "integrity": "sha512-FRWbddMxfkjiB7z+aQDWIR+E34xo9I8c9mtK2RPv8PmMzKRvrdsreHL/Ui/TmwHJfhHChEtsFPyMHKI+xuarQQ==",
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": "^22.0.0 || ^24.0.0 || ^25.0.0 || >=26.0.0"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",
+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/incur": {
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/incur/-/incur-0.7.1.tgz",
+ "integrity": "sha512-tXEStxASXtVWOjY7wNBBMy03+3HPpiLPkrEaqNb5iYerRNRWqTYqwdAEgLfU6Ga2OUrz9LpRuMWFvdj5kIaUlg==",
+ "license": "MIT",
+ "dependencies": {
+ "@cfworker/json-schema": "^4.1.1",
+ "@modelcontextprotocol/server": "2.0.0-alpha.4",
+ "@scalar/openapi-types": "^0.8.0",
+ "@toon-format/toon": "^2.3.1",
+ "tokenx": "^1.3.0",
+ "yaml": "^2.8.2",
+ "zod": "^4.3.6"
+ },
+ "bin": {
+ "incur": "dist/cli/index.js",
+ "incur.src": "src/cli/index.ts"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/indent-string": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",
+ "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ink": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/ink/-/ink-8.0.0.tgz",
+ "integrity": "sha512-M2aFwZOqmkFxCwedy6xrP4E+DGoK57iahAFnfTqNyOyJ54O7DZzu027z/NI8EGy44Sw9O9BcbTF4QEUS2GHAtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@alcalzone/ansi-tokenize": "^0.3.1",
+ "ansi-escapes": "^7.3.0",
+ "ansi-styles": "^7.0.0",
+ "auto-bind": "^5.0.1",
+ "chalk": "^6.0.1",
+ "cli-boxes": "^4.0.1",
+ "cli-cursor": "^4.0.0",
+ "cli-truncate": "^6.0.0",
+ "code-excerpt": "^4.0.0",
+ "es-toolkit": "^1.52.0",
+ "indent-string": "^5.0.0",
+ "is-in-ci": "^2.0.0",
+ "patch-console": "^2.0.0",
+ "quick-lru": "^7.3.0",
+ "react-reconciler": "^0.34.0",
+ "signal-exit": "^3.0.7",
+ "stack-utils": "^2.0.6",
+ "string-width": "^8.3.0",
+ "terminal-size": "^4.0.1",
+ "type-fest": "^5.10.0",
+ "widest-line": "^6.0.0",
+ "wrap-ansi": "^10.0.2",
+ "yoga-layout": "~3.2.1"
+ },
+ "engines": {
+ "node": ">=22"
+ },
+ "peerDependencies": {
+ "@types/react": ">=19.3.0",
+ "react": ">=19.3.0",
+ "react-devtools-core": ">=6.1.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "react-devtools-core": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ink/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC"
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-in-ci": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-2.0.0.tgz",
+ "integrity": "sha512-cFeerHriAnhrQSbpAxL37W1wcJKUUX07HyLWZCW1URJT/ra3GyUTzBgUnh24TMVfNTV2Hij2HLxkPHFZfOZy5w==",
+ "license": "MIT",
+ "bin": {
+ "is-in-ci": "cli.js"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/js-tiktoken": {
+ "version": "1.0.21",
+ "resolved": "https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.21.tgz",
+ "integrity": "sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g==",
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.5.1"
+ }
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "license": "MIT"
+ },
+ "node_modules/json-with-bigint": {
+ "version": "3.5.12",
+ "resolved": "https://registry.npmjs.org/json-with-bigint/-/json-with-bigint-3.5.12.tgz",
+ "integrity": "sha512-uwbF/wSSuOgC7qqlq27Xp5B6a2MHVug3t0idZdTqu0JnlFvgJuH7ju+KAk/J06C7GfhoYy2gnb9wz2INqcne7w==",
+ "license": "MIT"
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/mute-stream": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-3.0.0.tgz",
+ "integrity": "sha512-dkEJPVvun4FryqBmZ5KhDo0K9iDXAwn08tMLDinNdRBNPcYEDiWYysLcc6k3mjTMlbP9KyylvRpd4wFtwrT9rw==",
+ "license": "ISC",
+ "engines": {
+ "node": "^20.17.0 || >=22.9.0"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/papaparse": {
+ "version": "5.7.0",
+ "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.7.0.tgz",
+ "integrity": "sha512-qBGxg/7Q3Kl9Wfhrz2Z74UnvnHTXLNG6jmKJFeBvP2+y4lV7So+7SR62+Zd47JvdrCkX+nDcnr0ObPzek/+6RA==",
+ "license": "MIT"
+ },
+ "node_modules/patch-console": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",
+ "integrity": "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==",
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/pdfjs-dist": {
+ "version": "6.4.299",
+ "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-6.4.299.tgz",
+ "integrity": "sha512-AVl138zALtfaAPvADulE0PZThbYzCBS79nL4pOSL/6Sm/4AH5A21BD9VHt97OlCuzJuCpmeZtAtkinisF4Vb1g==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=22.13.0 || >=24"
+ },
+ "optionalDependencies": {
+ "@napi-rs/canvas": "^1.0.10"
+ }
+ },
+ "node_modules/pend": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
+ "license": "MIT"
+ },
+ "node_modules/quick-lru": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-7.3.0.tgz",
+ "integrity": "sha512-k9lSsjl36EJdK7I06v7APZCbyGT2vMTsYSRX1Q2nbYmnkBqgUhRkAuzH08Ciotteu/PLJmIF2+tti7o3C/ts2g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/react": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-reconciler": {
+ "version": "0.34.0",
+ "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.34.0.tgz",
+ "integrity": "sha512-eVibvB1fc9j5Qf1KRkiM3GzRPBdjg2P6G6QV2f3P6Eb3OGMxRBhdg2rrUwjbV5JrQaJj8nOa8uajmmJA5tJWjQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.28.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "peerDependencies": {
+ "react": "^19.3.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/restore-cursor": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz",
+ "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==",
+ "license": "MIT",
+ "dependencies": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/restore-cursor/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC"
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/saxes": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
+ "license": "ISC",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=v12.22.7"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.28.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/slice-ansi": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-9.0.1.tgz",
+ "integrity": "sha512-aBY19bn/XA+hKOKX0qL7Z0UfdBsbQvc9hn993U8ALUjzxCvDcuZqLoRXjGJrUARWAlwMnsRVD9sw2AFNOYvalA==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.3",
+ "is-fullwidth-code-point": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=22"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/smol-toml": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz",
+ "integrity": "sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/cyyynthia"
+ }
+ },
+ "node_modules/stack-utils": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
+ "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",
+ "license": "MIT",
+ "dependencies": {
+ "escape-string-regexp": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz",
+ "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "get-east-asian-width": "^1.5.0",
+ "strip-ansi": "^7.1.2"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/tagged-tag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/tagged-tag/-/tagged-tag-1.0.0.tgz",
+ "integrity": "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/terminal-size": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/terminal-size/-/terminal-size-4.0.1.tgz",
+ "integrity": "sha512-avMLDQpUI9I5XFrklECw1ZEUPJhqzcwSWsyyI8blhRLT+8N1jLJWLWWYQpB2q2xthq8xDvjZPISVh53T/+CLYQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/tokenx": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/tokenx/-/tokenx-1.6.0.tgz",
+ "integrity": "sha512-CKTjk345ajvBAUp5xUI9a5KKN0zU0lBueVHQbCskH1Hp6WkUKsPW2qGCYNs0pxNyfzxfo+IIjdt2W4sMbw/qBw==",
+ "license": "MIT"
+ },
+ "node_modules/type-fest": {
+ "version": "5.10.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.10.0.tgz",
+ "integrity": "sha512-NoSdpq/WEiAg5sjmBkmV/hfxv6HJH4NqPNrqjtSO5CwRmpsDfaf4begxW34KdJykH/l1yHtwBWQkCRdoXO8mPA==",
+ "license": "(MIT OR CC0-1.0)",
+ "dependencies": {
+ "tagged-tag": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/universal-user-agent": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.3.tgz",
+ "integrity": "sha512-TmnEAEAsBJVZM/AADELsK76llnwcf9vMKuPz8JflO1frO8Lchitr0fNaN9d+Ap0BjKtqWqd/J17qeDnXh8CL2A==",
+ "license": "ISC"
+ },
+ "node_modules/widest-line": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-6.0.0.tgz",
+ "integrity": "sha512-U89AsyEeAsyoF0zVJBkG9zBgekjgjK7yk9sje3F4IQpXBJ10TF6ByLlIfjMhcmHMJgHZI4KHt4rdNfktzxIAMA==",
+ "license": "MIT",
+ "dependencies": {
+ "string-width": "^8.1.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "10.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-10.0.2.tgz",
+ "integrity": "sha512-6OLRNZqRntVGBm26ghZ5eZhCuWWyOkRCSn8XsOIuq5stpCE/tjLbdozd93naILZig0lmD8ANfRwnhn0DLeXGlg==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.2.3",
+ "string-width": "^8.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/xmlchars": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
+ "license": "MIT"
+ },
+ "node_modules/yaml": {
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
+ "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
+ "license": "ISC",
+ "bin": {
+ "yaml": "bin.mjs"
+ },
+ "engines": {
+ "node": ">= 14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/eemeli"
+ }
+ },
+ "node_modules/yauzl": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.4.0.tgz",
+ "integrity": "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==",
+ "license": "MIT",
+ "dependencies": {
+ "pend": "~1.2.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yoga-layout": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",
+ "integrity": "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==",
+ "license": "MIT"
+ },
+ "node_modules/zod": {
+ "version": "4.6.7",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
+ "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/docker/wolfi/payload/package.json b/docker/wolfi/payload/package.json
new file mode 100644
index 000000000..720414b2b
--- /dev/null
+++ b/docker/wolfi/payload/package.json
@@ -0,0 +1,6 @@
+{
+ "name": "codex-security-image-payload",
+ "version": "0.7.0",
+ "private": true,
+ "dependencies": { "@openai/codex-security": "0.7.0" }
+}
diff --git a/docker/wolfi/payload/stage.py b/docker/wolfi/payload/stage.py
new file mode 100644
index 000000000..1b03003ed
--- /dev/null
+++ b/docker/wolfi/payload/stage.py
@@ -0,0 +1,222 @@
+#!/usr/bin/env python3
+"""Stage the open-source scanner payload for offline Linux/amd64 melange builds.
+
+Usage: python3 payload/stage.py PATH_TO_MELANGE_SOURCE_DIR
+Requires Python 3.9+, Node and npm 11 on a POSIX host. No target code is run.
+"""
+
+import argparse
+import gzip
+import hashlib
+import json
+import os
+import re
+import shutil
+import subprocess
+import tarfile
+import tempfile
+from pathlib import Path
+
+
+HERE = Path(__file__).resolve().parent
+DOCKER = HERE.parent.parent
+REPO = DOCKER.parent
+INSTALL = Path("usr/lib/codex-security")
+SDK = "node_modules/@openai/codex-security"
+VENDOR = "node_modules/@openai/codex-linux-x64/vendor/x86_64-unknown-linux-musl"
+TARGET = {"os": "linux", "cpu": "x64", "libc": "glibc"}
+LICENSE_DIR = Path("usr/share/licenses/codex-security")
+REVIEWED_NPM_LICENSES = {"Apache-2.0", "BSD-3-Clause", "ISC", "MIT", "(MIT OR CC0-1.0)"}
+CODEX_SOURCE = "https://github.com/openai/codex/tree/6aaac694803004a63c6f393d153c96d22521a6b9"
+SCANNER_SOURCE = "https://github.com/openai/codex-security/tree/f05a0b096cc881242ddf34a4d6b3ce0f322f3cf9"
+OFF_TARGET_PLUGIN_TARGETS = {
+ "darwin-arm64", "darwin-x64", "linux-arm64-gnu", "linux-arm64-musl",
+ "linux-x64-musl", "win32-arm64", "win32-x64",
+}
+
+# Reuse this repository's Docker scripts at their released hashes. The root
+# LICENSE is byte-identical to the LICENSE in the pinned native Codex release.
+EXTRAS = {
+ DOCKER / "entrypoint.sh": ("usr/local/bin/codex-security-entrypoint", "5bcce4a6b0f6a57d938f3e9def0aea93660d41356fdf0ddad1d343a067fc6610"),
+ DOCKER / "git-credential.sh": ("usr/local/bin/codex-security-git-credential", "0b792c2304abcd60366aed3040287ecee4d8e336c121516d8112f577fc2af360"),
+ REPO / "LICENSE": ("usr/share/licenses/codex-security/CODEX-LICENSE", "d17f227e4df5da1600391338865ce0f3055211760a36688f816941d58232d8dc"),
+ HERE / "CODEX-NOTICE": ("usr/share/licenses/codex-security/CODEX-NOTICE", "9d71575ecfd9a843fc1677b0efb08053c6ba9fd686a0de1a6f5382fd3c220915"),
+}
+
+
+def read_json(path):
+ return json.loads(path.read_text())
+
+
+def matches_target(package):
+ for key, target in TARGET.items():
+ values = package.get(key, [])
+ allowed = [v for v in values if not v.startswith("!")]
+ if "!" + target in values or (allowed and target not in allowed):
+ return False
+ return True
+
+
+def source_url(pkg):
+ repo = pkg.get("repository")
+ raw = repo.get("url") if isinstance(repo, dict) else repo
+ # npm accepts both GitHub shorthand and conventional git URLs. Do not
+ # silently accept missing metadata, new repository hosts or unknown terms.
+ match = re.fullmatch(r"(?:(?:git\+https://|https://|git://|git@)github\.com[:/]|github:)?([A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+)", raw or "")
+ if not match:
+ raise ValueError(f"Review repository for {pkg['name']}: {raw}")
+ return "https://github.com/" + match[1].removesuffix(".git")
+
+
+def select_scanner_payload(app):
+ # Voice belongs to the interactive client, not repository scanning. The
+ # MCP server uses Node's target (Linux x64 glibc), while the Codex executable
+ # itself is the upstream static musl build.
+ shutil.rmtree(app / VENDOR / "codex-resources/voice")
+ native = app / SDK / "_bundled_plugin/mcp/native"
+ if {p.name for p in native.iterdir() if p.is_dir()} != OFF_TARGET_PLUGIN_TARGETS | {"licenses", "linux-x64-gnu"}:
+ raise ValueError("Review changed native MCP targets")
+ for target in OFF_TARGET_PLUGIN_TARGETS:
+ shutil.rmtree(native / target)
+ known = {
+ "bin/codex", "bin/codex-code-mode-host", "codex-resources/bwrap",
+ "codex-path/rg", "codex-package.json",
+ }
+ vendor = app / VENDOR
+ if {p.relative_to(vendor).as_posix() for p in vendor.rglob("*") if p.is_file()} != known:
+ raise ValueError("Review changed Codex release files")
+
+
+def write_attributions(root, app, wanted):
+ license_dir = root / LICENSE_DIR
+ notices = read_json(HERE / "notices/sources.json")
+ for name, item in notices.items():
+ source = HERE / "notices" / name
+ if hashlib.sha256(source.read_bytes()).hexdigest() != item["sha256"]:
+ raise ValueError(f"Changed upstream notice: {name}")
+ shutil.copyfile(source, license_dir / name)
+ shutil.copyfile(HERE / "notices/sources.json", license_dir / "NOTICE-SOURCES.json")
+ npm = []
+ for key, lock_record in sorted(wanted.items()):
+ pkg = read_json(app / key / "package.json")
+ if pkg.get("license") != lock_record.get("license") or pkg.get("license") not in REVIEWED_NPM_LICENSES:
+ raise ValueError(f"Review license for {key}: {pkg.get('license')}")
+ npm.append({"path": key, "name": pkg["name"], "version": pkg["version"], "license": pkg["license"],
+ "repository": source_url(pkg), "input_archive": lock_record["resolved"], "integrity": lock_record["integrity"]})
+ codex_native = {
+ VENDOR + "/bin/codex": CODEX_SOURCE + "/codex-rs/cli",
+ VENDOR + "/bin/codex-code-mode-host": CODEX_SOURCE + "/codex-rs/code-mode-host",
+ VENDOR + "/codex-resources/bwrap": CODEX_SOURCE + "/codex-rs/vendor/bubblewrap",
+ VENDOR + "/codex-path/rg": "https://github.com/BurntSushi/ripgrep/tree/e89fff89ac9af12e8d4ce9d5fd07beb408ca730f",
+ SDK + "/_bundled_plugin/mcp/native/linux-x64-gnu/unix.node": SCANNER_SOURCE + "/plugins/codex-security/native",
+ "node_modules/@napi-rs/canvas-linux-x64-gnu/skia.linux-x64-gnu.node": "https://github.com/Brooooooklyn/canvas/tree/00a115d9903647f116daf86eccd2c6ba36128371",
+ }
+ native_records = []
+ for file, source in codex_native.items():
+ hasher = hashlib.sha256()
+ with (app / file).open("rb") as f:
+ while chunk := f.read(1 << 20):
+ hasher.update(chunk)
+ native_records.append({"path": file, "source": source, "sha256": hasher.hexdigest()})
+ manifest = {"scanner_source": SCANNER_SOURCE, "codex_source": CODEX_SOURCE, "npm": npm,
+ "native_executables_and_addons": native_records,
+ "omitted": [VENDOR + "/codex-resources/voice"] +
+ [SDK + "/_bundled_plugin/mcp/native/" + target for target in sorted(OFF_TARGET_PLUGIN_TARGETS)]}
+ (license_dir / "SOURCES.json").write_text(json.dumps(manifest, indent=2) + "\n")
+
+
+def stage_root(root):
+ app = root / INSTALL
+ app.mkdir(parents=True)
+ for name in ("package.json", "package-lock.json"):
+ shutil.copyfile(HERE / name, app / name)
+ lock = read_json(app / "package-lock.json")
+ packages = {k: v for k, v in lock["packages"].items() if k}
+ # An unexpected package manager script or nonregistry artifact requires review.
+ for name, pkg in packages.items():
+ if (not pkg["resolved"].startswith("https://registry.npmjs.org/")
+ or not pkg["integrity"].startswith("sha512-") or pkg.get("hasInstallScript")):
+ raise ValueError(f"Unexpected source, integrity, or lifecycle script: {name}")
+ global_config = root.parent / "empty-npmrc"
+ global_config.touch()
+ subprocess.run([
+ "npm", "ci", "--os=linux", "--cpu=x64", "--libc=glibc", "--omit=dev",
+ "--include=optional", "--ignore-scripts", "--no-audit", "--no-fund",
+ "--userconfig=/dev/null", f"--globalconfig={global_config}", "--registry=https://registry.npmjs.org",
+ ], cwd=app, check=True)
+ # npm treats failed optional installs as success. Check the full target graph,
+ # including platform packages, before accepting the install.
+ installed = read_json(app / "node_modules/.package-lock.json")["packages"]
+ wanted = {k: v for k, v in packages.items() if matches_target(v)}
+ if installed.keys() != wanted.keys():
+ raise ValueError(f"Installed graph differs from lock: {sorted(installed.keys() ^ wanted.keys())}")
+ for key, pkg in wanted.items():
+ if installed[key]["integrity"] != pkg["integrity"] or read_json(app / key / "package.json")["version"] != pkg["version"]:
+ raise ValueError(f"Installed version/integrity differs for {key}")
+ # Keep the original lock usable by npm ci. SOURCES.json records the subset
+ # installed for this platform.
+ (app / "node_modules/.package-lock.json").unlink() # transient local npm cache
+ select_scanner_payload(app)
+ for name in ("bin/codex", "bin/codex-code-mode-host", "codex-resources/bwrap", "codex-path/rg"):
+ binary = app / VENDOR / name
+ with binary.open("rb") as f:
+ header = f.read(20)
+ if header[:6] != b"\x7fELF\x02\x01" or header[18:20] != b"\x3e\x00" or not os.access(binary, os.X_OK):
+ raise ValueError(f"Missing executable ELF64 x86-64 {name}")
+ for name in (".codex-plugin/plugin.json", "scripts/launch_codex_security_mcp", "mcp/native/linux-x64-gnu/unix.node", "mcp/server.mjs", "mcp/native/THIRD_PARTY_NOTICES.txt"):
+ if not (app / SDK / "_bundled_plugin" / name).is_file():
+ raise ValueError(f"Incomplete bundled plugin: {name}")
+ bindir = root / "usr/bin"
+ bindir.mkdir()
+ for name in ("cs", "codex-security"):
+ (bindir / name).symlink_to("../lib/codex-security/" + SDK + "/bin/codex-security.mjs")
+ for source, (dest, sha) in EXTRAS.items():
+ data = source.read_bytes()
+ if hashlib.sha256(data).hexdigest() != sha:
+ raise ValueError(f"Release file differs from pin: {source.name}")
+ path = root / dest
+ path.parent.mkdir(parents=True, exist_ok=True)
+ path.write_bytes(data)
+ path.chmod(0o755 if source.suffix == ".sh" else 0o644)
+ write_attributions(root, app, wanted)
+ return len(wanted)
+
+
+def normalize(entry):
+ if not (entry.isdir() or entry.isreg() or entry.issym()):
+ raise ValueError(f"Unexpected file type: {entry.name}")
+ entry.uid = entry.gid = entry.mtime = 0
+ entry.uname = entry.gname = "root"
+ entry.mode = (0o777 if entry.issym() else 0o755 if entry.isdir() or entry.mode & 0o111 else 0o644)
+ return entry
+
+
+def main():
+ args = argparse.ArgumentParser(description=__doc__)
+ args.add_argument("stage", type=Path, help="melange --source-dir (only payload.tar.gz will be written)")
+ output = args.parse_args().stage.resolve()
+ output.mkdir(parents=True, exist_ok=True)
+ with tempfile.TemporaryDirectory(prefix="codex-security-payload-") as work:
+ root = Path(work) / "root"
+ count = stage_root(root)
+ # The recipe pins the uncompressed tar hash, independent of gzip/zlib.
+ # Normalize sort order, mtime, owners and permissions across build hosts.
+ with tempfile.NamedTemporaryFile(dir=output, prefix="payload-", delete=False) as temp:
+ temporary = Path(temp.name)
+ try:
+ with temporary.open("wb") as raw, gzip.GzipFile(filename="", mode="wb", fileobj=raw, compresslevel=3, mtime=0) as gz:
+ with tarfile.open(fileobj=gz, mode="w|", format=tarfile.GNU_FORMAT) as archive:
+ archive.add(root / "usr", arcname="usr", filter=normalize)
+ digest = hashlib.sha256()
+ with gzip.open(temporary, "rb") as gz:
+ while chunk := gz.read(1024 * 1024):
+ digest.update(chunk)
+ temporary.chmod(0o644)
+ temporary.replace(output / "payload.tar.gz")
+ print(f"{count} locked production packages; uncompressed tar SHA-256: {digest.hexdigest()}")
+ finally:
+ temporary.unlink(missing_ok=True)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/docker/wolfi/snapshot-builder.py b/docker/wolfi/snapshot-builder.py
new file mode 100644
index 000000000..601c77a61
--- /dev/null
+++ b/docker/wolfi/snapshot-builder.py
@@ -0,0 +1,71 @@
+#!/usr/bin/env python3
+"""Stage the APKs from a verified apko builder lock for an offline Melange build."""
+import argparse
+import base64
+import hashlib
+import json
+import re
+import tempfile
+from pathlib import Path
+from urllib.request import HTTPRedirectHandler, build_opener
+
+ARCH = "x86_64"
+REPO = "https://packages.wolfi.dev/os/" + ARCH
+
+
+class NoRedirect(HTTPRedirectHandler):
+ def redirect_request(self, *args):
+ return None # Only fetch the exact URLs in the lock.
+
+
+def stage_package(pkg, directory, fetch):
+ name, version = pkg["name"], pkg["version"]
+ filename = f"{name}-{version}.apk"
+ if not all(re.fullmatch(r"[a-zA-Z0-9][a-zA-Z0-9.+_~-]*", s) for s in (name, version)):
+ raise ValueError(f"Invalid package name or version: {filename}")
+ if pkg["architecture"] != ARCH or pkg["url"] != f"{REPO}/{filename}":
+ raise ValueError(f"Unexpected package source or architecture: {filename}")
+
+ with (directory / filename).open("xb") as dest, fetch(pkg["url"], timeout=60) as source:
+ offset = 0
+ for part, algorithm in (("signature", "sha1"), ("control", "sha1"), ("data", "sha256")):
+ record = pkg[part]
+ if part == "signature" and record == {"range": "", "checksum": ""}:
+ continue
+ match = re.fullmatch(r"bytes=([0-9]+)-([0-9]+)", record["range"])
+ if not match or int(match[1]) != offset or int(match[2]) < offset:
+ raise ValueError(f"{filename}: invalid {part} range {record['range']!r}")
+ length = int(match[2]) + 1 - offset
+ block = source.read(length)
+ digest = base64.b64encode(hashlib.new(algorithm, block).digest()).decode("ascii")
+ if len(block) != length or f"{algorithm}-{digest}" != record["checksum"]:
+ raise ValueError(f"{filename}: {part} differs from builder lock")
+ dest.write(block)
+ offset += length
+ if source.read(1):
+ raise ValueError(f"{filename}: bytes beyond locked ranges")
+
+
+def snapshot(lock, output, fetch):
+ if lock["version"] != "v1" or not lock["contents"]["packages"]:
+ raise ValueError("Expected a nonempty apko v1 builder lock")
+ output.mkdir(parents=True, exist_ok=True)
+ if output.is_symlink() or any(output.iterdir()):
+ raise ValueError("Builder repository must be a new or empty directory")
+ with tempfile.TemporaryDirectory(dir=output) as staging:
+ packages = Path(staging) / ARCH
+ packages.mkdir()
+ for pkg in lock["contents"]["packages"]:
+ stage_package(pkg, packages, fetch)
+ packages.rename(output / ARCH) # Publish only after the entire lock verifies.
+
+
+if __name__ == "__main__":
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("lock", type=Path)
+ parser.add_argument("repository", type=Path)
+ args = parser.parse_args()
+ try:
+ snapshot(json.loads(args.lock.read_bytes()), args.repository, build_opener(NoRedirect()).open)
+ except (KeyError, ValueError, OSError) as exc:
+ parser.exit(1, f"Could not stage builder repository: {exc}\n")
diff --git a/docker/wolfi/tests/offline-melange.sh b/docker/wolfi/tests/offline-melange.sh
new file mode 100755
index 000000000..145d2a957
--- /dev/null
+++ b/docker/wolfi/tests/offline-melange.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+# Use as MELANGE for a build: the guest must install from the local snapshot
+# even when melange itself has no route to the upstream repository.
+set -euo pipefail
+if [[ $1 == build ]]; then
+ exec unshare --net -- "${REAL_MELANGE:-melange}" "$@"
+fi
+exec "${REAL_MELANGE:-melange}" "$@"
diff --git a/docker/wolfi/tests/runtime.mjs b/docker/wolfi/tests/runtime.mjs
new file mode 100644
index 000000000..4db0f265b
--- /dev/null
+++ b/docker/wolfi/tests/runtime.mjs
@@ -0,0 +1,166 @@
+// Read from stdin in a fresh isolated container by smoke.sh.
+import assert from "node:assert/strict";
+import { execFile, execFileSync, spawnSync } from "node:child_process";
+import { createHash, randomUUID } from "node:crypto";
+import { accessSync, constants, mkdtempSync, readFileSync,
+ realpathSync, statSync, writeFileSync } from "node:fs";
+import { createRequire } from "node:module";
+import { createServer } from "node:http";
+import { once } from "node:events";
+import { dirname, join } from "node:path";
+import { pathToFileURL } from "node:url";
+import { promisify } from "node:util";
+
+const run = (cmd, args, opts = {}) => execFileSync(cmd, args, {
+ encoding: "utf8", stdio: ["pipe", "pipe", "pipe"], timeout: 180_000,
+ maxBuffer: 16 * 1024 * 1024, ...opts
+}).trim();
+const read = (file) => JSON.parse(readFileSync(file, "utf8"));
+const cli = (...args) => JSON.parse(run("/usr/local/bin/codex-security-entrypoint", [...args, "--json"]));
+
+assert.equal(process.getuid(), 10001);
+assert.equal(process.getgid(), 10001);
+assert.equal(process.cwd(), "/state");
+assert.equal(process.env.HOME, "/state");
+assert.equal(process.env.CODEX_HOME, "/state");
+assert.equal(process.env.CODEX_SECURITY_STATE_DIR, "/output/.codex-security-state");
+assert.equal(process.env.GIT_TERMINAL_PROMPT, "0");
+assert.equal(process.env.PYTHON, "/usr/bin/python3");
+accessSync("/input", constants.R_OK | constants.X_OK);
+for (const p of ["/state", "/output"]) accessSync(p, constants.W_OK | constants.X_OK);
+run(process.env.PYTHON, ["-c",
+ "import ssl, sqlite3; assert ssl.create_default_context().get_ca_certs(); assert sqlite3.connect(':memory:').execute('select 1').fetchone() == (1,)"]);
+console.log("PASS non-root account, state directories, Python SQLite and CA trust");
+
+const info = cli("info");
+assert.equal(info.cliVersion, "0.7.0");
+assert.equal(info.codexVersion, "0.164.0");
+const launcher = realpathSync(run("/bin/sh", ["-c", "command -v codex-security"]));
+const pkg = dirname(dirname(launcher));
+assert.equal(read(join(pkg, "package.json")).name, "@openai/codex-security");
+const { resolveCodexCommand } = await import(pathToFileURL(join(pkg, "dist/index.js")));
+const { command: codex } = resolveCodexCommand({});
+assert.equal(run(codex, ["--version"]), `codex-cli ${info.codexVersion}`);
+const plugin = join(pkg, "_bundled_plugin");
+const libc = process.report.getReport().header.glibcVersionRuntime ? "gnu" : "musl";
+const addon = join(plugin, "mcp/native", `linux-${process.arch}-${libc}`, "unix.node");
+assert.equal(createRequire(import.meta.url)(addon).unixEnvironment(Buffer.from("HOME")).toString(), "/state");
+const mcp = read(join(plugin, ".mcp.json")).mcpServers["codex-security"];
+const initialized = JSON.parse(run(join(plugin, mcp.command), mcp.args, { cwd: plugin,
+ input: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: {
+ protocolVersion: "2025-11-25", capabilities: {}, clientInfo: { name: "offline-image-test", version: "1" }
+ } }) + "\n" }));
+assert.equal(initialized.result.serverInfo.name, "codex-security");
+console.log(`PASS native Codex ${info.codexVersion}, plugin addon and MCP startup on linux/${process.arch}; Node ${process.version}`);
+
+const helper = "/usr/local/bin/codex-security-git-credential";
+const helperResult = (host) => run(helper, ["get"], { env: { ...process.env, GH_TOKEN: "fixture-only" },
+ input: `protocol=https\nhost=${host}\n\n` });
+assert.equal(helperResult("github.com"), "username=x-access-token\npassword=fixture-only");
+assert.equal(helperResult("not-github.example"), "");
+console.log("PASS Git credential helper is limited to its configured host");
+
+process.umask(0o077);
+const repo = mkdtempSync("/input/codex-smoke-");
+const scanDir = join(mkdtempSync("/output/codex-smoke-"), "scan");
+const source = join(repo, "hello.py");
+const original = 'print("offline fixture")\n';
+writeFileSync(source, original);
+const git = (...args) => run("git", ["-C", repo, ...args]);
+git("init", "-q"); git("add", "hello.py");
+git("-c", "user.name=Fixture", "-c", "[email protected]", "commit", "-qm", "fixture");
+// /input is a writable, disposable tmpfs in this test. Use the exact same
+// child in both cases to distinguish Codex confinement from a Docker mount.
+const probe = [process.env.PYTHON, "-c", `from pathlib import Path
+import errno,sys
+p=Path(sys.argv[1])
+if p.read_text() != sys.argv[2]: sys.exit(41)
+try: p.write_text("changed")
+except OSError as e: sys.exit({errno.EROFS:45, errno.EACCES:46, errno.EPERM:47}.get(e.errno, 48))
+sys.exit(42)`, source, original];
+const launch = (args) => spawnSync(args[0], args.slice(1), {cwd: repo, encoding: "utf8", timeout: 30_000});
+const control = launch(probe);
+assert.equal(control.status, 42, control.error?.message || control.stderr);
+assert.equal(readFileSync(source, "utf8"), "changed");
+writeFileSync(source, original);
+const sandbox = launch([codex, "sandbox", "--permission-profile", ":read-only", "--", ...probe]);
+const why = {45: "EROFS", 46: "EACCES", 47: "EPERM"}[sandbox.status];
+assert(why, `sandbox code=${sandbox.status} signal=${sandbox.signal}; ${sandbox.error?.message || sandbox.stderr}`);
+assert.equal(readFileSync(source, "utf8"), original);
+assert.equal(git("status", "--porcelain"), "");
+console.log(`PASS read-only sandbox: the child read hello.py and its write failed with ${why}; the same child wrote it outside, and the checkout is clean`);
+
+// This turn goes through the installed native model client and its shell tool.
+// The only server is this loopback Responses fixture.
+const nonce = randomUUID();
+const draft = `python3 - <<'PY'
+import json,os
+from pathlib import Path
+assert (Path(os.environ["CODEX_SECURITY_REPOSITORY"])/"hello.py").read_text() == ${JSON.stringify(original)}
+out = Path(os.environ["CODEX_SECURITY_SCAN_DIR"])
+docs = {"scan-manifest.json":{"scan":{"target":{"kind":os.environ["CODEX_SECURITY_TARGET_KIND"]},
+ "scope":{"summary":"Synthetic offline smoke test: ${nonce}"}}}, "findings.json":{"findings":[]},
+ "coverage.json":{"inventoryStrategy":"repository","surfaces":[],"explicitExclusions":[],"deferred":[]}}
+for name,data in docs.items():
+ with (out/name).open("x") as f: json.dump(data,f)
+print("fixture-draft-written")
+PY`;
+let requests = 0;
+let fixtureError;
+const server = createServer(async (req, res) => {
+ try {
+ assert.equal(req.method, "POST");
+ assert.equal(req.url, "/openai/v1/responses");
+ const chunks = [];
+ for await (const chunk of req) chunks.push(chunk);
+ const request = JSON.parse(Buffer.concat(chunks));
+ requests++;
+ let item;
+ if (requests === 1) {
+ assert(request.tools.some(t => t.name === "exec_command"));
+ item = {type: "function_call", call_id: "draft", name: "exec_command",
+ arguments: JSON.stringify({cmd: draft})};
+ } else {
+ assert.equal(requests, 2);
+ assert(request.input.some(i => i.type === "function_call_output" && i.call_id === "draft" &&
+ JSON.stringify(i.output).includes("fixture-draft-written")));
+ item = {type: "message", role: "assistant", id: "reply", content: [{type: "output_text", text: nonce}]};
+ }
+ const response = {id: `r${requests}`, usage: {input_tokens: 1, output_tokens: 1, total_tokens: 2}};
+ const events = [{type:"response.created",response}, {type:"response.output_item.done",item},
+ {type:"response.completed",response}];
+ res.writeHead(200, {"Content-Type": "text/event-stream"});
+ res.end(events.map(e => `data: ${JSON.stringify(e)}\n\n`).join(""));
+ } catch (error) {
+ fixtureError = error;
+ res.writeHead(400).end("invalid fixture request");
+ }
+});
+server.listen(0, "127.0.0.1");
+await once(server, "listening");
+try {
+ const base = `http://127.0.0.1:${server.address().port}/openai/v1`;
+ await promisify(execFile)("/usr/local/bin/codex-security-entrypoint",
+ ["scan", repo, "--mode", "standard", "--headless", "--output-dir", scanDir, "--provider", "amazon-bedrock", "--model", "openai.gpt-5.6-luna",
+ "--codex", `model_providers.amazon-bedrock.base_url="${base}"`, "--codex", 'model_providers.amazon-bedrock.aws.region="us-west-2"'],
+ {env:{...process.env, AWS_ACCESS_KEY_ID:"offline-test", AWS_SECRET_ACCESS_KEY:"offline-test-only",
+ AWS_REGION:"us-west-2", AWS_EC2_METADATA_DISABLED:"true", NO_PROXY:"127.0.0.1,localhost"},timeout:75_000});
+ assert.ifError(fixtureError);
+ assert.equal(requests, 2);
+ const scan = read(join(scanDir, "scan-manifest.json")).scan;
+ assert(scan.status === "completed" && scan.sealedAt && scan.scope.summary.includes(nonce));
+ assert(scan.artifacts.length > 0);
+ for (const artifact of scan.artifacts) {
+ const sha256 = createHash("sha256").update(readFileSync(join(scanDir, artifact.path))).digest("hex");
+ assert.equal(sha256, artifact.sha256, artifact.path);
+ }
+ assert.deepEqual(read(join(scanDir, "findings.json")).findings, []);
+ assert.equal(read(join(scanDir, "exports/results.sarif")).version, "2.1.0");
+ assert(statSync(join(process.env.CODEX_SECURITY_STATE_DIR, "workbench.sqlite3")).size > 0);
+ assert(cli("scans", "list", repo).scans.some(s => s.scanId === scan.id));
+ assert.equal(git("status", "--porcelain"), "");
+ console.log("PASS loopback scan: native shell tool, sealed marker and artifact hashes, SARIF, SQLite history, unchanged source");
+} finally {
+ server.closeAllConnections();
+ server.close();
+}
diff --git a/docker/wolfi/tests/smoke.sh b/docker/wolfi/tests/smoke.sh
new file mode 100755
index 000000000..821381a80
--- /dev/null
+++ b/docker/wolfi/tests/smoke.sh
@@ -0,0 +1,35 @@
+#!/usr/bin/env bash
+# Native Linux/amd64. Load the repository's Docker AppArmor profile first.
+# The offline fixture creates its own repository and output in disposable tmpfs.
+set -euo pipefail
+if (( $# != 1 )); then
+ echo 'usage: tests/smoke.sh LOCAL_IMAGE' >&2
+ exit 2
+fi
+test_dir=$(cd -- "$(dirname -- "$0")" && pwd)
+docker_dir=$(cd -- "$test_dir/../.." && pwd)
+case "$(docker info --format '{{.OSType}}/{{.Architecture}}')" in
+ linux/x86_64|linux/amd64) ;;
+ *) echo 'Run on native Linux/amd64 so the nested sandbox can be tested.' >&2; exit 2 ;;
+esac
+image=$(docker image inspect "$1" --format '{{.Id}}')
+[[ $(docker image inspect "$image" --format '{{.Os}}/{{.Architecture}} {{join .Config.Entrypoint " "}}') == 'linux/amd64 /usr/local/bin/codex-security-entrypoint' ]]
+echo "Image: $image"
+flags=(--rm --pull=never --network=none --read-only --cap-drop=ALL
+ --security-opt=no-new-privileges --security-opt=apparmor=codex-security-container
+ --security-opt="seccomp=$docker_dir/codex-security-seccomp.json"
+ --tmpfs /tmp:rw,nodev,nosuid,mode=1777
+ --tmpfs /input:rw,nodev,nosuid,uid=10001,gid=10001,mode=0755
+ --tmpfs /output:rw,nodev,nosuid,uid=10001,gid=10001
+ --tmpfs /state:rw,nodev,nosuid,uid=10001,gid=10001)
+
+# Exercise the image's configured entrypoint & CMD before using Node as a harness.
+help=$(docker run "${flags[@]}" "$image")
+[[ $help == *'Usage: codex-security'* ]]
+version=$(docker run "${flags[@]}" "$image" --version)
+[[ $version == 0.7.0 ]]
+status=0
+reason=$(docker run "${flags[@]}" "$image" bulk-scan 2>&1) || status=$?
+[[ $status == 2 && $reason == *'bulk-scan requires a repository CSV'* ]]
+echo "PASS default help, version $version, and noninteractive bulk-scan guard"
+docker run "${flags[@]}" -i --entrypoint /usr/bin/node "$image" --input-type=module - < "$test_dir/runtime.mjs"
diff --git a/docker/wolfi/tests/test_snapshot_builder.py b/docker/wolfi/tests/test_snapshot_builder.py
new file mode 100644
index 000000000..84bb3acf7
--- /dev/null
+++ b/docker/wolfi/tests/test_snapshot_builder.py
@@ -0,0 +1,70 @@
+import base64
+import gzip
+import hashlib
+import io
+import runpy
+import tempfile
+import unittest
+from pathlib import Path
+
+snapshot = runpy.run_path(str(Path(__file__).resolve().parents[1] / "snapshot-builder.py"))["snapshot"]
+
+
+def fixture(name, signed):
+ # APK v2 stores consecutive, independently compressed gzip members.
+ url = f"https://packages.wolfi.dev/os/x86_64/{name}-1-r0.apk"
+ pkg = {"name": name, "version": "1-r0", "url": url, "architecture": "x86_64"}
+ data = b""
+ for part, algorithm in (("signature", "sha1"), ("control", "sha1"), ("data", "sha256")):
+ if part == "signature" and not signed:
+ pkg[part] = {"range": "", "checksum": ""}
+ continue
+ block = gzip.compress(f"{name} {part}".encode(), mtime=0)
+ digest = base64.b64encode(hashlib.new(algorithm, block).digest()).decode()
+ pkg[part] = {"range": f"bytes={len(data)}-{len(data) + len(block) - 1}",
+ "checksum": f"{algorithm}-{digest}"}
+ data += block
+ return pkg, data
+
+
+class SnapshotTest(unittest.TestCase):
+ def setUp(self):
+ self.first, self.a = fixture("first", signed=False)
+ self.second, self.b = fixture("second", signed=True)
+ self.lock = {"version": "v1", "contents": {"packages": [self.first, self.second]}}
+ self.served = {self.first["url"]: self.a, self.second["url"]: self.b}
+ temp = tempfile.TemporaryDirectory()
+ self.addCleanup(temp.cleanup)
+ self.repo = Path(temp.name) / "repository"
+
+ def fetch(self, url, *, timeout):
+ return io.BytesIO(self.served[url])
+
+ def test_stages_exact_bytes_for_signed_and_unsigned_packages(self):
+ snapshot(self.lock, self.repo, self.fetch)
+ apks = {f.name: f.read_bytes() for f in (self.repo / "x86_64").iterdir()}
+ self.assertEqual(apks, {"first-1-r0.apk": self.a, "second-1-r0.apk": self.b})
+
+ def test_same_url_tampering_never_publishes_a_partial_repository(self):
+ corrupt = {"truncated": self.b[:-1], "extra": self.b + b"x"}
+ for part in ("signature", "control", "data"):
+ offset = int(self.second[part]["range"].split("=")[1].split("-")[0])
+ corrupt[part] = self.b[:offset] + bytes([self.b[offset] ^ 1]) + self.b[offset + 1:]
+ for case, changed in corrupt.items():
+ with self.subTest(case=case):
+ self.served[self.second["url"]] = changed
+ with self.assertRaises(ValueError):
+ snapshot(self.lock, self.repo, self.fetch)
+ self.assertEqual(list(self.repo.iterdir()), [])
+
+ def test_refuses_a_gap_before_control_and_an_unlocked_origin(self):
+ self.first["control"]["range"] = self.first["control"]["range"].replace("bytes=0-", "bytes=1-")
+ with self.assertRaisesRegex(ValueError, "invalid control range"):
+ snapshot(self.lock, self.repo, self.fetch)
+ self.first["url"] = "https://example.org/first-1-r0.apk"
+ with self.assertRaisesRegex(ValueError, "Unexpected package source"):
+ snapshot(self.lock, self.repo, self.fetch)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/docker/wolfi/verify-public.py b/docker/wolfi/verify-public.py
new file mode 100644
index 000000000..750e451f4
--- /dev/null
+++ b/docker/wolfi/verify-public.py
@@ -0,0 +1,189 @@
+#!/usr/bin/env python3
+"""Verify the local apko image and write verification.json and public-components.json."""
+import argparse
+import gzip
+import hashlib
+import json
+import re
+import tarfile
+from pathlib import Path
+
+WOLFI = "https://packages.wolfi.dev/os"
+REGISTRY = "https://registry.npmjs.org/"
+APP = "usr/lib/codex-security/"
+ENTRYPOINT = "/usr/local/bin/codex-security-entrypoint"
+SOURCES = "usr/share/licenses/codex-security/SOURCES.json"
+APK_DATABASES = {"lib/apk/db/installed", "usr/lib/apk/db/installed"}
+# A package can contain other package.json files (for example, in examples/).
+NPM_MANIFEST = re.compile(r"(?:node_modules/(?:@[^/]+/)?[^/]+/)+package\.json")
+LICENSES = set("""MIT Apache-2.0 BSD-1-Clause BSD-2-Clause BSD-3-Clause BSD-4-Clause-UC
+ISC CC0-1.0 MPL-2.0 PSF-2.0 OLDAP-2.8 Artistic-1.0-Perl GPL-1.0-only GPL-1.0-or-later
+GPL-2.0-only GPL-2.0-or-later GPL-3.0-or-later LGPL-2.0-or-later LGPL-2.1 LGPL-2.1-only
+LGPL-2.1-or-later LGPL-3.0-or-later GCC-exception-3.1 libselinux-1.0 blessing CC-PDDC AND OR WITH""".split())
+
+def check(ok, message):
+ if not ok:
+ raise SystemExit(message)
+
+def check_license(name, expression):
+ terms = set(re.findall(r"[\w.+-]+", expression or ""))
+ check(terms and not (terms - LICENSES), f"Unreviewed license for {name}: {expression}")
+
+class HashingReader:
+ """Hash what the gzip and tar readers consume, including trailing tar padding."""
+
+ def __init__(self, stream):
+ self.stream = stream
+ self.hash = hashlib.sha256()
+
+ def read(self, size):
+ chunk = self.stream.read(size)
+ self.hash.update(chunk)
+ return chunk
+
+ @property
+ def digest(self):
+ return "sha256:" + self.hash.hexdigest()
+
+
+def read_blob(tar, descriptor):
+ data = tar.extractfile(descriptor["digest"]).read()
+ check(len(data) == descriptor["size"] and "sha256:" + hashlib.sha256(data).hexdigest() == descriptor["digest"],
+ f"OCI blob does not match descriptor: {descriptor['digest']}")
+ return json.loads(data)
+
+
+def inspect_layer(fs):
+ raw, manifests, keys, native = {}, {}, {}, {}
+ executable = False
+ for ent in fs:
+ path = ent.name.removeprefix("./")
+ check(path.rsplit("/", 1)[-1] != "melange.rsa", f"Signing private key in the image: {path}")
+ if path == ENTRYPOINT.lstrip("/"):
+ bit = 0o100 if ent.uid == 10001 else 0o010 if ent.gid == 10001 else 0o001
+ executable = ent.isfile() and bool(ent.mode & bit)
+ elif path.startswith("etc/apk/keys/"):
+ check(ent.isfile(), f"Unexpected public key format: {path}")
+ keys[path.removeprefix("etc/apk/keys/")] = fs.extractfile(ent).read()
+ elif ent.isfile():
+ if path in APK_DATABASES or path in {"etc/apk/repositories", APP + "package-lock.json", SOURCES}:
+ raw[path] = fs.extractfile(ent).read()
+ elif path.startswith(APP) and NPM_MANIFEST.fullmatch(path[len(APP):]):
+ manifests[path[len(APP):-len("/package.json")]] = json.load(fs.extractfile(ent))
+ elif ("/@openai/codex-linux-x64/vendor/" in path and ent.mode & 0o111) or (path.startswith(APP) and path.endswith(".node")):
+ h = hashlib.sha256()
+ stream = fs.extractfile(ent)
+ for chunk in iter(lambda: stream.read(1024 * 1024), b""):
+ h.update(chunk)
+ native[path] = h.hexdigest()
+ check(executable, "Expected a regular entrypoint executable by UID/GID 10001")
+ return raw, manifests, keys, native
+
+
+def inventory_apks(database, packages):
+ apks = []
+ lock = {p["name"]:p for p in packages}
+ for record in database.decode().strip().split("\n\n"):
+ fields = dict(line.split(":",1) for line in record.splitlines() if line[:2] in {"P:","V:","L:","o:"})
+ name, version, license = fields["P"],fields["V"],fields["L"]
+ check_license(name, license)
+ item = lock.pop(name)
+ check(item["version"] == version, "Lock version mismatch: "+name)
+ url = f"{WOLFI}/x86_64/{name}-{version}.apk"
+ if name == "codex-security":
+ url = f"./packages/x86_64/{name}-{version}.apk"
+ check(item["url"] == url, "Unexpected package source: "+item["url"])
+ apks.append({"name":name, "version":version, "origin":fields["o"], "license":license, "source":url})
+ check(not lock, "Missing locked APKs")
+ return sorted(apks, key=lambda p: p["name"])
+
+
+def inventory_npm(manifests, packages, sources):
+ paths = {p["path"] for p in sources}
+ check(len(paths) == len(sources) and paths == manifests.keys(),
+ "Installed npm package paths differ from SOURCES.json")
+ npm = []
+ for item in sources:
+ path = item["path"]
+ pkg = packages[path]
+ meta = manifests[path]
+ check(pkg["resolved"].startswith(REGISTRY) and pkg["integrity"].startswith("sha512-"), "Unexpected npm source: "+path)
+ # npm aliases have a different package name from their installed path.
+ identity = (pkg.get("name", path.rsplit("node_modules/", 1)[-1]), pkg["version"], pkg["license"])
+ check(identity == (meta["name"], meta["version"], meta["license"]) == (item["name"], item["version"], item["license"]),
+ "npm metadata mismatch: "+path)
+ check((pkg["resolved"], pkg["integrity"]) == (item["input_archive"], item["integrity"]), "npm source mismatch: "+path)
+ check_license(path, meta["license"])
+ repository = meta.get("repository")
+ npm.append({"path":path, "name":meta["name"], "version":meta["version"], "license":meta["license"],
+ "source":pkg["resolved"], "integrity":pkg["integrity"],
+ "source_repository":repository.get("url") if isinstance(repository,dict) else repository})
+ return npm
+
+
+def verify(archive, lock):
+ with tarfile.open(archive) as tar:
+ manifest, = json.load(tar.extractfile("manifest.json"))
+ index, = json.load(tar.extractfile("index.json"))["manifests"]
+ platform = {"architecture": "amd64", "os": "linux"}
+ check(index["platform"] == platform, "Expected Linux amd64")
+ oci = read_blob(tar, index)
+ check(manifest["Config"] == oci["config"]["digest"], "Docker and OCI configuration disagree")
+ config = read_blob(tar, oci["config"])
+ check(all(config[k] == v for k, v in platform.items()), "Unexpected image platform")
+ c = config["config"]
+ check((c["Entrypoint"], c["Cmd"], c["User"]) == ([ENTRYPOINT], ["--help"], "10001:10001"),
+ "Unexpected entrypoint, default command or user")
+ layer, = manifest["Layers"]
+ descriptor, = oci["layers"]
+ check(tar.getmember(layer).size == descriptor["size"], "OCI layer size mismatch")
+ with tar.extractfile(layer) as stream:
+ compressed = HashingReader(stream)
+ with gzip.GzipFile(fileobj=compressed, mode="rb") as gz:
+ uncompressed = HashingReader(gz)
+ with tarfile.open(fileobj=uncompressed, mode="r|", bufsize=1024*1024) as fs:
+ raw, manifests, keys, native = inspect_layer(fs)
+ while uncompressed.read(1024*1024): # gzip trailer and any remaining tar padding
+ pass
+ check(compressed.digest == descriptor["digest"], "Compressed layer checksum mismatch")
+ check(config["rootfs"]["diff_ids"] == [uncompressed.digest], "Uncompressed layer checksum mismatch")
+ repos = raw["etc/apk/repositories"].decode().splitlines()
+ check(repos == [WOLFI], "Unexpected runtime repository")
+ expected = {Path(k["name"]).name: k["content"].encode() for k in lock["keyring"]}
+ check(set(expected) == {"wolfi-signing.rsa.pub", "melange.rsa.pub"} and keys == expected, "Incorrect runtime APK trust keys")
+ key_hashes = {name: hashlib.sha256(data).hexdigest() for name, data in sorted(keys.items())}
+ databases = {raw[p] for p in APK_DATABASES if p in raw}
+ check(len(databases) == 1, "Missing or conflicting installed APK database")
+ apks = inventory_apks(databases.pop(), lock["packages"])
+ local = sum(p["name"] == "codex-security" for p in apks)
+ check(local == 1, "Expected one local scanner APK")
+ src = json.loads(raw[SOURCES])
+ npm = inventory_npm(manifests, json.loads(raw[APP+"package-lock.json"])["packages"], src["npm"])
+ records = src["native_executables_and_addons"]
+ check(len(records) == 6 and all(p["source"].startswith("https://github.com/") for p in records),
+ "Unknown native runtime source")
+ check({APP+p["path"]:p["sha256"] for p in records} == native, "Native files differ from source inventory")
+ components = {"image_manifest":index["digest"], "platform":"linux/amd64", "apk_repository":WOLFI,
+ "apk_trust_sha256":key_hashes, "apk_count":len(apks), "installed_apks":apks,
+ "npm_package_count":len(npm), "installed_npm":npm, "bundled_native":records,
+ "scope":"Installed package sources and declared licenses. The model service is external to the image."
+ }
+ verification = {"platform":"linux/amd64", "tag":manifest["RepoTags"][0], "config_digest":manifest["Config"],
+ "oci_manifest":index["digest"], "runtime_repositories":repos, "entrypoint":ENTRYPOINT, "user":c["User"],
+ "public_upstream_packages":len(apks)-local, "local_scanner_packages":local,
+ "keyring_sha256":{k:"sha256:"+v for k,v in key_hashes.items()},
+ "signed_build_manifest":"SHA256SUMS", "manifest_signature":"SHA256SUMS.sig"}
+ return {"verification.json": verification, "public-components.json": components}
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("archive", type=Path)
+ parser.add_argument("lock", type=Path)
+ args = parser.parse_args()
+ reports = verify(args.archive, json.loads(args.lock.read_bytes())["contents"])
+ for name, report in reports.items():
+ Path(name).write_text(json.dumps(report, indent=2) + "\n")
+
+if __name__ == "__main__":
+ main()
diff --git a/docker/wolfi/wolfi-signing.rsa.pub b/docker/wolfi/wolfi-signing.rsa.pub
new file mode 100644
index 000000000..d50ff9353
--- /dev/null
+++ b/docker/wolfi/wolfi-signing.rsa.pub
@@ -0,0 +1,14 @@
+-----BEGIN PUBLIC KEY-----
+MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA5qQUHmzqX9oa/RS3OSgL
+YTYB1mzvVmnWC0JXsAafdgRkavJ9xRhsXMKXWPKMghZw6UnkxuxQCZlB9UhaFqed
+X7SWfQ8qRgECFmdGUjoeV7P3VUkg17RU0mUKsXZZF/2mU+jCGyk5eweKcLWrk6bn
+lNNF1vBJ9EXbHdfvbQsA5GfLku5tJhqRJ4FVQAGCw+1JoSKu+o3q+6xP7z6kMfR9
+cp54FSj48rTJUibbAv+cPtZ3AnbpjdyarV7SYMfxp14Q/KR0CJYDihG3CFoU+TaM
+dr7LUrgXaYw7m7g8hA2PY1jF8aqDqVFjVu/csPKnKVQSqNHfm4C4gljwT6TDVhPe
+6xKSGKfAUNvHx2RIqSsZJCh68Af+VnfuimbHMYzGhzV4/efihpJlYsDnOXJj/PeY
+SbEIYG2yoI3AYvDFyFX2OAOtQ9d4TPs4zS4aDg4R3UseXLib46FX3ZTfIi1/W0IO
+eC3AFU5mK+02jq+7swcGbgzem30dFA/B3n8NQExJjF2WlGNJxFw2WnJQqKIkIh0s
+km5jaxJ28xYgik+bEgxy1LsilKTowdkbEPRKv36JGdap4dOEGR+LwZsM+ontF1AO
+wY6tvwtZKJWhgj7ES3BdtiC1GA2htFnP90lA7KnKbSMOxwWtSCH8spitdPdzgI8G
+SxrOb0SZs6ZFAxYYe3GlvS0CAwEAAQ==
+-----END PUBLIC KEY-----