trainfabric 0.1.59 → 0.1.60
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 +8 -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.
|
|
9367
|
+
var CLI_VERSION = "0.1.60";
|
|
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");
|
|
@@ -10411,7 +10411,13 @@ program2.command("deployments:create").requiredOption("--model <modelId>").optio
|
|
|
10411
10411
|
try {
|
|
10412
10412
|
printJson(await client.deployments.create({ modelId }));
|
|
10413
10413
|
} catch (error) {
|
|
10414
|
-
printJson({
|
|
10414
|
+
printJson({
|
|
10415
|
+
error: {
|
|
10416
|
+
code: "command_failed",
|
|
10417
|
+
message: error instanceof Error ? error.message : String(error)
|
|
10418
|
+
},
|
|
10419
|
+
ok: false
|
|
10420
|
+
});
|
|
10415
10421
|
process.exitCode = 1;
|
|
10416
10422
|
}
|
|
10417
10423
|
});
|