Update dependency e2b#217
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
2c40798 to
35f9739
Compare
35f9739 to
4ec1d05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.28.1→2.29.42.29.1→2.30.4Release Notes
e2b-dev/e2b (e2b)
v2.29.1Compare Source
Patch Changes
1d5259c: Fix a batch of connection-handling bugs in the JS and Python SDKs:request_timeoutis now applied to control-plane (E2B API) requests; previously the underlying httpx client was built with no timeout at all.debug: falseexplicitly now overrides theE2B_DEBUG=trueenvironment variable instead of being ignored.TypeErrorwhen a response contains protobuf int64 (bigint) fields; they are now logged as strings.v2.29.0Compare Source
Minor Changes
961ffba: feat(sdks): expose user-defined file metadata onsandbox.filesAdds a
metadataoption to file uploads (write/writeFiles/write_files) and surfaces persisted metadata on everyEntryInfo/WriteInforeturned bygetInfo,list,rename, and write responses. On upload, metadata is sent asX-Metadata-<key>: <value>request headers; envd persists the values as extended attributes in theuser.e2b.xattr namespace and returns them on subsequent filesystem reads (includinguser.e2b.*xattrs set out-of-band). Keys are sent as HTTP header names and are lowercased by the sandbox; metadata is validated client-side (keys must be valid HTTP header tokens, values must be printable US-ASCII) and invalid input raisesInvalidArgumentError/InvalidArgumentException. The same metadata map is applied to every file in a multi-file upload. Requires envd 0.6.2 or later.da85b1e: Add anincludeEntry/include_entryoption to filesystem directory watching. When enabled, eachFilesystemEventcarries the affected entry'sEntryInfo(best-effort; left unset for events where the path no longer exists, such as remove/rename-away). Requires envd 0.6.3 or later; watching with this option against an older sandbox raises a template error.Patch Changes
7dc861f: fix: align behavior between the JS and Python SDKsPython SDK:
commands.send_stdinandCommandHandle.send_stdinnow acceptbytesin addition tostr, and the handle'ssend_stdin/close_stdinnow accept arequest_timeout.git.resetnow accepts a typedGitResetModeand its validation error matches the JS SDK wording/ordering.GitResetModeis now exported.sandbox_urlis now propagated throughget_api_params.Template.from_image()now raises when only one ofusername/passwordis provided.get_info()no longer carries the envd access token on the returnedSandboxInfo(the_envd_access_tokenfield was unused), matching the JS SDK which strips it fromgetInfo.get_metrics()now raisesTemplateException(wasSandboxException) with the same message as the JS SDK when the sandbox is too old.JS SDK:
Sandbox.getInfo()now includessandboxDomain, matching the Python SDK's singleget_info.getFullInfois deprecated and now just wrapsgetInfo(it no longer returns the envd access token).Sandbox.getMetrics()now returns[]in debug mode, matching the Python SDK. The debug short-circuit forgetMetrics/killis implemented on both the instance and static methods, so it applies consistently whether called asSandbox.kill(sandboxId)orsandbox.kill().Template.fromImage()now requires bothusernameandpasswordwhen registry credentials are provided.Template.getBuildStatus()now defaultslogsOffsetto0.requestTimeoutMs: 0now explicitly disables the request timeout.getMetrics()now throwsTemplateError(wasSandboxError) when the sandbox is too old to support metrics.v2.28.2Compare Source
Patch Changes
4e16cff: Addproxyconnection parameter to route SDK requests through an HTTP proxy, matching the Python SDK. When set, it applies to API requests, all requests made to the returned sandbox, and volume requests.4e16cff: Fixproxynot being applied to volume content requests.Volume.create/Volume.connectnow store theproxyon the returned instance, so instance methods (list,readFile,writeFile,makeDir,getInfo,updateMetadata,remove, …) route through it without having to passproxyon every call. A per-callproxystill takes precedence.e2b-dev/e2b (e2b)
v2.30.4Compare Source
Patch Changes
726ced6: Fix duplicate logo on NPM/PyPI by switching to<picture>element.v2.30.3Compare Source
Patch Changes
f3e7f33: Tidy up SDK authentication and deprecate the access token inConnectionConfig.accessToken(JS) /access_token(Python) option onConnectionConfig. It still works exactly as before — when set (or viaE2B_ACCESS_TOKEN), theAuthorization: Bearerheader is still sent — but you should pass custom auth throughapiHeadersinstead, e.g.new ConnectionConfig({ apiHeaders: { Authorization: 'Bearer <token>' } }).https://e2b.dev/dashboard?tab=keys). In JS this is controlled by arequireApiKeyoption (defaulttrue) so callers that authenticate differently — like the CLI hitting/teamswith an access token — can opt out; in Python the API key is always required.requireAccessToken(JS) andrequire_access_token(Python). No caller ever set it to a non-default value, so behavior is unchanged./teamsendpoint throughapiHeadersinstead of the deprecated option.ConnectionConfig:EnvdApiClientnow owns its ownaccessTokenfield and sets theX-Access-Tokenheader itself.0a5d524: Update package logos with theme-aware dark/light variants for GitHub.v2.30.2Compare Source
Patch Changes
706c553: Template SDK fixes:getAllFilesInPathso the files hash no longer depends on filesystem traversal order (the previoussort()was a no-op on globPathobjects).waitForPort(viass'ssportfilter) so e.g. port 80 no longer matches 8080.waitForURL,waitForFile, andwaitForProcess.remove,rename,makeDir,makeSymlink,gitClone(URL/branch/path), and the devcontainer helpers so values with spaces or shell metacharacters work correctly.COPYinstruction so failed-step stack traces stay aligned aftercopy()with multiple sources orcopyItems().LogEntrymessages, matching the Python SDK.432c091: Add integration attribution options that append integration metadata to the SDKUser-Agent.71b450f: Recognize Bun and Deno connection-dropped errors in the sandbox health check. When the connection to a sandbox is dropped mid-request, each JS runtime surfaces it with different wording (Node/undici:terminated, Bun:The socket connection was closed unexpectedly, Deno:error reading a body from connection). All known variants are now matched, so a sandbox killed mid-request is reported as aTimeoutErroron Bun and Deno too, matching Node.v2.30.1Compare Source
Patch Changes
e88ae33: Fix signed URL expiration edge cases inuploadUrl/downloadUrl(upload_url/download_url):InvalidArgumentExceptionwhenuse_signature_expirationis passed for an unsecured sandbox, matching the JS SDK behavior (which now throwsInvalidArgumentErrorinstead of a plainError).0now produces an immediately expiring URL instead of silently creating a never-expiring one.78c200a: Allow disabling client-side API key format validation. Set theE2B_VALIDATE_API_KEYenvironment variable tofalse, or pass thevalidateApiKey: false(JS) /validate_api_key=False(Python) connection option, when your deployment issues API keys that don't match the defaulte2b_format.cb061d2: Fix command and PTY streaming issues:envsobject when applying defaultTERM/LANG/LC_ALLvalues inpty.create()82add5b: Raise a typed, actionable error when the sandbox dies while a request is in flight. When the connection is dropped mid-request (streaming RPC calls — commands, PTY, directory watch — and filesystem read/write), the SDKs now probe the sandbox health endpoint: if the sandbox is confirmed gone, aTimeoutError(JS) /TimeoutException(Python) is raised stating the sandbox was killed or reached its end of life — consistent with how requests to an already-dead sandbox surface. In all other cases the original error propagates unchanged.5ea287b: Make thegzip: trueupload option imply theapplication/octet-streamupload path so it is no longer silently ignored on the defaultmultipart/form-datapath. On envd versions older than 0.5.7 the upload still falls back to uncompressedmultipart/form-data.b52eb3c: Skip the control plane request inSandbox.connect()when running in debug mode, matching the behavior ofSandbox.create(). In the Python SDK,Sandbox.connect()now also normalizes missing envd and traffic access tokens toNoneinstead of leaking theUnsetsentinel, which previously brokedownload_url()/upload_url()for non-secure sandboxes.v2.30.0Compare Source
Minor Changes
e873ee9: Add anallowNetworkMounts/allow_network_mountsoption to filesystem directory watching. When enabled, paths on network filesystem mounts (NFS, CIFS, SMB, FUSE) can be watched — they are rejected by default because events on network mounts may be unreliable or not delivered at all. Requires envd 0.6.4 or later; watching with this option against an older sandbox raises a template error.Patch Changes
cab59ca: FixSandbox.getMetrics()sendingstartandendas path parameters instead of query parameters, which caused the requested time range to be silently ignored0b0c728: FixVolume.readFilereturningundefinedinstead of an emptyBlob/ReadableStreamfor empty files, and apply the documented 60s default request timeout to volume content requests.feb2d45: Returnbooleanfrom theSandbox.kill()instance method (trueif the sandbox was killed,falseif it was not found), matching the staticSandbox.kill()and the Python SDK.91e84d9: Raise an error for non-2xx API and envd responses with empty bodies (e.g.Content-Length: 0) instead of treating them as successful.Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.