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]7d4d620fa8f7
diff --git a/.changeset/cuddly-pots-stream.md b/.changeset/cuddly-pots-stream.mddeleted file mode 100644index 895cea101..000000000--- a/.changeset/cuddly-pots-stream.md+++ /dev/null@@ -1,11 +0,0 @@-----"e2b": patch-"@e2b/python-sdk": patch------Stream uploads instead of buffering streaming input entirely in memory:--- `Sandbox.files.write()` / `write_files()`: `ReadableStream` data (JS, outside the browser) and file-like objects (Python) are streamed to the sandbox, including when `gzip` is enabled (compression now happens chunk by chunk). `useOctetStream`/`use_octet_stream` now defaults to auto-detect — octet-stream is used when any entry is streamable (so streamed uploads aren't silently buffered) and `multipart/form-data` otherwise; browsers always use `multipart/form-data`. A streamed upload is bounded by a per-chunk timeout on the wire (Python's per-write `httpx` timeout, default the request timeout); a stalled upload that this can't observe is bounded server-side. On Python's `AsyncSandbox`, the blocking file reads and gzip compression of a streamed upload now run in a worker thread so a large upload doesn't stall the event loop.-- `Sandbox.files.read(format="stream")`: the request timeout now bounds only the initial handshake instead of killing the stream while it's being consumed. The body is bounded by a per-chunk idle timeout on the wire (`streamIdleTimeoutMs` in JS, `stream_idle_timeout` in Python, default the request timeout — 60s — `0`/`None` to disable): it aborts only when the server stops sending mid-stream, and a slow or paused consumer never trips it (a held-but-unread stream is reclaimed server-side). Use `signal` (JS) to cancel an in-flight stream. A dropped connection during the stream handshake now surfaces the same typed, health-checked error as non-stream reads. The stream holds a pooled connection until it is consumed to the end, cancelled/closed, errors, or the idle timeout fires — consume it fully, use the context manager, or close it.-- Python `Sandbox.files.read(format="stream")`: the response body is now streamed from the sandbox instead of being downloaded into memory before iteration (sync and async).-- JS `Sandbox.files.read()` with `blob` or `stream` format now returns an empty `Blob`/`ReadableStream` for empty files instead of `""`.diff --git a/.changeset/strong-apes-bow.md b/.changeset/strong-apes-bow.mddeleted file mode 100644index 4c72388ae..000000000--- a/.changeset/strong-apes-bow.md+++ /dev/null@@ -1,5 +0,0 @@-----"@e2b/python-sdk": patch------Fix Python SDK header precedence so a custom `Authorization` passed via `api_headers` is no longer overwritten by the deprecated `access_token`. The deprecated access token is now applied before `api_headers`, matching the JS SDK where a custom `Authorization` wins.diff --git a/.changeset/volumes-stream.md b/.changeset/volumes-stream.mddeleted file mode 100644index 8c0d7445d..000000000--- a/.changeset/volumes-stream.md+++ /dev/null@@ -1,9 +0,0 @@-----"e2b": patch-"@e2b/python-sdk": patch------Stream volume file uploads and downloads instead of buffering in memory:--- `Volume.writeFile()` / `Volume.write_file()`: `ReadableStream` data (JS, outside the browser) and file-like objects (Python) are now streamed to the API in chunks.-- `Volume.readFile(format="stream")` / `read_file(format="stream")`: the request timeout now bounds only the initial handshake instead of killing the stream while it's being consumed (Python disables the read timeout; JS bounds the handshake and supports `signal` to cancel an in-flight stream). A dropped connection during the stream handshake now surfaces the same typed, health-checked error as non-stream reads.diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex 2dc0c43df..abc3cd004 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -1,6 +1,6 @@{"name": "e2b",- "version": "2.30.4",+ "version": "2.30.5","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 94fe7630f..e909fee37 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.4",+ "version": "2.29.5","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 03393ac4f..c00138fbf 100644--- a/packages/python-sdk/pyproject.toml+++ b/packages/python-sdk/pyproject.toml@@ -1,6 +1,6 @@[tool.poetry]name = "e2b"-version = "2.29.4"+version = "2.29.5"description = "E2B SDK that give agents cloud environments"authors = ["e2b <[email protected]>"]license = "MIT"