@spheron/sandbox 0.1.0 → 0.1.1
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 +1 -1
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Run commands and move files on a Spheron Agent GPU Sandbox from your own code. I
|
|
|
4
4
|
|
|
5
5
|
A sandbox is a real GPU VM you keep for hours: files, packages and models stay on it between jobs, and your own SSH key keeps working the whole time. A VM takes a few minutes to boot, so it suits training, fine-tuning, evals and long jobs, not one-off snippets.
|
|
6
6
|
|
|
7
|
-
Zero dependencies. Node 18 or later, Bun and Deno.
|
|
7
|
+
Zero dependencies. Node 18 or later, Bun and Deno. It is an ES module: CommonJS code loads it with `require('@spheron/sandbox')` on Node 20.19+ and 22.12+, or with `await import('@spheron/sandbox')` on older Node.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
bun add @spheron/sandbox
|
package/dist/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpheronApiError } from './errors.js';
|
|
2
2
|
export declare const DEFAULT_BASE_URL = "https://app.spheron.ai";
|
|
3
|
-
export declare const SDK_VERSION = "0.1.
|
|
3
|
+
export declare const SDK_VERSION = "0.1.1";
|
|
4
4
|
export interface ClientOptions {
|
|
5
5
|
/** A GPU VM API key (`sai_pk_...`). Defaults to the SPHERON_API_KEY environment variable. */
|
|
6
6
|
apiKey?: string;
|
package/dist/http.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthenticationError, InstanceNotRunningError, NotFoundError, RateLimitError, SandboxNotReadyError, SandboxUnreachableError, SpheronApiError, SpheronError, } from './errors.js';
|
|
2
2
|
export const DEFAULT_BASE_URL = 'https://app.spheron.ai';
|
|
3
|
-
export const SDK_VERSION = '0.1.
|
|
3
|
+
export const SDK_VERSION = '0.1.1';
|
|
4
4
|
const CLIENT_NAME = `spheron-sandbox-js/${SDK_VERSION}`;
|
|
5
5
|
/** The API answers these two 409s with exactly this text (shipped API text never changes), so they map to types. */
|
|
6
6
|
const NOT_RUNNING = 'This instance is not running.';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spheron/sandbox",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Run commands and move files on a Spheron Agent GPU Sandbox from code.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://docs.spheron.ai/sandbox-sdk",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/index.js"
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
17
|
"files": [
|