@vatio-ai/cli 0.140.0 → 0.140.1

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.
@@ -7,6 +7,7 @@ import { KEYS, SLUG_FORMAT } from "../config.mjs";
7
7
  import { MANIFEST_FILE, manifestPath } from "../workspace.mjs";
8
8
  import { VERSION } from "../version.mjs";
9
9
  import { fail, takeValue } from "../support.mjs";
10
+ import { UnauthorizedError } from "../http.mjs";
10
11
  import { workspacesClient } from "./deploy.mjs";
11
12
 
12
13
  export const DOCS_URL = "https://vatio.ai/docs";
@@ -80,6 +81,9 @@ async function accountLine(config) {
80
81
  const payload = await workspacesClient(config).listWorkspaces();
81
82
  return payload?.account?.email ?? "signed in (this Vatio does not say as whom)";
82
83
  } catch (error) {
84
+ if (error instanceof UnauthorizedError) {
85
+ return "not signed in — the token is expired or revoked; run `vatio login`";
86
+ }
83
87
  return `unknown — ${String(error?.message ?? error).split("\n")[0]}`;
84
88
  }
85
89
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vatio-ai/cli",
3
- "version": "0.140.0",
3
+ "version": "0.140.1",
4
4
  "description": "Vatio CLI — deploy and manage Vatio agent workspaces",
5
5
  "keywords": [
6
6
  "vatio",