Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 4.156.2 to 4.158.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/cloudflare/workers-sdk/releases">wrangler's releases</a>.</em></p> <blockquote> <h2>wrangler@4.158.0</h2> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16186">#16186</a> <a href="https://github.com/cloudflare/workers-sdk/commit/f1d81a20c8e535ec7cb870143283f4a683fec70d"><code>f1d81a2</code></a> Thanks <a href="https://github.com/leostera"><code>@leostera</code></a>! - Support local Artifacts across Wrangler, Vite, and Workers Vitest</p> <p>Set <code>remote: false</code> on an Artifacts binding to opt into the Miniflare simulator and persistent local repositories during development. Omitted <code>remote</code> continues to use the deployed resource, with a warning that changes affect real repositories; <code>remote: true</code> explicitly selects it. When remote bindings are disabled (<code>wrangler dev --local</code>, or Vite's <code>remoteBindings: false</code>), Artifacts bindings use the local simulator. Workers Vitest uses the local simulator when <code>remote</code> is omitted, so tests do not change real repositories by accident; set <code>remote: true</code> to test against the deployed resource. Local development does not require Cloudflare credentials, but does require Git 2.32 or newer on the host.</p> <p>In Miniflare's own options, Artifacts bindings route like every other binding: only <code>dev.remote: true</code> with a remote proxy connection uses the deployed resource. Wrangler and Vite resolve the deployed-by-default rule, and Workers Vitest its local default, before passing options to Miniflare.</p> </li> </ul> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16700">#16700</a> <a href="https://github.com/cloudflare/workers-sdk/commit/dc35efbd3cdfe67b3ef972c75b8faae65dfed195"><code>dc35efb</code></a> Thanks <a href="https://github.com/cjol"><code>@cjol</code></a>! - Bump bundled <code>brace-expansion</code> to pick up security fixes</p> <p>These packages bundle <code>brace-expansion</code> (a dependency of <code>minimatch</code>), and the bundled versions were affected by published advisories. The bundles now include <code>brace-expansion</code> 2.1.7 (from 2.0.1) and 5.0.12 (from 5.0.5). Normal glob patterns expand as before; only the pathological patterns targeted by the advisories are handled differently.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16700">#16700</a> <a href="https://github.com/cloudflare/workers-sdk/commit/dc35efbd3cdfe67b3ef972c75b8faae65dfed195"><code>dc35efb</code></a> Thanks <a href="https://github.com/cjol"><code>@cjol</code></a>! - Bump bundled <code>fast-xml-parser</code> from 4.4.1 to 4.5.5 to pick up security fixes</p> <p>Miniflare bundles <code>fast-xml-parser</code> into its local R2 S3 API, and Wrangler bundles it through the AWS SDK used by <code>wrangler pipelines</code>. Version 4.4.1 is affected by several published advisories, and 4.5.5 includes their fixes. XML handling does not change.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16700">#16700</a> <a href="https://github.com/cloudflare/workers-sdk/commit/dc35efbd3cdfe67b3ef972c75b8faae65dfed195"><code>dc35efb</code></a> Thanks <a href="https://github.com/cjol"><code>@cjol</code></a>! - Bump bundled <code>minimatch</code> from 5.1.6 to 5.1.9 to pick up security fixes</p> <p>These packages bundle <code>minimatch</code>, and 5.1.6 is affected by published ReDoS advisories. Version 5.1.9 includes the fixes. 5.1.8 is skipped because it broke recursive <code>**</code> matching, which D1's <code>migrations_pattern</code> relies on.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16700">#16700</a> <a href="https://github.com/cloudflare/workers-sdk/commit/dc35efbd3cdfe67b3ef972c75b8faae65dfed195"><code>dc35efb</code></a> Thanks <a href="https://github.com/cjol"><code>@cjol</code></a>! - Bump bundled <code>shell-quote</code> from 1.10.0 to 1.11.0 to pick up a security fix</p> <p><code>shell-quote</code> is bundled into Wrangler, which uses it to parse and quote shell commands such as custom build and Pages dev commands. Version 1.10.0 is affected by a published advisory, and 1.11.0 includes the fix. Command parsing does not change.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16700">#16700</a> <a href="https://github.com/cloudflare/workers-sdk/commit/dc35efbd3cdfe67b3ef972c75b8faae65dfed195"><code>dc35efb</code></a> Thanks <a href="https://github.com/cjol"><code>@cjol</code></a>! - Bump bundled <code>yaml</code> from 2.8.1 to 2.9.0 to pick up a security fix</p> <p><code>yaml</code> is bundled into Wrangler, which uses it to show container application details. Version 2.8.1 is affected by a published advisory, and versions from 2.8.3 onwards include the fix. Output does not change.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16688">#16688</a> <a href="https://github.com/cloudflare/workers-sdk/commit/fa3edb325694670084bc38af02232957315ccdb5"><code>fa3edb3</code></a> Thanks <a href="https://github.com/FlorentCollin"><code>@FlorentCollin</code></a>! - Use the <code>account_id</code> from the configuration file in <code>wrangler d1 migrations list --remote</code></p> <p>Before this change, the command ignored the <code>account_id</code> in the configuration file. When your login had access to more than one account, the command failed in non-interactive mode. In interactive mode, it asked you to select an account. The command now uses the configured <code>account_id</code>, as <code>wrangler d1 migrations apply</code> does.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16695">#16695</a> <a href="https://github.com/cloudflare/workers-sdk/commit/b2061f40f812d8888b461f68506552b58f8e468b"><code>b2061f4</code></a> Thanks <a href="https://github.com/apps/dependabot"><code>@dependabot</code></a>! - Update <code>DEFAULT_COMPAT_DATE</code> to 2026-11-04</p> <p>Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.</p> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16695">#16695</a> <a href="https://github.com/cloudflare/workers-sdk/commit/b2061f40f812d8888b461f68506552b58f8e468b"><code>b2061f4</code></a> Thanks <a href="https://github.com/apps/dependabot"><code>@dependabot</code></a>! - Update dependencies of "miniflare", "wrangler"</p> <p>The following dependency versions have been updated:</p> <table> <thead> <tr> <th>Dependency</th> <th>From</th> <th>To</th> </tr> </thead> <tbody> <tr> <td><code>@cloudflare/workers-types</code></td> <td>^5.20261103.1</td> <td>^5.20261104.1</td> </tr> <tr> <td>workerd</td> <td>1.20261103.1</td> <td>1.20261104.1</td> </tr> </tbody> </table> </li> <li> <p><a href="https://redirect.github.com/cloudflare/workers-sdk/pull/16306">#16306</a> <a href="https://github.com/cloudflare/workers-sdk/commit/36e64f20025cf0bd5e99a585ca3427c8d75fd18b"><code>36e64f2</code></a> Thanks <a href="https://github.com/efalcao"><code>@efalcao</code></a>! - Report Cloudflare Access login redirects on remote bindings instead of looping until "Too many redirects"</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/cloudflare/workers-sdk/commit/c579d500d0c5732393f2e85f0cdd085167aee32e"><code>c579d50</code></a> Version Packages (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16681">#16681</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/f1d81a20c8e535ec7cb870143283f4a683fec70d"><code>f1d81a2</code></a> [miniflare] Enable local Artifacts in development tools [3/3] (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16186">#16186</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/dc35efbd3cdfe67b3ef972c75b8faae65dfed195"><code>dc35efb</code></a> Bump dependencies to clear 101 Dependabot alerts (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16700">#16700</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/4d88a45a952542c55ec63bbca671fb1f003a09c7"><code>4d88a45</code></a> [miniflare] Stabilize Artifacts integration tests on Windows (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16693">#16693</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/0083f807de557d771f9d2d4f08d6406f5062c295"><code>0083f80</code></a> [wrangler] Harden the local KV pagination regression test (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16697">#16697</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/fa3edb325694670084bc38af02232957315ccdb5"><code>fa3edb3</code></a> [wrangler] Use config account_id in d1 migrations list --remote (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16688">#16688</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/9a0732c3f4f6cbbc016a7134fc1d20edb98b454e"><code>9a0732c</code></a> Version Packages (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16654">#16654</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/44d1ee439c0a077f2fed4d86e35a4edf46b51f74"><code>44d1ee4</code></a> fix(wrangler): stop <code>wrangler delete</code> orphaning Container applications (<a href="https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler/issues/16011">#16011</a>)</li> <li><a href="https://github.com/cloudflare/workers-sdk/commit/8ac43df32667a77cd7e8e267da86e96645e3031b"><code>8ac43df</code></a> Require explicit route metadata flags when downloading Worker configuration (...</li> <li>See full diff in <a href="https://github.com/cloudflare/workers-sdk/commits/wrangler@4.158.0/packages/wrangler">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@paperclipai/plugin-cloudflare-sandbox
Published Cloudflare sandbox provider plugin for Paperclip.
This package lives in the Paperclip monorepo, but it is intentionally excluded from the root pnpm workspace and shaped to publish and install like a standalone npm package. Operators can install it from the Plugins page by package name, and the host will fetch its dependencies at install time without adding lockfile churn to the Paperclip repo.
Install
From a Paperclip instance, install:
@paperclipai/plugin-cloudflare-sandbox
Configure Cloudflare from Instance Settings -> Environments, not from the plugin's plugin page.
Configuration
The environment uses core driver: "sandbox" with provider: "cloudflare".
Required fields:
bridgeBaseUrlbridgeAuthToken
Important validation rules:
reuseLease: truerequireskeepAlive: true- non-local
bridgeBaseUrlvalues must behttps:// sessionIdis required whensessionStrategyisnamed
Pasted auth tokens are stored by Paperclip as company secrets because the manifest marks bridgeAuthToken as a secret-ref field.
Bridge template
The package includes an operator-facing Cloudflare Worker scaffold under bridge-template. That template uses @cloudflare/sandbox, a Sandbox Durable Object binding, and a small JSON HTTP surface under /api/paperclip-sandbox/v1.
Local development
cd packages/plugins/sandbox-providers/cloudflare
pnpm install --ignore-workspace --no-lockfile
pnpm build
pnpm test
pnpm typecheck
These commands assume the repo root has already been installed once so the local @paperclipai/plugin-sdk workspace package is available to the compiler during development.