From 428298911ea9600f3538333cafcdb7f3f6b16824 Mon Sep 17 00:00:00 2001 From: Wondoo Kang Date: Sat, 14 Feb 2026 17:48:39 +0900 Subject: [PATCH] fix: update codex sdk and add codex model IDs --- package-lock.json | 133 +++++++++++++++++++++++++++++++++++++-- package.json | 2 +- shared/modelConstants.js | 4 +- 3 files changed, 133 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index d13fd7caf..de26a2918 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@codemirror/theme-one-dark": "^6.1.2", "@iarna/toml": "^2.2.5", "@octokit/rest": "^22.0.0", - "@openai/codex-sdk": "^0.75.0", + "@openai/codex-sdk": "^0.101.0", "@replit/codemirror-minimap": "^0.5.2", "@tailwindcss/typography": "^0.5.16", "@uiw/react-codemirror": "^4.23.13", @@ -2431,15 +2431,140 @@ "@octokit/openapi-types": "^26.0.0" } }, + "node_modules/@openai/codex": { + "version": "0.101.0", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0.tgz", + "integrity": "sha512-H874q5K5I3chrT588BaddMr7GNvRYypc8C1MKWytNUF2PgxWMko2g/2DgKbt5OdajZKMsWdbsPywu34KQGf5Qw==", + "license": "Apache-2.0", + "bin": { + "codex": "bin/codex.js" + }, + "engines": { + "node": ">=16" + }, + "optionalDependencies": { + "@openai/codex-darwin-arm64": "npm:@openai/codex@0.101.0-darwin-arm64", + "@openai/codex-darwin-x64": "npm:@openai/codex@0.101.0-darwin-x64", + "@openai/codex-linux-arm64": "npm:@openai/codex@0.101.0-linux-arm64", + "@openai/codex-linux-x64": "npm:@openai/codex@0.101.0-linux-x64", + "@openai/codex-win32-arm64": "npm:@openai/codex@0.101.0-win32-arm64", + "@openai/codex-win32-x64": "npm:@openai/codex@0.101.0-win32-x64" + } + }, + "node_modules/@openai/codex-darwin-arm64": { + "name": "@openai/codex", + "version": "0.101.0-darwin-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-darwin-arm64.tgz", + "integrity": "sha512-unk4rTRQQ9o0w2Upu35IsJHpoZHJ+tU/myn6LNhUjcP9FrjLnEcAQJ6WIMtdTYVPja1PGhFSO0DNxV79GMvehw==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@openai/codex-darwin-x64": { + "name": "@openai/codex", + "version": "0.101.0-darwin-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-darwin-x64.tgz", + "integrity": "sha512-+KFi1IapCQGd3vLQp2lI4xI3hu2QffDZYt7Fhfw6NxEFOKhHnTamRtQ5yI8jYQcYF+pQfYF2fyiuXLM1lITLQw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@openai/codex-linux-arm64": { + "name": "@openai/codex", + "version": "0.101.0-linux-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-linux-arm64.tgz", + "integrity": "sha512-RkDnQeq7M6ZBtD+8i+I5ewjjOf02BcJq6r1kN4RBewfAQBsz6B73Ns3OrI2bHVRsuPtAf8Cf1S4xg/eFZT2Omg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@openai/codex-linux-x64": { + "name": "@openai/codex", + "version": "0.101.0-linux-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-linux-x64.tgz", + "integrity": "sha512-SJeEdQ4ReEU3nvtceZ1uY3me6oWoB3djr3GnZmAUCEUuYEWD1kRGprAyJB1N0B+8zhSv0SU2e9sX5t3aCV4AwQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16" + } + }, "node_modules/@openai/codex-sdk": { - "version": "0.75.0", - "resolved": "https://registry.npmjs.org/@openai/codex-sdk/-/codex-sdk-0.75.0.tgz", - "integrity": "sha512-4X5kHPXLu16SmGUdsvSa9xRuVmRC8oQw62iH8dRyIDbyy2MNkh068NNoHWDoJErRLUc4X4Ed2ceiNs6Tbkswnw==", + "version": "0.101.0", + "resolved": "https://registry.npmjs.org/@openai/codex-sdk/-/codex-sdk-0.101.0.tgz", + "integrity": "sha512-Lrar2pDvGUX64itSbMNKuNBzxh72UwKokY4TPuXJRURwGX0qyDi80n7DiVivC40BwFsQWNs6behSo/9Mr6PoLw==", "license": "Apache-2.0", + "dependencies": { + "@openai/codex": "0.101.0" + }, "engines": { "node": ">=18" } }, + "node_modules/@openai/codex-win32-arm64": { + "name": "@openai/codex", + "version": "0.101.0-win32-arm64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-win32-arm64.tgz", + "integrity": "sha512-WQ8QsychjHyvlr+vCSTMbd2/yrBIZre5tRuM79eZi973BJz0CSEiFsNSGg5fvpnJuiHHawZ/8HWeir7nlatamQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/@openai/codex-win32-x64": { + "name": "@openai/codex", + "version": "0.101.0-win32-x64", + "resolved": "https://registry.npmjs.org/@openai/codex/-/codex-0.101.0-win32-x64.tgz", + "integrity": "sha512-H+7h9x0fYrJRUZZHCA62Dzb/CS5Scl1sUw1aamfmHJzzorX+uTFOgGsibzqFpHTd6nRM4q8//fCdSxe5wUpOQQ==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16" + } + }, "node_modules/@phun-ky/typeof": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@phun-ky/typeof/-/typeof-2.0.3.tgz", diff --git a/package.json b/package.json index 5e783eacd..7ccb62b99 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@codemirror/theme-one-dark": "^6.1.2", "@iarna/toml": "^2.2.5", "@octokit/rest": "^22.0.0", - "@openai/codex-sdk": "^0.75.0", + "@openai/codex-sdk": "^0.101.0", "@replit/codemirror-minimap": "^0.5.2", "@tailwindcss/typography": "^0.5.16", "@uiw/react-codemirror": "^4.23.13", diff --git a/shared/modelConstants.js b/shared/modelConstants.js index a327c9fa7..1f6ec1d0e 100644 --- a/shared/modelConstants.js +++ b/shared/modelConstants.js @@ -55,6 +55,8 @@ export const CURSOR_MODELS = { */ export const CODEX_MODELS = { OPTIONS: [ + { value: 'gpt-5.3-codex', label: 'GPT-5.3 Codex' }, + { value: 'gpt-5.2-codex', label: 'GPT-5.2 Codex' }, { value: 'gpt-5.2', label: 'GPT-5.2' }, { value: 'gpt-5.1-codex-max', label: 'GPT-5.1 Codex Max' }, { value: 'o3', label: 'O3' }, @@ -62,4 +64,4 @@ export const CODEX_MODELS = { ], DEFAULT: 'gpt-5.2' -}; \ No newline at end of file +};