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.
@@ -4952,25 +4952,25 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
4952
4952
  name: { type: "string", short: "n" },
4953
4953
  cpus: { type: "string" },
4954
4954
  memory: { type: "string" },
4955
- disk: { type: "string" },
4955
+ disk_mb: { type: "string" },
4956
4956
  public: { type: "boolean", default: false }
4957
4957
  }
4958
4958
  });
4959
4959
  const dockerfilePath = parsed.positionals[0];
4960
4960
  if (!dockerfilePath) {
4961
- throw new Error("Usage: tensorlake-create-sandbox-image <dockerfile_path> [--name NAME] [--cpus N] [--memory MB] [--disk GB] [--public]");
4961
+ throw new Error("Usage: tensorlake-create-sandbox-image <dockerfile_path> [--name NAME] [--cpus N] [--memory MB] [--disk_mb MB] [--public]");
4962
4962
  }
4963
4963
  const cpus = parsed.values.cpus != null ? Number(parsed.values.cpus) : void 0;
4964
4964
  const memoryMb = parsed.values.memory != null ? Number(parsed.values.memory) : void 0;
4965
- const diskGb = parsed.values.disk != null ? Number(parsed.values.disk) : void 0;
4965
+ const diskMb = parsed.values.disk_mb != null ? Number(parsed.values.disk_mb) : void 0;
4966
4966
  if (cpus != null && !Number.isFinite(cpus)) {
4967
4967
  throw new Error(`Invalid --cpus value: ${parsed.values.cpus}`);
4968
4968
  }
4969
4969
  if (memoryMb != null && !Number.isInteger(memoryMb)) {
4970
4970
  throw new Error(`Invalid --memory value: ${parsed.values.memory}`);
4971
4971
  }
4972
- if (diskGb != null && !Number.isInteger(diskGb)) {
4973
- throw new Error(`Invalid --disk value: ${parsed.values.disk}`);
4972
+ if (diskMb != null && !Number.isInteger(diskMb)) {
4973
+ throw new Error(`Invalid --disk_mb value: ${parsed.values.disk_mb}`);
4974
4974
  }
4975
4975
  await createSandboxImage(
4976
4976
  dockerfilePath,
@@ -4978,7 +4978,7 @@ async function runCreateSandboxImageCli(argv = process.argv.slice(2)) {
4978
4978
  registeredName: parsed.values.name,
4979
4979
  cpus,
4980
4980
  memoryMb,
4981
- diskMb: diskGb != null ? diskGb * 1024 : void 0,
4981
+ diskMb,
4982
4982
  isPublic: parsed.values.public
4983
4983
  },
4984
4984
  { emit: ndjsonStdoutEmit }