Commit Graph
24 Commits
Author SHA1 Message Date
James Peter 76e9dd6da0 Merge upstream/main: adopt tool parallelism and exec formatting 2025-10-06 11:19:57 +10:00
2b3133ced3 Expand TypeScript SDK README (#4779)
## Summary
- expand the TypeScript SDK README with streaming, architecture, and API
docs
- refresh quick start examples and clarify thread management options

## Testing
- Not Run (docs only)

---------

Co-authored-by: pakrym-oai <[email protected]>
2025-10-05 21:43:34 +00:00
pakrym-oaiandGitHub 228de53fa9 Misc SDK fixes (#4752)
Remove codex-level workingDirectory
Throw on turn.failed in `run()`
Cleanup readme
2025-10-04 19:55:33 -07:00
James Peter 59f22502c2 chore(workspace): sync codex tree and finish reset plan 2025-10-05 09:04:09 +10:00
pakrym-oaiandGitHub 9ce184856d Expose turn token usage in the SDK (#4700)
It's present on the event, add it to the final result as well.
2025-10-03 17:33:23 -07:00
James Peter f7de240659 fix(sdk): keep per-turn thread options 2025-10-03 14:56:56 +10:00
James Peter 9b77d62021 fix(sdk): align thread event surface with typings 2025-10-03 14:42:27 +10:00
James Peter 38189b8fd2 feat(protocol): add MCP shim and sync tool stack 2025-10-03 14:36:00 +10:00
James Peter 8c2e22be95 merge(upstream): add automation prompts and exec docs 2025-10-03 14:26:48 +10:00
pakrym-oaiandGitHub c62c6db075 Rename assistant message to agent message and fix item type field naming (#4610)
Naming cleanup
2025-10-02 15:07:14 -07:00
pakrym-oaiandGitHub dd1cb3ffa5 Support CODEX_API_KEY for codex exec (#4615)
Allows to set API key per invocation of `codex exec`
2025-10-02 09:59:45 -07:00
pakrym-oaiandGitHub 2060dd5beb Store settings on the thread instead of turn (#4579)
It's much more common to keep the same settings for the entire
conversation, we can add per-turn overrides later.
2025-10-02 00:31:13 +00:00
pakrym-oaiandGitHub ddff573b30 Add initial set of doc comments to the SDK (#4513)
Also perform minor code cleanup.
2025-10-01 13:12:59 -07:00
pakrym-oaiandGitHub 8400b08e37 Explicit node imports (#4567)
To help with compatibility
2025-10-01 12:39:04 -07:00
pakrym-oaiandGitHub 8de634dfda SDK: support working directory and skipGitRepoCheck options (#4563)
Make options not required, add support for working directory and
skipGitRepoCheck options on the turn
2025-10-01 11:26:49 -07:00
Michael BolinandGitHub dec4358fd6 chore: introduce publishing logic for @openai/codex-sdk (#4543)
There was a bit of copypasta I put up with when were publishing two
packages to npm, but now that it's three, I created some more scripts to
consolidate things.

With this change, I ran:

```shell
./scripts/stage_npm_packages.py --release-version 0.43.0-alpha.8 --package codex --package codex-responses-api-proxy --package codex-sdk
```

Indeed when it finished, I ended up with:

```shell
$ tree dist
dist
└── npm
    ├── codex-npm-0.43.0-alpha.8.tgz
    ├── codex-responses-api-proxy-npm-0.43.0-alpha.8.tgz
    └── codex-sdk-npm-0.43.0-alpha.8.tgz
$ tar tzvf dist/npm/codex-sdk-npm-0.43.0-alpha.8.tgz
-rwxr-xr-x  0 0      0    25476720 Oct 26  1985 package/vendor/aarch64-apple-darwin/codex/codex
-rwxr-xr-x  0 0      0    29871400 Oct 26  1985 package/vendor/aarch64-unknown-linux-musl/codex/codex
-rwxr-xr-x  0 0      0    28368096 Oct 26  1985 package/vendor/x86_64-apple-darwin/codex/codex
-rwxr-xr-x  0 0      0    36029472 Oct 26  1985 package/vendor/x86_64-unknown-linux-musl/codex/codex
-rw-r--r--  0 0      0       10926 Oct 26  1985 package/LICENSE
-rw-r--r--  0 0      0    30187520 Oct 26  1985 package/vendor/aarch64-pc-windows-msvc/codex/codex.exe
-rw-r--r--  0 0      0    35277824 Oct 26  1985 package/vendor/x86_64-pc-windows-msvc/codex/codex.exe
-rw-r--r--  0 0      0        4842 Oct 26  1985 package/dist/index.js
-rw-r--r--  0 0      0        1347 Oct 26  1985 package/package.json
-rw-r--r--  0 0      0        9867 Oct 26  1985 package/dist/index.js.map
-rw-r--r--  0 0      0          12 Oct 26  1985 package/README.md
-rw-r--r--  0 0      0        4287 Oct 26  1985 package/dist/index.d.ts
```
2025-10-01 08:29:59 -07:00
James Peter 822bbe9e44 fix(ts-sdk): update event mapping for json exec 2025-10-01 13:36:01 +10:00
pakrym-oaiandGitHub f14b8c9dfb Add executable detection and export Codex from the SDK (#4532)
Executable detection uses the same rules as the codex wrapper.
2025-09-30 18:06:16 -07:00
pakrym-oaiandGitHub a0155dc862 [SDK] Test that a tread can be continued with extra params (#4508) 2025-09-30 17:22:14 +00:00
pakrym-oaiandGitHub 97ee9efea9 Support model and sandbox mode in the sdk (#4503) 2025-09-30 09:00:39 -07:00
pakrym-oaiandGitHub 4dd863c176 SDK CI (#4483)
Build debug codex in SDK configuration
2025-09-29 21:15:02 -07:00
pakrym-oaiandGitHub a639701367 Rename conversation to thread in codex exec (#4482) 2025-09-29 20:18:30 -07:00
pakrym-oaiandGitHub b0c6fface0 Add some types and a basic test to the SDK (#4472) 2025-09-29 19:40:08 -07:00
pakrym-oaiandGitHub ad4308f365 TypeScript SDK scaffold (#4455) 2025-09-29 13:27:13 -07:00