@lightningai/sdk 2026.6.8 → 2026.6.25
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 +2 -97
- package/dist/command.d.ts +27 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +29 -0
- package/dist/command.js.map +1 -1
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -8
- package/dist/config.js.map +1 -1
- package/dist/filesystem.d.ts +3 -0
- package/dist/filesystem.d.ts.map +1 -1
- package/dist/filesystem.js +5 -0
- package/dist/filesystem.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lightning_cloud/openapi/SandboxesService.d.ts +10 -49
- package/dist/lightning_cloud/openapi/SandboxesService.d.ts.map +1 -1
- package/dist/lightning_cloud/openapi/SandboxesService.js +14 -51
- package/dist/lightning_cloud/openapi/SandboxesService.js.map +1 -1
- package/dist/lightning_cloud/openapi/data-contracts.d.ts +90 -77
- package/dist/lightning_cloud/openapi/data-contracts.d.ts.map +1 -1
- package/dist/network-policy.d.ts +49 -0
- package/dist/network-policy.d.ts.map +1 -0
- package/dist/network-policy.js +61 -0
- package/dist/network-policy.js.map +1 -0
- package/dist/process.d.ts +4 -3
- package/dist/process.d.ts.map +1 -1
- package/dist/process.js +3 -5
- package/dist/process.js.map +1 -1
- package/dist/pty.d.ts +5 -0
- package/dist/pty.d.ts.map +1 -1
- package/dist/pty.js +5 -0
- package/dist/pty.js.map +1 -1
- package/dist/sandbox.d.ts +90 -4
- package/dist/sandbox.d.ts.map +1 -1
- package/dist/sandbox.js +240 -27
- package/dist/sandbox.js.map +1 -1
- package/dist/types.d.ts +129 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,45 +1,165 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types for the Sandbox SDK public API and configuration.
|
|
3
3
|
*/
|
|
4
|
+
import type { V1NetworkPolicy } from "./lightning_cloud/openapi/data-contracts.js";
|
|
5
|
+
import type { NetworkPolicyInput } from "./network-policy.js";
|
|
4
6
|
export interface SandboxConfig {
|
|
5
|
-
/** API key (falls back to `LIGHTNING_API_KEY`). */
|
|
7
|
+
/** API key (falls back to `LIGHTNING_SANDBOX_API_KEY`, then `LIGHTNING_API_KEY`). */
|
|
6
8
|
apiKey?: string;
|
|
7
9
|
/** Lightning Cloud base URL (falls back to `LIGHTNING_CLOUD_URL`, then production). */
|
|
8
10
|
baseUrl?: string;
|
|
9
|
-
/** Default organization ID for requests when not passed per call. */
|
|
10
|
-
organizationId?: string;
|
|
11
11
|
}
|
|
12
12
|
/** Raw sandbox record returned by the Lightning API (camelCase JSON). */
|
|
13
13
|
export interface SandboxData {
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
|
+
/** Organization the sandbox belongs to (derived from the API key; read-back only). */
|
|
16
17
|
organizationId: string;
|
|
18
|
+
/** Cluster placement. Internal plumbing for PTY attach; not a user-facing field. */
|
|
17
19
|
clusterId: string;
|
|
18
20
|
instanceType: string;
|
|
19
21
|
spot: boolean;
|
|
20
22
|
status: string;
|
|
21
|
-
cloudspaceId: string;
|
|
22
23
|
ports: string[];
|
|
23
24
|
runtime: string;
|
|
25
|
+
/** Custom OCI image the sandbox was created with (`""` for a curated runtime). */
|
|
26
|
+
image: string;
|
|
27
|
+
/** Project Docker-registry Secret used to pull `image` (`""` when unused). */
|
|
28
|
+
imageSecretRef: string;
|
|
29
|
+
/** Source snapshot this sandbox was restored from (`""` otherwise). */
|
|
30
|
+
snapshotId: string;
|
|
31
|
+
/** User who created the sandbox (`""` if not tracked). */
|
|
32
|
+
userId: string;
|
|
24
33
|
createdAt: string;
|
|
25
34
|
updatedAt: string;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the sandbox persists its filesystem across stops/idle via
|
|
37
|
+
* automatic snapshots. See {@link CreateSandboxParams.persistent}.
|
|
38
|
+
*/
|
|
39
|
+
persistent: boolean;
|
|
40
|
+
/** Project the sandbox belongs to (empty when not scoped to a project). */
|
|
41
|
+
projectId: string;
|
|
42
|
+
/** Writable disk size in GB (0 when inheriting the instance-type default). */
|
|
43
|
+
storageGb: number;
|
|
44
|
+
/** Maximum lifetime in milliseconds (0 = no timeout). */
|
|
45
|
+
timeout: number;
|
|
46
|
+
/** Raw egress policy as returned by the API (undefined = open egress). */
|
|
47
|
+
networkPolicy?: V1NetworkPolicy;
|
|
26
48
|
}
|
|
27
49
|
export interface CreateSandboxParams {
|
|
28
50
|
name?: string;
|
|
29
51
|
instanceType: string;
|
|
30
52
|
spot?: boolean;
|
|
31
53
|
ports?: number[];
|
|
32
|
-
organizationId?: string;
|
|
33
|
-
clusterId?: string;
|
|
34
|
-
cloudspaceId?: string;
|
|
35
54
|
runtime?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Custom OCI image reference for the rootfs (e.g.
|
|
57
|
+
* `"ghcr.io/myorg/img:latest"`). Mutually exclusive with `runtime`; CPU
|
|
58
|
+
* sandboxes only.
|
|
59
|
+
*/
|
|
60
|
+
image?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Name of a project-scoped Docker-registry Secret used to pull a private
|
|
63
|
+
* `image`. Only valid together with `image`.
|
|
64
|
+
*/
|
|
65
|
+
imageSecretRef?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Egress firewall policy, applied at create time only. Omit for open egress
|
|
68
|
+
* (`"allow-all"`), pass `"deny-all"`, or a {@link NetworkPolicy} CIDR
|
|
69
|
+
* allowlist.
|
|
70
|
+
*/
|
|
71
|
+
networkPolicy?: NetworkPolicyInput;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the sandbox persists its state across restarts via automatic
|
|
74
|
+
* snapshots. Defaults to the platform default (currently `true`) when
|
|
75
|
+
* omitted.
|
|
76
|
+
*
|
|
77
|
+
* When `true`, the controlplane automatically snapshots the sandbox on
|
|
78
|
+
* idle, sleep, or eviction and transparently restores it the next time the
|
|
79
|
+
* sandbox id is accessed — making the sandbox id a durable handle. Pair
|
|
80
|
+
* with {@link Sandbox.stop} to pause (capturing an auto-snapshot) and
|
|
81
|
+
* {@link Sandbox.resume} to bring it back by id.
|
|
82
|
+
*
|
|
83
|
+
* When `false`, the sandbox is best-effort ephemeral: state is lost on
|
|
84
|
+
* stop, idle reclaim, or host reschedule.
|
|
85
|
+
*/
|
|
86
|
+
persistent?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Create the sandbox from an existing snapshot id (see
|
|
89
|
+
* {@link Sandbox.createSnapshot}). The new sandbox boots with the snapshot's
|
|
90
|
+
* filesystem.
|
|
91
|
+
*/
|
|
92
|
+
snapshotId?: string;
|
|
93
|
+
/** Maximum duration in milliseconds before the sandbox is auto-stopped. */
|
|
94
|
+
timeout?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Override for the sandbox's writable disk size, in GB. CPU sandboxes only.
|
|
97
|
+
* When omitted the sandbox inherits the instance-type default (≈5 GB for
|
|
98
|
+
* `cpu-1`; 10 / 40 / 60 / 80 GB for `cpu-2` / `cpu-4` / `cpu-8` / `cpu-16`).
|
|
99
|
+
*/
|
|
100
|
+
storageGb?: number;
|
|
101
|
+
}
|
|
102
|
+
/** Parameters for resuming a stopped/paused persistent sandbox by id. */
|
|
103
|
+
export interface ResumeSandboxParams {
|
|
104
|
+
sandboxId: string;
|
|
105
|
+
}
|
|
106
|
+
/** Options for {@link Sandbox.createSnapshot}. */
|
|
107
|
+
export interface CreateSnapshotParams {
|
|
108
|
+
/** Tar exclude override for this snapshot. Platform default applies when unset. */
|
|
109
|
+
excludes?: string[];
|
|
110
|
+
/**
|
|
111
|
+
* Expiration in milliseconds. Platform default applies when unset; pass `0`
|
|
112
|
+
* to request no expiration.
|
|
113
|
+
*/
|
|
114
|
+
expiration?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Poll until the snapshot reaches `ready` before resolving. Defaults to
|
|
117
|
+
* `true`; pass `false` to return the `saving` row immediately.
|
|
118
|
+
*/
|
|
119
|
+
wait?: boolean;
|
|
120
|
+
/** Max time in ms to wait for `ready` when `wait` is true. Defaults to 600000. */
|
|
121
|
+
waitTimeoutMs?: number;
|
|
122
|
+
}
|
|
123
|
+
/** A point-in-time snapshot of a sandbox's filesystem. */
|
|
124
|
+
export interface SnapshotData {
|
|
125
|
+
id: string;
|
|
126
|
+
organizationId: string;
|
|
127
|
+
projectId: string;
|
|
128
|
+
sourceSandboxId: string;
|
|
129
|
+
/** Source sandbox's name at capture time (`""` if not recorded). */
|
|
130
|
+
sourceSandboxName: string;
|
|
131
|
+
/** Source sandbox's instance type at capture time (`""` if not recorded). */
|
|
132
|
+
sourceSandboxInstanceType: string;
|
|
133
|
+
/** `saving` | `ready` | `failed`. Only `ready` snapshots are restorable. */
|
|
134
|
+
status: string;
|
|
135
|
+
sizeBytes: number;
|
|
136
|
+
/** Snapshot creation time (parsed to a `Date`, matching {@link SandboxData}). */
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
/** Snapshot last-update time (parsed to a `Date`). */
|
|
139
|
+
updatedAt: Date;
|
|
140
|
+
/** Expiry time as a `Date`, or `null` when the snapshot never expires. */
|
|
141
|
+
expiresAt: Date | null;
|
|
142
|
+
runtime: string;
|
|
143
|
+
/** Resolved runtime image reference (`""` if not recorded). */
|
|
144
|
+
runtimeImage: string;
|
|
145
|
+
/** Content digest of the snapshot rootfs (`""` if not recorded). */
|
|
146
|
+
rootfsDigest: string;
|
|
147
|
+
/** Paths excluded from the snapshot tarball. */
|
|
148
|
+
excludes: string[];
|
|
149
|
+
/** `true` for control-plane auto-snapshots (persistent stop); `false` for user snapshots. */
|
|
150
|
+
auto: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface ListSnapshotsParams {
|
|
153
|
+
name?: string;
|
|
154
|
+
pageToken?: string;
|
|
155
|
+
limit?: number;
|
|
156
|
+
/** Order by creation time: `"asc"` (oldest first) or `"desc"` (newest first). */
|
|
157
|
+
sortOrder?: "asc" | "desc";
|
|
36
158
|
}
|
|
37
159
|
export interface GetSandboxParams {
|
|
38
160
|
sandboxId: string;
|
|
39
|
-
organizationId?: string;
|
|
40
161
|
}
|
|
41
162
|
export interface ListSandboxesParams {
|
|
42
|
-
organizationId?: string;
|
|
43
163
|
pageToken?: string;
|
|
44
164
|
limit?: number;
|
|
45
165
|
}
|
|
@@ -54,7 +174,6 @@ export interface RunCommandOpts {
|
|
|
54
174
|
args?: string[];
|
|
55
175
|
cwd?: string;
|
|
56
176
|
env?: Record<string, string>;
|
|
57
|
-
sudo?: boolean;
|
|
58
177
|
detached?: boolean;
|
|
59
178
|
}
|
|
60
179
|
export interface CommandStatus {
|
|
@@ -111,11 +230,6 @@ export interface PtyCreateOpts {
|
|
|
111
230
|
* SDK process (cross-process persistence requires a server follow-up).
|
|
112
231
|
*/
|
|
113
232
|
sessionName: string;
|
|
114
|
-
/**
|
|
115
|
-
* Cluster the sandbox is running on. Required because the controlplane
|
|
116
|
-
* attach endpoint is keyed on `(clusterId, sandboxId)`.
|
|
117
|
-
*/
|
|
118
|
-
clusterId: string;
|
|
119
233
|
/** Working directory the session starts in. Sent as `cd ... && clear`. */
|
|
120
234
|
cwd?: string;
|
|
121
235
|
/** Environment variables exported in the session before any user input. */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,KAAK,EAAiB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,MAAM,WAAW,aAAa;IAC5B,qFAAqF;IACrF,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;IAChE,MAAM,EAAE,OAAO,CAAC;IAChB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/types.js
CHANGED
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightningai/sdk",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.25",
|
|
4
4
|
"description": "Lightning AI Sandbox SDK — create and manage sandboxes, run commands, read/write files",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"clean": "rm -rf dist",
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"prepublishOnly": "npm run clean && npm run build",
|
|
25
|
-
"test": "node --test --import tsx tests/config.test.ts tests/sandbox.test.ts tests/filesystem.test.ts tests/pty.test.ts"
|
|
25
|
+
"test": "node --test --import tsx tests/config.test.ts tests/sandbox.test.ts tests/filesystem.test.ts tests/pty.test.ts tests/persistence.test.ts"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"axios": "^1.7.0"
|