项目文件夹

0
devin-ai-integration[bot] a6b36d9f48 chore: bump pnpm security overrides for js-yaml, sharp, browserslist (#1851)
## Summary

The Dependabot security-update job on `main` failed with three
`security_update_not_possible` errors because the affected packages are
transitive deps pinned by stale pnpm `overrides` / parent ranges — `pnpm
update <pkg>` can't move them, so Dependabot reported e.g.:

> The latest possible version of browserslist that can be installed is
4.24.4. The earliest fixed version is 4.28.7.

This PR raises the override floors in `pnpm-workspace.yaml` to the newly
patched versions and regenerates `pnpm-lock.yaml`:

- `js-yaml@<3.15.1: ^3.15.1` → `js-yaml@<3.15.2: ^3.15.2` (advisory: `>=
3.0.0 < 3.15.2`)
- `js-yaml@>=4.0.0 <4.3.1: ^4.3.1` → `js-yaml@>=4.0.0 <4.3.2: ^4.3.2`
(advisory: `>= 4.0.0 < 4.3.2`)
- add `js-yaml@>=5.0.0 <=5.2.1: ^5.4.1` (advisory: `>= 5.0.0 <= 5.2.1`)
- `sharp@<0.35.0: ^0.35.0` → `sharp@<0.35.4: ^0.35.4` (advisory: `<
0.35.4`)
- add `browserslist@<4.28.7: ^4.28.7` (advisory: `<= 4.28.6`; was
resolved to 4.24.4 via `@babel/helper-compilation-targets`)

Lockfile now resolves `js-yaml` 3.15.2 + 4.3.2, `sharp` 0.35.4,
`browserslist` 4.28.9. All bumped versions are older than the repo's
`minimumReleaseAge` (3 days). `pnpm typecheck`, `pnpm lint`, and `pnpm
format` pass.

Failed run:
https://github.com/e2b-dev/E2B/actions/runs/34338830115/job/102424525489

Link to Devin session:
https://app.devin.ai/sessions/4d40690a4ae6471086e0d1de38fbcb38
Open in Devin Desktop:
https://app.devin.ai/desktop/session/4d40690a4ae6471086e0d1de38fbcb38?variant=devin

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-09 12:06:15 +00:00
2026-09-09 10:29:44 +00:00
2026-09-09 10:29:44 +00:00
2024-10-15 08:29:46 -07:00
2024-10-15 10:39:10 -07:00
2024-10-15 11:52:54 -07:00
2026-05-28 23:50:01 +00:00
2026-07-23 02:41:04 -07:00
2023-07-01 17:08:01 -07:00
2023-05-21 10:51:33 -07:00

E2B Logo E2B Logo

Last 1 month downloads for the Python SDK Last 1 month downloads for the JavaScript SDK

What is E2B?

E2B is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our JavaScript SDK or Python SDK.

Run your first Sandbox

1. Install SDK

JavaScript / TypeScript

npm i e2b

Python

pip install e2b

2. Get your E2B API key

  1. Sign up to E2B here.
  2. Get your API key here.
  3. Set environment variable with your API key
E2B_API_KEY=e2b_***

3. Start a sandbox and run commands

JavaScript / TypeScript

import Sandbox from 'e2b'

const sandbox = await Sandbox.create()
const result = await sandbox.commands.run('echo "Hello from E2B!"')
console.log(result.stdout) // Hello from E2B!

Python

from e2b import Sandbox

with Sandbox.create() as sandbox:
    result = sandbox.commands.run('echo "Hello from E2B!"')
    print(result.stdout)  # Hello from E2B!

4. Code execution with Code Interpreter

If you need to execute code with runCode()/run_code(), install the Code Interpreter SDK (JavaScript / Python):

npm i @e2b/code-interpreter  # JavaScript/TypeScript
pip install e2b-code-interpreter  # Python
import { Sandbox } from '@e2b/code-interpreter'

const sandbox = await Sandbox.create()
const execution = await sandbox.runCode('x = 1; x += 1; x')
console.log(execution.text)  // outputs 2

5. Computer use with Desktop

For mouse, keyboard, screenshot, application, and desktop streaming APIs, install the Desktop SDK (JavaScript / Python):

npm i @e2b/desktop  # JavaScript/TypeScript
pip install e2b-desktop  # Python
import { Sandbox } from '@e2b/desktop'

const desktop = await Sandbox.create()
await desktop.launch('google-chrome')
const screenshot = await desktop.screenshot()

6. Check docs

Visit E2B documentation.

7. E2B cookbook

Visit our Cookbook to get inspired by examples with different LLMs and AI frameworks.

Self-hosting

Read the self-hosting guide to learn how to set up the E2B infrastructure on your own. The infrastructure is deployed using Terraform.

Supported cloud providers:

  • 🟢 AWS
  • 🟢 Google Cloud (GCP)
  • Azure
  • General Linux machine