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.
@@ -4977,25 +4977,25 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
4977
4977
  name: { type: "string", short: "n" },
4978
4978
  cpus: { type: "string" },
4979
4979
  memory: { type: "string" },
4980
- disk: { type: "string" },
4980
+ disk_mb: { type: "string" },
4981
4981
  public: { type: "boolean", default: false }
4982
4982
  }
4983
4983
  });
4984
4984
  const dockerfilePath = parsed.positionals[0];
4985
4985
  if (!dockerfilePath) {
4986
- throw new Error("Usage: tensorlake-create-sandbox-image <dockerfile_path> [--name NAME] [--cpus N] [--memory MB] [--disk GB] [--public]");
4986
+ throw new Error("Usage: tensorlake-create-sandbox-image <dockerfile_path> [--name NAME] [--cpus N] [--memory MB] [--disk_mb MB] [--public]");
4987
4987
  }
4988
4988
  const cpus = parsed.values.cpus != null ? Number(parsed.values.cpus) : void 0;
4989
4989
  const memoryMb = parsed.values.memory != null ? Number(parsed.values.memory) : void 0;
4990
- const diskGb = parsed.values.disk != null ? Number(parsed.values.disk) : void 0;
4990
+ const diskMb = parsed.values.disk_mb != null ? Number(parsed.values.disk_mb) : void 0;
4991
4991
  if (cpus != null && !Number.isFinite(cpus)) {
4992
4992
  throw new Error(`Invalid --cpus value: ${parsed.values.cpus}`);
4993
4993
  }
4994
4994
  if (memoryMb != null && !Number.isInteger(memoryMb)) {
4995
4995
  throw new Error(`Invalid --memory value: ${parsed.values.memory}`);
4996
4996
  }
4997
- if (diskGb != null && !Number.isInteger(diskGb)) {
4998
- throw new Error(`Invalid --disk value: ${parsed.values.disk}`);
4997
+ if (diskMb != null && !Number.isInteger(diskMb)) {
4998
+ throw new Error(`Invalid --disk_mb value: ${parsed.values.disk_mb}`);
4999
4999
  }
5000
5000
  await createSandboxImage(
5001
5001
  dockerfilePath,
@@ -5003,7 +5003,7 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
5003
5003
  registeredName: parsed.values.name,
5004
5004
  cpus,
5005
5005
  memoryMb,
5006
- diskMb: diskGb != null ? diskGb * 1024 : void 0,
5006
+ diskMb,
5007
5007
  isPublic: parsed.values.public
5008
5008
  },
5009
5009
  { emit: ndjsonStdoutEmit }