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]9ef3f1dbbeb2
diff --git a/.changeset/align-python-distro-image-defaults.md b/.changeset/align-python-distro-image-defaults.mddeleted file mode 100644index 7cca6d3c5..000000000--- a/.changeset/align-python-distro-image-defaults.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Align the Python SDK's `from_fedora_image` and `from_alpine_image` defaults with the JS SDK: `fedora:44` and `alpine:3.24`, replacing `fedora:42` (end-of-life, so its repositories leave the normal mirror network and provisioning can fail) and `alpine:3.22`. Callers that omit the variant now get the same base image in both SDKs, and both tags are the ones the orchestrator's distro build tests cover. Also corrects the JS `TemplateFromImage` type docs, which still named the old defaults.diff --git a/.changeset/cli-pty-user-cwd-env.md b/.changeset/cli-pty-user-cwd-env.mddeleted file mode 100644index c6a16463e..000000000--- a/.changeset/cli-pty-user-cwd-env.md+++ /dev/null@@ -1,5 +0,0 @@-----"@e2b/cli": patch------Add `--user`, `--cwd`, and `--env` flags to `e2b sandbox create` (and the deprecated `spawn` alias) and `e2b sandbox connect`. These are forwarded to the underlying PTY session so the connected terminal starts as the given user, in the given working directory, and with the given environment variables. `--env` accepts repeatable `KEY=VALUE` pairs.diff --git a/.changeset/dashboard-project-tab-link.md b/.changeset/dashboard-project-tab-link.mddeleted file mode 100644index 5e035a8d2..000000000--- a/.changeset/dashboard-project-tab-link.md+++ /dev/null@@ -1,5 +0,0 @@-----'@e2b/cli': patch------Point the `--project` flag help at the dashboard's `?tab=general` entrypoint (was `?tab=team`)diff --git a/.changeset/lucky-dolphins-listen.md b/.changeset/lucky-dolphins-listen.mddeleted file mode 100644index bddc33910..000000000--- a/.changeset/lucky-dolphins-listen.md+++ /dev/null@@ -1,5 +0,0 @@-----'e2b': patch------Recognize web platform objects by what they are, not by which class minted them. Libraries replace the web globals the same way they replace `globalThis.fetch` (`@hono/node-server` installs its own `Request`, remix's `installGlobals()` swaps `Request`/`Blob`/`File`, `web-streams-polyfill` swaps `ReadableStream`, jsdom-style test environments bring their own copies), and values also cross realms — so a perfectly good `Request`, `Blob` or `ReadableStream` could fail the SDK's `instanceof` checks and take the wrong branch. This fixes: every API call crashing with `Failed to parse URL from [object Request]`; the abort signal of such a `Request` being ignored while it waited for an in-flight slot; uploads of a foreign `Blob` or `ReadableStream` — including the body of such a `Request` — silently containing the text `"[object Blob]"`/`"[object ReadableStream]"`; gzipped uploads of a foreign stream hanging; a foreign stream being buffered into memory instead of streamed; and `volume.readFile()` returning empty data.diff --git a/.changeset/lucky-pans-regenerate.md b/.changeset/lucky-pans-regenerate.mddeleted file mode 100644index 9f89f0c63..000000000--- a/.changeset/lucky-pans-regenerate.md+++ /dev/null@@ -1,5 +0,0 @@-----'@e2b/python-sdk': patch------Regenerate `e2b/sandbox/mcp.py` with `datamodel-code-generator` 0.64.0: the MCP server option types now use builtin generics (`list[str]`, `dict[str, Any]`) and are closed `TypedDict`s, mirroring the spec's `additionalProperties: false`. Raises the `typing-extensions` floor to `>=4.10.0`, the first release accepting PEP 728's `closed`.diff --git a/.changeset/multi-distro-base-image-helpers.md b/.changeset/multi-distro-base-image-helpers.mddeleted file mode 100644index 2fd50c7f8..000000000--- a/.changeset/multi-distro-base-image-helpers.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': minor-'@e2b/python-sdk': minor------Add `fromFedoraImage`, `fromAlpineImage`, and `fromArchImage` base-image helpers to the `Template` builder (`from_fedora_image`, `from_alpine_image`, `from_arch_image` in the Python SDK), alongside the existing `fromUbuntuImage`/`fromDebianImage`/etc. Templates can now start from Fedora, Alpine, and Arch base images (the orchestrator identifies the distro from `/etc/os-release`). Fedora and Alpine default to pinned tags (`fedora:44`, `alpine:3.24`) so builds stay reproducible; Arch defaults to `latest` because it is a rolling release and provisioning runs `pacman -Syu` regardless.diff --git a/.changeset/quiet-pugs-listen.md b/.changeset/quiet-pugs-listen.mddeleted file mode 100644index 57bb96ba2..000000000--- a/.changeset/quiet-pugs-listen.md+++ /dev/null@@ -1,5 +0,0 @@-----'@e2b/cli': patch------Depend on `e2b` through pnpm's `workspace:^` protocol instead of a registry range. `pnpm publish` rewrites it to the same concrete `^<version>` it had before, so the published package is unchanged — but the lockfile no longer has to be re-resolved against the tarballs a release uploads, which is what forced the release tags onto the commit before their own version bump.diff --git a/.changeset/witty-moons-rename.md b/.changeset/witty-moons-rename.mddeleted file mode 100644index 9d4acfa78..000000000--- a/.changeset/witty-moons-rename.md+++ /dev/null@@ -1,6 +0,0 @@-----'e2b': patch-'@e2b/python-sdk': patch------Update snapshot docstrings to use project terminology instead of team (e.g. "my-project/my-snapshot", project slug)diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdnew file mode 100644index 000000000..9f87a2713--- /dev/null+++ b/packages/cli/CHANGELOG.md@@ -0,0 +1,14 @@+# @e2b/cli++## 2.16.1++### Patch Changes++- 9e3e52b: Add `--user`, `--cwd`, and `--env` flags to `e2b sandbox create` (and the deprecated `spawn` alias) and `e2b sandbox connect`. These are forwarded to the underlying PTY session so the connected terminal starts as the given user, in the given working directory, and with the given environment variables. `--env` accepts repeatable `KEY=VALUE` pairs.+- 2c061eb: Point the `--project` flag help at the dashboard's `?tab=general` entrypoint (was `?tab=team`)+- 05b7a79: Depend on `e2b` through pnpm's `workspace:^` protocol instead of a registry range. `pnpm publish` rewrites it to the same concrete `^<version>` it had before, so the published package is unchanged — but the lockfile no longer has to be re-resolved against the tarballs a release uploads, which is what forced the release tags onto the commit before their own version bump.+- Updated dependencies [6733f36]+- Updated dependencies [1ebe925]+- Updated dependencies [1504fbc]+- Updated dependencies [ee0ad25]diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 071626518..f675ab45b 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -1,6 +1,6 @@{"name": "@e2b/cli",- "version": "2.16.0",+ "version": "2.16.1","description": "CLI for managing e2b sandbox templates","homepage": "https://e2b.dev","license": "MIT",diff --git a/packages/js-sdk/CHANGELOG.md b/packages/js-sdk/CHANGELOG.mdnew file mode 100644index 000000000..5114e2dd3--- /dev/null+++ b/packages/js-sdk/CHANGELOG.md@@ -0,0 +1,13 @@+# e2b++## 2.37.0++### Minor Changes++- 1504fbc: Add `fromFedoraImage`, `fromAlpineImage`, and `fromArchImage` base-image helpers to the `Template` builder (`from_fedora_image`, `from_alpine_image`, `from_arch_image` in the Python SDK), alongside the existing `fromUbuntuImage`/`fromDebianImage`/etc. Templates can now start from Fedora, Alpine, and Arch base images (the orchestrator identifies the distro from `/etc/os-release`). Fedora and Alpine default to pinned tags (`fedora:44`, `alpine:3.24`) so builds stay reproducible; Arch defaults to `latest` because it is a rolling release and provisioning runs `pacman -Syu` regardless.++### Patch Changes++- 6733f36: Align the Python SDK's `from_fedora_image` and `from_alpine_image` defaults with the JS SDK: `fedora:44` and `alpine:3.24`, replacing `fedora:42` (end-of-life, so its repositories leave the normal mirror network and provisioning can fail) and `alpine:3.22`. Callers that omit the variant now get the same base image in both SDKs, and both tags are the ones the orchestrator's distro build tests cover. Also corrects the JS `TemplateFromImage` type docs, which still named the old defaults.+- 1ebe925: Recognize web platform objects by what they are, not by which class minted them. Libraries replace the web globals the same way they replace `globalThis.fetch` (`@hono/node-server` installs its own `Request`, remix's `installGlobals()` swaps `Request`/`Blob`/`File`, `web-streams-polyfill` swaps `ReadableStream`, jsdom-style test environments bring their own copies), and values also cross realms — so a perfectly good `Request`, `Blob` or `ReadableStream` could fail the SDK's `instanceof` checks and take the wrong branch. This fixes: every API call crashing with `Failed to parse URL from [object Request]`; the abort signal of such a `Request` being ignored while it waited for an in-flight slot; uploads of a foreign `Blob` or `ReadableStream` — including the body of such a `Request` — silently containing the text `"[object Blob]"`/`"[object ReadableStream]"`; gzipped uploads of a foreign stream hanging; a foreign stream being buffered into memory instead of streamed; and `volume.readFile()` returning empty data.+- ee0ad25: Update snapshot docstrings to use project terminology instead of team (e.g. "my-project/my-snapshot", project slug)diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex de9ea7845..1cfb2d057 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.36.1",+ "version": "2.37.0","description": "E2B SDK that give agents cloud environments","homepage": "https://e2b.dev","license": "MIT",diff --git a/packages/python-sdk/CHANGELOG.md b/packages/python-sdk/CHANGELOG.mdnew file mode 100644index 000000000..6ad0d3cf4--- /dev/null+++ b/packages/python-sdk/CHANGELOG.md@@ -0,0 +1,13 @@+# @e2b/python-sdk++## 2.36.0++### Minor Changes++- 1504fbc: Add `fromFedoraImage`, `fromAlpineImage`, and `fromArchImage` base-image helpers to the `Template` builder (`from_fedora_image`, `from_alpine_image`, `from_arch_image` in the Python SDK), alongside the existing `fromUbuntuImage`/`fromDebianImage`/etc. Templates can now start from Fedora, Alpine, and Arch base images (the orchestrator identifies the distro from `/etc/os-release`). Fedora and Alpine default to pinned tags (`fedora:44`, `alpine:3.24`) so builds stay reproducible; Arch defaults to `latest` because it is a rolling release and provisioning runs `pacman -Syu` regardless.++### Patch Changes++- 6733f36: Align the Python SDK's `from_fedora_image` and `from_alpine_image` defaults with the JS SDK: `fedora:44` and `alpine:3.24`, replacing `fedora:42` (end-of-life, so its repositories leave the normal mirror network and provisioning can fail) and `alpine:3.22`. Callers that omit the variant now get the same base image in both SDKs, and both tags are the ones the orchestrator's distro build tests cover. Also corrects the JS `TemplateFromImage` type docs, which still named the old defaults.+- 45d2679: Regenerate `e2b/sandbox/mcp.py` with `datamodel-code-generator` 0.64.0: the MCP server option types now use builtin generics (`list[str]`, `dict[str, Any]`) and are closed `TypedDict`s, mirroring the spec's `additionalProperties: false`. Raises the `typing-extensions` floor to `>=4.10.0`, the first release accepting PEP 728's `closed`.+- ee0ad25: Update snapshot docstrings to use project terminology instead of team (e.g. "my-project/my-snapshot", project slug)diff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.jsonindex ec2cdf2db..d5e3d3a80 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.35.0",+ "version": "2.36.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 98ea4f473..4e918a626 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[project]name = "e2b"-version = "2.35.0"+version = "2.36.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 7ea6e0def..57d98e1f2 100644--- a/packages/python-sdk/uv.lock+++ b/packages/python-sdk/uv.lock@@ -183,7 +183,7 @@ wheels = [[[package]]name = "e2b"-version = "2.35.0"+version = "2.36.0"source = { editable = "." }dependencies = [{ name = "attrs" },