Agent 基础设施官方发布自动监测

e2b@2.62.0

E2B released version 2.62.0, adding options to disable command output buffering in memory, enabling unbuffered streaming for file writes, and introducing breaking validation rules for streams and compression options.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

E2B release 2.62.0 introduces minor and breaking changes across JavaScript and Python SDKs. A new retainOutput (JS) / retain output (Python) flag in commands.run and commands.connect defaults to true; setting it to false prevents buffering stdout and stderr in memory, returning undefined/None while still triggering output callbacks. files.write now streams iterables of byte chunks directly using octet-stream upload without buffering in memory, supporting AsyncIterable and ReadableStream in JS, sync Iterable bytes in Python Sandbox, and AsyncIterable bytes in Python AsyncSandbox. In browsers lacking request-body streaming (Firefox, Safari, iOS), JS stream data now throws InvalidArgumentError instead of buffering. Additionally, files.write streaming requires template envd version = 0.5.7 (throwing TemplateError / TemplateException on older versions) and disallows useOctetStream: false . Combining gzip: true with useOctetStream: false is now strictly rejected with InvalidArgumentError / InvalidArgumentException instead of silently overriding the upload mode.

Agent 解析

可执行摘要

E2B v2.62.0 adds retainOutput to commands.run / commands.connect (defaults to true; if false, prevents memory buffering of stdout/stderr). files.write now streams byte chunk iterables using octet-stream without memory buffering. Breaking changes: streaming file writes no longer fall back to buffering in unsupported environments (throws on non-streaming browsers, requires envd = 0.5.7, rejects useOctetStream: false…

Agent 实用度
94/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Ensure sandbox templates run envd = 0.5.7 before using stream data in files.write .
  • Convert streams to Blob (e.g., await new Response(stream).blob() ) when targeting browsers without streaming request body support like Firefox, Safari, or iOS browsers.
  • Remove useOctetStream: false when passing streams to files.write or when gzip: true is enabled.
  • Evaluate setting retainOutput: false in commands.run or commands.connect for memory savings if standard output buffering is not needed.
分类

标签与路由

sandboxcode-executionagents
相关信号

继续阅读