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]2e26b825e191
diff --git a/.changeset/guard-runtime-probed-iam-token-names.md b/.changeset/guard-runtime-probed-iam-token-names.md
deleted file mode 100644
index 2362642f2..000000000
--- a/.changeset/guard-runtime-probed-iam-token-names.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-'e2b': patch
----
-
-Report `iam.tokens.toJSON`, `.then`, `.toString` and `.valueOf` as unregistered workload tokens in a network `transform` callback. These four names were exempt from the unknown-token guard because the runtime reads them off any object it serializes, awaits or coerces, so referencing one as a token name used to serialize `Bearer undefined` or a built-in's source text into the rule. Such a value carries no placeholder for the egress proxy to resolve, so it was forwarded verbatim and the destination answered 401 on a garbage credential, with no error from E2B. They now throw `InvalidArgumentError` like any other unregistered name — on use rather than on the read, so serializing, awaiting and coercing the map itself keep working. The Python SDK was not affected.
-
-```ts
-import { Sandbox, Secret } from 'e2b'
-
-await Sandbox.create({
- iam: {
- tokens: {
- aws: Secret.iamToken({
- audience: 'sts.amazonaws.com',
- tokenType: 'JWT-SVID',
- }),
- },
- },
- network: {
- rules: {
- 'api.example.com': [
- {
- // InvalidArgumentError: Network transform references iam token
- // 'then', which is not registered. Registered tokens: 'aws'.
- transform: ({ iam }) => ({
- headers: { Authorization: `Bearer ${iam.tokens.then}` },
- }),
- },
- ],
- },
- },
-})
-```
diff --git a/.changeset/plenty-cases-repeat.md b/.changeset/plenty-cases-repeat.md
deleted file mode 100644
index af1fbcabc..000000000
--- a/.changeset/plenty-cases-repeat.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-'e2b': patch
----
-
-Remove the unused `stackTrace` constructor parameter from error classes that never have a caller stack trace attached (`TimeoutError`, `NotEnoughSpaceError`, `NotFoundError`, `FileNotFoundError`, `SandboxNotFoundError`, `GitUpstreamError`, `VolumeNotFoundError`, `VolumePathNotFoundError`).
diff --git a/.changeset/sdk-secrets-management.md b/.changeset/sdk-secrets-management.md
deleted file mode 100644
index e078f9f6f..000000000
--- a/.changeset/sdk-secrets-management.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'e2b': minor
-'@e2b/python-sdk': minor
----
-
-Add Secrets Management to the SDK. The `Secret` class (and `AsyncSecret` in Python) now manages E2B secrets: `create` and `update` store secret values (write-only — no read surface returns them), `getInfo` / `get_info` and the paginated `list` read metadata, `exists` and `destroy` are idempotent existence and lifecycle helpers, and `fill` formats the `${e2b.secrets.name}` placeholder that the runtime resolves to the secret's current value.
diff --git a/.changeset/template-bound-connection-opts.md b/.changeset/template-bound-connection-opts.md
deleted file mode 100644
index 19ba9880b..000000000
--- a/.changeset/template-bound-connection-opts.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'e2b': patch
-'@e2b/python-sdk': patch
----
-
-Internal refactor: the template API operations resolve their connection config through a class-level hook, so a `TemplateBase` subclass can carry bound connection options. No behavior change — `Template` / `AsyncTemplate` keep reading config from per-call options and environment variables. In the Python SDK the terminal template operations (`build`, `build_in_background`, `get_build_status`, `exists`, `alias_exists`, `assign_tags`, `remove_tags`, `get_tags`) became `classmethod`s, with signatures unchanged for callers.
diff --git a/.changeset/volume-not-found-error.md b/.changeset/volume-not-found-error.md
deleted file mode 100644
index ab55e7efc..000000000
--- a/.changeset/volume-not-found-error.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-'e2b': patch
-'@e2b/python-sdk': patch
----
-
-Add typed not-found errors for volumes: `VolumeNotFoundError` / `VolumeNotFoundException` (thrown when a volume is not found) and `VolumePathNotFoundError` / `VolumePathNotFoundException` (thrown when a path inside a volume is not found). All subclass the existing `NotFoundError` / `NotFoundException`, so existing catches keep working.
diff --git a/packages/js-sdk/CHANGELOG.md b/packages/js-sdk/CHANGELOG.md
index b17dbf26d..50cf57e67 100644
--- a/packages/js-sdk/CHANGELOG.md
+++ b/packages/js-sdk/CHANGELOG.md
@@ -1,5 +1,47 @@
# e2b
+## 2.43.0
+
+### Minor Changes
+
+- f89f8c3: Add Secrets Management to the SDK. The `Secret` class (and `AsyncSecret` in Python) now manages E2B secrets: `create` and `update` store secret values (write-only — no read surface returns them), `getInfo` / `get_info` and the paginated `list` read metadata, `exists` and `destroy` are idempotent existence and lifecycle helpers, and `fill` formats the `${e2b.secrets.name}` placeholder that the runtime resolves to the secret's current value.
+
+### Patch Changes
+
+- 61503f7: Report `iam.tokens.toJSON`, `.then`, `.toString` and `.valueOf` as unregistered workload tokens in a network `transform` callback. These four names were exempt from the unknown-token guard because the runtime reads them off any object it serializes, awaits or coerces, so referencing one as a token name used to serialize `Bearer undefined` or a built-in's source text into the rule. Such a value carries no placeholder for the egress proxy to resolve, so it was forwarded verbatim and the destination answered 401 on a garbage credential, with no error from E2B. They now throw `InvalidArgumentError` like any other unregistered name — on use rather than on the read, so serializing, awaiting and coercing the map itself keep working. The Python SDK was not affected.
+
+ ```ts
+ import { Sandbox, Secret } from 'e2b'
+
+ await Sandbox.create({
+ iam: {
+ tokens: {
+ aws: Secret.iamToken({
+ audience: 'sts.amazonaws.com',
+ tokenType: 'JWT-SVID',
+ }),
+ },
+ },
+ network: {
+ rules: {
+ 'api.example.com': [
+ {
+ // InvalidArgumentError: Network transform references iam token
+ // 'then', which is not registered. Registered tokens: 'aws'.
+ transform: ({ iam }) => ({
+ headers: { Authorization: `Bearer ${iam.tokens.then}` },
+ }),
+ },
+ ],
+ },
+ },
+ })
+ ```
+
+- d79c6cd: Remove the unused `stackTrace` constructor parameter from error classes that never have a caller stack trace attached (`TimeoutError`, `NotEnoughSpaceError`, `NotFoundError`, `FileNotFoundError`, `SandboxNotFoundError`, `GitUpstreamError`, `VolumeNotFoundError`, `VolumePathNotFoundError`).
+- 2be6c12: Internal refactor: the template API operations resolve their connection config through a class-level hook, so a `TemplateBase` subclass can carry bound connection options. No behavior change — `Template` / `AsyncTemplate` keep reading config from per-call options and environment variables. In the Python SDK the terminal template operations (`build`, `build_in_background`, `get_build_status`, `exists`, `alias_exists`, `assign_tags`, `remove_tags`, `get_tags`) became `classmethod`s, with signatures unchanged for callers.
+- 05aa03c: Add typed not-found errors for volumes: `VolumeNotFoundError` / `VolumeNotFoundException` (thrown when a volume is not found) and `VolumePathNotFoundError` / `VolumePathNotFoundException` (thrown when a path inside a volume is not found). All subclass the existing `NotFoundError` / `NotFoundException`, so existing catches keep working.
+
## 2.42.0
### Minor Changes
diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.json
index a964362f1..43e5ad1cf 100644
--- a/packages/js-sdk/package.json
+++ b/packages/js-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "e2b",
- "version": "2.42.0",
+ "version": "2.43.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 56cc76bd8..5a9eb3d93 100644
--- a/packages/python-sdk/CHANGELOG.md
+++ b/packages/python-sdk/CHANGELOG.md
@@ -1,5 +1,16 @@
# @e2b/python-sdk
+## 2.43.0
+
+### Minor Changes
+
+- f89f8c3: Add Secrets Management to the SDK. The `Secret` class (and `AsyncSecret` in Python) now manages E2B secrets: `create` and `update` store secret values (write-only — no read surface returns them), `getInfo` / `get_info` and the paginated `list` read metadata, `exists` and `destroy` are idempotent existence and lifecycle helpers, and `fill` formats the `${e2b.secrets.name}` placeholder that the runtime resolves to the secret's current value.
+
+### Patch Changes
+
+- 2be6c12: Internal refactor: the template API operations resolve their connection config through a class-level hook, so a `TemplateBase` subclass can carry bound connection options. No behavior change — `Template` / `AsyncTemplate` keep reading config from per-call options and environment variables. In the Python SDK the terminal template operations (`build`, `build_in_background`, `get_build_status`, `exists`, `alias_exists`, `assign_tags`, `remove_tags`, `get_tags`) became `classmethod`s, with signatures unchanged for callers.
+- 05aa03c: Add typed not-found errors for volumes: `VolumeNotFoundError` / `VolumeNotFoundException` (thrown when a volume is not found) and `VolumePathNotFoundError` / `VolumePathNotFoundException` (thrown when a path inside a volume is not found). All subclass the existing `NotFoundError` / `NotFoundException`, so existing catches keep working.
+
## 2.42.0
### Minor Changes
diff --git a/packages/python-sdk/package.json b/packages/python-sdk/package.json
index 36cc18b91..0b5e7bd3b 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.42.0",
+ "version": "2.43.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 f71ac684f..0dc351a09 100644
--- a/packages/python-sdk/pyproject.toml
+++ b/packages/python-sdk/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "e2b"
-version = "2.42.0"
+version = "2.43.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 24c0205d9..333991b92 100644
--- a/packages/python-sdk/uv.lock
+++ b/packages/python-sdk/uv.lock
@@ -183,7 +183,7 @@ wheels = [
[[package]]
name = "e2b"
-version = "2.42.0"
+version = "2.43.0"
source = { editable = "." }
dependencies = [
{ name = "attrs" },