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]ec260376dcc3
diff --git a/.changeset/auto-pause-filesystem-only.md b/.changeset/auto-pause-filesystem-only.mddeleted file mode 100644index 5c26f80c7..000000000--- a/.changeset/auto-pause-filesystem-only.md+++ /dev/null@@ -1,35 +0,0 @@-----"e2b": minor-"@e2b/python-sdk": minor------Add an object form to the sandbox `lifecycle.onTimeout` (`on_timeout` in Python)-that controls the snapshot kind taken when a sandbox auto-pauses on timeout, via-`keepMemory` (`keep_memory`).--`onTimeout` now accepts either the existing bare action (`'pause'` / `'kill'`) or-the object form. The object form is a discriminated union on `action`:-`keepMemory` is only accepted alongside `action: 'pause'` — pairing it with-`action: 'kill'` is a compile-time type error (and is rejected at runtime for-untyped callers). When `keepMemory` is `false`, a timeout auto-pause drops the-in-memory state and persists only the filesystem (a filesystem-only snapshot);-resuming such a sandbox cold-boots (reboots) it from disk, losing running-processes and open connections. Defaults to `true` (full memory snapshot). It-cannot be combined with auto-resume: auto-resume wakes a paused sandbox on-inbound traffic by restoring its memory snapshot in place, and a filesystem-only-snapshot has no memory to restore (resuming cold-boots it), so it must be resumed-explicitly. The bare string form is unchanged.--```python-# Python-sbx = Sandbox.create(- lifecycle={"on_timeout": {"action": "pause", "keep_memory": False}}-)-```--```ts-// JS/TS-const sbx = await Sandbox.create({- lifecycle: { onTimeout: { action: 'pause', keepMemory: false } },-})-```diff --git a/.changeset/filesystem-only-pause.md b/.changeset/filesystem-only-pause.mddeleted file mode 100644index a530c7daa..000000000--- a/.changeset/filesystem-only-pause.md+++ /dev/null@@ -1,22 +0,0 @@-----"e2b": minor-"@e2b/python-sdk": minor------Add a `keepMemory` (`keep_memory` in Python) option to `pause` for-filesystem-only snapshots.--When `keepMemory` is `false`, pausing drops the in-memory state and captures-only the filesystem (no memory snapshot); resuming such a snapshot cold-boots-(reboots) the sandbox from disk, losing running processes and open connections.-Defaults to `true` (full memory snapshot), so existing callers are unaffected.--```python-# Python-sbx.pause(keep_memory=False) # filesystem-only snapshot-```--```ts-// JS/TS-await sandbox.pause({ keepMemory: false }) // filesystem-only snapshot-```diff --git a/.changeset/watch-handle-fixes.md b/.changeset/watch-handle-fixes.mddeleted file mode 100644index 4db54305e..000000000--- a/.changeset/watch-handle-fixes.md+++ /dev/null@@ -1,10 +0,0 @@-----"@e2b/python-sdk": patch-"e2b": patch------Fix three filesystem watch handle bugs:--- **JS**: `WatchHandle` now awaits async `onEvent`/`onExit` callbacks. A rejecting async `onEvent` is routed to `onExit` and stops the watch instead of becoming an unhandled promise rejection that can crash Node, and async callbacks get backpressure/ordering — matching `CommandHandle`.-- **Python (sync)**: `WatchHandle.get_new_events()` and `stop()` now send a request timeout (default 60s, overridable via `request_timeout`) so a stalled call can't hang the thread forever, and include the authentication header so the polling/stop calls aren't sent unauthenticated on older envd.-- **Python (async)**: `AsyncWatchHandle` now invokes `on_exit` when the stream ends cleanly (with `None`) and when `stop()` is called, in addition to on error — matching the JS SDK.diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex 4ccfe24f4..916aa0cab 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.30.6",+ "version": "2.31.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 88b05446b..ddf96a9f0 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.6",+ "version": "2.30.0","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 c0414a2fe..c3803a71d 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "e2b"-version = "2.29.6"+version = "2.30.0"description = "E2B SDK that give agents cloud environments"authors = ["e2b <[email protected]>"]license = "MIT"