cassian-cli 0.1.8 → 0.2.0

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.
@@ -82,14 +82,12 @@ export async function up() {
82
82
  fatal("Could not connect to Cassian.", "Check your internet connection and try again. If this keeps happening, reach out at trycassian.com.");
83
83
  }
84
84
  connectSpinner.succeed("Connected");
85
- // SSH key — invisible to user
86
- let sshPubKey;
85
+ // SSH key — optional, used only for direct SSH fallback
86
+ let sshPubKey = "";
87
87
  try {
88
88
  sshPubKey = readFileSync(findSshPublicKey(dev.ssh_public_key), "utf-8").trim();
89
89
  }
90
- catch {
91
- fatal("No SSH key found.", "Generate one with: ssh-keygen -t ed25519");
92
- }
90
+ catch { /* no key is fine — websocket terminal doesn't need it */ }
93
91
  const spinner = ora("Starting instance...").start();
94
92
  try {
95
93
  const client = new ApiClient();
package/dist/index.js CHANGED
@@ -15,11 +15,14 @@ import { logs } from "./commands/logs.js";
15
15
  import { volumeCreate, volumeList, volumeDelete } from "./commands/volume.js";
16
16
  import { sync } from "./commands/sync.js";
17
17
  import { exec } from "./commands/exec.js";
18
+ import { createRequire } from "module";
19
+ const require = createRequire(import.meta.url);
20
+ const { version } = require("../package.json");
18
21
  const program = new Command();
19
22
  program
20
23
  .name("cassian")
21
24
  .description("Cassian GPU Cloud CLI")
22
- .version("0.1.0");
25
+ .version(version);
23
26
  program
24
27
  .command("login")
25
28
  .description("Authenticate with Cassian via browser")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cassian-cli",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
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": {