trainfabric 0.1.68 → 0.1.70
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.
- package/dist/index.cjs +7 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9360,7 +9360,7 @@ function buildComputeSpec(options) {
|
|
|
9360
9360
|
|
|
9361
9361
|
// src/index.ts
|
|
9362
9362
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
9363
|
-
var CLI_VERSION = "0.1.
|
|
9363
|
+
var CLI_VERSION = "0.1.70";
|
|
9364
9364
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
9365
9365
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
9366
9366
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|
|
@@ -10354,7 +10354,12 @@ program2.command("runs:wait").argument("<runId>").option("--timeout <duration>",
|
|
|
10354
10354
|
printJson(options.summary ? summarizeRunDetail(detail) : detail);
|
|
10355
10355
|
});
|
|
10356
10356
|
program2.command("runs:watch").argument("<runId>").option("--json", "emit event output as JSON").option("--timeout <duration>", "maximum watch duration, for example 30s, 10m, or 1h").option("--poll <duration>", "poll interval, for example 1s or 500ms").description("Stream a run until it completes").action(async (runId, options) => {
|
|
10357
|
-
await watchRun(
|
|
10357
|
+
await watchRun(
|
|
10358
|
+
normalizeId(runId, "run", "Run ID"),
|
|
10359
|
+
Boolean(options.json) || process.argv.includes("--json"),
|
|
10360
|
+
parseDurationMs(options.timeout),
|
|
10361
|
+
parsePositiveMs(options.poll, 1e3)
|
|
10362
|
+
);
|
|
10358
10363
|
});
|
|
10359
10364
|
program2.command("runs:usage").argument("<runId>").option("--json", "print raw JSON output; this is the default unless --summary is used").option("--summary", "print a human-readable cost summary instead of raw JSON").description("Fetch run usage summary").action(async (runId, options) => {
|
|
10360
10365
|
const usage = await createClient(loadConfig()).runs.usage(normalizeId(runId, "run", "Run ID"));
|