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]fef573dc1760
diff --git a/.changeset/brown-jokes-design.md b/.changeset/brown-jokes-design.mddeleted file mode 100644index 52909e62b..000000000--- a/.changeset/brown-jokes-design.md+++ /dev/null@@ -1,9 +0,0 @@-----'@e2b/python-sdk': patch-'e2b': patch------Fix signed URL expiration edge cases in `uploadUrl`/`downloadUrl` (`upload_url`/`download_url`):--- Python now raises `InvalidArgumentException` when `use_signature_expiration` is passed for an unsecured sandbox, matching the JS SDK behavior (which now throws `InvalidArgumentError` instead of a plain `Error`).-- A signature expiration of `0` now produces an immediately expiring URL instead of silently creating a never-expiring one.diff --git a/.changeset/cli-template-list-api-key.md b/.changeset/cli-template-list-api-key.mddeleted file mode 100644index 43f7e7f20..000000000--- a/.changeset/cli-template-list-api-key.md+++ /dev/null@@ -1,5 +0,0 @@-----'@e2b/cli': minor------`e2b template list` and `e2b template create` now authenticate with `E2B_API_KEY` instead of requiring `E2B_ACCESS_TOKEN`. `E2B_ACCESS_TOKEN` is deprecated, so commands whose endpoints accept either credential now use the API key. This also unblocks API-key-only environments (e.g. CI/CD) that previously could not create or list templates.diff --git a/.changeset/disable-api-key-validation.md b/.changeset/disable-api-key-validation.mddeleted file mode 100644index 5f09cb09b..000000000--- a/.changeset/disable-api-key-validation.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Allow disabling client-side API key format validation. Set the `E2B_VALIDATE_API_KEY` environment variable to `false`, or pass the `validateApiKey: false` (JS) / `validate_api_key=False` (Python) connection option, when your deployment issues API keys that don't match the default `e2b_` format.diff --git a/.changeset/great-pots-deny.md b/.changeset/great-pots-deny.mddeleted file mode 100644index cc10b0366..000000000--- a/.changeset/great-pots-deny.md+++ /dev/null@@ -1,8 +0,0 @@-----"e2b": patch------Fix command and PTY streaming issues:--- Decode stdout/stderr incrementally so multibyte UTF-8 characters split across command stream chunks are no longer corrupted-- Avoid mutating the caller's `envs` object when applying default `TERM`/`LANG`/`LC_ALL` values in `pty.create()`diff --git a/.changeset/heavy-pugs-smile.md b/.changeset/heavy-pugs-smile.mddeleted file mode 100644index 8df3b1ddc..000000000--- a/.changeset/heavy-pugs-smile.md+++ /dev/null@@ -1,10 +0,0 @@-----"@e2b/python-sdk": patch------Fix several command and PTY streaming issues:--- Decode stdout/stderr incrementally so multibyte UTF-8 characters split across stream chunks are no longer corrupted-- Return `None` instead of empty strings for unset `tag` and `cwd` fields in `commands.list()`-- Close command/PTY/watch stream connections when establishing the stream fails, instead of leaking pooled connections-- Avoid mutating the caller's `envs` dict when applying default `TERM`/`LANG`/`LC_ALL` values in `pty.create()`diff --git a/.changeset/sharp-rules-shine.md b/.changeset/sharp-rules-shine.mddeleted file mode 100644index b7b9a3132..000000000--- a/.changeset/sharp-rules-shine.md+++ /dev/null@@ -1,5 +0,0 @@-----"@e2b/python-sdk": patch------Map transport-level timeouts from `httpcore` (e.g. a stream read timeout) to `TimeoutException`. When iterating over a long-running command's output, the underlying HTTP read timeout (set to the command `timeout`) races with the server's own `deadline_exceeded` response; whichever fires first won, so the client could leak a raw `httpcore.ReadTimeout` instead of a `TimeoutException`. Both cases now surface a consistent, actionable `TimeoutException`.diff --git a/.changeset/spotty-llamas-shout.md b/.changeset/spotty-llamas-shout.mddeleted file mode 100644index 9249e70ef..000000000--- a/.changeset/spotty-llamas-shout.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Raise a typed, actionable error when the sandbox dies while a request is in flight. When the connection is dropped mid-request (streaming RPC calls — commands, PTY, directory watch — and filesystem read/write), the SDKs now probe the sandbox health endpoint: if the sandbox is confirmed gone, a `TimeoutError` (JS) / `TimeoutException` (Python) is raised stating the sandbox was killed or reached its end of life — consistent with how requests to an already-dead sandbox surface. In all other cases the original error propagates unchanged.diff --git a/.changeset/tidy-files-gzip-fix.md b/.changeset/tidy-files-gzip-fix.mddeleted file mode 100644index c442f1d48..000000000--- a/.changeset/tidy-files-gzip-fix.md+++ /dev/null@@ -1,5 +0,0 @@-----"e2b": patch------Make the `gzip: true` upload option imply the `application/octet-stream` upload path so it is no longer silently ignored on the default `multipart/form-data` path. On envd versions older than 0.5.7 the upload still falls back to uncompressed `multipart/form-data`.diff --git a/.changeset/tidy-files-write-fixes.md b/.changeset/tidy-files-write-fixes.mddeleted file mode 100644index 996604705..000000000--- a/.changeset/tidy-files-write-fixes.md+++ /dev/null@@ -1,5 +0,0 @@-----"@e2b/python-sdk": patch------Fix `write()` / `write_files()` returning `WriteInfo.type` as a raw string instead of the `FileType` enum. Make `EntryInfo.modified_time` timezone-aware (UTC) and normalize naive volume `atime`/`mtime`/`ctime` timestamps to UTC. Make the `gzip=True` upload option imply the `application/octet-stream` upload path so it is no longer silently ignored on the default `multipart/form-data` path.diff --git a/.changeset/tidy-knees-attach.md b/.changeset/tidy-knees-attach.mddeleted file mode 100644index ede29189b..000000000--- a/.changeset/tidy-knees-attach.md+++ /dev/null@@ -1,5 +0,0 @@-----"@e2b/python-sdk": patch------Anchor file-metadata validation regexes with `\A`/`\Z` instead of `^`/`$`. In Python, `$` also matches just before a trailing newline, so metadata keys or values ending in `\n` passed client-side validation (unlike the JS SDK) and then failed later with an opaque low-level HTTP "illegal header value" error. They are now rejected upfront with `InvalidArgumentException`.diff --git a/.changeset/tidy-streams-relax.md b/.changeset/tidy-streams-relax.mddeleted file mode 100644index cfb760423..000000000--- a/.changeset/tidy-streams-relax.md+++ /dev/null@@ -1,5 +0,0 @@-----"@e2b/python-sdk": patch------Drop the HTTP read timeout on streaming calls (commands, PTY, watch). It was set to the command `timeout`, so it raced the server's own `deadline_exceeded` response and could intermittently leak a raw `httpcore.ReadTimeout` instead of a `TimeoutException`. The command `timeout` is now enforced solely server-side via the `connect-timeout-ms` header, matching the JS SDK which has no per-chunk read timeout.diff --git a/.changeset/wise-otters-connect.md b/.changeset/wise-otters-connect.mddeleted file mode 100644index 44221d98b..000000000--- a/.changeset/wise-otters-connect.md+++ /dev/null@@ -1,6 +0,0 @@-----"e2b": patch-"@e2b/python-sdk": patch------Skip the control plane request in `Sandbox.connect()` when running in debug mode, matching the behavior of `Sandbox.create()`. In the Python SDK, `Sandbox.connect()` now also normalizes missing envd and traffic access tokens to `None` instead of leaking the `Unset` sentinel, which previously broke `download_url()`/`upload_url()` for non-secure sandboxes.diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 8861cb571..dbb6e2eb0 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@e2b/cli",- "version": "2.11.1",+ "version": "2.12.0","description": "CLI for managing e2b sandbox templates","homepage": "https://e2b.dev","license": "MIT",@@ -81,7 +81,7 @@"commander": "^11.1.0","console-table-printer": "^2.11.2","dockerfile-ast": "^0.6.1",- "e2b": "^2.29.0",+ "e2b": "^2.30.1","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 1912e938a..9d2ec8884 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.30.0",+ "version": "2.30.1","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 4f3139669..6afd119a2 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.29.0",+ "version": "2.29.1","scripts": {"example": "poetry run python example.py","test": "poetry run pytest -n 4 --verbose -x",diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.tomlindex 38a8580c9..de12083c1 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "e2b"-version = "2.29.0"+version = "2.29.1"description = "E2B SDK that give agents cloud environments"authors = ["e2b <[email protected]>"]license = "MIT"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1c9aa4421..a780016f5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -81,8 +81,8 @@ importers:specifier: ^0.6.1version: 0.6.1e2b:- specifier: ^2.29.0- version: 2.29.0+ specifier: ^2.30.1+ version: 2.30.1handlebars:specifier: ^4.7.9version: 4.7.9@@ -1795,8 +1795,8 @@ packages:resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-rikXAW95sCPpRia/W/nZYq75Q3IDj2ycUS8e9Uf1nvaVf2nc88MFNV+f2TmMtzEePNN1JinKm/3FbCCKnmmykw==}+ resolution: {integrity: sha512-PPUlZAQbXtmxbcHWjbpw+ImbfQScgosmMJ/1XMu7gZrv/r+gANVdpDt0SPZ7GVMotX0So1HdokJm72Uh1tCTOw==}engines: {node: '>=20.18.1'}@@ -3263,10 +3263,6 @@ packages:resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==}engines: {node: '>=6'}- resolution: {integrity: sha512-9TsuLcdhOn4XztcQqhNyq1KOwOOED/3k58JAvtULiYqbO8B/0IBAAIE1hj0Svmm58k27TmcigyDI0deMlgG3uw==}- engines: {node: '>=18'}-resolution: {integrity: sha512-56adEpPMouktRlBLXiaYFFzZ/3+JXa8P9n7WbR+ibIjtviN55mEaOkiysCnPnWm+7kkui1Dn8J9l+g6zV8731w==}engines: {node: '>=18'}@@ -5251,7 +5247,7 @@ snapshots:es-errors: 1.3.0gopd: 1.2.0dependencies:'@bufbuild/protobuf': 2.6.2'@connectrpc/connect': 2.0.0-rc.3(@bufbuild/[email protected])@@ -5262,7 +5258,7 @@ snapshots:glob: 11.1.0openapi-fetch: 0.14.1platform: 1.3.6- tar: 7.5.12+ tar: 7.5.16undici: 7.25.0@@ -6850,14 +6846,6 @@ snapshots:- dependencies:- '@isaacs/fs-minipass': 4.0.1- chownr: 3.0.0- minipass: 7.1.2- minizlib: 3.1.0- yallist: 5.0.0-dependencies:'@isaacs/fs-minipass': 4.0.1