trainfabric 0.1.10 → 0.1.11
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 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8204,6 +8204,9 @@ var DatasetsClient = class extends ResourceClient {
|
|
|
8204
8204
|
|
|
8205
8205
|
// ../sdk/dist/client/deployments.js
|
|
8206
8206
|
var DeploymentsClient = class extends ResourceClient {
|
|
8207
|
+
list() {
|
|
8208
|
+
return this.requestGet("/v1/deployments");
|
|
8209
|
+
}
|
|
8207
8210
|
create(input) {
|
|
8208
8211
|
return this.requestPost("/v1/deployments", input);
|
|
8209
8212
|
}
|
|
@@ -8911,7 +8914,7 @@ function buildComputeSpec(options) {
|
|
|
8911
8914
|
|
|
8912
8915
|
// src/index.ts
|
|
8913
8916
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
8914
|
-
var CLI_VERSION = "0.1.
|
|
8917
|
+
var CLI_VERSION = "0.1.11";
|
|
8915
8918
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
8916
8919
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
8917
8920
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|
|
@@ -9547,6 +9550,9 @@ program2.command("models:list").description("List exported models").action(async
|
|
|
9547
9550
|
program2.command("models:export").argument("<modelId>").description("Fetch the export package path for a model").action(async (modelId) => {
|
|
9548
9551
|
printJson(await createClient(loadConfig()).models.export(String(modelId)));
|
|
9549
9552
|
});
|
|
9553
|
+
program2.command("deployments:list").description("List deployments").action(async () => {
|
|
9554
|
+
printJson(await createClient(loadConfig()).deployments.list());
|
|
9555
|
+
});
|
|
9550
9556
|
program2.command("deployments:create").requiredOption("--model <modelId>").description("Create a deployment for a model").action(async (options) => {
|
|
9551
9557
|
printJson(await createClient(loadConfig()).deployments.create({ modelId: options.model }));
|
|
9552
9558
|
});
|