Skip to content

Commit 0b3d0c4

Browse files
Expand startProcess() options documentation
Add comprehensive documentation for all startProcess() options including timeout, processId, encoding, and autoCleanup parameters that were missing from the API reference. 🤖 Generated with Claude Code Co-Authored-By: Claude <[email protected]>
1 parent 8ccf8bf commit 0b3d0c4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/content/docs/sandbox/api/commands.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,12 @@ const process = await sandbox.startProcess(command: string, options?: ProcessOpt
131131
**Parameters**:
132132
- `command` - The command to start as a background process
133133
- `options` (optional):
134-
- `cwd` - Working directory
135-
- `env` - Environment variables
134+
- `cwd` - Working directory for this process
135+
- `env` - Environment variables for this process
136+
- `timeout` - Maximum execution time in milliseconds
137+
- `processId` - Custom process ID (auto-generated if not provided)
138+
- `encoding` - Output encoding (default: `"utf-8"`)
139+
- `autoCleanup` - Automatically cleanup process resources (default: `true`)
136140

137141
**Returns**: `Promise<ProcessInfo>` with `id`, `pid`, `command`, `status`
138142

0 commit comments

Comments
 (0)