trainfabric 0.1.17 → 0.1.19

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 +9 -1
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7701,6 +7701,7 @@ var runDefaultsUpdateSchema = external_exports.object({
7701
7701
  var runtimeDependencySchema = external_exports.object({
7702
7702
  name: external_exports.string().min(1),
7703
7703
  version: external_exports.string().min(1).optional(),
7704
+ constraint: external_exports.string().min(1).optional(),
7704
7705
  source: external_exports.enum(["training_yaml", "pyproject", "requirements", "environment_yml", "dockerfile"]),
7705
7706
  required: external_exports.boolean()
7706
7707
  });
@@ -8222,6 +8223,9 @@ var DeploymentsClient = class extends ResourceClient {
8222
8223
  get(id) {
8223
8224
  return this.requestGet(`/v1/deployments/${id}`);
8224
8225
  }
8226
+ delete(id) {
8227
+ return this.requestDelete(`/v1/deployments/${id}`);
8228
+ }
8225
8229
  };
8226
8230
 
8227
8231
  // ../sdk/dist/client/models.js
@@ -8938,7 +8942,7 @@ function buildComputeSpec(options) {
8938
8942
 
8939
8943
  // src/index.ts
8940
8944
  var DEFAULT_TRAINFABRIC_API_URL2 = "https://api.trainfabric.com";
8941
- var CLI_VERSION = "0.1.17";
8945
+ var CLI_VERSION = "0.1.19";
8942
8946
  var CONFIG_DIR = import_node_path3.default.join(import_node_os2.default.homedir(), ".trainfabric");
8943
8947
  var CONFIG_PATH = import_node_path3.default.join(CONFIG_DIR, "config.json");
8944
8948
  var FALLBACK_SECRET_PATH = import_node_path3.default.join(CONFIG_DIR, "session.enc");
@@ -9636,6 +9640,10 @@ program2.command("deployments:create").requiredOption("--model <modelId>").optio
9636
9640
  program2.command("deployments:get").argument("<deploymentId>").description("Fetch a deployment").action(async (deploymentId) => {
9637
9641
  printJson(await createClient(loadConfig()).deployments.get(String(deploymentId)));
9638
9642
  });
9643
+ program2.command("deployments:delete").argument("<deploymentId>").description("Delete a pending or cataloged deployment").action(async (deploymentId) => {
9644
+ await createClient(loadConfig()).deployments.delete(String(deploymentId));
9645
+ printJson({ deleted: true, id: String(deploymentId) });
9646
+ });
9639
9647
  program2.command("billing:summary").description("Fetch billing summary").action(async () => {
9640
9648
  printJson(await createClient(loadConfig()).billing.getSummary());
9641
9649
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trainfabric",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
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",