Commit Graph

581 Commits

Author SHA1 Message Date
Michael Bolin
1074abb2bf merge commit for archive created by Sapling 2025-04-30 14:57:16 -07:00
Michael Bolin
2812bde15a feat: use Landlock for sandboxing on Linux 2025-04-30 14:57:09 -07:00
Michael Bolin
1ac157950f merge commit for archive created by Sapling 2025-04-30 14:31:06 -07:00
Michael Bolin
0e53e1bd54 chore: make build process a single script to run 2025-04-30 14:30:56 -07:00
Michael Bolin
9ae9a682fa feat: use Landlock for sandboxing on Linux 2025-04-30 14:30:56 -07:00
Michael Bolin
4a7aee7713 merge commit for archive created by Sapling 2025-04-30 14:24:37 -07:00
Michael Bolin
364b53900f feat: use Landlock for sandboxing on Linux 2025-04-30 14:24:27 -07:00
Michael Bolin
dd1f839f52 chore: make build process a single script to run 2025-04-30 14:08:38 -07:00
Michael Bolin
033d379eca fix: remove unused _writableRoots arg to exec() function (#762)
I suspect this was done originally so that `execForSandbox()` had a
consistent signature for both the `SandboxType.NONE` and
`SandboxType.MACOS_SEATBELT` cases, but that is not really necessary and
turns out to make the upcoming Landlock support a bit more complicated
to implement, so I had Codex remove it and clean up the call sites.
2025-04-30 14:08:27 -07:00
Michael Bolin
6923cd5065 Merge 8312121a1f into sapling-pr-archive-bolinfest 2025-04-30 14:05:12 -07:00
Michael Bolin
8312121a1f fix: remove unused _writableRoots arg to exec() function 2025-04-30 14:04:59 -07:00
Michael Bolin
e6fe8d6fa1 chore: mark Rust releases as "prerelease" (#761)
Apparently the URLs for draft releases cannot be downloaded using
unauthenticated `curl`, which means the DotSlash file only works for
users who are authenticated with `gh`. According to chat, prereleases
_can_ be fetched with unauthenticated `curl`, so let's try that.
codex-rs-e40bc9911433bd3f942ef4604626fab5638a7a72-1-rust-v0.0.2504301327
2025-04-30 13:25:53 -07:00
Michael Bolin
3de041fe2a Merge f361844ce5 into sapling-pr-archive-bolinfest 2025-04-30 13:21:29 -07:00
Michael Bolin
f361844ce5 chore: mark Rust releases as "prerelease" 2025-04-30 13:21:22 -07:00
Michael Bolin
b571249867 chore: script to create a Rust release (#759)
For now, keep things simple such that we never update the `version` in
the `Cargo.toml` for the workspace root on the `main` branch. Instead,
create a new branch for a release, push one commit that updates the
`version`, and then tag that branch to kick off a release.

To test, I ran this script and created this release job:

https://github.com/openai/codex/actions/runs/14762580641
codex-rs-72a4c38e41bc64f5a7c8c73d52f45784cb6b7137-1-rust-v0.0.2504301219
2025-04-30 12:39:03 -07:00
Michael Bolin
02c180f6c3 merge commit for archive created by Sapling 2025-04-30 12:16:11 -07:00
Michael Bolin
4ae8f2ba46 chore: script to create a Rust release 2025-04-30 12:16:04 -07:00
Michael Bolin
cc74a71a69 Merge 8dff8943ee into sapling-pr-archive-bolinfest 2025-04-30 12:10:54 -07:00
Michael Bolin
8dff8943ee chore: script to create a Rust release 2025-04-30 12:10:46 -07:00
Michael Bolin
24278347b7 fix: remove codex-repl from GitHub workflows (#760)
I missed this when doing https://github.com/openai/codex/pull/754.
2025-04-30 12:10:24 -07:00
Michael Bolin
95ef46c6f8 Merge 549341afaf into sapling-pr-archive-bolinfest 2025-04-30 12:09:47 -07:00
Michael Bolin
549341afaf fix: remove codex-repl from GitHub workflows 2025-04-30 12:09:40 -07:00
Michael Bolin
7f18fd3f56 Merge 4e7f007e68 into sapling-pr-archive-bolinfest 2025-04-30 12:08:21 -07:00
Michael Bolin
4e7f007e68 chore: script to create a Rust release 2025-04-30 12:08:11 -07:00
Michael Bolin
8f7a54501c chore: Rust release, set prerelease:false and version=0.0.2504301132 (#755)
The generated DotSlash file has URLs that refer to
`https://github.com/openai/codex/releases/`, so let's set
`prerelease:false` (but keep `draft:true` for now) so those URLs should
work.

Also updated `version` in Cargo workspace so I will kick off a build
once this lands.
rust-v0.0.2504301132
2025-04-30 11:53:03 -07:00
Michael Bolin
30c8095d6f merge commit for archive created by Sapling 2025-04-30 11:50:25 -07:00
Michael Bolin
789ecab603 chore: make build process a single script to run 2025-04-30 11:50:18 -07:00
Michael Bolin
d95603f2de Merge 8eb5e174db into sapling-pr-archive-bolinfest 2025-04-30 11:48:13 -07:00
Michael Bolin
8eb5e174db chore: make build process a single script to run 2025-04-30 11:48:03 -07:00
Michael Bolin
eb9d8b3514 Merge 5f5871714e into sapling-pr-archive-bolinfest 2025-04-30 11:37:35 -07:00
Michael Bolin
5f5871714e chore: Rust release, set prerelease:false and version=0.0.2504301132 2025-04-30 11:37:27 -07:00
Michael Bolin
2f1d96e77d fix: remove errant eslint-disable so pnpm run lint passes again (#756)
My bad: introduced in https://github.com/openai/codex/pull/753.
2025-04-30 11:37:11 -07:00
Michael Bolin
51e669f01e Merge b6f4935f0c into sapling-pr-archive-bolinfest 2025-04-30 11:36:48 -07:00
Michael Bolin
b6f4935f0c fix: remove errant eslint-disable so pnpm run lint passes again 2025-04-30 11:36:41 -07:00
Michael Bolin
09ccbabd82 Merge 4bd790bbac into sapling-pr-archive-bolinfest 2025-04-30 11:33:12 -07:00
Michael Bolin
4bd790bbac chore: Rust release, set prerelease:false and version=0.0.2504301132 2025-04-30 11:33:04 -07:00
Michael Bolin
84aaefa102 fix: read version from package.json instead of modifying session.ts (#753)
I am working to simplify the build process. As a first step, update
`session.ts` so it reads the `version` from `package.json` at runtime so
we no longer have to modify it during the build process. I want to get
to a place where the build looks like:

```
cd codex-cli
pnpm i
pnpm build
RELEASE_DIR=$(mktemp -d)
cp -r bin "$RELEASE_DIR/bin"
cp -r dist "$RELEASE_DIR/dist"
cp -r src "$RELEASE_DIR/src" # important if we want sourcemaps to continue to work
cp ../README.md "$RELEASE_DIR"
VERSION=$(printf '0.1.%d' $(date +%y%m%d%H%M))
jq --arg version "$VERSION" '.version = $version' package.json > "$RELEASE_DIR/package.json"
```

Then the contents of `$RELEASE_DIR` should be good to `npm publish`, no?
2025-04-30 11:03:10 -07:00
Michael Bolin
c432d9ef81 chore: remove the REPL crate/subcommand (#754)
@oai-ragona and I discussed it, and we feel the REPL crate has served
its purpose, so we're going to delete the code and future archaeologists
can find it in Git history.
2025-04-30 10:15:50 -07:00
Michael Bolin
fcb51acb41 Merge 5141716dbb into sapling-pr-archive-bolinfest 2025-04-30 10:07:13 -07:00
Michael Bolin
5141716dbb chore: remove the REPL crate/subcommand 2025-04-30 10:07:06 -07:00
Michael Bolin
4746ee900f fix: remove expected dot after v in rust-v tag name (#742)
I think this extra dot was not intentional, but I'm not sure. Certainly
this comment suggests it should not be there:


85999d7277/.github/workflows/rust-release.yml (L4)
2025-04-30 10:05:47 -07:00
Michael Bolin
0995b604ad Merge f25597b510 into sapling-pr-archive-bolinfest 2025-04-30 09:21:33 -07:00
Michael Bolin
f25597b510 fix: read version from package.json instead of modifying session.ts 2025-04-30 09:21:25 -07:00
Michael Bolin
33c84d5b82 Merge c8f9dab76f into sapling-pr-archive-bolinfest 2025-04-30 09:20:34 -07:00
Michael Bolin
c8f9dab76f fix: read version from package.json instead of modifying session.ts 2025-04-30 09:20:25 -07:00
Michael Bolin
8e6504b9e7 chore: create a script for the release process 2025-04-30 08:47:59 -07:00
Michael Bolin
f2ed46ceca fix: include x86_64-unknown-linux-gnu in the list of arch to build codex-linux-sandbox (#748) 2025-04-29 21:19:14 -07:00
Michael Bolin
0020f102e4 Merge ec4390a6e1 into sapling-pr-archive-bolinfest 2025-04-29 21:17:51 -07:00
Michael Bolin
ec4390a6e1 fix: include x86_64-unknown-linux-gnu in the list of arch to build codex-linux-sandbox 2025-04-29 21:17:42 -07:00
Michael Bolin
e42dacbdc8 fix: add another place where $dest was missing in rust-release.yml (#747)
I thought https://github.com/openai/codex/pull/745 was the last fix I
needed, but apparently not.
rust-v.0.0.2504292236
2025-04-29 20:23:54 -07:00