cassian-cli 0.3.2 → 0.3.4

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.
@@ -99,23 +99,10 @@ export async function up() {
99
99
  await new Promise((r) => setTimeout(r, 1000));
100
100
  spinner.text = "Starting instance...";
101
101
  }
102
- // Validate GPU type against what the host offers before provisioning
103
- if (config.gpu.type) {
104
- const gpus = await client.get("/v1/gpus").catch(() => null);
105
- if (gpus && gpus.gpus.length > 0) {
106
- const available = gpus.gpus[0].name.toLowerCase().replace(/[\s_]/g, "-");
107
- const requested = config.gpu.type.toLowerCase().replace(/[\s_]/g, "-");
108
- // Check if the requested type is a substring match of what's available
109
- if (!available.includes(requested) && !requested.includes(available.split("-").pop())) {
110
- spinner.fail("GPU type not available");
111
- const names = [...new Set(gpus.gpus.map((g) => g.name))];
112
- fatal(`GPU type '${config.gpu.type}' is not available on this host.`, `Available: ${names.join(", ")} — update gpu.type in cassian.yaml`);
113
- }
114
- }
115
- }
116
102
  const instance = await client.post("/v1/instances", {
117
103
  name: config.name,
118
104
  gpu_count: config.gpu.count,
105
+ gpu_type: config.gpu.type || null,
119
106
  image: config.image || "default",
120
107
  ssh_public_key: sshPubKey,
121
108
  volumes: (config.volumes || []).map((v) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cassian-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "The Cassian GPU cloud CLI — provision GPUs, sync files, and run workloads from your terminal.",
5
5
  "type": "module",
6
6
  "bin": {