trainfabric 0.1.0 → 0.1.1

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 +2 -1
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -8887,6 +8887,7 @@ function buildComputeSpec(options) {
8887
8887
 
8888
8888
  // src/index.ts
8889
8889
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
8890
+ var CLI_VERSION = "0.1.1";
8890
8891
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
8891
8892
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
8892
8893
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -9205,7 +9206,7 @@ async function login(config) {
9205
9206
  console.log(`Logged in as ${session.user.email} for organization ${config.orgId}.`);
9206
9207
  }
9207
9208
  var program2 = new Command();
9208
- program2.name("train").description("Trainfabric CLI for launching and monitoring GPU training jobs");
9209
+ program2.name("train").description("Trainfabric CLI for launching and monitoring GPU training jobs").version(CLI_VERSION);
9209
9210
  program2.command("login").description("Authenticate in the browser and store CLI credentials").action(async () => {
9210
9211
  await login(loadConfig());
9211
9212
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
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",
@@ -11,7 +11,7 @@
11
11
  "train": "dist/index.cjs"
12
12
  },
13
13
  "scripts": {
14
- "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && esbuild src/index.ts --bundle --platform=node --format=cjs --target=node20 --outfile=dist/index.cjs",
14
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json && esbuild src/index.ts --bundle --platform=node --format=cjs --target=node20 --define:process.env.TRAINFABRIC_CLI_VERSION='\"'$(node -p \"require('./package.json').version\")'\"' --outfile=dist/index.cjs",
15
15
  "dev": "tsx src/index.ts",
16
16
  "lint": "tsc -p tsconfig.json --noEmit",
17
17
  "proof:integration": "vitest run tests/local_stack.integration.test.ts",