Skip to content

Conversation

@jakubno
Copy link
Member

@jakubno jakubno commented Oct 2, 2025

Note

Migrates JS/Python examples to the new e2b Template build flow with dev/prod builders, upgrades e2b SDKs, removes Dockerfiles, and sources API keys from env.

  • Examples (JS):
    • Build system: Add src/template.ts defining the image and install step; add src/build.dev.ts and src/build.prod.ts using Template.build with aliases and resource settings.
    • Runtime: Update src/index.ts to import templateName, read ANTHROPIC_API_KEY from env, and await sbx.kill().
    • Deps: Bump e2b to ^2.1.5.
    • Cleanup: Remove examples/anthropic-claude-code-in-sandbox-js/e2b.Dockerfile.
  • Examples (Python):
    • Build system: Add template.py plus build_dev.py and build_prod.py invoking Template.build with aliases and resource settings.
    • Runtime: Update main.py to Sandbox.create(...) and read ANTHROPIC_API_KEY via os.getenv.
    • Deps/Config: Set requires-python to >=3.9,<4.0; require e2b>=2.1.0.
    • Cleanup: Remove examples/anthropic-claude-code-in-sandbox-python/e2b.Dockerfile.}

Written by Cursor Bugbot for commit 0aa652b. This will update automatically on new commits. Configure here.

@jakubno jakubno requested a review from tizkovatereza as a code owner October 2, 2025 16:24
@jakubno jakubno removed the request for review from tizkovatereza October 2, 2025 16:24
cursor[bot]

This comment was marked as outdated.

@jakubno jakubno requested a review from dobrac October 2, 2025 16:26
@jakubno jakubno changed the title Convert to the new build system Anthropic - Convert to the new build system Oct 2, 2025
@jakubno jakubno changed the title Anthropic - Convert to the new build system Claude code - Convert to the new build system Oct 2, 2025
Copy link
Contributor

@dobrac dobrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just one nit

@dobrac dobrac self-assigned this Oct 2, 2025
@jakubno jakubno requested a review from dobrac October 3, 2025 14:34
@dobrac dobrac changed the base branch from main to update-examples-to-use-template-sdk October 15, 2025 07:10
@dobrac dobrac changed the base branch from update-examples-to-use-template-sdk to main October 15, 2025 07:11
@dobrac dobrac changed the base branch from main to update-examples-to-use-template-sdk October 15, 2025 07:15
@dobrac dobrac merged commit 2fd46c6 into update-examples-to-use-template-sdk Oct 15, 2025
1 check passed
@dobrac dobrac deleted the convert-anthropic-example-to-new-build-system branch October 15, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants