@lightningai/sdk 2026.4.25 → 2026.5.5

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 +4 -5
  2. package/package.json +15 -15
package/README.md CHANGED
@@ -12,6 +12,9 @@ TypeScript SDK for [Lightning AI](https://lightning.ai) sandboxes: create and ma
12
12
  npm install @lightningai/sdk
13
13
  ```
14
14
 
15
+ > **Note**
16
+ > This package is published as an ES Module (ESM) only. For applications using CommonJS, use `await import("@lightningai/sdk")` to import and use this package.
17
+
15
18
  ## Quick start
16
19
 
17
20
  Set an API key (or pass `apiKey` to `Sandbox.configure()`):
@@ -32,11 +35,7 @@ async function main() {
32
35
  instanceType: "cpu-1",
33
36
  });
34
37
 
35
- const result = await sandbox.runCommand({
36
- cmd: "sh",
37
- args: ["-c", 'echo "Hello, World!"'],
38
- env: { NODE_ENV: "development" },
39
- });
38
+ const result = await sandbox.runCommand("echo", ["Hello, World!"]);
40
39
  console.log(result.output);
41
40
 
42
41
  await sandbox.delete();
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
1
  {
2
2
  "name": "@lightningai/sdk",
3
- "version": "2026.04.25",
3
+ "version": "2026.5.5",
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",
7
7
  "engines": {
8
- "node": ">=22.0.0"
8
+ "node": ">=22.0.0"
9
9
  },
10
10
  "main": "dist/index.js",
11
11
  "types": "dist/index.d.ts",
12
12
  "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "default": "./dist/index.js"
16
- }
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
17
  },
18
18
  "files": [
19
- "dist"
19
+ "dist"
20
20
  ],
21
21
  "scripts": {
22
- "clean": "rm -rf dist",
23
- "build": "tsc",
24
- "prepublishOnly": "npm run clean && npm run build",
22
+ "clean": "rm -rf dist",
23
+ "build": "tsc",
24
+ "prepublishOnly": "npm run clean && npm run build",
25
25
  "test": "node --test --import tsx tests/config.test.ts tests/sandbox.test.ts"
26
26
  },
27
27
  "dependencies": {
28
28
  "axios": "^1.7.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "^22.0.0",
32
- "tsx": "^4.0.0",
33
- "typescript": "^5.4.0"
31
+ "@types/node": "^22.0.0",
32
+ "tsx": "^4.0.0",
33
+ "typescript": "^5.4.0"
34
34
  },
35
35
  "publishConfig": {
36
- "access": "public"
36
+ "access": "public"
37
37
  }
38
- }
38
+ }