@roarkanalytics/cli 0.70.0 → 0.71.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 +24 -0
- package/completions.js +4 -4
- package/man/roark-customer-flow-edge-case-create.1 +3 -0
- package/man/roark-customer-flow-edge-case-update.1 +3 -0
- package/man/roark-customer-flow-happy-path-update.1 +3 -0
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/runtime/get-started/agent.js +15 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roarkanalytics/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.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.71.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@roarkanalytics/sdk": "^7.
|
|
12
|
+
"@roarkanalytics/sdk": "^7.3.0",
|
|
13
13
|
"commander": "^14.0.3",
|
|
14
14
|
"jiti": "^2.4.2",
|
|
15
15
|
"yaml": "^2.9.0"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"node_modules/@roarkanalytics/sdk": {
|
|
25
|
-
"version": "7.
|
|
26
|
-
"resolved": "https://registry.npmjs.org/@roarkanalytics/sdk/-/sdk-7.
|
|
27
|
-
"integrity": "sha512-
|
|
25
|
+
"version": "7.3.0",
|
|
26
|
+
"resolved": "https://registry.npmjs.org/@roarkanalytics/sdk/-/sdk-7.3.0.tgz",
|
|
27
|
+
"integrity": "sha512-Ie/6qkOpxQ7Paie0G2tDv3MOm6+1zgpXV7FR5k7CY+dq9a7/ZyJholQfe/yhNcUlstPlGZmlksb8aON8hCvIPg==",
|
|
28
28
|
"license": "Apache-2.0"
|
|
29
29
|
},
|
|
30
30
|
"node_modules/commander": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roarkanalytics/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "The official command line interface for the Roark API",
|
|
5
5
|
"author": "Roark <james@roark.ai>",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"fix": "eslint --fix . && prettier --write ."
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@roarkanalytics/sdk": "^7.
|
|
32
|
+
"@roarkanalytics/sdk": "^7.3.0",
|
|
33
33
|
"commander": "^14.0.3",
|
|
34
34
|
"jiti": "^2.4.2",
|
|
35
35
|
"yaml": "^2.9.0"
|
|
@@ -30,11 +30,19 @@ const listAgents = async (client) => {
|
|
|
30
30
|
return undefined;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* The agent's dialable lines, or undefined when they could not be read: that is not the same as
|
|
35
|
+
* none.
|
|
36
|
+
*
|
|
37
|
+
* An endpoint whose value is null is left out. That is an outbound phone endpoint with no fixed
|
|
38
|
+
* calling number - a real endpoint, but not a line a run can dial - and both things this step
|
|
39
|
+
* does with the list need the number: the plan names it, and the picker labels the choice with
|
|
40
|
+
* it. Offering a blank row would put an endpoint in front of you that nothing can call.
|
|
41
|
+
*/
|
|
34
42
|
const listEndpoints = async (client, agentId) => {
|
|
35
43
|
try {
|
|
36
44
|
const response = await client.agentEndpoint.list({ agentId, limit: ENDPOINT_PAGE });
|
|
37
|
-
return response.data.
|
|
45
|
+
return response.data.flatMap((endpoint) => endpoint.value === null ? [] : [{ value: endpoint.value, direction: endpoint.direction }]);
|
|
38
46
|
}
|
|
39
47
|
catch {
|
|
40
48
|
return undefined;
|
|
@@ -81,7 +89,11 @@ const chooseAgent = async (client, prompter, say, binaryName, color) => {
|
|
|
81
89
|
return base;
|
|
82
90
|
}
|
|
83
91
|
if (endpoints.length === 0) {
|
|
84
|
-
say((0, ladder_1.note)(
|
|
92
|
+
say((0, ladder_1.note)(
|
|
93
|
+
// Not "it has no endpoint": it may have one whose value is null, which is an endpoint
|
|
94
|
+
// without a number to call. Either way the way on is the same, and naming the number
|
|
95
|
+
// rather than the endpoint is true in both.
|
|
96
|
+
`That agent has no number to call yet, so there is no line to dial. Add an endpoint with one, then run \`${binaryName} get-started\` again to finish.`, color, 'yellow'));
|
|
85
97
|
return base;
|
|
86
98
|
}
|
|
87
99
|
if (endpoints.length === 1)
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.71.0";
|
package/version.js
CHANGED