Update e2b SDK (js → 2.27.1, python → 2.25.1)#204
Conversation
Bumps the e2b dependency for both SDKs and adapts to the breaking change in e2b 2.24.0, which removed Sandbox.betaCreate / SandboxBetaCreateOpts (JS) and Sandbox.beta_create (Python). The lifecycle config those methods gated now ships on Sandbox.create, so the desktop overrides are dropped: - js-sdk: removed the betaCreate override and SandboxBetaCreateOpts interface (tsc failed against the new types) - python-sdk: removed the beta_create override (super().beta_create no longer exists, leaving it broken at runtime) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR SummaryMedium Risk Overview Because e2b 2.24.0 removed the beta sandbox create API, this PR removes the desktop-only wrappers that called it:
Reviewed by Cursor Bugbot for commit fbbadc8. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa699d9dd3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
e2b 2.27.1 declares engines.node >=20.18.1. Bump @e2b/desktop's range to match so consumers on Node 20.0–20.17 get a clear engine mismatch at install time rather than runtime failures from the upgraded SDK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replaces the closed Renovate PR #199. Bumps the
e2bdependency for both SDKs to the requested versions:e2b(js-sdk)e2b(python-sdk)Breaking change handled
e2b 2.24.0 removed the beta create API:
Sandbox.betaCreateandSandboxBetaCreateOptsSandbox.beta_createThe
lifecycleconfig those methods gated now ships onSandbox.create, so the desktop overrides are dead/broken and have been removed:betaCreateoverride +SandboxBetaCreateOptsinterface and its import. Without this,tsc --noEmitfails (TS2614/TS2339) — this was the failure on Update dependency e2b #199.beta_createoverride;super().beta_create()no longer exists, leaving it broken at runtime.Verification
pnpm build(tsc + tsup) passes against e2b 2.27.1pnpm run lintandpnpm run formatclean (no formatting diffs)from e2b_desktop import Sandboximports cleanly against e2b 2.25.1pnpm-lock.yaml,poetry.lock)🤖 Generated with Claude Code