@kuckit/cli 0.2.0 → 1.0.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.
- package/dist/bin.js +5 -1
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -644,10 +644,12 @@ async function authLogin(options) {
|
|
|
644
644
|
...config,
|
|
645
645
|
cliToken: pollResult.token,
|
|
646
646
|
tokenExpiresAt: expiresAt,
|
|
647
|
+
permissions: pollResult.permissions,
|
|
647
648
|
serverUrl
|
|
648
649
|
});
|
|
649
650
|
console.log("✓ Successfully authenticated!");
|
|
650
651
|
console.log(` Token expires: ${formatExpiryDate(expiresAt)}`);
|
|
652
|
+
if (pollResult.permissions && pollResult.permissions.length > 0) console.log(` Permissions: ${pollResult.permissions.join(", ")}`);
|
|
651
653
|
console.log("");
|
|
652
654
|
return;
|
|
653
655
|
}
|
|
@@ -690,7 +692,8 @@ async function authWhoami(options) {
|
|
|
690
692
|
userId: config.userId,
|
|
691
693
|
userName: config.userName,
|
|
692
694
|
serverUrl: config.serverUrl,
|
|
693
|
-
tokenExpiresAt: config.tokenExpiresAt
|
|
695
|
+
tokenExpiresAt: config.tokenExpiresAt,
|
|
696
|
+
permissions: config.permissions
|
|
694
697
|
}));
|
|
695
698
|
else {
|
|
696
699
|
console.log("\nAuthenticated");
|
|
@@ -698,6 +701,7 @@ async function authWhoami(options) {
|
|
|
698
701
|
if (config.userId) console.log(` ID: ${config.userId}`);
|
|
699
702
|
if (config.serverUrl) console.log(` Server: ${config.serverUrl}`);
|
|
700
703
|
if (config.tokenExpiresAt) console.log(` Token expires: ${formatExpiryDate(config.tokenExpiresAt)}`);
|
|
704
|
+
if (config.permissions && config.permissions.length > 0) console.log(` Permissions: ${config.permissions.join(", ")}`);
|
|
701
705
|
console.log("");
|
|
702
706
|
}
|
|
703
707
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuckit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "CLI tools for Kuckit SDK module development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"tsdown": "catalog:"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@kuckit/sdk": ">=
|
|
56
|
+
"@kuckit/sdk": ">=1.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@kuckit/sdk": {
|