Skip to content

Commit 7518edf

Browse files
Merge remote-tracking branch 'origin/main' into nornagon/voice-mode
2 parents 5504a37 + 5332f6e commit 7518edf

File tree

558 files changed

+22345
-4037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

558 files changed

+22345
-4037
lines changed

.github/workflows/codespell.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ jobs:
2525
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2
2626
with:
2727
ignore_words_file: .codespellignore
28+
skip: frame*.txt

.github/workflows/rust-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
components: rustfmt
6363
- name: cargo fmt
6464
run: cargo fmt -- --config imports_granularity=Item --check
65+
- name: Verify codegen for mcp-types
66+
run: ./mcp-types/check_lib_rs.py
6567

6668
cargo_shear:
6769
name: cargo shear

.github/workflows/rust-release.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ jobs:
176176
needs: build
177177
name: release
178178
runs-on: ubuntu-latest
179+
permissions:
180+
contents: write
181+
actions: read
182+
outputs:
183+
version: ${{ steps.release_name.outputs.name }}
184+
tag: ${{ github.ref_name }}
179185

180186
steps:
181187
- name: Checkout repository
@@ -228,3 +234,63 @@ jobs:
228234
with:
229235
tag: ${{ github.ref_name }}
230236
config: .github/dotslash-config.json
237+
238+
# Publish to npm using OIDC authentication.
239+
# July 31, 2025: https://github.blog/changelog/2025-07-31-npm-trusted-publishing-with-oidc-is-generally-available/
240+
# npm docs: https://docs.npmjs.com/trusted-publishers
241+
publish-npm:
242+
# Skip this step for pre-releases (alpha/beta).
243+
if: ${{ !contains(needs.release.outputs.version, '-') }}
244+
name: publish-npm
245+
needs: release
246+
runs-on: ubuntu-latest
247+
permissions:
248+
id-token: write # Required for OIDC
249+
contents: read
250+
251+
steps:
252+
- name: Setup Node.js
253+
uses: actions/setup-node@v5
254+
with:
255+
node-version: 22
256+
registry-url: "https://registry.npmjs.org"
257+
scope: "@openai"
258+
259+
# Trusted publishing requires npm CLI version 11.5.1 or later.
260+
- name: Update npm
261+
run: npm install -g npm@latest
262+
263+
- name: Download npm tarball from release
264+
env:
265+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
266+
run: |
267+
set -euo pipefail
268+
version="${{ needs.release.outputs.version }}"
269+
tag="${{ needs.release.outputs.tag }}"
270+
mkdir -p dist/npm
271+
gh release download "$tag" \
272+
--pattern "codex-npm-${version}.tgz" \
273+
--dir dist/npm
274+
275+
# No NODE_AUTH_TOKEN needed because we use OIDC.
276+
- name: Publish to npm
277+
run: npm publish "${GITHUB_WORKSPACE}/dist/npm/codex-npm-${{ needs.release.outputs.version }}.tgz"
278+
279+
update-branch:
280+
name: Update latest-alpha-cli branch
281+
permissions:
282+
contents: write
283+
needs: release
284+
runs-on: ubuntu-latest
285+
286+
steps:
287+
- name: Update latest-alpha-cli branch
288+
env:
289+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
290+
run: |
291+
set -euo pipefail
292+
gh api \
293+
repos/${GITHUB_REPOSITORY}/git/refs/heads/latest-alpha-cli \
294+
-X PATCH \
295+
-f sha="${GITHUB_SHA}" \
296+
-F force=true

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
<p align="center"><code>npm i -g @openai/codex</code><br />or <code>brew install codex</code></p>
44

5-
<p align="center"><strong>Codex CLI</strong> is a coding agent from OpenAI that runs locally on your computer.</br>If you are looking for the <em>cloud-based agent</em> from OpenAI, <strong>Codex Web</strong>, see <a href="https://chatgpt.com/codex">chatgpt.com/codex</a>.</p>
5+
<p align="center"><strong>Codex CLI</strong> is a coding agent from OpenAI that runs locally on your computer.
6+
</br>
7+
</br>If you want Codex in your code editor (VS Code, Cursor, Windsurf), <a href="https://developers.openai.com/codex/ide">install in your IDE</a>
8+
</br>If you are looking for the <em>cloud-based agent</em> from OpenAI, <strong>Codex Web</strong>, go to <a href="https://chatgpt.com/codex">chatgpt.com/codex</a></p>
69

710
<p align="center">
811
<img src="./.github/codex-cli-splash.png" alt="Codex CLI splash" width="80%" />

codex-cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
],
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/openai/codex.git"
18+
"url": "git+https://github.com/openai/codex.git",
19+
"directory": "codex-cli"
1920
},
2021
"dependencies": {
2122
"@vscode/ripgrep": "^1.15.14"

0 commit comments

Comments
 (0)