Conversation
Configure a Cursor Cloud Agent environment for the E2B SDK monorepo. An idempotent install script installs mise and the toolchain pinned in .tool-versions (node, pnpm, python, uv, bun, deno), installs the pnpm workspace, builds the JS SDK, and syncs the Python packages. Co-authored-by: rauf.guliyev <rauf.guliyev@e2b.dev>
|
Package ArtifactsBuilt from 75737a6. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.51.1-cursor-add-cloud-agent-environment-d117.0.tgzCLI ( npm install ./e2b-cli-2.20.1-cursor-add-cloud-agent-environment-d117.0.tgzCode Interpreter JS SDK ( npm install ./e2b-code-interpreter-2.8.1-cursor-add-cloud-agent-environment-d117.0.tgzDesktop JS SDK ( npm install ./e2b-desktop-2.4.1-cursor-add-cloud-agent-environment-d117.0.tgzPython SDK ( pip install ./e2b-2.51.0+cursor.add.cloud.agent.environment.d117-py3-none-any.whlCode Interpreter Python SDK ( pip install ./e2b_code_interpreter-2.10.0+cursor.add.cloud.agent.environment.d117-py3-none-any.whlDesktop Python SDK ( pip install ./e2b_desktop-2.6.0+cursor.add.cloud.agent.environment.d117-py3-none-any.whl |
|
is there some way to have a setup that works across Cursor, Devin, etc. ? |
What
Adds a Cursor Cloud Agent development environment for this monorepo so agents can install, build, run, and test the E2B SDKs end to end.
.cursor/environment.json— repository-managed environment config (default base image + install script)..cursor/install.sh— idempotent bootstrap script.How it works
The install script installs
miseand uses it to provision the exact toolchain already pinned in the repo's top-level.tool-versions(single source of truth), then sets up the workspace:node 22.18.0,pnpm 10.34.5,python 3.10,uv 0.10.0,bun 1.3.14,deno 2.8.1.pnpm install --frozen-lockfilefor the JS/TS workspace.packages/js-sdk), which the CLI, code-interpreter, desktop packages and thetypecheck/testscripts depend on.uv syncfor each Python package (python-sdk,code-interpreter-python,desktop-python).miseactivation to~/.bashrcso the toolchain is onPATHin the agent's shells.The script is safe to re-run:
mise installis a no-op when tools are present, and a duplicate.bashrcactivation is guarded.Validation
All checks were run on this environment and again on a fresh Cloud Agent booted from the resulting build:
pnpm run lint,pnpm run typecheck,pnpm run format— pass.Usage examples
After the environment is set up, an agent can run real sandboxes end to end.
JavaScript / TypeScript (built SDK):
Python:
Requires
E2B_API_KEYto be available in the environment (already injected as a secret for the Cloud Agent).Notes
packages/cli,packages/js-sdk, orpackages/python-sdk.