@voidrun/sdk 0.0.30 → 0.0.31
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.
- package/README.md +7 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ A powerful, type-safe SDK for interacting with VoidRun AI Sandboxes. Execute cod
|
|
|
15
15
|
- 🧠 **Code Interpreter** - Easy multi-language code execution (Python, JavaScript, Bash)
|
|
16
16
|
- ⚡ **Background Commands** - Run, list, kill, and attach to background processes
|
|
17
17
|
- 🔐 **Type-Safe** - Full TypeScript support with generated types from OpenAPI
|
|
18
|
-
- 🎯 **Promise-
|
|
18
|
+
- 🎯 **Promise-aokd** - Modern async/await API
|
|
19
19
|
|
|
20
20
|
## Installation
|
|
21
21
|
|
|
@@ -382,8 +382,8 @@ new VoidRun(options?: VoidRunConfig)
|
|
|
382
382
|
|
|
383
383
|
**Options:**
|
|
384
384
|
|
|
385
|
-
- `apiKey?: string` - API key (defaults to `process.env.
|
|
386
|
-
- `baseUrl?: string` - Base API URL (defaults to `process.env.
|
|
385
|
+
- `apiKey?: string` - API key (defaults to `process.env.VR_API_KEY`)
|
|
386
|
+
- `baseUrl?: string` - Base API URL (defaults to `process.env.VR_API_URL`)
|
|
387
387
|
- `orgId?: string` - Organization ID (optional)
|
|
388
388
|
|
|
389
389
|
**Methods:**
|
|
@@ -770,7 +770,7 @@ npm run publish
|
|
|
770
770
|
|
|
771
771
|
## Troubleshooting
|
|
772
772
|
|
|
773
|
-
### "API key is required"
|
|
773
|
+
### "API key is required, either pass in constructor or in env vars"
|
|
774
774
|
|
|
775
775
|
Pass your API key in the constructor:
|
|
776
776
|
|
|
@@ -780,14 +780,9 @@ const vr = new VoidRun({
|
|
|
780
780
|
});
|
|
781
781
|
```
|
|
782
782
|
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
```typescript
|
|
788
|
-
const vr = new VoidRun({
|
|
789
|
-
apiKey: "your-api-key"
|
|
790
|
-
});
|
|
783
|
+
Pass in env vars(.env)
|
|
784
|
+
```bash
|
|
785
|
+
VR_API_KEY=vr_sddfgd2353erggdfgfdgdgdfg
|
|
791
786
|
```
|
|
792
787
|
|
|
793
788
|
### "Sandbox creation failed"
|