trainfabric 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/dist/index.cjs +7 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -8891,7 +8891,7 @@ function buildComputeSpec(options) {
8891
8891
 
8892
8892
  // src/index.ts
8893
8893
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
8894
- var CLI_VERSION = "0.1.8";
8894
+ var CLI_VERSION = "0.1.9";
8895
8895
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
8896
8896
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
8897
8897
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -8947,13 +8947,18 @@ async function printLoginBanner() {
8947
8947
  if (frame > 0) {
8948
8948
  process.stdout.write(`\x1B[${lines.length}A`);
8949
8949
  }
8950
- const progress = frame % frameCount / frameCount;
8950
+ const progress = frame / frameCount;
8951
8951
  for (const row of renderLoginBanner(progress, lines)) {
8952
8952
  process.stdout.write(`${row}
8953
8953
  `);
8954
8954
  }
8955
8955
  await (0, import_promises3.setTimeout)(37);
8956
8956
  }
8957
+ process.stdout.write(`\x1B[${lines.length}A`);
8958
+ for (const row of lines) {
8959
+ process.stdout.write(`${row}
8960
+ `);
8961
+ }
8957
8962
  process.stdout.write("\x1B[?25h");
8958
8963
  console.log(" TrainFabric CLI Login");
8959
8964
  console.log("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Trainfabric CLI for launching GPU training jobs on the hosted Trainfabric backend.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",