Sourced from e2b's changelog.
2.64.0
Minor Changes
6a976f3:
e2b template listande2b template deletenow use the SDK'sTemplate.list()andTemplate.delete().TemplateInfogainsmaxCpuCount(max_cpu_countin Python) for resizable templates.Breaking:
e2b template list -f jsonnow prints the SDK'sTemplateInfoobjects (templateId,buildId,names, …) instead of the raw API response (templateID,buildID,aliases,createdBy, …), and the pretty table drops theCreated bycolumn (the API deprecated the creator's email).1b3b2a4: Add
shelloption tocommands.runto run the command in a custom shell, e.g.shell: ['/bin/sh', '-c']runs/bin/sh -c <cmd>(default stays['/bin/bash', '-l', '-c'])6ee9a4b: Add resizable templates: build a template with
maxCpuCountand pick each sandbox'scpuCounton create.e2b template listshows aMax vCPUscolumn.106efea: The API client accepts an
Authorizationheader in place of an API key. Requests can now authenticate with an OAuth access token passed throughapiHeaders(JS) orapi_headers(Python), together with theX-Team-IDheader that selects the team:await Sandbox.create({ apiHeaders: { Authorization: `Bearer ${accessToken}`, 'X-Team-ID': teamId }, })Sandbox.create(api_headers={"Authorization": f"Bearer {access_token}", "X-Team-ID": team_id})c513ae1: Add
Template.delete(nameOrId)(JS) andTemplate.delete(name_or_id)/AsyncTemplate.delete(name_or_id)(Python) to delete a template or snapshot; returnsfalsewhen it isn't found.Sandbox.deleteSnapshot/Sandbox.delete_snapshotnow share its implementation and raiseTemplateError/TemplateException(subclasses ofSandboxError/SandboxException) on failuree50db00: Add
Template.list()returning aTemplatePaginator(AsyncTemplatePaginatorforAsyncTemplate) that pages through the project's templates asTemplateInfo, likeSandbox.list()andSecret.list().Patch Changes
- cf7208a: Bump
@connectrpc/connectand@connectrpc/connect-webto ^2.3.0 (HTTP/2 stream cleanup and cancellation fixes) andglobto ^14.0.3- Updated dependencies [aec4543]
@e2b/dockerfile-utils@0.1.22.63.0
Minor Changes
- a8155c4: Add
stricttopause()(defaultfalse). Withstrict: true/strict=Truea pause is refused withServiceBusyError/ServiceBusyExceptionwhile the sandbox's guest agent does not respond, and the sandbox keeps running. Without it the API's default applies: the memory snapshot is taken anyway and marked. Sandbox info exposes the mark asenvdUnresponsiveAtPause/envd_unresponsive_at_pause, and resuming such a sandbox withoutonResume: 'reboot'/on_resume="reboot"now throwsGuestUnresponsiveError/GuestUnresponsiveException.2.62.2
Patch Changes
- 08f05bb: Fix
TypeError: fetch failed/NGHTTP2_ENHANCE_YOUR_CALMon concurrentfiles.write()calls. Node's HTTP/2 client queues each request body in full against a 10 MB per-session memory budget and resets the stream whose response arrives while it is exhausted; since undici 8 every envd request of a process shares one session, so parallel or large uploads reset each other and the reads next to them.files.write()uploads now go over HTTP/1.1 on a pool of their own (one request per connection, no shared budget;E2B_ENVD_UPLOAD_CONNECTIONS, default 50), and an envd dispatcher whose HTTP/2 session Node reports as out of memory is retired and replaced instead of failing every later request. Nothing is retried: a failed write may already have been applied.- 1ad3f76: Template builds hash
copy()files in 1 MB chunks instead of reading each file fully into memory, cutting peak memory for large files. Hashes are unchanged, so existing build caches stay valid.
607e4a6
[skip ci] Release new versions1b3b2a4
feat(sdk): add shell option to commands.run (#2138)02176c1
test: stabilize auto-resume pause and CLI template pagination tests (#2129)6a976f3
feat(cli): use SDK Template.list and Template.delete in template
commands (#2...77343ca
refactor(cli): type the workspace-api client with openapi-typescript +
openap...e50db00
feat(sdk): add Template.list() returning a TemplatePaginator (#2099)c513ae1
feat(sdk): add Template.delete (#2098)6ee9a4b
feat(sdk,cli): resizable templates (#2117)106efea
feat(sdk): accept an Authorization header in place of an API key (#2102)cf7208a
chore(deps): scheduled patch/minor dependency updates for js-sdk / cli /
pyth...