Commit Graph
559 Commits
Author SHA1 Message Date
GitHub Action 983e0dc75f chore(release): 0.2.188 [skip ci] 2025-10-06 11:15:56 +00:00
GitHub Action aa714875fc chore(release): 0.2.187 [skip ci] 2025-10-06 08:47:41 +00:00
GitHub Action 52d6aabef1 chore(release): 0.2.186 [skip ci] 2025-10-06 02:23:01 +00:00
GitHub Action 796e3fb020 chore(release): 0.2.185 [skip ci] 2025-10-03 20:50:36 +00:00
GitHub Action 3861c5360b chore(release): 0.2.184 [skip ci] 2025-10-03 12:36:06 +00:00
GitHub Action cac04e9711 chore(release): 0.2.183 [skip ci] 2025-10-03 09:53:21 +00:00
GitHub Action 63f7d94996 chore(release): 0.2.182 [skip ci] 2025-10-03 07:11:02 +00:00
James Peter 9f4221ec4a feat(protocol): add MCP shim and sync tool stack 2025-10-03 14:36:00 +10:00
GitHub Action 4c26cfad4a chore(release): 0.2.181 [skip ci] 2025-10-01 12:12:51 +00:00
GitHub Action 9265d55a2a chore(release): 0.2.180 [skip ci] 2025-10-01 00:00:07 +00:00
GitHub Action c7d70e1c33 chore(release): 0.2.179 [skip ci] 2025-09-30 13:17:04 +00:00
GitHub Action 918ee0e103 chore(release): 0.2.178 [skip ci] 2025-09-30 01:47:07 +00:00
GitHub Action e683e6870a chore(release): 0.2.177 [skip ci] 2025-09-29 22:43:32 +00:00
James Peter 093fb65073 feat(process-hardening): share hardening crate and update proxy 2025-09-30 08:23:01 +10:00
GitHub Action f14912c9c2 chore(release): 0.2.176 [skip ci] 2025-09-29 12:04:59 +00:00
GitHub Action 22f540844a docs(changelog): update for v0.2.175 [skip ci] 2025-09-29 11:36:33 +00:00
GitHub Action a982c450e3 chore(release): 0.2.175 [skip ci] 2025-09-29 11:32:29 +00:00
GitHub Action 4fab0312f0 chore(release): 0.2.174 [skip ci] 2025-09-29 02:20:12 +00:00
GitHub Action 702f674b87 chore(release): 0.2.173 [skip ci] 2025-09-29 01:26:27 +00:00
GitHub Action bc22304954 chore(release): 0.2.172 [skip ci] 2025-09-28 22:51:47 +00:00
GitHub Action c8386bd284 chore(release): 0.2.171 [skip ci] 2025-09-27 07:47:46 +00:00
GitHub Action 67b3dae038 chore(release): 0.2.170 [skip ci] 2025-09-27 03:35:41 +00:00
GitHub Action 47c99f5716 chore(release): 0.2.169 [skip ci] 2025-09-26 13:12:38 +00:00
GitHub Action e93d328461 chore(release): 0.2.168 [skip ci] 2025-09-26 12:50:42 +00:00
GitHub Action 0883e9bb76 chore(release): 0.2.167 [skip ci] 2025-09-26 01:37:27 +00:00
GitHub Action 3d3bcd3e12 docs(changelog): update for v0.2.166 [skip ci] 2025-09-25 12:20:57 +00:00
GitHub Action 7987db3a39 chore(release): 0.2.166 [skip ci] 2025-09-25 12:17:10 +00:00
GitHub Action fd0aadd1fd chore(release): 0.2.165 [skip ci] 2025-09-25 11:32:48 +00:00
GitHub Action c27b426b20 chore(release): 0.2.164 [skip ci] 2025-09-25 07:28:39 +00:00
James Peter 31412ca2e4 fix(cli/postinstall): restore shim detector 2025-09-25 17:01:19 +10:00
James Peter 5fa4f5e85c merge code-branch-20250925-045812 via /merge 2025-09-25 16:30:29 +10:00
James Peter 1b46db1586 fix(cli/postinstall): avoid overwriting existing code shim 2025-09-25 15:43:26 +10:00
James Peter 701a40c624 merge main into code-branch-20250925-040059 before merge 2025-09-25 14:59:28 +10:00
James Peter 4830f8b725 fix(cli/postinstall): preserve external code shims
Closes #239
2025-09-25 14:35:16 +10:00
GitHub Action 32ba22553e chore(release): 0.2.163 [skip ci] 2025-09-25 04:31:52 +00:00
just-every-code 091a28bab6 merge(upstream): merge upstream/main into upstream-merge (by-bucket)\n\n- Keep ours: codex-cli (resolve package.json, drop upstream rg/installer scripts)\n- Keep ours: workflows (ci.yml, rust-release.yml remain deleted)\n- Adopt upstream elsewhere; no core/tooling regressions\n\nBuild: verify.sh build_fast=ok api_check=ok 2025-09-24 06:36:58 +00:00
Michael BolinandGitHub 768a6075ef fix: vendor ripgrep in the npm module (#3660)
We try to ensure ripgrep (`rg`) is provided with Codex.

- For `brew`, we declare it as a dependency of our formula:

https://github.com/Homebrew/homebrew-core/blob/08d82d8b006a19efbe234477bc8b18d35b5fef50/Formula/c/codex.rb#L24
- For `npm`, we declare `@vscode/ripgrep` as a dependency, which
installs the platform-specific binary as part of a `postinstall` script:

https://github.com/openai/codex/blob/2804e9b73eca536fdd56b4bc0725207076c69234/codex-cli/package.json#L22
- Users who download the CLI directly from GitHub Releases are on their
own.

In practice, I have seen `@vscode/ripgrep` fail on occasion. Here is a
trace from a GitHub workflow:

```
npm error code 1
npm error path /Users/runner/hostedtoolcache/node/20.19.5/arm64/lib/node_modules/@openai/codex/node_modules/@vscode/ripgrep
npm error command failed
npm error command sh -c node ./lib/postinstall.js
npm error Finding release for v13.0.0-13
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v13.0.0-13
npm error Deleting invalid download cache
npm error Download attempt 1 failed, retrying in 2 seconds...
npm error Finding release for v13.0.0-13
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v13.0.0-13
npm error Deleting invalid download cache
npm error Download attempt 2 failed, retrying in 4 seconds...
npm error Finding release for v13.0.0-13
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v13.0.0-13
npm error Deleting invalid download cache
npm error Download attempt 3 failed, retrying in 8 seconds...
npm error Finding release for v13.0.0-13
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v13.0.0-13
npm error Deleting invalid download cache
npm error Download attempt 4 failed, retrying in 16 seconds...
npm error Finding release for v13.0.0-13
npm error GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v13.0.0-13
npm error Deleting invalid download cache
npm error Error: Request failed: 403
```

To eliminate this error, this PR changes things so that we vendor the
`rg` binary into https://www.npmjs.com/package/@openai/codex so it is
guaranteed to be included when a user runs `npm i -g @openai/codex`.

The downside of this approach is the increase in package size: we
include the `rg` executable for six architectures (in addition to the
six copies of `codex` we already include). In a follow-up, I plan to add
support for "slices" of our npm module, so that soon users will be able
to do:

```
npm install -g @openai/codex@aarch64-apple-darwin
```

Admittedly, this is a sizable change and I tried to clean some things up
in the process:

- `install_native_deps.sh` has been replaced by `install_native_deps.py`
- `stage_release.sh` and `stage_rust_release.py` has been replaced by
`build_npm_package.py`

We now vendor in a DotSlash file for ripgrep (as a modest attempt to
facilitate local testing) and then build up the extension by:

- creating a temp directory and copying `package.json` over to it with
the target value for `"version"`
- finding the GitHub workflow that corresponds to the
`--release-version` and copying the various `codex` artifacts to
respective `vendor/TARGET_TRIPLE/codex` folder
- downloading the `rg` artifacts specified in the DotSlash file and
copying them over to the respective `vendor/TARGET_TRIPLE/path` folder
- if `--pack-output` is specified, runs `npm pack` on the temp directory

To test, I downloaded the artifact produced by this CI job:


https://github.com/openai/codex/actions/runs/17961595388/job/51085840022?pr=3660

and verified that `node ./bin/codex.js 'which -a rg'` worked as
intended.
2025-09-23 23:00:33 -07:00
GitHub Action 67bf7c8ce3 chore(release): 0.2.162 [skip ci] 2025-09-22 12:16:22 +00:00
GitHub Action edb1a813b0 chore(release): 0.2.161 [skip ci] 2025-09-22 11:22:46 +00:00
GitHub Action c76abf596e chore(release): 0.2.160 [skip ci] 2025-09-22 10:57:11 +00:00
GitHub Action b16495b498 docs(changelog): update for v0.2.159 [skip ci] 2025-09-22 09:33:17 +00:00
GitHub Action ea845dfc6e chore(release): 0.2.159 [skip ci] 2025-09-22 09:29:51 +00:00
GitHub Action d921ab1bfb chore(release): 0.2.158 [skip ci] 2025-09-22 09:01:39 +00:00
James Peter 237d2446ed feat(cli): add acp alias for mcp subcommand 2025-09-22 15:42:26 +10:00
James Peter c07c7b2429 feat(cli): expose mcp via code subcommand 2025-09-22 15:16:49 +10:00
James Peter 45f8060ead feat(cli): ship code-mcp-server with npm install 2025-09-22 15:02:41 +10:00
GitHub Action b05df95501 docs(changelog): update for v0.2.157 [skip ci] 2025-09-22 03:20:16 +00:00
GitHub Action 454c1fef81 chore(release): 0.2.157 [skip ci] 2025-09-22 03:19:10 +00:00
GitHub Action 262627acb7 chore(release): 0.2.156 [skip ci] 2025-09-22 01:48:44 +00:00
James Peter 931ef782b0 fix(cli/postinstall): restore code shim on npm global installs
Closes #199.
2025-09-20 06:05:32 +10:00