Skip to content

index: add the codex package (0.1.0, Windows x64) - #95

Merged
caomengxuan666 merged 1 commit into
mainfrom
automation/codex-0.1.0-index
Oct 19, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
automation/codex-0.1.0-index

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Adds the codex package: the niu build of OpenAI Codex as a native Windows package.

  • Artifact: the canonical zip npm published as @cmx666/[email protected] (-win32-x64), attached to unixwin/codex's codex-v0.1.0 release — 128,074,227 bytes, sha256 e44c2cac…. It was only a workflow artifact before, which wpm cannot use (auth + expiry), so the asset is re-published under the new repository.
  • Layout shim: the payload (bin/codex.exe plus a ~300 MB executable and the sandbox helpers) stays under opt/codex/, out of every PATH directory.
  • files preserves the layout the executable expects: bin/codex.exe, codex-resources/, codex-path/, codex-package.json all keep their relative places.
  • From now on it updates itself: the codex release workflow runs scripts/niu/update-wpm-index.ps1 after a successful npm publish, opens this PR and merges it (skipping with a warning when WPM_SOURCE_TOKEN is absent). The script refuses to map a file the archive does not carry.

Dependency: the payload lives at opt/codex/bin/codex.exe, not at the opt/<pkg>/<cmd>.exe convention, so the codex command resolves only on a wpm that looks the payload up in the artifact mapping — unixwin/WinuxCmd#1252, which needs a WinuxCmd release to reach installations.

`wpm install codex` installs the canonical package zip of the niu build of
OpenAI Codex: `bin/codex.exe` keeps `codex-resources/` and `codex-path/` beside
itself, so the sandbox helpers resolve exactly as they do in the npm platform
package. `layout: shim` keeps the payload (and the ~300 MB executable) out of a
directory on %PATH%.

The asset is the canonical zip npm published as `@cmx666/[email protected]`, attached
to unixwin/codex's `codex-v0.1.0` release (sha256 e44c2cac…, 128,074,227 bytes).
Releases update this entry automatically from now on
(scripts/niu/update-wpm-index.ps1 in unixwin/codex, which refuses to map a file
the archive does not carry).

Note for the command to resolve on an existing installation: wpm needs the
payload-from-mapping lookup that landed in unixwin/WinuxCmd#1252 (shim payloads
are not always at opt/<pkg>/<cmd>.exe), so this needs a WinuxCmd release that
carries it.
@caomengxuan666
caomengxuan666 merged commit 9de26c2 into main Oct 19, 2026
@caomengxuan666
caomengxuan666 deleted the automation/codex-0.1.0-index branch October 19, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant