mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-21 10:52:06 +01:00
Bumps [e2b](https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk) from 2.62.1 to 2.64.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/e2b-dev/E2B/blob/main/packages/js-sdk/CHANGELOG.md">e2b's changelog</a>.</em></p> <blockquote> <h2>2.64.0</h2> <h3>Minor Changes</h3> <ul> <li> <p>6a976f3: <code>e2b template list</code> and <code>e2b template delete</code> now use the SDK's <code>Template.list()</code> and <code>Template.delete()</code>. <code>TemplateInfo</code> gains <code>maxCpuCount</code> (<code>max_cpu_count</code> in Python) for resizable templates.</p> <p>Breaking: <code>e2b template list -f json</code> now prints the SDK's <code>TemplateInfo</code> objects (<code>templateId</code>, <code>buildId</code>, <code>names</code>, …) instead of the raw API response (<code>templateID</code>, <code>buildID</code>, <code>aliases</code>, <code>createdBy</code>, …), and the pretty table drops the <code>Created by</code> column (the API deprecated the creator's email).</p> </li> <li> <p>1b3b2a4: Add <code>shell</code> option to <code>commands.run</code> to run the command in a custom shell, e.g. <code>shell: ['/bin/sh', '-c']</code> runs <code>/bin/sh -c <cmd></code> (default stays <code>['/bin/bash', '-l', '-c']</code>)</p> </li> <li> <p>6ee9a4b: Add resizable templates: build a template with <code>maxCpuCount</code> and pick each sandbox's <code>cpuCount</code> on create. <code>e2b template list</code> shows a <code>Max vCPUs</code> column.</p> </li> <li> <p>106efea: The API client accepts an <code>Authorization</code> header in place of an API key. Requests can now authenticate with an OAuth access token passed through <code>apiHeaders</code> (JS) or <code>api_headers</code> (Python), together with the <code>X-Team-ID</code> header that selects the team:</p> <pre lang="ts"><code>await Sandbox.create({ apiHeaders: { Authorization: `Bearer ${accessToken}`, 'X-Team-ID': teamId }, }) </code></pre> <pre lang="python"><code>Sandbox.create(api_headers={"Authorization": f"Bearer {access_token}", "X-Team-ID": team_id}) </code></pre> </li> <li> <p>c513ae1: Add <code>Template.delete(nameOrId)</code> (JS) and <code>Template.delete(name_or_id)</code> / <code>AsyncTemplate.delete(name_or_id)</code> (Python) to delete a template or snapshot; returns <code>false</code> when it isn't found. <code>Sandbox.deleteSnapshot</code> / <code>Sandbox.delete_snapshot</code> now share its implementation and raise <code>TemplateError</code> / <code>TemplateException</code> (subclasses of <code>SandboxError</code> / <code>SandboxException</code>) on failure</p> </li> <li> <p>e50db00: Add <code>Template.list()</code> returning a <code>TemplatePaginator</code> (<code>AsyncTemplatePaginator</code> for <code>AsyncTemplate</code>) that pages through the project's templates as <code>TemplateInfo</code>, like <code>Sandbox.list()</code> and <code>Secret.list()</code>.</p> </li> </ul> <h3>Patch Changes</h3> <ul> <li>cf7208a: Bump <code>@connectrpc/connect</code> and <code>@connectrpc/connect-web</code> to ^2.3.0 (HTTP/2 stream cleanup and cancellation fixes) and <code>glob</code> to ^14.0.3</li> <li>Updated dependencies [aec4543] <ul> <li><code>@e2b/dockerfile-utils</code><a href="https://github.com/0"><code>@0</code></a>.1.2</li> </ul> </li> </ul> <h2>2.63.0</h2> <h3>Minor Changes</h3> <ul> <li>a8155c4: Add <code>strict</code> to <code>pause()</code> (default <code>false</code>). With <code>strict: true</code> / <code>strict=True</code> a pause is refused with <code>ServiceBusyError</code> / <code>ServiceBusyException</code> while 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 as <code>envdUnresponsiveAtPause</code> / <code>envd_unresponsive_at_pause</code>, and resuming such a sandbox without <code>onResume: 'reboot'</code> / <code>on_resume="reboot"</code> now throws <code>GuestUnresponsiveError</code> / <code>GuestUnresponsiveException</code>.</li> </ul> <h2>2.62.2</h2> <h3>Patch Changes</h3> <ul> <li>08f05bb: Fix <code>TypeError: fetch failed</code> / <code>NGHTTP2_ENHANCE_YOUR_CALM</code> on concurrent <code>files.write()</code> 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. <code>files.write()</code> uploads now go over HTTP/1.1 on a pool of their own (one request per connection, no shared budget; <code>E2B_ENVD_UPLOAD_CONNECTIONS</code>, 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.</li> <li>1ad3f76: Template builds hash <code>copy()</code> 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.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/e2b-dev/E2B/commit/607e4a6d6fca19ad49c090b40a6db0853165af2a"><code>607e4a6</code></a> [skip ci] Release new versions</li> <li><a href="https://github.com/e2b-dev/E2B/commit/1b3b2a4b078ffb4c3f6197e03019686b7da644dd"><code>1b3b2a4</code></a> feat(sdk): add shell option to commands.run (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2138">#2138</a>)</li> <li><a href="https://github.com/e2b-dev/E2B/commit/02176c1a00013ddd8f128a3b5766f0f4ae1b989b"><code>02176c1</code></a> test: stabilize auto-resume pause and CLI template pagination tests (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2129">#2129</a>)</li> <li><a href="https://github.com/e2b-dev/E2B/commit/6a976f3d3d1c12a7baac348b3255abefe10b874a"><code>6a976f3</code></a> feat(cli): use SDK Template.list and Template.delete in template commands (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2">#2</a>...</li> <li><a href="https://github.com/e2b-dev/E2B/commit/77343ca2d36081fb47ca78f7addf1c2b2dc69241"><code>77343ca</code></a> refactor(cli): type the workspace-api client with openapi-typescript + openap...</li> <li><a href="https://github.com/e2b-dev/E2B/commit/e50db000621409e5c4021ac6b2b80156441a0f69"><code>e50db00</code></a> feat(sdk): add Template.list() returning a TemplatePaginator (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2099">#2099</a>)</li> <li><a href="https://github.com/e2b-dev/E2B/commit/c513ae17f64b2894d4722d5b2215f52a47f331a2"><code>c513ae1</code></a> feat(sdk): add Template.delete (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2098">#2098</a>)</li> <li><a href="https://github.com/e2b-dev/E2B/commit/6ee9a4bd3c6a6f7ed69ca27138d28acda970dc39"><code>6ee9a4b</code></a> feat(sdk,cli): resizable templates (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2117">#2117</a>)</li> <li><a href="https://github.com/e2b-dev/E2B/commit/106efea7e260f752b478709e5fbc5ce0ce6a35ce"><code>106efea</code></a> feat(sdk): accept an Authorization header in place of an API key (<a href="https://github.com/e2b-dev/e2b/tree/HEAD/packages/js-sdk/issues/2102">#2102</a>)</li> <li><a href="https://github.com/e2b-dev/E2B/commit/cf7208ad85d5a747ba50ddf4e3bbdd364e4851bf"><code>cf7208a</code></a> chore(deps): scheduled patch/minor dependency updates for js-sdk / cli / pyth...</li> <li>Additional commits viewable in <a href="https://github.com/e2b-dev/e2b/commits/e2b@2.64.0/packages/js-sdk">compare view</a></li> </ul> </details> <br /> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>