@roarkanalytics/cli 0.32.0 → 0.33.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/CHANGELOG.md +14 -0
- package/commands.js +1 -1
- package/man/roark-metric-definition-update.1 +1 -1
- 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,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.33.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.32.1...v0.33.0) (2026-10-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **cli:** cli update ([#83](https://github.com/roarkhq/cli-roark-analytics/issues/83)) ([441c878](https://github.com/roarkhq/cli-roark-analytics/commit/441c878ba6ddd5549ec4570a36ed8e41a2d5c609))
|
|
9
|
+
|
|
10
|
+
## [0.32.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.32.0...v0.32.1) (2026-09-30)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **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))
|
|
16
|
+
|
|
3
17
|
## [0.32.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.31.1...v0.32.0) (2026-09-29)
|
|
4
18
|
|
|
5
19
|
|
package/commands.js
CHANGED
|
@@ -3004,7 +3004,7 @@ exports.COMMANDS = [
|
|
|
3004
3004
|
path: ['supportedContexts'],
|
|
3005
3005
|
location: 'body',
|
|
3006
3006
|
required: false,
|
|
3007
|
-
description: 'Replacement set of supported contexts. Omit to leave unchanged.',
|
|
3007
|
+
description: 'Replacement set of supported contexts. Omit to leave unchanged. Scope and participantRole cannot change after create, so moving to SEGMENT or TURN grading only works on a PER_PARTICIPANT metric (see create).',
|
|
3008
3008
|
valueKind: 'array',
|
|
3009
3009
|
enumValues: ['CALL', 'SEGMENT', 'TURN'],
|
|
3010
3010
|
repeatable: true,
|
|
@@ -46,7 +46,7 @@ New maximum number of classifications (CLASSIFICATION output only) Optional.
|
|
|
46
46
|
Replacement set of scoped tool\-definition ids (only for metrics whose tool scoping is editable) Repeatable. Optional.
|
|
47
47
|
.TP
|
|
48
48
|
\fB\-\-supported\-contexts\fR \fI<value>\fR
|
|
49
|
-
Replacement set of supported contexts. Omit to leave unchanged. One of: CALL, SEGMENT, TURN. Repeatable. Optional.
|
|
49
|
+
Replacement set of supported contexts. Omit to leave unchanged. Scope and participantRole cannot change after create, so moving to SEGMENT or TURN grading only works on a PER_PARTICIPANT metric (see create). One of: CALL, SEGMENT, TURN. Repeatable. Optional.
|
|
50
50
|
.TP
|
|
51
51
|
\fB\-\-formula\fR \fI<value>\fR
|
|
52
52
|
New formula expression (FORMULA only). Pass `sources` alongside if the referenced metrics change. Optional.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roarkanalytics/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@roarkanalytics/cli",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.33.0",
|
|
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.
|
|
1
|
+
export declare const version = "0.33.0";
|
package/version.js
CHANGED