@roarkanalytics/cli 0.32.0 → 0.32.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.
- package/CHANGELOG.md +7 -0
- package/npm-shrinkwrap.json +5 -5
- package/package.json +1 -1
- package/runtime/commands/auth.js +17 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.32.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.32.0...v0.32.1) (2026-09-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **auth:** `auth status` reports the project a user credential already falls back to ([#81](https://github.com/roarkhq/cli-roark-analytics/issues/81)) ([4274667](https://github.com/roarkhq/cli-roark-analytics/commit/427466763aac7cf8144c455d3a2c78c1ba91ae03))
|
|
9
|
+
|
|
3
10
|
## [0.32.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.31.1...v0.32.0) (2026-09-29)
|
|
4
11
|
|
|
5
12
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roarkanalytics/cli",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@roarkanalytics/cli",
|
|
9
|
-
"version": "0.32.
|
|
9
|
+
"version": "0.32.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@roarkanalytics/sdk": "^4.15.0",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"node_modules/@roarkanalytics/sdk": {
|
|
24
|
-
"version": "4.
|
|
25
|
-
"resolved": "https://registry.npmjs.org/@roarkanalytics/sdk/-/sdk-4.
|
|
26
|
-
"integrity": "sha512
|
|
24
|
+
"version": "4.18.0",
|
|
25
|
+
"resolved": "https://registry.npmjs.org/@roarkanalytics/sdk/-/sdk-4.18.0.tgz",
|
|
26
|
+
"integrity": "sha512-+s6s6Owxqe/Mvh6/7TkNbYcVtsrdjYYciRrpinTSURliSnM+T63XWZW0lkEuIvn4d+Y/BTbNDtRtP14aCpw72A==",
|
|
27
27
|
"license": "Apache-2.0"
|
|
28
28
|
},
|
|
29
29
|
"node_modules/commander": {
|
package/package.json
CHANGED
package/runtime/commands/auth.js
CHANGED
|
@@ -58,7 +58,12 @@ const describeCredential = async (clientFor) => {
|
|
|
58
58
|
};
|
|
59
59
|
try {
|
|
60
60
|
const me = (await client.get(AUTH_DESCRIBE_PATH));
|
|
61
|
-
return {
|
|
61
|
+
return {
|
|
62
|
+
kind: 'live',
|
|
63
|
+
scope: me.data?.tokenScope,
|
|
64
|
+
email: me.data?.user?.email ?? null,
|
|
65
|
+
...(me.data?.defaultProject?.id ? { defaultProject: me.data.defaultProject.id } : {}),
|
|
66
|
+
};
|
|
62
67
|
}
|
|
63
68
|
catch (error) {
|
|
64
69
|
if (error.status !== 404)
|
|
@@ -275,10 +280,19 @@ const registerAuthCommands = (root, binaryName, clientFor) => {
|
|
|
275
280
|
if (state.scope === 'USER') {
|
|
276
281
|
// A user credential reaches every project you belong to, so which one it acts on is part
|
|
277
282
|
// of the answer, not a detail.
|
|
283
|
+
//
|
|
284
|
+
// Three cases, not two. A locally configured project wins; failing that the credential's
|
|
285
|
+
// own default is what the API will use, and saying "commands will fail" there would be
|
|
286
|
+
// plainly wrong (they succeed). Only a credential with neither is actually stuck.
|
|
278
287
|
const project = (0, config_1.loadConfig)().project;
|
|
279
|
-
|
|
288
|
+
const message = project ?
|
|
280
289
|
`Acting on project ${project}. Change it with \`${binaryName} config set project <id>\`.`
|
|
281
|
-
:
|
|
290
|
+
: state.defaultProject ?
|
|
291
|
+
`Acting on project ${state.defaultProject}, the default stored on this credential. ` +
|
|
292
|
+
`Override it with \`${binaryName} config set project <id>\`.`
|
|
293
|
+
: `No project selected, and this credential has no default: project commands will fail until ` +
|
|
294
|
+
`you run \`${binaryName} config set project <id>\`. \`${binaryName} project list\` shows the ids.`;
|
|
295
|
+
(0, output_1.write)((0, output_1.paint)(message, 'dim', color), process.stderr);
|
|
282
296
|
}
|
|
283
297
|
}
|
|
284
298
|
if (fromEnv && stored) {
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.32.
|
|
1
|
+
export declare const version = "0.32.1";
|
package/version.js
CHANGED