trainfabric 0.1.34 → 0.1.35

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 +9 -6
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -9255,7 +9255,7 @@ function buildComputeSpec(options) {
9255
9255
 
9256
9256
  // src/index.ts
9257
9257
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
9258
- var CLI_VERSION = "0.1.34";
9258
+ var CLI_VERSION = "0.1.35";
9259
9259
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
9260
9260
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
9261
9261
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -9976,10 +9976,12 @@ program2.command("runtime:detect").option("--project <projectId>").option("--rep
9976
9976
  program2.command("runtime:build").option("--project <projectId>").requiredOption("--detection <detectionId>").description("Build or reuse a cached runtime image from a runtime detection").action(async (options) => {
9977
9977
  const config = loadConfig();
9978
9978
  printJson(
9979
- await createClient(config).runtime.build({
9980
- projectId: requireProjectId(options, config),
9981
- detectionId: normalizeId(options.detection, "detection", "Runtime detection ID")
9982
- })
9979
+ redactInlineSource(
9980
+ await createClient(config).runtime.build({
9981
+ projectId: requireProjectId(options, config),
9982
+ detectionId: normalizeId(options.detection, "detection", "Runtime detection ID")
9983
+ })
9984
+ )
9983
9985
  );
9984
9986
  });
9985
9987
  program2.command("runs:quote").option("--project <projectId>").requiredOption("--dataset <datasetId>").requiredOption("--model <baseModel>").option("--eval <evalDatasetId>").option("--gpus <gpuCount>", "gpu count", "1").option("--nodes <nodeCount>", "node count", "1").option("--accelerator <acceleratorClass>", "optional hard accelerator constraint (for example: a10g, a100, h100)").option("--min-memory <gigabytes>", "minimum GPU memory in GB").option("--precision <precision>", "fp16_bf16, fp8, or fp32").option("--interconnect <interconnect>", "pcie or nvlink").option("--mode <mode>", "efficient, balanced, or power").option("--repo <path>").option("--git <url>").option("--branch <branch>").option("--summary", "print a human-readable price summary instead of raw JSON").description("Preview Efficient, Balanced, and Power launch options").action(async (options) => {
@@ -9999,7 +10001,8 @@ program2.command("runs:list").option("--project <projectId>").description("List
9999
10001
  printJson(await createClient(loadConfig()).runs.list(normalizeOptionalId(options.project, "project", "Project ID")));
10000
10002
  });
10001
10003
  program2.command("runs:status").argument("<runId>").description("Fetch full run detail").action(async (runId) => {
10002
- printJson(await createClient(loadConfig()).runs.get(normalizeId(runId, "run", "Run ID")));
10004
+ const detail = await createClient(loadConfig()).runs.get(normalizeId(runId, "run", "Run ID"));
10005
+ printJson({ ...detail, ...detail.run });
10003
10006
  });
10004
10007
  program2.command("runs:logs").argument("<runId>").description("Fetch run logs").action(async (runId) => {
10005
10008
  printJson(await createClient(loadConfig()).runs.logs(normalizeId(runId, "run", "Run ID")));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
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",