tensorlake 0.5.2 → 0.5.3
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/dist/bin/darwin-arm64/tensorlake +0 -0
- package/dist/bin/darwin-arm64/tl +0 -0
- package/dist/bin/linux-x64/tensorlake +0 -0
- package/dist/bin/linux-x64/tl +0 -0
- package/dist/bin/win32-x64/tensorlake.exe +0 -0
- package/dist/bin/win32-x64/tl.exe +0 -0
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/sandbox-image.cjs +6 -6
- package/dist/sandbox-image.cjs.map +1 -1
- package/dist/sandbox-image.js +6 -6
- package/dist/sandbox-image.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
package/dist/bin/darwin-arm64/tl
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/bin/linux-x64/tl
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -5131,25 +5131,25 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
|
|
|
5131
5131
|
name: { type: "string", short: "n" },
|
|
5132
5132
|
cpus: { type: "string" },
|
|
5133
5133
|
memory: { type: "string" },
|
|
5134
|
-
|
|
5134
|
+
disk_mb: { type: "string" },
|
|
5135
5135
|
public: { type: "boolean", default: false }
|
|
5136
5136
|
}
|
|
5137
5137
|
});
|
|
5138
5138
|
const dockerfilePath = parsed.positionals[0];
|
|
5139
5139
|
if (!dockerfilePath) {
|
|
5140
|
-
throw new Error("Usage: tensorlake-create-sandbox-image <dockerfile_path> [--name NAME] [--cpus N] [--memory MB] [--
|
|
5140
|
+
throw new Error("Usage: tensorlake-create-sandbox-image <dockerfile_path> [--name NAME] [--cpus N] [--memory MB] [--disk_mb MB] [--public]");
|
|
5141
5141
|
}
|
|
5142
5142
|
const cpus = parsed.values.cpus != null ? Number(parsed.values.cpus) : void 0;
|
|
5143
5143
|
const memoryMb = parsed.values.memory != null ? Number(parsed.values.memory) : void 0;
|
|
5144
|
-
const
|
|
5144
|
+
const diskMb = parsed.values.disk_mb != null ? Number(parsed.values.disk_mb) : void 0;
|
|
5145
5145
|
if (cpus != null && !Number.isFinite(cpus)) {
|
|
5146
5146
|
throw new Error(`Invalid --cpus value: ${parsed.values.cpus}`);
|
|
5147
5147
|
}
|
|
5148
5148
|
if (memoryMb != null && !Number.isInteger(memoryMb)) {
|
|
5149
5149
|
throw new Error(`Invalid --memory value: ${parsed.values.memory}`);
|
|
5150
5150
|
}
|
|
5151
|
-
if (
|
|
5152
|
-
throw new Error(`Invalid --
|
|
5151
|
+
if (diskMb != null && !Number.isInteger(diskMb)) {
|
|
5152
|
+
throw new Error(`Invalid --disk_mb value: ${parsed.values.disk_mb}`);
|
|
5153
5153
|
}
|
|
5154
5154
|
await createSandboxImage(
|
|
5155
5155
|
dockerfilePath,
|
|
@@ -5157,7 +5157,7 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
|
|
|
5157
5157
|
registeredName: parsed.values.name,
|
|
5158
5158
|
cpus,
|
|
5159
5159
|
memoryMb,
|
|
5160
|
-
diskMb
|
|
5160
|
+
diskMb,
|
|
5161
5161
|
isPublic: parsed.values.public
|
|
5162
5162
|
},
|
|
5163
5163
|
{ emit: ndjsonStdoutEmit }
|