بنقرة واحدة
update-apply-patch-source
// Refreshes the vendored Rust apply_patch source from the local Codex checkout, rebuilds the binary, and validates the package without publishing locally.
// Refreshes the vendored Rust apply_patch source from the local Codex checkout, rebuilds the binary, and validates the package without publishing locally.
| name | update-apply-patch-source |
| description | Refreshes the vendored Rust apply_patch source from the local Codex checkout, rebuilds the binary, and validates the package without publishing locally. |
Use this skill when refreshing the vendored Rust apply_patch source from the immutable local Codex checkout at /home/igorw/Frameworks/codex.
Keep CI/release self-contained. GitHub Actions builds native binaries from source committed to this repository under vendor/apply-patch-src; it must not clone the upstream openai/codex repository during package publish.
Update and validate the local Codex checkout manually if needed. Treat this path as immutable:
cd /home/igorw/Frameworks/codex
git status --short
git pull --ff-only
git rev-parse HEAD
The sync script refuses to copy from a dirty checkout. If the checkout is clean, refresh the minimal vendored source snapshot:
cd /home/igorw/Work/pi-codex-conversion
npm run sync:apply-patch-source
Build the host-native binary from the committed snapshot, not from /home/igorw/Frameworks/codex:
npm run build:apply-patch
Validate the package:
npm run check
npm pack --dry-run --ignore-scripts
Inspect changed files. Expected source snapshot paths include:
vendor/apply-patch-src/Cargo.toml
vendor/apply-patch-src/Cargo.lock
vendor/apply-patch-src/UPSTREAM
vendor/apply-patch-src/crates/codex-apply-patch/**
vendor/apply-patch-src/crates/codex-exec-server/**
vendor/apply-patch-src/crates/codex-utils-absolute-path/**
Do not commit vendor/apply-patch-src/target/.
Do not run npm publish locally. GitHub Actions builds all platform binaries and publishes npm packages from pushes to dev, main, or master.
codex-apply-patch source and codex-utils-absolute-path are copied from the local Codex checkout.codex-exec-server is intentionally a tiny compatibility shim that exposes only the filesystem API needed by standalone apply_patch; this avoids vendoring the whole Codex workspace.vendor/apply-patch-src/UPSTREAM records the exact upstream Codex commit.