trainfabric 0.1.71 → 0.1.73

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 +14 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7778,6 +7778,13 @@ var creditAdjustmentCreateSchema = external_exports.object({
7778
7778
  reason: external_exports.string().trim().min(1).max(500),
7779
7779
  sourceId: external_exports.string().trim().min(1).max(128).optional()
7780
7780
  });
7781
+ var supportRequestCreateSchema = external_exports.object({
7782
+ category: external_exports.enum(["billing", "refund", "run", "abuse", "general"]).default("general"),
7783
+ message: external_exports.string().trim().min(10).max(5e3),
7784
+ runId: external_exports.string().trim().min(1).max(128).optional(),
7785
+ invoiceId: external_exports.string().trim().min(1).max(128).optional(),
7786
+ subject: external_exports.string().trim().min(1).max(160)
7787
+ });
7781
7788
  var treasuryCounterpartyCreateSchema = external_exports.object({
7782
7789
  providerId: external_exports.enum(treasuryProviderIds).default("mercury"),
7783
7790
  name: external_exports.string().min(1),
@@ -9360,7 +9367,7 @@ function buildComputeSpec(options) {
9360
9367
 
9361
9368
  // src/index.ts
9362
9369
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
9363
- var CLI_VERSION = "0.1.71";
9370
+ var CLI_VERSION = "0.1.73";
9364
9371
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
9365
9372
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
9366
9373
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -9661,6 +9668,7 @@ function formatUsdPerGpuHour(amountUsd, gpuCount, runtimeSeconds) {
9661
9668
  function printQuoteSummary(bundle) {
9662
9669
  console.log(`Quote bundle ${bundle.id}`);
9663
9670
  console.log("Prices are estimates. GPU supplier prices, capacity, spot availability, streaming volume, and runtime can fluctuate before launch.");
9671
+ console.log("Accepted quotes are fixed-plan launches: if the selected pool, market, topology, or data path is unavailable at launch, TrainFabric fails safely without billing and asks you to request a fresh quote.");
9664
9672
  for (const item of bundle.quotes) {
9665
9673
  const quote = item.quote;
9666
9674
  const gpuCount = item.configuration.gpuCount;
@@ -9683,11 +9691,15 @@ function printQuoteSummary(bundle) {
9683
9691
  console.log(` data path: ${quote.dataPath ?? "auto"}`);
9684
9692
  console.log(` GPUs: ${gpuCount}`);
9685
9693
  console.log(` pool: ${quote.selectedPoolId}`);
9694
+ if (quote.topology) {
9695
+ console.log(` topology: ${quote.topology}`);
9696
+ }
9686
9697
  if (quote.fallbackPolicy) {
9687
9698
  console.log(` fallback: ${quote.fallbackPolicy.acceptedQuoteFallbackAllowed ? "allowed" : "disabled"} for accepted quote`);
9688
9699
  if (quote.fallbackPolicy.fallbackPoolId) {
9689
- console.log(` fallback candidate: ${quote.fallbackPolicy.fallbackPoolId}`);
9700
+ console.log(` fallback candidate: ${quote.fallbackPolicy.fallbackPoolId} (informational only; not used for accepted quote launch)`);
9690
9701
  }
9702
+ console.log(` fallback contract: ${quote.fallbackPolicy.message}`);
9691
9703
  }
9692
9704
  console.log(` launch with: --quote ${quote.id}`);
9693
9705
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.71",
3
+ "version": "0.1.73",
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",