trainfabric 0.1.52 → 0.1.54

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 +4 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -9364,7 +9364,7 @@ function buildComputeSpec(options) {
9364
9364
 
9365
9365
  // src/index.ts
9366
9366
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
9367
- var CLI_VERSION = "0.1.52";
9367
+ var CLI_VERSION = "0.1.54";
9368
9368
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
9369
9369
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
9370
9370
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -10323,7 +10323,7 @@ program2.command("runs:list").option("--project <projectId>").option("--status <
10323
10323
  const runs = await createClient(loadConfig()).runs.list(normalizeOptionalId(options.project, "project", "Project ID"));
10324
10324
  printJson(status ? runs.filter((run) => run.status === status) : runs);
10325
10325
  });
10326
- program2.command("runs:status").argument("<runId>").description("Fetch full run detail").action(async (runId) => {
10326
+ program2.command("runs:status").argument("<runId>").option("--json", "print raw JSON output; this is the default").description("Fetch full run detail").action(async (runId) => {
10327
10327
  const detail = await createClient(loadConfig()).runs.get(normalizeId(runId, "run", "Run ID"));
10328
10328
  printJson({ ...detail, ...detail.run });
10329
10329
  });
@@ -10375,10 +10375,10 @@ program2.command("runs:resume").argument("<runId>").description("Resume a run fr
10375
10375
  program2.command("runs:terminate").argument("<runId>").description("Terminate a queued, launchable, or active run").action(async (runId) => {
10376
10376
  printJson(await createClient(loadConfig()).runs.terminate(normalizeId(runId, "run", "Run ID")));
10377
10377
  });
10378
- program2.command("cluster:capacity").description("Fetch cluster capacity view").action(async () => {
10378
+ program2.command("cluster:capacity").option("--json", "print raw JSON output; this is the default").description("Fetch cluster capacity view").action(async () => {
10379
10379
  printJson(await createClient(loadConfig()).cluster.getCapacity());
10380
10380
  });
10381
- program2.command("cluster:pools").description("List inventory pools").action(async () => {
10381
+ program2.command("cluster:pools").option("--json", "print raw JSON output; this is the default").description("List inventory pools").action(async () => {
10382
10382
  printJson(await createClient(loadConfig()).cluster.listInventoryPools());
10383
10383
  });
10384
10384
  program2.command("models:list").option("--json", "print raw JSON output; this is the default").description("List exported models").action(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.52",
3
+ "version": "0.1.54",
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",