@computesdk/archil 0.4.20 → 0.4.21

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 +5 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -49,9 +49,9 @@ const result = await provider.sandbox.runCommand(sandbox, 'echo hello > /mnt/not
49
49
  console.log(result.stdout); // "hello"
50
50
 
51
51
  // Look up later by disk id:
52
- const byId = await provider.sandbox.getById(sandbox.sandboxId);
52
+ const byId = await provider.sandbox.getById(sandbox.instanceId);
53
53
 
54
- await provider.sandbox.destroy(sandbox.sandboxId);
54
+ await provider.sandbox.destroy(sandbox.instanceId);
55
55
  ```
56
56
 
57
57
  `create()` requires top-level `diskId` as the target disk id.
@@ -76,12 +76,12 @@ await sandbox.runCommand('npm ci', { cwd: '/repo' });
76
76
  await sandbox.runCommand('npm test', { cwd: '/repo' });
77
77
 
78
78
  // Paused sandboxes are resumed automatically on getById/runCommand.
79
- const resumed = await provider.sandbox.getById(sandbox.sandboxId);
79
+ const resumed = await provider.sandbox.getById(sandbox.instanceId);
80
80
 
81
- await provider.sandbox.destroy(sandbox.sandboxId); // deletes the sandbox
81
+ await provider.sandbox.destroy(sandbox.instanceId); // deletes the sandbox
82
82
  ```
83
83
 
84
- Sandbox `create` accepts generic `CreateSandboxOptions` fields (`vcpus`/`cpu`/`cpus`,
84
+ Sandbox `create` accepts generic `CreateInstanceOptions` fields (`vcpus`/`cpu`/`cpus`,
85
85
  `memory`/`memoryMiB`, `image`/`templateId`, `envs`, `timeout` (ms → `maxTtlSeconds`))
86
86
  plus the Archil-specific keys shown above.
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@computesdk/archil",
3
- "version": "0.4.20",
3
+ "version": "0.4.21",
4
4
  "description": "Archil provider for ComputeSDK - exec commands against an Archil disk",
5
5
  "author": "ComputeSDK",
6
6
  "license": "MIT",
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "disk": "^1.1.2",
22
- "computesdk": "4.1.11",
23
- "@computesdk/provider": "2.1.13"
22
+ "computesdk": "4.1.12",
23
+ "@computesdk/provider": "2.1.14"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^20.0.0",