Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

[skip ci] Release new versions

github-actions[bot]0feb92693701
diff --git a/.changeset/copy-compression-option.md b/.changeset/copy-compression-option.md
deleted file mode 100644
index c53aa2a4f..000000000
--- a/.changeset/copy-compression-option.md
+++ /dev/null
@@ -1,22 +0,0 @@
----
-"e2b": minor
-"@e2b/python-sdk": minor
----
-
-Add a `gzip` option to the template `copy` layer to control whether copied
-files are gzipped before upload.
-
-Gzip is enabled by default (matching the previous behavior). Pass
-`gzip: false` (`gzip=False` in Python) to upload an uncompressed tar archive
-instead — useful when copying already-compressed files where gzipping adds
-CPU cost without shrinking the payload.
-
-```ts
-// JS/TS
-template.copy('model.bin', '/app/', { gzip: false })
-```
-
-```python
-# Python
-template.copy('model.bin', '/app/', gzip=False)
-```
diff --git a/.changeset/generic-paginator.md b/.changeset/generic-paginator.md
deleted file mode 100644
index d84e3ddd2..000000000
--- a/.changeset/generic-paginator.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"@e2b/python-sdk": patch
-"e2b": patch
----
-
-Introduce a generic, reusable paginator base class and migrate the sandbox and snapshot list paginators onto it. The base owns the shared cursor-based pagination state (`hasNext`/`has_next`, `nextToken`/`next_token`, and reading the `x-next-token` header) while each concrete paginator implements `nextItems`/`next_items` to fetch its own page, so future list endpoints can add pagination by subclassing it without reimplementing the bookkeeping. No public API changes.
diff --git a/.changeset/migrate-name-override.md b/.changeset/migrate-name-override.md
deleted file mode 100644
index 59c2711e2..000000000
--- a/.changeset/migrate-name-override.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@e2b/cli": patch
----
-
-Add override options to `e2b template migrate`: `--name`/`-n` to override the generated template name, `--cmd`/`-c` for the start command, `--ready-cmd` for the ready command, and `--cpu-count` / `--memory-mb` for sandbox resources. Each falls back to the value from the config file (`e2b.toml`) when not provided. `--cpu-count` and `--memory-mb` (on both `migrate` and `create`) now reject non-numeric values at parse time instead of silently becoming `NaN`. Template name validation is now shared across `init`, `migrate` and `create` and matches the server-side rule: names are trimmed and lowercased, must contain only letters, numbers, dashes and underscores, and are capped at 128 characters. `init`/`migrate` no longer wrongly reject names with leading/trailing dashes or underscores.
diff --git a/.changeset/migrate-python-build-import.md b/.changeset/migrate-python-build-import.md
deleted file mode 100644
index cddb32973..000000000
--- a/.changeset/migrate-python-build-import.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@e2b/cli": patch
----
-
-Fix `e2b template migrate` generating Python build scripts that fail to run as instructed. The generated `build_dev.py` / `build_prod.py` used a package-relative import (`from .template import template`) while the command instructs single-file execution (`python build_dev.py`), causing `ImportError: attempted relative import with no known parent package`. The scripts now use a runnable absolute import (`from template import template`).
diff --git a/.changeset/private-integration-attribution.md b/.changeset/private-integration-attribution.md
deleted file mode 100644
index 7972a4b41..000000000
--- a/.changeset/private-integration-attribution.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"e2b": patch
-"@e2b/python-sdk": patch
----
-
-Keep integration user-agent attribution on `ConnectionConfig` instead of exposing it through sandbox, template, volume, or per-call API option types.
diff --git a/.changeset/python-connection-logger.md b/.changeset/python-connection-logger.md
deleted file mode 100644
index 50d0353c2..000000000
--- a/.changeset/python-connection-logger.md
+++ /dev/null
@@ -1,35 +0,0 @@
----
-"@e2b/python-sdk": patch
----
-
-feat(python-sdk): add a `logger` option for request/debug logging
-
-You can now pass a standard library `logging.Logger` to `Sandbox.create` /
-`AsyncSandbox.create` (and the static `Sandbox.connect(sandbox_id, ...)`) to
-route that sandbox's request/response logs to your own logger. The logger is
-stored on the sandbox and propagates to all of its later operations —
-including control-plane calls such as `kill`, `pause`, `set_timeout`, and
-`get_info`. Matching the JavaScript SDK, `logger` is a construction-time option
-and is **not** a per-request parameter that those methods accept from the
-caller. The stdlib `logging.Logger` is used directly as the adapter instead of
-a custom interface.
-
-The logger is wired into the API client, the envd client, and the RPC
-(ConnectRPC) path. Mirroring the JS SDK: requests log at `INFO`, successful API
-and unary RPC responses at `INFO`, streamed RPC messages at `DEBUG`, and failed
-API responses (status >= 400) at `ERROR`. When no logger is supplied, the SDK
-emits no request/response logging at all (also matching the JS SDK).
-
-Volume content operations continue to accept `logger` per call via
-`VolumeApiParams`, matching the JS Volume API.
-
-```python
-import logging
-from e2b import Sandbox
-
-logging.basicConfig(level=logging.DEBUG)
-logger = logging.getLogger("my-app.e2b")
-
-sbx = Sandbox.create(logger=logger)
-sbx.commands.run("echo hello") # request/response logged via `logger`
-```
diff --git a/.changeset/python-strip-ansi-colon.md b/.changeset/python-strip-ansi-colon.md
deleted file mode 100644
index 77f1bf060..000000000
--- a/.changeset/python-strip-ansi-colon.md
+++ /dev/null
@@ -1,11 +0,0 @@
----
-"@e2b/python-sdk": patch
----
-
-fix(python-sdk): strip colon-separated SGR escape codes in build logs
-
-`strip_ansi_escape_codes` now strips CSI parameters that use colons as well as
-semicolons, matching the JavaScript SDK's `stripAnsi`. Modern terminals emit
-colon-separated SGR sequences (e.g. 256-color `\x1b[38:5:82m`, truecolor
-`\x1b[38:2::r:g:bm`, and curly underlines `\x1b[4:3m`), which previously leaked
-literal escape garbage into template build log messages on the Python side.
diff --git a/.changeset/remove-unused-dockerfile-ast.md b/.changeset/remove-unused-dockerfile-ast.md
deleted file mode 100644
index 642b2b836..000000000
--- a/.changeset/remove-unused-dockerfile-ast.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@e2b/cli": patch
----
-
-Remove the unused `dockerfile-ast` dependency from the CLI. The CLI never imported it directly — all Dockerfile parsing goes through the `e2b` SDK, which keeps its own `dockerfile-ast` dependency. No behavior change.
diff --git a/.changeset/sandbox-list-docstring.md b/.changeset/sandbox-list-docstring.md
deleted file mode 100644
index accd79f64..000000000
--- a/.changeset/sandbox-list-docstring.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"@e2b/python-sdk": patch
-"e2b": patch
----
-
-Correct `Sandbox.list()` documentation across both SDKs: it returns a paginator (`SandboxPaginator` / `AsyncSandboxPaginator`), not a list, and by default the server returns sandboxes in both `running` and `paused` states. The docstrings now describe the return type accurately and show how to iterate pages via `paginator.next_items()` / `await paginator.nextItems()` while `paginator.has_next` / `paginator.hasNext` is true. No behavior change.
diff --git a/.changeset/stream-template-build-upload.md b/.changeset/stream-template-build-upload.md
deleted file mode 100644
index c71e96ba5..000000000
--- a/.changeset/stream-template-build-upload.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"e2b": patch
-"@e2b/python-sdk": patch
----
-
-Template builds: the build-context tar archive is now spooled to a temporary file and streamed from disk during upload instead of being held in memory (JS and Python, sync and async), while keeping the explicit `Content-Length` required by S3 presigned URLs. Temp-file cleanup is now best-effort, so a cleanup failure after the upload no longer masks a successful upload as an error (nor overwrites the real upload error on failure). The Python SDK now uploads the archive with a 1-hour default timeout (overridable via `request_timeout`) instead of the 60s general API timeout, matching the JS SDK and preventing large uploads from timing out.
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 5854fbe33..04108c9ac 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@e2b/cli",
- "version": "2.13.0",
+ "version": "2.13.1",
"description": "CLI for managing e2b sandbox templates",
"homepage": "https://e2b.dev",
"license": "MIT",
@@ -80,7 +80,7 @@
"cli-highlight": "^2.1.11",
"commander": "^11.1.0",
"console-table-printer": "^2.11.2",
- "e2b": "^2.30.6",
+ "e2b": "^2.32.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.json
index 9bbbb888e..1724650da 100644
--- a/packages/js-sdk/package.json
+++ b/packages/js-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "e2b",
- "version": "2.31.0",
+ "version": "2.32.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.json
index 8de34196a..f95b4537d 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.30.0",
+ "version": "2.31.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.toml
index 7a4650b20..3d8ad6613 100644
--- a/packages/python-sdk/pyproject.toml
+++ b/packages/python-sdk/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "e2b"
-version = "2.30.0"
+version = "2.31.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.lock
index 4f2dd8bad..bc69db8cb 100644
--- a/packages/python-sdk/uv.lock
+++ b/packages/python-sdk/uv.lock
@@ -167,7 +167,7 @@ wheels = [
[[package]]
name = "e2b"
-version = "2.30.0"
+version = "2.31.0"
source = { editable = "." }
dependencies = [
{ name = "attrs" },
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4bb6bb523..1fac68325 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -69,8 +69,8 @@ importers:
specifier: ^2.11.2
version: 2.11.2
e2b:
- specifier: ^2.30.6
- version: 2.30.6
+ specifier: ^2.32.0
+ version: 2.32.0
handlebars:
specifier: ^4.7.9
version: 4.7.9
@@ -1684,8 +1684,8 @@ packages:
resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-VDw/n4uquLJpRwFx9fmloTi1W/0vKIdAqv4YAZdGzGC1HcR7ODgf2WbAz2JYPpD35QipTHaXAinK1zRFJ1u7iQ==}
+ resolution: {integrity: sha512-gdim5paDburEw92qrxZwxmQK/xFH7BRE49XTPxJDYzXyonSPygvf2dgnm+nurZhglLiyhV/e7XAYr5x6d+61dA==}
engines: {node: '>=20.18.1'}
@@ -4741,7 +4741,7 @@ snapshots:
es-errors: 1.3.0
gopd: 1.2.0
dependencies:
'@bufbuild/protobuf': 2.6.2
'@connectrpc/connect': 2.0.0-rc.3(@bufbuild/[email protected])