Skip to content

Commit 408c7ca

Browse files
authored
chore: remove the TypeScript code from the repository (openai#2048)
This deletes the bulk of the `codex-cli` folder and eliminates the logic that builds the TypeScript code and bundles it into the release. Since this PR modifies `.github/workflows/rust-release.yml`, to test changes to the release process, I locally commented out all of the "is this commit on upstream `main`" checks in `scripts/create_github_release.sh` and ran: ``` ./codex-rs/scripts/create_github_release.sh 0.20.0-alpha.4 ``` Which kicked off: https://github.com/openai/codex/actions/runs/16842085113 And the release artifacts appear legit! https://github.com/openai/codex/releases/tag/rust-v0.20.0-alpha.4
1 parent 75febbd commit 408c7ca

File tree

216 files changed

+7
-35964
lines changed

Some content is hidden

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

216 files changed

+7
-35964
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,35 +44,10 @@ jobs:
4444

4545
# Run all tasks using workspace filters
4646

47-
- name: Check TypeScript code formatting
48-
working-directory: codex-cli
49-
run: pnpm run format
50-
51-
- name: Check Markdown and config file formatting
52-
run: pnpm run format
53-
54-
- name: Run tests
55-
run: pnpm run test
56-
57-
- name: Lint
58-
run: |
59-
pnpm --filter @openai/codex exec -- eslint src tests --ext ts --ext tsx \
60-
--report-unused-disable-directives \
61-
--rule "no-console:error" \
62-
--rule "no-debugger:error" \
63-
--max-warnings=-1
64-
65-
- name: Type-check
66-
run: pnpm run typecheck
67-
68-
- name: Build
69-
run: pnpm run build
70-
7147
- name: Ensure staging a release works.
72-
working-directory: codex-cli
7348
env:
7449
GH_TOKEN: ${{ github.token }}
75-
run: pnpm stage-release
50+
run: ./codex-cli/scripts/stage_release.sh
7651

7752
- name: Ensure root README.md contains only ASCII and certain Unicode code points
7853
run: ./scripts/asciicheck.py README.md

.github/workflows/codex.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,6 @@ jobs:
3939
- name: Checkout repository
4040
uses: actions/checkout@v4
4141

42-
# We install the dependencies like we would for an ordinary CI job,
43-
# particularly because Codex will not have network access to install
44-
# these dependencies.
45-
- name: Setup Node.js
46-
uses: actions/setup-node@v4
47-
with:
48-
node-version: 22
49-
50-
- name: Setup pnpm
51-
uses: pnpm/action-setup@v4
52-
with:
53-
version: 10.8.1
54-
run_install: false
55-
56-
- name: Get pnpm store directory
57-
id: pnpm-cache
58-
shell: bash
59-
run: |
60-
echo "store_path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
61-
62-
- name: Setup pnpm cache
63-
uses: actions/cache@v4
64-
with:
65-
path: ${{ steps.pnpm-cache.outputs.store_path }}
66-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
67-
restore-keys: |
68-
${{ runner.os }}-pnpm-store-
69-
70-
- name: Install dependencies
71-
run: pnpm install
72-
7342
- uses: dtolnay/[email protected]
7443
with:
7544
targets: x86_64-unknown-linux-gnu

.github/workflows/rust-release.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -172,32 +172,6 @@ jobs:
172172
version="${GITHUB_REF_NAME#rust-v}"
173173
echo "name=${version}" >> $GITHUB_OUTPUT
174174
175-
# Setup Node + pnpm similar to ci.yml so we can build the npm package
176-
- name: Setup Node.js
177-
uses: actions/setup-node@v4
178-
with:
179-
node-version: 22
180-
181-
- name: Setup pnpm
182-
uses: pnpm/action-setup@v4
183-
with:
184-
version: 10.8.1
185-
run_install: false
186-
187-
- name: Get pnpm store directory
188-
id: pnpm-cache
189-
shell: bash
190-
run: |
191-
echo "store_path=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
192-
193-
- name: Setup pnpm cache
194-
uses: actions/cache@v4
195-
with:
196-
path: ${{ steps.pnpm-cache.outputs.store_path }}
197-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
198-
restore-keys: |
199-
${{ runner.os }}-pnpm-store-
200-
201175
- name: Stage npm package
202176
env:
203177
GH_TOKEN: ${{ github.token }}

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

codex-cli/.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

codex-cli/.eslintrc.cjs

Lines changed: 0 additions & 107 deletions
This file was deleted.

codex-cli/HUSKY.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

codex-cli/build.mjs

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)