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.
Binary file
Binary file
Binary file
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
- disk: { type: "string" },
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] [--disk GB] [--public]");
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 diskGb = parsed.values.disk != null ? Number(parsed.values.disk) : void 0;
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 (diskGb != null && !Number.isInteger(diskGb)) {
5152
- throw new Error(`Invalid --disk value: ${parsed.values.disk}`);
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: diskGb != null ? diskGb * 1024 : void 0,
5160
+ diskMb,
5161
5161
  isPublic: parsed.values.public
5162
5162
  },
5163
5163
  { emit: ndjsonStdoutEmit }