| Feature | TypeScript | Python | Go | Rust |
|---|---|---|---|---|
| Execution | ||||
| exec() (REST) | ✅ | ✅ | ✅ | ✅ |
| execStream() (WebSocket) | ✅ | ✅ | ✅ | ❌ |
| openTerminal() (WebSocket) | ✅ | ✅ | ✅ | ❌ |
| File Operations | ||||
| readFile() | ✅ | ✅ | ✅ | ✅ |
| writeFile() | ✅ | ✅ | ✅ | ✅ |
| listDir() | ✅ | ✅ | ✅ | ✅ |
| removeFile() | ✅ | ✅ | ✅ | ✅ |
| Events | ||||
| watchFiles() | ✅ | ✅ | ✅ | ✅ |
| onPortOpen() | ✅ | ✅ | ✅ | ✅ |
| Lifecycle | ||||
| keepAlive() | ✅ | ✅ | ✅ | ✅ |
| destroy() | ✅ | ✅ | ✅ | ✅ |
| Resilience | ||||
| Auto-reconnect | ✅ | ✅ | ✅ | ❌ |
TypeScript:
npm install @xgen-sandbox/sdkPython:
pip install xgen-sandboxGo:
go get github.com/xgen-sandbox/sdk-goRust:
[dependencies]
xgen-sandbox = "0.1"