@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.
Files changed (2) hide show
  1. package/README.md +7 -12
  2. 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-Based** - Modern async/await API
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.API_KEY`)
386
- - `baseUrl?: string` - Base API URL (defaults to `process.env.VOIDRUN_BASE_URL`)
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
- ### "Base URL is required"
784
-
785
- Pass the base URL in the constructor:
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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidrun/sdk",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "VoidRun AI Sandbox SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.cjs",