@computesdk/archil 0.4.20 → 0.4.22
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 +5 -5
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- 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.
|
|
52
|
+
const byId = await provider.sandbox.getById(sandbox.instanceId);
|
|
53
53
|
|
|
54
|
-
await provider.sandbox.destroy(sandbox.
|
|
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.
|
|
79
|
+
const resumed = await provider.sandbox.getById(sandbox.instanceId);
|
|
80
80
|
|
|
81
|
-
await provider.sandbox.destroy(sandbox.
|
|
81
|
+
await provider.sandbox.destroy(sandbox.instanceId); // deletes the sandbox
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
Sandbox `create` accepts generic `
|
|
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/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _computesdk_provider from '@computesdk/provider';
|
|
2
|
+
import * as computesdk from 'computesdk';
|
|
2
3
|
import { Archil, Sandbox } from 'disk';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -45,6 +46,6 @@ interface ArchilSandbox {
|
|
|
45
46
|
resolved: ResolvedConfig;
|
|
46
47
|
createdAt: Date;
|
|
47
48
|
}
|
|
48
|
-
declare const archil: (config?: ArchilConfig) => _computesdk_provider.Provider<ArchilSandbox, any, any>;
|
|
49
|
+
declare const archil: (config?: ArchilConfig) => _computesdk_provider.Provider<ArchilSandbox, any, any, computesdk.Volume>;
|
|
49
50
|
|
|
50
51
|
export { type ArchilConfig, type ArchilExecutionMode, type ArchilSandbox, archil };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _computesdk_provider from '@computesdk/provider';
|
|
2
|
+
import * as computesdk from 'computesdk';
|
|
2
3
|
import { Archil, Sandbox } from 'disk';
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -45,6 +46,6 @@ interface ArchilSandbox {
|
|
|
45
46
|
resolved: ResolvedConfig;
|
|
46
47
|
createdAt: Date;
|
|
47
48
|
}
|
|
48
|
-
declare const archil: (config?: ArchilConfig) => _computesdk_provider.Provider<ArchilSandbox, any, any>;
|
|
49
|
+
declare const archil: (config?: ArchilConfig) => _computesdk_provider.Provider<ArchilSandbox, any, any, computesdk.Volume>;
|
|
49
50
|
|
|
50
51
|
export { type ArchilConfig, type ArchilExecutionMode, type ArchilSandbox, archil };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@computesdk/archil",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.22",
|
|
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.
|
|
23
|
-
"@computesdk/provider": "2.1.
|
|
22
|
+
"computesdk": "4.1.13",
|
|
23
|
+
"@computesdk/provider": "2.1.15"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^20.0.0",
|