@mastra/cloudflare-sandbox 0.3.0-alpha.0 → 0.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -13
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -5,7 +5,7 @@ Cloudflare Sandbox provider for Mastra workspaces. It talks to a deployed [Cloud
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- pnpm add @mastra/cloudflare-sandbox
8
+ npm install @mastra/cloudflare-sandbox
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -22,20 +22,15 @@ const sandbox = new CloudflareSandbox({
22
22
  const workspace = new Workspace({ sandbox });
23
23
  ```
24
24
 
25
- `baseUrl` is the root URL of your bridge Worker, and `apiToken` is the value of the Worker's `SANDBOX_API_KEY` secret.
25
+ ## Documentation
26
26
 
27
- Commands run through `POST /v1/sandbox/:id/exec` as an `argv` array, so the bridge does the shell escaping. Files written through `writeFiles()` must resolve under `/workspace`; relative paths are resolved there automatically, and each file is sent as one `PUT /v1/sandbox/:id/file/*` request.
27
+ - [Cloudflare Sandbox integration guide](https://mastra.ai/integrations/sandboxes/cloudflare-sandbox)
28
+ - [Workspace documentation](https://mastra.ai/docs/mastra-platform/workspaces)
28
29
 
29
- Pass `sandboxId` to reconnect to an existing remote sandbox. `stop()` preserves the remote sandbox because the bridge has no suspend operation. `destroy()` deletes it.
30
+ ## Changelog
30
31
 
31
- ## Integration tests
32
+ See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/workspaces/cloudflare-sandbox/CHANGELOG.md) for version history and release notes.
32
33
 
33
- The integration suite runs against a real bridge deployment:
34
+ ## Support
34
35
 
35
- ```bash
36
- CLOUDFLARE_SANDBOX_BRIDGE_URL=https://<worker>.workers.dev \
37
- CLOUDFLARE_SANDBOX_API_KEY=<SANDBOX_API_KEY secret> \
38
- pnpm --filter @mastra/cloudflare-sandbox test
39
- ```
40
-
41
- Without `CLOUDFLARE_SANDBOX_BRIDGE_URL` the suite skips.
36
+ We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/cloudflare-sandbox",
3
- "version": "0.3.0-alpha.0",
3
+ "version": "0.3.0-alpha.1",
4
4
  "description": "Cloudflare Sandbox provider for Mastra workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "@internal/lint": "0.0.129",
32
32
  "@internal/types-builder": "0.0.104",
33
33
  "@internal/workspace-test-utils": "0.0.73",
34
- "@mastra/core": "1.64.0-alpha.2"
34
+ "@mastra/core": "1.64.0-alpha.7"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@mastra/core": ">=1.12.0-0 <2.0.0-0"