trainfabric 0.1.17 → 0.1.18
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 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8222,6 +8222,9 @@ var DeploymentsClient = class extends ResourceClient {
|
|
|
8222
8222
|
get(id) {
|
|
8223
8223
|
return this.requestGet(`/v1/deployments/${id}`);
|
|
8224
8224
|
}
|
|
8225
|
+
delete(id) {
|
|
8226
|
+
return this.requestDelete(`/v1/deployments/${id}`);
|
|
8227
|
+
}
|
|
8225
8228
|
};
|
|
8226
8229
|
|
|
8227
8230
|
// ../sdk/dist/client/models.js
|
|
@@ -8938,7 +8941,7 @@ function buildComputeSpec(options) {
|
|
|
8938
8941
|
|
|
8939
8942
|
// src/index.ts
|
|
8940
8943
|
var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
|
|
8941
|
-
var CLI_VERSION = "0.1.
|
|
8944
|
+
var CLI_VERSION = "0.1.18";
|
|
8942
8945
|
var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
|
|
8943
8946
|
var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
|
|
8944
8947
|
var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
|
|
@@ -9636,6 +9639,10 @@ program2.command("deployments:create").requiredOption("--model <modelId>").optio
|
|
|
9636
9639
|
program2.command("deployments:get").argument("<deploymentId>").description("Fetch a deployment").action(async (deploymentId) => {
|
|
9637
9640
|
printJson(await createClient(loadConfig()).deployments.get(String(deploymentId)));
|
|
9638
9641
|
});
|
|
9642
|
+
program2.command("deployments:delete").argument("<deploymentId>").description("Delete a pending or cataloged deployment").action(async (deploymentId) => {
|
|
9643
|
+
await createClient(loadConfig()).deployments.delete(String(deploymentId));
|
|
9644
|
+
printJson({ deleted: true, id: String(deploymentId) });
|
|
9645
|
+
});
|
|
9639
9646
|
program2.command("billing:summary").description("Fetch billing summary").action(async () => {
|
|
9640
9647
|
printJson(await createClient(loadConfig()).billing.getSummary());
|
|
9641
9648
|
});
|