Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

chore: rename the infra repository references to e2b-dev/runtime (#1864)

devin-ai-integration[bot]87d65f20bdc7
diff --git a/.github/workflows/generated_files.yml b/.github/workflows/generated_files.yml
index 620d29321..84d0f6cbc 100644
--- a/.github/workflows/generated_files.yml
+++ b/.github/workflows/generated_files.yml
@@ -106,7 +106,7 @@ jobs:
# is scoped to this repository only, so mint a short-lived token from
# the Autofixer GitHub App instead, scoped to every repo the fetches
# touch. Fork PRs have no access to the App secret, so they skip the
- # mint, run the public infra fetches with the default token, and fall
+ # mint, run the public runtime fetches with the default token, and fall
# back to the tracked volume-content spec (make fetch-specs warns
# instead of failing).
- name: Generate token for spec repos
@@ -117,7 +117,7 @@ jobs:
app-id: ${{ vars.AUTOFIXER_APP_ID }}
private-key: ${{ secrets.AUTOFIXER_APP_SECRET }}
owner: e2b-dev
- repositories: belt,infra
+ repositories: belt,runtime
permission-contents: read
- name: Run codegen
diff --git a/CLAUDE.md b/CLAUDE.md
index 554b63dd2..902cc44b3 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -2,7 +2,7 @@ Use pnpm for node and uv for python to install and update dependencies.
Run `pnpm run format`, `pnpm run lint` and `pnpm run typecheck` before committing changes.
When modifying the SDK packages, ensure equivalent changes are applied to both JS as well as sync and async Python implementations.
Design the SDK in accordance with the design principles in TASTE.md.
-Never edit the API, envd, or volume-content specs in spec/ by hand; they are synced with Copybara from e2b-dev/infra and e2b-dev/belt at the commits pinned in spec/infra-ref and spec/belt-ref (see copy.bara.sky and spec/README.md). To update the specs, bump the pins and re-run `make codegen`, which re-fetches them before generating.
+Never edit the API, envd, or volume-content specs in spec/ by hand; they are synced with Copybara from e2b-dev/runtime and e2b-dev/belt at the commits pinned in spec/runtime-ref and spec/belt-ref (see copy.bara.sky and spec/README.md). To update the specs, bump the pins and re-run `make codegen`, which re-fetches them before generating.
Create or update tests covering affected codepaths and run them using `pnpm run test`.
Generate a changeset with `pnpm changeset` in the repository root when changing the public surface of packages/cli, packages/js-sdk, or packages/python-sdk; internal scripts, devtools, and tests don't need one.
When creating a pull request, add usage examples for user-facing changes to the PR description.
diff --git a/Makefile b/Makefile
index de5b1abee..f1182b6d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-# Specs are fetched from their source-of-truth repositories (e2b-dev/infra
-# and e2b-dev/belt) at the commits pinned in spec/infra-ref and spec/belt-ref.
+# Specs are fetched from their source-of-truth repositories (e2b-dev/runtime
+# and e2b-dev/belt) at the commits pinned in spec/runtime-ref and spec/belt-ref.
# To update the specs, bump the pins and re-run `make codegen`.
# When a fetch fails (no GitHub token, no access to the private belt repo),
# fall back to the tracked copy in spec/ with a warning.
diff --git a/copy.bara.sky b/copy.bara.sky
index 19c82656e..1c3ed9254 100644
--- a/copy.bara.sky
+++ b/copy.bara.sky
@@ -1,7 +1,7 @@
# Copybara config that imports API specs from their source-of-truth
# repositories into spec/. The imported files are tracked here but must not
-# be edited by hand — `make codegen` re-fetches the infra ones at the commit
-# pinned in spec/infra-ref before generating the clients, and the
+# be edited by hand — `make codegen` re-fetches the runtime ones at the commit
+# pinned in spec/runtime-ref before generating the clients, and the
# generated-files CI check fails if the tracked copies don't match the pin.
# See spec/README.md.
#
@@ -11,7 +11,7 @@
# exactly those paths (so files deleted upstream are deleted here too) and
# leaves the repo-owned files in spec/ untouched.
-INFRA_REPO = "https://github.com/e2b-dev/infra.git"
+RUNTIME_REPO = "https://github.com/e2b-dev/runtime.git"
BELT_REPO = "https://github.com/e2b-dev/belt.git"
AUTHORING = authoring.pass_thru("E2B <[email protected]>")
@@ -20,7 +20,7 @@ AUTHORING = authoring.pass_thru("E2B <[email protected]>")
core.workflow(
name = "api-spec",
origin = git.github_origin(
- url = INFRA_REPO,
+ url = RUNTIME_REPO,
),
destination = folder.destination(),
origin_files = glob(["spec/openapi.yml"]),
@@ -36,7 +36,7 @@ core.workflow(
core.workflow(
name = "envd-spec",
origin = git.github_origin(
- url = INFRA_REPO,
+ url = RUNTIME_REPO,
),
destination = folder.destination(),
origin_files = glob(
diff --git a/packages/cli/src/utils/templateName.ts b/packages/cli/src/utils/templateName.ts
index a418ea96b..52bcccdb8 100644
--- a/packages/cli/src/utils/templateName.ts
+++ b/packages/cli/src/utils/templateName.ts
@@ -1,6 +1,6 @@
/**
* Allowed template name (alias) format, matching the server-side validation in
- * e2b-dev/infra (`id.identifierRegex`): the name is trimmed and lowercased,
+ * e2b-dev/runtime (`id.identifierRegex`): the name is trimmed and lowercased,
* then must contain only lowercase letters, numbers, dashes and underscores.
*/
const templateNameRegex = /^[a-z0-9-_]+$/
diff --git a/packages/cli/tests/commands/template/init.test.ts b/packages/cli/tests/commands/template/init.test.ts
index c3256f48a..87e3103a2 100644
--- a/packages/cli/tests/commands/template/init.test.ts
+++ b/packages/cli/tests/commands/template/init.test.ts
@@ -59,7 +59,7 @@ describe('Template Init', () => {
})
test('should validate template name format', async () => {
- // Matches the server-side rule in e2b-dev/infra (id.identifierRegex):
+ // Matches the server-side rule in e2b-dev/runtime (id.identifierRegex):
// only lowercase letters, numbers, dashes and underscores are allowed.
const invalidNames = [
'invalid space', // contains space
diff --git a/packages/js-sdk/src/sandbox/sandboxApi.ts b/packages/js-sdk/src/sandbox/sandboxApi.ts
index 2e5307f15..358d65956 100644
--- a/packages/js-sdk/src/sandbox/sandboxApi.ts
+++ b/packages/js-sdk/src/sandbox/sandboxApi.ts
@@ -286,7 +286,7 @@ export type SandboxNetworkOpts = {
* connection is dialed. Omit it to send the sandbox's traffic out directly.
*
* Available on E2B Cloud and in BYOC deployments; a sandbox that names a
- * proxy on a deployment built from the open source `e2b-dev/infra`
+ * proxy on a deployment built from the open source `e2b-dev/runtime`
* repository is rejected as unsupported.
*
* @example
@@ -711,7 +711,7 @@ export type SandboxConnectOpts = ConnectionOpts & {
* already running.
*
* Needs a control plane that knows this option: E2B Cloud, or a self-hosted
- * or BYOC deployment built from `e2b-dev/infra` at or after the commit that
+ * or BYOC deployment built from `e2b-dev/runtime` at or after the commit that
* added the `memory` field to connect/resume (2026-08-20). An older control
* plane drops the field and restores memory while answering as if the
* request had succeeded.
diff --git a/packages/python-sdk/e2b/sandbox/sandbox_api.py b/packages/python-sdk/e2b/sandbox/sandbox_api.py
index cce1d4851..372a1c409 100644
--- a/packages/python-sdk/e2b/sandbox/sandbox_api.py
+++ b/packages/python-sdk/e2b/sandbox/sandbox_api.py
@@ -355,7 +355,7 @@ class SandboxNetworkOpts(TypedDict):
connection is dialed. Omit it to send the sandbox's traffic out directly.
Available on E2B Cloud and in BYOC deployments; a sandbox that names a
- proxy on a deployment built from the open source ``e2b-dev/infra``
+ proxy on a deployment built from the open source ``e2b-dev/runtime``
repository is rejected as unsupported.
Deny everything except a host, and tunnel what is left::
diff --git a/packages/python-sdk/e2b/sandbox_async/main.py b/packages/python-sdk/e2b/sandbox_async/main.py
index 35ed4c1e9..da6bdc1f3 100644
--- a/packages/python-sdk/e2b/sandbox_async/main.py
+++ b/packages/python-sdk/e2b/sandbox_async/main.py
@@ -285,7 +285,7 @@ class AsyncSandbox(SandboxApi):
without memory or a sandbox that is already running. A value outside the two
literals raises `InvalidArgumentException`.
Needs a control plane that knows this option: E2B Cloud, or a self-hosted or BYOC
- deployment built from `e2b-dev/infra` at or after the commit that added the `memory`
+ deployment built from `e2b-dev/runtime` at or after the commit that added the `memory`
field to connect/resume (2026-08-20). An older control plane drops the field and
restores memory while answering as if the request had succeeded.
:return: A running sandbox instance
@@ -327,7 +327,7 @@ class AsyncSandbox(SandboxApi):
without memory or a sandbox that is already running. A value outside the two
literals raises `InvalidArgumentException`.
Needs a control plane that knows this option: E2B Cloud, or a self-hosted or BYOC
- deployment built from `e2b-dev/infra` at or after the commit that added the `memory`
+ deployment built from `e2b-dev/runtime` at or after the commit that added the `memory`
field to connect/resume (2026-08-20). An older control plane drops the field and
restores memory while answering as if the request had succeeded.
:return: A running sandbox instance
@@ -365,7 +365,7 @@ class AsyncSandbox(SandboxApi):
without memory or a sandbox that is already running. A value outside the two
literals raises `InvalidArgumentException`.
Needs a control plane that knows this option: E2B Cloud, or a self-hosted or BYOC
- deployment built from `e2b-dev/infra` at or after the commit that added the `memory`
+ deployment built from `e2b-dev/runtime` at or after the commit that added the `memory`
field to connect/resume (2026-08-20). An older control plane drops the field and
restores memory while answering as if the request had succeeded.
:return: A running sandbox instance
diff --git a/packages/python-sdk/e2b/sandbox_sync/main.py b/packages/python-sdk/e2b/sandbox_sync/main.py
index d252c54f3..3a9e172f3 100644
--- a/packages/python-sdk/e2b/sandbox_sync/main.py
+++ b/packages/python-sdk/e2b/sandbox_sync/main.py
@@ -279,7 +279,7 @@ class Sandbox(SandboxApi):
without memory or a sandbox that is already running. A value outside the two
literals raises `InvalidArgumentException`.
Needs a control plane that knows this option: E2B Cloud, or a self-hosted or BYOC
- deployment built from `e2b-dev/infra` at or after the commit that added the `memory`
+ deployment built from `e2b-dev/runtime` at or after the commit that added the `memory`
field to connect/resume (2026-08-20). An older control plane drops the field and
restores memory while answering as if the request had succeeded.
:return: A running sandbox instance
@@ -322,7 +322,7 @@ class Sandbox(SandboxApi):
without memory or a sandbox that is already running. A value outside the two
literals raises `InvalidArgumentException`.
Needs a control plane that knows this option: E2B Cloud, or a self-hosted or BYOC
- deployment built from `e2b-dev/infra` at or after the commit that added the `memory`
+ deployment built from `e2b-dev/runtime` at or after the commit that added the `memory`
field to connect/resume (2026-08-20). An older control plane drops the field and
restores memory while answering as if the request had succeeded.
:return: A running sandbox instance
@@ -360,7 +360,7 @@ class Sandbox(SandboxApi):
without memory or a sandbox that is already running. A value outside the two
literals raises `InvalidArgumentException`.
Needs a control plane that knows this option: E2B Cloud, or a self-hosted or BYOC
- deployment built from `e2b-dev/infra` at or after the commit that added the `memory`
+ deployment built from `e2b-dev/runtime` at or after the commit that added the `memory`
field to connect/resume (2026-08-20). An older control plane drops the field and
restores memory while answering as if the request had succeeded.
:return: A running sandbox instance
diff --git a/scripts/fetch-spec.sh b/scripts/fetch-spec.sh
index 1f6ab97fc..7045d9948 100755
--- a/scripts/fetch-spec.sh
+++ b/scripts/fetch-spec.sh
@@ -5,14 +5,14 @@ set -euo pipefail
#
# Usage: scripts/fetch-spec.sh <api-spec|envd-spec|volume-api-spec>
#
-# api-spec and envd-spec come from e2b-dev/infra at the commit pinned in
-# spec/infra-ref. Override it with E2B_INFRA_REF, e.g.
-# `E2B_INFRA_REF=main pnpm fetch:api-spec` to try the latest spec without
+# api-spec and envd-spec come from e2b-dev/runtime at the commit pinned in
+# spec/runtime-ref. Override it with E2B_RUNTIME_REF, e.g.
+# `E2B_RUNTIME_REF=main pnpm fetch:api-spec` to try the latest spec without
# touching the pin. volume-api-spec comes from e2b-dev/belt at the commit
# pinned in spec/belt-ref (override with E2B_BELT_REF).
#
# Fetches authenticate with GITHUB_TOKEN (or `gh auth login`) when available;
-# the public infra specs also fetch anonymously. volume-api-spec needs a
+# the public runtime specs also fetch anonymously. volume-api-spec needs a
# token with read access to the private belt repo — `make fetch-specs` falls
# back to the tracked copy in spec/ with a warning when a fetch fails.
#
@@ -27,8 +27,8 @@ TOKEN="${GITHUB_TOKEN:-$(gh auth token 2> /dev/null || true)}"
case "$SPEC" in
api-spec | envd-spec)
- SOURCE="e2b-dev/infra"
- REF="${E2B_INFRA_REF:-$(tr -d '[:space:]' < "$ROOT_DIR/spec/infra-ref")}"
+ SOURCE="e2b-dev/runtime"
+ REF="${E2B_RUNTIME_REF:-$(tr -d '[:space:]' < "$ROOT_DIR/spec/runtime-ref")}"
;;
volume-api-spec)
SOURCE="e2b-dev/belt"
diff --git a/spec/README.md b/spec/README.md
index 85b8e6bb0..5372b03f5 100644
--- a/spec/README.md
+++ b/spec/README.md
@@ -6,13 +6,13 @@ here with [Copybara](https://github.com/google/copybara) (config in
source repository and re-sync:
- `openapi.yml`, `envd/envd.yaml`, `envd/filesystem/`, `envd/process/` are
- owned by the [infra repository](https://github.com/e2b-dev/infra), pinned
- by `infra-ref`.
+ owned by the [runtime repository](https://github.com/e2b-dev/runtime), pinned
+ by `runtime-ref`.
- `openapi-volumecontent.yml` is owned by the private belt repository,
pinned by `belt-ref`.
Fetches authenticate with a GitHub token when available (`GITHUB_TOKEN`, or
-being logged in with `gh auth login`); the public infra specs also fetch
+being logged in with `gh auth login`); the public runtime specs also fetch
anonymously, while the volume-content spec needs a token with read access
to belt. When a fetch fails, `make codegen` warns and falls back to the
tracked copy.
@@ -27,7 +27,7 @@ upstream. To update the specs, point the pin at a newer commit and re-run
pnpm fetch:api-spec # openapi.yml
pnpm fetch:envd-spec # envd spec
pnpm fetch:volume-spec # openapi-volumecontent.yml
-E2B_INFRA_REF=main pnpm fetch:api-spec # try the latest without moving the pin
+E2B_RUNTIME_REF=main pnpm fetch:api-spec # try the latest without moving the pin
E2B_BELT_REF=main pnpm fetch:volume-spec
```
diff --git a/spec/infra-ref b/spec/runtime-ref
similarity index 100%
rename from spec/infra-ref
rename to spec/runtime-ref