Skip to content

Commit 86ad33b

Browse files
committed
fix acorn build issue
1 parent 2abadee commit 86ad33b

File tree

1 file changed

+34
-11
lines changed

1 file changed

+34
-11
lines changed

src/content/changelog/agents/2025-06-24-announcing-sandboxes.mdx

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ date: 2025-06-25T15:00:00Z
1010

1111
AI is supercharging app development for everyone, but we need a safe way to run untrusted, LLM-written code. We’re introducing [Sandboxes](https://www.npmjs.com/package/@cloudflare/sandbox), which let your Worker run actual processes in a secure, container-based environment.
1212

13-
```sh
13+
```ts
1414
import { getSandbox } from "@cloudflare/sandbox";
1515
export { Sandbox } from "@cloudflare/sandbox";
1616

@@ -22,18 +22,41 @@ export default {
2222
};
2323
```
2424

25-
### Methods:
25+
### Methods
2626

27-
`exec`(command: string, args: string[], options?: { stream?: boolean }): Execute a command in the sandbox.
28-
`gitCheckout`(repoUrl: string, options: { branch?: string; targetDir?: string; stream?: boolean }): Checkout a git repository in the sandbox.
29-
`mkdir`(path: string, options: { recursive?: boolean; stream?: boolean }): Create a directory in the sandbox.
30-
`writeFile`(path: string, content: string, options: { encoding?: string; stream?: boolean }): Write content to a file in the sandbox.
31-
`readFile`(path: string, options: { encoding?: string; stream?: boolean }): Read content from a file in the sandbox.
32-
`deleteFile`(path: string, options?: { stream?: boolean }): Delete a file from the sandbox.
33-
`renameFile`(oldPath: string, newPath: string, options?: { stream?: boolean }): Rename a file in the sandbox.
34-
`moveFile`(sourcePath: string, destinationPath: string, options?: { stream?: boolean }): Move a file from one location to another in the sandbox.
35-
`ping`() : Ping the sandbox.
27+
#### `exec(command: string, args: string[], options?: { stream?: boolean })`
3628

29+
- Execute a command in the sandbox.
30+
31+
#### `gitCheckout(repoUrl: string, options: { branch?: string; targetDir?: string; stream?: boolean })`
32+
33+
- Checkout a git repository in the sandbox.
34+
35+
#### `mkdir(path: string, options: { recursive?: boolean; stream?: boolean })`
36+
37+
- Create a directory in the sandbox.
38+
39+
#### `writeFile(path: string, content: string, options: { encoding?: string; stream?: boolean })`
40+
41+
- Write content to a file in the sandbox.
42+
43+
#### `readFile(path: string, options: { encoding?: string; stream?: boolean })`
44+
45+
- Read content from a file in the sandbox.
46+
47+
#### `deleteFile(path: string, options?: { stream?: boolean })`
48+
49+
- Delete a file from the sandbox.
50+
51+
#### `renameFile(oldPath: string, newPath: string, options?: { stream?: boolean })`
52+
53+
- Rename a file in the sandbox.
54+
55+
#### `moveFile(sourcePath: string, destinationPath: string, options?: { stream?: boolean })`
56+
- Move a file from one location to another in the sandbox.
57+
58+
#### `ping()`
59+
- Ping the sandbox.
3760

3861
Sandboxes are still experimental. We're using them to explore how isolated, container-like workloads might scale on Cloudflare — and to help define the developer experience around them.
3962

0 commit comments

Comments
 (0)