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]970b34dc24d6
diff --git a/.changeset/cli-fork-max-count.md b/.changeset/cli-fork-max-count.md
deleted file mode 100644
index 3582e2325..000000000
--- a/.changeset/cli-fork-max-count.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-'@e2b/cli': minor
-'e2b': minor
-'@e2b/python-sdk': minor
----
-
-Cap sandbox fork count at 20. `e2b sandbox fork --count`, JavaScript `Sandbox.fork({ count })`, and Python `Sandbox.fork(count=...)` reject a count outside 1–20 before the API call. Counts from 21 through 100 used to reach the API. Omitting count still leaves the field off the request so the API default applies.
diff --git a/.changeset/code-interpreter-http-version.md b/.changeset/code-interpreter-http-version.md
deleted file mode 100644
index cb46719b6..000000000
--- a/.changeset/code-interpreter-http-version.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'@e2b/code-interpreter-python': patch
----
-
-Pin the Jupyter transport to HTTP/1.1 with `get_transport(config, http_version="1.1")`, following the renamed argument in `e2b` 2.52.0 (now the minimum supported version).
diff --git a/.changeset/dockerignore-semantics.md b/.changeset/dockerignore-semantics.md
deleted file mode 100644
index f11668e60..000000000
--- a/.changeset/dockerignore-semantics.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-'e2b': minor
-'@e2b/python-sdk': minor
----
-
-Apply `.dockerignore` and `fileIgnorePatterns` / `file_ignore_patterns` the way Docker does when copying files into a template, so ignored files are no longer uploaded or included in the files hash:
-
-- A pattern that matches a directory (`node_modules`, `.git`, `dist/`) now excludes everything under it, and a leading `/` is ignored.
-- `!` patterns re-include paths; the last matching pattern wins.
-- In Python, patterns now also apply when the copied path contains `.` or `..` segments (for example `copy(".")`).
-- `fileIgnorePatterns` / `file_ignore_patterns` are applied after the `.dockerignore` lines, so they take precedence.
-- Absolute patterns pointing into the context directory are treated as relative to it.
-- Brace expansion (`{a,b}`) is not supported, as in Docker. In JS, `fileIgnorePatterns` such as `**/*.{env,pem}` previously expanded and now match `{env,pem}` literally; list each pattern separately instead (`**/*.env`, `**/*.pem`).
-- In Python, copying a symlink to a directory copies the link itself instead of the directory's contents, as in JS.
-- Copying a path inside an ignored directory now fails with "No files found", as in Docker. An invalid pattern (such as an unterminated `[`) now raises an error.
-
-Directory sizes are no longer part of the files hash, since they depend on the filesystem rather than on the copied files. The files hash of `copy()` steps that copy directories or are affected by ignore patterns changes once, so those steps are rebuilt on the next build.
diff --git a/.changeset/http-version-option.md b/.changeset/http-version-option.md
deleted file mode 100644
index e9531c8d0..000000000
--- a/.changeset/http-version-option.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'e2b': minor
-'@e2b/python-sdk': minor
----
-
-Add an `http_version` (Python) / `httpVersion` (JS) connection option, `"1.1"` or `"2"` (default), also settable with the `E2B_HTTP_VERSION` environment variable, to pin requests to the E2B API, to sandboxes (commands, filesystem, PTY) and to volume content to HTTP/1.1. It can also be bound once on a client: `E2B(http_version="1.1")` / `new E2B({ httpVersion: '1.1' })`.
diff --git a/.changeset/python-retry-unavailable-responses.md b/.changeset/python-retry-unavailable-responses.md
deleted file mode 100644
index 4fcacf384..000000000
--- a/.changeset/python-retry-unavailable-responses.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@e2b/python-sdk": patch
----
-
-Retry control-plane HTTP requests after `502` and `503` responses, in addition to `429`, and after a network error once the request was written (dropped connection) — except for `POST` operations not known to be safe to replay (sandbox creation, fork, snapshot, volume/secret/API-key/webhook creation), which the server may already have processed. Failures to establish the connection keep being retried for every operation (`E2B_CONNECTION_RETRIES`). `Retry-After` is honored when the server sends one; otherwise retries back off exponentially with jitter, starting at 0.1 seconds and capped at 10 seconds. The existing `retries` option (default 3, `0` to disable) and request-timeout budget apply to all of them.
diff --git a/.changeset/quiet-workers-pool.md b/.changeset/quiet-workers-pool.md
deleted file mode 100644
index d718f3734..000000000
--- a/.changeset/quiet-workers-pool.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"e2b": patch
----
-
-Update the Cloudflare Vitest pool dependency to include a worker disposal fix.
diff --git a/.changeset/retry-unavailable-responses.md b/.changeset/retry-unavailable-responses.md
deleted file mode 100644
index d8188bcd5..000000000
--- a/.changeset/retry-unavailable-responses.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"e2b": patch
----
-
-Retry control-plane HTTP requests after `502` and `503` responses and failures to establish the connection (connection refused, DNS, unreachable host), in addition to `429`. Any other network error (dropped connection, or the opaque `TypeError` browsers and Cloudflare Workers raise) is retried too, except for `POST` operations not known to be safe to replay (sandbox creation, fork, snapshot, volume/secret/API-key/webhook creation), which the server may already have processed. `Retry-After` is honored when the server sends one; otherwise retries back off exponentially with jitter, starting at 100 ms and capped at 10 s. The existing `retries` option (default 3, `0` to disable) and request-timeout budget apply to all of them.
diff --git a/.changeset/shard-by-sandbox-id.md b/.changeset/shard-by-sandbox-id.md
deleted file mode 100644
index bb3526dde..000000000
--- a/.changeset/shard-by-sandbox-id.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@e2b/python-sdk": patch
----
-
-Sandbox `commands`/`files` traffic is now balanced across HTTP/2 connections the way the JS SDK's undici agent does it, instead of being sharded into a fixed number of pools by sandbox ID. Every request goes to the connection with the fewest streams in flight to its host; a new connection is dialed only when all existing ones already carry `E2B_STREAMS_PER_CONNECTION` streams to that host (default `100`), up to `E2B_MAX_CONNECTIONS` (default `200`). Envd RPC and HTTP calls share the same connections. `E2B_ENVD_POOL_SHARDS` and the `pool_shard` argument of the internal transport factories (`get_transport`, `get_httpx_transport`, `get_pyqwest_transport`, `get_envd_transport`) are removed.
diff --git a/.changeset/stable-sdk-dependencies.md b/.changeset/stable-sdk-dependencies.md
deleted file mode 100644
index b038684c3..000000000
--- a/.changeset/stable-sdk-dependencies.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"e2b": patch
-"@e2b/cli": patch
----
-
-Update the protobuf and OpenAPI clients, terminal styling, and interactive prompts to compatible minor releases.
diff --git a/.changeset/tidy-sdk-dead-code.md b/.changeset/tidy-sdk-dead-code.md
deleted file mode 100644
index f19a30f43..000000000
--- a/.changeset/tidy-sdk-dead-code.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'e2b': patch
-'@e2b/python-sdk': patch
----
-
-Remove unused internal constants and attributes, and share the command handle setup between `Commands.run` and `Commands.connect`
diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md
index cbf874867..425feb936 100644
--- a/packages/cli/CHANGELOG.md
+++ b/packages/cli/CHANGELOG.md
@@ -1,5 +1,23 @@
# @e2b/cli
+## 2.21.0
+
+### Minor Changes
+
+- 2de0cc3: Cap sandbox fork count at 20. `e2b sandbox fork --count`, JavaScript `Sandbox.fork({ count })`, and Python `Sandbox.fork(count=...)` reject a count outside 1–20 before the API call. Counts from 21 through 100 used to reach the API. Omitting count still leaves the field off the request so the API default applies.
+
+### Patch Changes
+
+- 8c7e5cb: Update the protobuf and OpenAPI clients, terminal styling, and interactive prompts to compatible minor releases.
+- Updated dependencies [2de0cc3]
+- Updated dependencies [03887ad]
+- Updated dependencies [2f92cc3]
+- Updated dependencies [8c7e5cb]
+- Updated dependencies [97522f8]
+- Updated dependencies [8c7e5cb]
+- Updated dependencies [4975149]
+
## 2.20.0
### Minor Changes
diff --git a/packages/cli/package.json b/packages/cli/package.json
index ca21d8e29..178dbbaa2 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@e2b/cli",
- "version": "2.20.0",
+ "version": "2.21.0",
"description": "CLI for managing e2b sandbox templates",
"homepage": "https://e2b.dev/?utm_source=npm&utm_medium=referral&utm_campaign=package_homepage&utm_content=e2b-cli",
"license": "MIT",
diff --git a/packages/code-interpreter-python/CHANGELOG.md b/packages/code-interpreter-python/CHANGELOG.md
index b2fedcc11..ebbb679bb 100644
--- a/packages/code-interpreter-python/CHANGELOG.md
+++ b/packages/code-interpreter-python/CHANGELOG.md
@@ -1,5 +1,11 @@
# @e2b/code-interpreter-python
+## 2.10.1
+
+### Patch Changes
+
+- 2f92cc3: Pin the Jupyter transport to HTTP/1.1 with `get_transport(config, http_version="1.1")`, following the renamed argument in `e2b` 2.52.0 (now the minimum supported version).
+
## 2.10.0
### Minor Changes
diff --git a/packages/code-interpreter-python/package.json b/packages/code-interpreter-python/package.json
index 4644fedff..416e719d9 100644
--- a/packages/code-interpreter-python/package.json
+++ b/packages/code-interpreter-python/package.json
@@ -1,7 +1,7 @@
{
"name": "@e2b/code-interpreter-python",
"private": true,
- "version": "2.10.0",
+ "version": "2.10.1",
"scripts": {
"test": "uv run pytest -n 4 --verbose -x",
"postVersion": "uv version --frozen $(pnpm pkg get version --workspaces=false | tr -d \\\")",
diff --git a/packages/code-interpreter-python/pyproject.toml b/packages/code-interpreter-python/pyproject.toml
index df334cdf4..d83d93e7c 100644
--- a/packages/code-interpreter-python/pyproject.toml
+++ b/packages/code-interpreter-python/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "e2b-code-interpreter"
-version = "2.10.0"
+version = "2.10.1"
description = "E2B Code Interpreter - Stateful code execution"
authors = [{ name = "e2b", email = "[email protected]" }]
license = "MIT"
diff --git a/packages/code-interpreter-python/uv.lock b/packages/code-interpreter-python/uv.lock
index af1408a86..97f8eb27d 100644
--- a/packages/code-interpreter-python/uv.lock
+++ b/packages/code-interpreter-python/uv.lock
@@ -358,7 +358,7 @@ wheels = [
[[package]]
name = "e2b"
-version = "2.51.0"
+version = "2.52.0"
source = { editable = "../python-sdk" }
dependencies = [
{ name = "attrs" },
@@ -431,7 +431,7 @@ dev = [
[[package]]
name = "e2b-code-interpreter"
-version = "2.10.0"
+version = "2.10.1"
source = { editable = "." }
dependencies = [
{ name = "attrs" },
diff --git a/packages/desktop-python/uv.lock b/packages/desktop-python/uv.lock
index 243c119b8..778880701 100644
--- a/packages/desktop-python/uv.lock
+++ b/packages/desktop-python/uv.lock
@@ -352,7 +352,7 @@ wheels = [
[[package]]
name = "e2b"
-version = "2.51.0"
+version = "2.52.0"
source = { editable = "../python-sdk" }
dependencies = [
{ name = "attrs" },
diff --git a/packages/js-sdk/CHANGELOG.md b/packages/js-sdk/CHANGELOG.md
index 42cdb6768..c345c49e2 100644
--- a/packages/js-sdk/CHANGELOG.md
+++ b/packages/js-sdk/CHANGELOG.md
@@ -1,5 +1,32 @@
# e2b
+## 2.52.0
+
+### Minor Changes
+
+- 2de0cc3: Cap sandbox fork count at 20. `e2b sandbox fork --count`, JavaScript `Sandbox.fork({ count })`, and Python `Sandbox.fork(count=...)` reject a count outside 1–20 before the API call. Counts from 21 through 100 used to reach the API. Omitting count still leaves the field off the request so the API default applies.
+- 03887ad: Apply `.dockerignore` and `fileIgnorePatterns` / `file_ignore_patterns` the way Docker does when copying files into a template, so ignored files are no longer uploaded or included in the files hash:
+
+ - A pattern that matches a directory (`node_modules`, `.git`, `dist/`) now excludes everything under it, and a leading `/` is ignored.
+ - `!` patterns re-include paths; the last matching pattern wins.
+ - In Python, patterns now also apply when the copied path contains `.` or `..` segments (for example `copy(".")`).
+ - `fileIgnorePatterns` / `file_ignore_patterns` are applied after the `.dockerignore` lines, so they take precedence.
+ - Absolute patterns pointing into the context directory are treated as relative to it.
+ - Brace expansion (`{a,b}`) is not supported, as in Docker. In JS, `fileIgnorePatterns` such as `**/*.{env,pem}` previously expanded and now match `{env,pem}` literally; list each pattern separately instead (`**/*.env`, `**/*.pem`).
+ - In Python, copying a symlink to a directory copies the link itself instead of the directory's contents, as in JS.
+ - Copying a path inside an ignored directory now fails with "No files found", as in Docker. An invalid pattern (such as an unterminated `[`) now raises an error.
+
+ Directory sizes are no longer part of the files hash, since they depend on the filesystem rather than on the copied files. The files hash of `copy()` steps that copy directories or are affected by ignore patterns changes once, so those steps are rebuilt on the next build.
+
+- 2f92cc3: Add an `http_version` (Python) / `httpVersion` (JS) connection option, `"1.1"` or `"2"` (default), also settable with the `E2B_HTTP_VERSION` environment variable, to pin requests to the E2B API, to sandboxes (commands, filesystem, PTY) and to volume content to HTTP/1.1. It can also be bound once on a client: `E2B(http_version="1.1")` / `new E2B({ httpVersion: '1.1' })`.
+
+### Patch Changes
+
+- 8c7e5cb: Update the Cloudflare Vitest pool dependency to include a worker disposal fix.
+- 97522f8: Retry control-plane HTTP requests after `502` and `503` responses and failures to establish the connection (connection refused, DNS, unreachable host), in addition to `429`. Any other network error (dropped connection, or the opaque `TypeError` browsers and Cloudflare Workers raise) is retried too, except for `POST` operations not known to be safe to replay (sandbox creation, fork, snapshot, volume/secret/API-key/webhook creation), which the server may already have processed. `Retry-After` is honored when the server sends one; otherwise retries back off exponentially with jitter, starting at 100 ms and capped at 10 s. The existing `retries` option (default 3, `0` to disable) and request-timeout budget apply to all of them.
+- 8c7e5cb: Update the protobuf and OpenAPI clients, terminal styling, and interactive prompts to compatible minor releases.
+- 4975149: Remove unused internal constants and attributes, and share the command handle setup between `Commands.run` and `Commands.connect`
+
## 2.51.0
### Minor Changes
diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json
index 901b6d3b3..b79630bf8 100644
--- a/packages/js-sdk/package.json
+++ b/packages/js-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "e2b",
- "version": "2.51.0",
+ "version": "2.52.0",
"description": "E2B SDK that give agents cloud environments",
"homepage": "https://e2b.dev/?utm_source=npm&utm_medium=referral&utm_campaign=package_homepage&utm_content=e2b",
"license": "MIT",
diff --git a/packages/python-sdk/CHANGELOG.md b/packages/python-sdk/CHANGELOG.md
index 7a110da07..2e9658460 100644
--- a/packages/python-sdk/CHANGELOG.md
+++ b/packages/python-sdk/CHANGELOG.md
@@ -1,5 +1,31 @@
# @e2b/python-sdk
+## 2.52.0
+
+### Minor Changes
+
+- 2de0cc3: Cap sandbox fork count at 20. `e2b sandbox fork --count`, JavaScript `Sandbox.fork({ count })`, and Python `Sandbox.fork(count=...)` reject a count outside 1–20 before the API call. Counts from 21 through 100 used to reach the API. Omitting count still leaves the field off the request so the API default applies.
+- 03887ad: Apply `.dockerignore` and `fileIgnorePatterns` / `file_ignore_patterns` the way Docker does when copying files into a template, so ignored files are no longer uploaded or included in the files hash:
+
+ - A pattern that matches a directory (`node_modules`, `.git`, `dist/`) now excludes everything under it, and a leading `/` is ignored.
+ - `!` patterns re-include paths; the last matching pattern wins.
+ - In Python, patterns now also apply when the copied path contains `.` or `..` segments (for example `copy(".")`).
+ - `fileIgnorePatterns` / `file_ignore_patterns` are applied after the `.dockerignore` lines, so they take precedence.
+ - Absolute patterns pointing into the context directory are treated as relative to it.
+ - Brace expansion (`{a,b}`) is not supported, as in Docker. In JS, `fileIgnorePatterns` such as `**/*.{env,pem}` previously expanded and now match `{env,pem}` literally; list each pattern separately instead (`**/*.env`, `**/*.pem`).
+ - In Python, copying a symlink to a directory copies the link itself instead of the directory's contents, as in JS.
+ - Copying a path inside an ignored directory now fails with "No files found", as in Docker. An invalid pattern (such as an unterminated `[`) now raises an error.
+
+ Directory sizes are no longer part of the files hash, since they depend on the filesystem rather than on the copied files. The files hash of `copy()` steps that copy directories or are affected by ignore patterns changes once, so those steps are rebuilt on the next build.
+
+- 2f92cc3: Add an `http_version` (Python) / `httpVersion` (JS) connection option, `"1.1"` or `"2"` (default), also settable with the `E2B_HTTP_VERSION` environment variable, to pin requests to the E2B API, to sandboxes (commands, filesystem, PTY) and to volume content to HTTP/1.1. It can also be bound once on a client: `E2B(http_version="1.1")` / `new E2B({ httpVersion: '1.1' })`.
+
+### Patch Changes
+
+- 97522f8: Retry control-plane HTTP requests after `502` and `503` responses, in addition to `429`, and after a network error once the request was written (dropped connection) — except for `POST` operations not known to be safe to replay (sandbox creation, fork, snapshot, volume/secret/API-key/webhook creation), which the server may already have processed. Failures to establish the connection keep being retried for every operation (`E2B_CONNECTION_RETRIES`). `Retry-After` is honored when the server sends one; otherwise retries back off exponentially with jitter, starting at 0.1 seconds and capped at 10 seconds. The existing `retries` option (default 3, `0` to disable) and request-timeout budget apply to all of them.
+- f713914: Sandbox `commands`/`files` traffic is now balanced across HTTP/2 connections the way the JS SDK's undici agent does it, instead of being sharded into a fixed number of pools by sandbox ID. Every request goes to the connection with the fewest streams in flight to its host; a new connection is dialed only when all existing ones already carry `E2B_STREAMS_PER_CONNECTION` streams to that host (default `100`), up to `E2B_MAX_CONNECTIONS` (default `200`). Envd RPC and HTTP calls share the same connections. `E2B_ENVD_POOL_SHARDS` and the `pool_shard` argument of the internal transport factories (`get_transport`, `get_httpx_transport`, `get_pyqwest_transport`, `get_envd_transport`) are removed.
+- 4975149: Remove unused internal constants and attributes, and share the command handle setup between `Commands.run` and `Commands.connect`
+
## 2.51.0
### Minor Changes
diff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.json
index df455b0a9..a03643614 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.51.0",
+ "version": "2.52.0",
"scripts": {
"test": "uv run pytest -n 4 --verbose -x",
"postVersion": "uv version --frozen $(pnpm pkg get version --workspaces=false | tr -d \\\")",
diff --git a/packages/python-sdk/pyproject.toml b/packages/python-sdk/pyproject.toml
index 194d67e40..e336b3d72 100644
--- a/packages/python-sdk/pyproject.toml
+++ b/packages/python-sdk/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "e2b"
-version = "2.51.0"
+version = "2.52.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 71ac619f3..635f3ae16 100644
--- a/packages/python-sdk/uv.lock
+++ b/packages/python-sdk/uv.lock
@@ -180,7 +180,7 @@ wheels = [
[[package]]
name = "e2b"
-version = "2.51.0"
+version = "2.52.0"
source = { editable = "." }
dependencies = [
{ name = "attrs" },