@almyty/client 1.5.2 → 1.5.3

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.
@@ -2,7 +2,7 @@
2
2
  * Shared credential resolver for all almyty CLI packages.
3
3
  *
4
4
  * Reads from ALMYTY_TOKEN env var first, then falls back to
5
- * ~/.almyty/credentials.json written by `npx @almyty/auth login`.
5
+ * ~/.almyty/credentials.json written by `almyty login`.
6
6
  */
7
7
  export declare const CREDENTIALS_FILE: string;
8
8
  export interface StoredCredentials {
@@ -10,6 +10,7 @@ export interface StoredCredentials {
10
10
  token: string;
11
11
  email?: string;
12
12
  frontendUrl?: string;
13
+ organizationId?: string;
13
14
  /**
14
15
  * When the token stops working, from the JWT's own `exp` claim.
15
16
  *
@@ -2,7 +2,7 @@
2
2
  * Shared credential resolver for all almyty CLI packages.
3
3
  *
4
4
  * Reads from ALMYTY_TOKEN env var first, then falls back to
5
- * ~/.almyty/credentials.json written by `npx @almyty/auth login`.
5
+ * ~/.almyty/credentials.json written by `almyty login`.
6
6
  */
7
7
  import { readFileSync, existsSync } from 'node:fs';
8
8
  import { homedir } from 'node:os';
@@ -59,11 +59,11 @@ export function resolveCredentialsOrExit() {
59
59
  const stored = loadCredentials();
60
60
  if (stored?.token && credentialsExpired(stored)) {
61
61
  console.error(`Your login expired on ${stored.expiresAt}. Run:`);
62
- console.error(' npx @almyty/auth login');
62
+ console.error(' almyty login');
63
63
  process.exit(3);
64
64
  }
65
65
  console.error('Not authenticated. Run one of:');
66
- console.error(' npx @almyty/auth login');
66
+ console.error(' almyty login');
67
67
  console.error(' export ALMYTY_TOKEN=<your-token>');
68
68
  process.exit(3);
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almyty/client",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },