feat: upgrade codex-sdk to 0.76.0 and claude-agent-sdk to 0.1.74

Upgrade packages to access latest model catalogs:
- @openai/codex-sdk: 0.58.0 → 0.76.0
- @anthropic-ai/claude-agent-sdk: 0.1.37 → 0.1.74

New models available after upgrade:
- Claude: Added Opus 4.5 and Haiku 4.5 to catalog
- Codex: Added gpt-5.2, gpt-5.2-codex, and gpt-5.1-codex variants

Updated patch file for new codex-sdk version.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mohamed Boudra
2025-12-20 13:10:57 +07:00
parent b8de55f31b
commit f06170fcee
3 changed files with 129 additions and 45 deletions

View File

@@ -0,0 +1,22 @@
diff --git a/node_modules/@openai/codex-sdk/dist/index.js b/node_modules/@openai/codex-sdk/dist/index.js
index c7b7f30..be7300c 100644
--- a/node_modules/@openai/codex-sdk/dist/index.js
+++ b/node_modules/@openai/codex-sdk/dist/index.js
@@ -258,7 +258,16 @@ var CodexExec = class {
rl.close();
child.removeAllListeners();
try {
- if (!child.killed) child.kill();
+ // Use SIGINT to request a graceful shutdown and fall back to SIGKILL if it hangs.
+ if (child.exitCode === null && !child.killed) {
+ const forceKillTimer = setTimeout(() => {
+ if (child.exitCode === null && !child.killed) {
+ child.kill("SIGKILL");
+ }
+ }, 3e3);
+ child.once("exit", () => clearTimeout(forceKillTimer));
+ child.kill("SIGINT");
+ }
} catch {
}
}