Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
[skip ci] Release new versions
github-actions[bot]59c6996a1e3b
diff --git a/.changeset/boundary-stack-traces.md b/.changeset/boundary-stack-traces.mddeleted file mode 100644index 4f080813a..000000000--- a/.changeset/boundary-stack-traces.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Select template build-step stack-trace frames by SDK boundary instead of fixed depth. The caller's frame is now the first one whose file lies outside the SDK package, so traces stay correct when transpilers inject extra frames (e.g. TS class-field initializers) or runtimes elide delegating frames (e.g. Bun's tail-call elision). The suppress/override stack-trace collection machinery this made redundant (`runInNewStackTraceContext`, `runInStackTraceOverrideContext` and their Python equivalents) is removed.diff --git a/.changeset/cf-workers-connection-fixes.md b/.changeset/cf-workers-connection-fixes.mddeleted file mode 100644index 9c6299d33..000000000--- a/.changeset/cf-workers-connection-fixes.md+++ /dev/null@@ -1,5 +0,0 @@-----'e2b': patch------Recognize Cloudflare Workers' `Network connection lost` as a dropped sandbox connection so a sandbox killed mid-request surfaces as the health-checked `TimeoutError` (matching Node/Bun/Deno), and fix streaming downloads releasing their pooled connection twice when cancelled while a read was in flightdiff --git a/.changeset/deno-template-uploads.md b/.changeset/deno-template-uploads.mddeleted file mode 100644index 551527740..000000000--- a/.changeset/deno-template-uploads.md+++ /dev/null@@ -1,5 +0,0 @@-----'e2b': patch------Fix template file uploads under Deno. Deno's native `fetch` ignores a `Content-Length` header on stream bodies and fell back to `Transfer-Encoding: chunked`, which S3-compatible presigned upload URLs reject (see #1243). `Template.build` uploads now stream the spooled archive through undici's `fetch`, which honors the header on every runtime, falling back to the global `fetch` where undici isn't resolvable.diff --git a/.changeset/fix-gethost-example-command.md b/.changeset/fix-gethost-example-command.mddeleted file mode 100644index e2c2f8c55..000000000--- a/.changeset/fix-gethost-example-command.md+++ /dev/null@@ -1,5 +0,0 @@-----"e2b": patch------Fix the `Sandbox.getHost()` documentation example so it can be copy-pasted. The `@example` called `sandbox.commands.exec(...)`, which is not a method on the `Commands` class (it exposes `run`), so running the snippet threw `TypeError: sandbox.commands.exec is not a function`. It now uses `sandbox.commands.run(..., { background: true })`, allowing the long-running HTTP server to start before the example calls `getHost()`. Documentation only, no behavior change.diff --git a/.changeset/heavy-eyes-tap.md b/.changeset/heavy-eyes-tap.mddeleted file mode 100644index 90e98a1f1..000000000--- a/.changeset/heavy-eyes-tap.md+++ /dev/null@@ -1,5 +0,0 @@-----'@e2b/cli': patch------Rebuild the CLI so the bundled `tar` picks up 7.5.19+, fixing the node-tar denial-of-service vulnerabilities (the CLI bundles the SDK and its dependencies into `dist/index.js`)diff --git a/.changeset/lucky-donuts-fetch.md b/.changeset/lucky-donuts-fetch.mddeleted file mode 100644index 32637b18d..000000000--- a/.changeset/lucky-donuts-fetch.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Regenerate API clients from the latest specs, which are now synced with Copybara from their source-of-truth repositories (e2b-dev/infra@e2255f0 for the REST and envd specs, belt for the volume-content spec) instead of being copied by hand. Picks up the latest spec changes: named `SandboxTimeoutRequest`/`SandboxSnapshotRequest`/`SandboxRefreshRequest` request schemas, `SandboxNetworkConfig` and `SandboxIam` workload-identity models, the `FILE_TYPE_SYMLINK` filesystem entry type, and deprecation of access-token auth in favor of API keys. Anything the upstream specs mark `x-not-implemented: true` (currently the SOCKS5 egress-proxy config) is excluded from the generated clients. Generated Python client models now list fields in spec order instead of alphabetical order (the tag filtering moved from a custom script to Redocly CLI); construct them with keyword arguments if you don't alreadydiff --git a/.changeset/python-connectrpc-migration.md b/.changeset/python-connectrpc-migration.mddeleted file mode 100644index 338cf2019..000000000--- a/.changeset/python-connectrpc-migration.md+++ /dev/null@@ -1,55 +0,0 @@-----"@e2b/python-sdk": minor------Migrate the sandbox RPC layer (commands, PTY, filesystem watch) from the-vendored `e2b_connect` client to the official Connect RPC client for Python-([`connectrpc`](https://pypi.org/project/connectrpc/)), whose HTTP transport-is `pyqwest` (Rust reqwest/hyper), and switch the envd protobuf messages from-Google's `protobuf` runtime to Buf's-[`protobuf-py`](https://pypi.org/project/protobuf-py/).--Closing a command or watch stream early now sends `RST_STREAM` to the server,-so abandoned streams no longer leak on the shared HTTP/2 connection, and peer-resets surface as typed errors instead of ambiguous EOFs. The REST API and-file upload/download keep using `httpx`.--Notes:--- The SDK no longer depends on the `protobuf` package, removing a common- source of dependency conflicts with other libraries that pin it.-- The `e2b_connect` module is no longer shipped with the package. Code that- imported it directly should use `connectrpc` (`ConnectError`, `Code`)- instead; SDK exception types (`SandboxException`, `TimeoutException`, ...)- are unchanged.-- The generated `e2b.envd.*.*_pb2` modules were replaced by `protobuf-py`- equivalents (`e2b.envd.process.process_pb`,- `e2b.envd.filesystem.filesystem_pb`) with a different message API.-- Connection retries for sandbox RPC calls (`E2B_CONNECTION_RETRIES`, default- 3) now retry only failures establishing the connection — before the request- could have reached envd — with exponential backoff. Unary RPCs are no- longer replayed when the connection drops mid-request, which could- re-execute a delivered call (e.g. re-send process input); such drops- surface as errors immediately, the way they always did for streaming calls.-- The `proxy` option applies to sandbox RPC calls the same way it does to the- REST API and file transfer requests. URL strings, `httpx.URL`, and- `httpx.Proxy` values keep working (credentials in the URL or in- `httpx.Proxy(auth=...)`); `httpx.Proxy` custom headers and `ssl_context`- are not supported for RPC calls and raise `InvalidArgumentException`.-- `CommandResult.error` (and `CommandHandle.error`) is now `None` when a- command finishes without an error, matching the declared `Optional[str]`- type and the JS SDK's `error?: string`. It used to be `""` on success —- code comparing `result.error == ""` or treating it as always-`str` should- check for `None`/falsiness instead.-- For async streaming calls (`commands.run`/`connect`, PTY,- `files.watch_dir`), `request_timeout` now bounds opening the stream — the- wait until envd confirms with a start event, matching the JS SDK's- `requestTimeoutMs` — and raises `TimeoutException` when exceeded. The- running stream is bounded by the command/watch `timeout` (as before). In- the sync SDK there is no way to interrupt the blocking wait, so- `request_timeout` is not applied to opening the stream — both stream setup- and the running stream are bounded by `timeout` (unlimited when `0`).-- `E2B_MAX_CONNECTIONS` no longer applies to sandbox RPC traffic: the new- transport bounds only idle connections per host (`E2B_KEEPALIVE_EXPIRY`,- `E2B_MAX_KEEPALIVE_CONNECTIONS`), not the total number of open- connections. It still applies to the REST API and file transfers.diff --git a/.changeset/spotty-onions-fix.md b/.changeset/spotty-onions-fix.mddeleted file mode 100644index f0e0e271b..000000000--- a/.changeset/spotty-onions-fix.md+++ /dev/null@@ -1,5 +0,0 @@-----'e2b': patch------Bump the minimum `tar` dependency to 7.5.19 to pull in upstream fixes for node-tar denial-of-service vulnerabilities (GHSA advisories covering PAX parsing, negative entry sizes, and unbounded decompression)diff --git a/.changeset/symlink-file-type.md b/.changeset/symlink-file-type.mddeleted file mode 100644index bd188ef08..000000000--- a/.changeset/symlink-file-type.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': minor-'@e2b/python-sdk': minor------Add `FileType.SYMLINK` to the sandbox filesystem types. Newer envd versions report symlinks with a dedicated `FILE_TYPE_SYMLINK` entry type; previously the SDKs treated it as unknown, so `files.list()` silently omitted symlink entries and `getInfo()`/`get_info()` returned an `undefined`/`None` type for them. Symlinks now surface as `FileType.SYMLINK` (`'symlink'`) with `symlinkTarget`/`symlink_target` populated, in JS and both sync and async Python.diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 0ae916799..9a671d38b 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@e2b/cli",- "version": "2.15.0",+ "version": "2.15.1","description": "CLI for managing e2b sandbox templates","homepage": "https://e2b.dev","license": "MIT",@@ -81,7 +81,7 @@"cli-highlight": "^2.1.11","commander": "^11.1.0","console-table-printer": "^2.11.2",- "e2b": "^2.35.3",+ "e2b": "^2.36.0","handlebars": "^4.7.9","inquirer": "^12.10.0","simple-update-notifier": "^2.0.0",diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex fd1500261..b11d1b94f 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.35.3",+ "version": "2.36.0","description": "E2B SDK that give agents cloud environments","homepage": "https://e2b.dev","license": "MIT",diff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.jsonindex 33ba50936..ec2cdf2db 100644--- a/packages/python-sdk/package.json+++ b/packages/python-sdk/package.json@@ -1,7 +1,7 @@{"name": "@e2b/python-sdk","private": true,- "version": "2.34.0",+ "version": "2.35.0","scripts": {"example": "uv run python example.py","test": "uv run pytest -n 4 --verbose -x",diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.tomlindex 73d433563..d6f4696bd 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[project]name = "e2b"-version = "2.34.0"+version = "2.35.0"description = "E2B SDK that give agents cloud environments"authors = [{ name = "e2b", email = "[email protected]" }]license = "MIT"diff --git a/packages/python-sdk/uv.lock b/packages/python-sdk/uv.lockindex 2118b9e0f..efdf1a50f 100644--- a/packages/python-sdk/uv.lock+++ b/packages/python-sdk/uv.lock@@ -180,7 +180,7 @@ wheels = [[[package]]name = "e2b"-version = "2.34.0"+version = "2.35.0"source = { editable = "." }dependencies = [{ name = "attrs" },diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2b34cf7ac..48a23cffe 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -73,8 +73,8 @@ importers:specifier: ^2.11.2version: 2.11.2e2b:- specifier: ^2.35.3- version: 2.35.3+ specifier: ^2.36.0+ version: 2.36.0handlebars:specifier: ^4.7.9version: 4.7.9@@ -2293,8 +2293,8 @@ packages:resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-T1vJcIrwzl+cuI7D3e7ZYI1ljTbESNif/YNYUkCOW/RqoIb4VostjEfZzqA2rs8suBhplrTHIlHL3+v3JoJU0w==}+ resolution: {integrity: sha512-aFz1V9m18hysbpTBaxr0lWo0xonzNvoFx6yJKX+u+3MBPVqIvBBWCsh+GqgGCey9ZfARlSL+p6CMgXdzOfJbBw==}engines: {node: '>=20.18.1 <21 || >=22'}@@ -5751,7 +5751,7 @@ snapshots:es-errors: 1.3.0gopd: 1.2.0dependencies:'@bufbuild/protobuf': 2.12.1'@connectrpc/connect': 2.1.2(@bufbuild/[email protected])