replicas-cli 0.3.653 → 0.3.654
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.
- package/dist/index.cjs +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -43370,7 +43370,7 @@ var CLI_VERSION;
|
|
|
43370
43370
|
var init_cli_version = __esm({
|
|
43371
43371
|
"../shared/src/cli-version.ts"() {
|
|
43372
43372
|
"use strict";
|
|
43373
|
-
CLI_VERSION = "0.3.
|
|
43373
|
+
CLI_VERSION = "0.3.654";
|
|
43374
43374
|
}
|
|
43375
43375
|
});
|
|
43376
43376
|
|
|
@@ -55301,6 +55301,7 @@ async function whoamiCommand() {
|
|
|
55301
55301
|
throw new Error('You are not signed in. Run "replicas login" or "replicas login --api-key".');
|
|
55302
55302
|
}
|
|
55303
55303
|
const [user, active] = await Promise.all([getCurrentUser(), resolveActiveOrganization()]).catch((error62) => {
|
|
55304
|
+
if (isReplicasAuthError(error62)) throw error62;
|
|
55304
55305
|
throw new Error(`Failed to get user information: ${error62 instanceof Error ? error62.message : error62}. Try running "replicas login" again.`);
|
|
55305
55306
|
});
|
|
55306
55307
|
output2({ user, organization: active.organization, role: active.role }, () => {
|