@roarkanalytics/cli 0.70.0 → 0.70.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.70.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.70.0...v0.70.1) (2026-11-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **get-started:** skip an endpoint that has no number to call ([#183](https://github.com/roarkhq/cli-roark-analytics/issues/183)) ([8909dd9](https://github.com/roarkhq/cli-roark-analytics/commit/8909dd9cb40e0f17eb7e1c874c358bb131e5aa71))
9
+
3
10
  ## [0.70.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.69.0...v0.70.0) (2026-11-06)
4
11
 
5
12
 
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@roarkanalytics/cli",
3
- "version": "0.70.0",
3
+ "version": "0.70.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@roarkanalytics/cli",
9
- "version": "0.70.0",
9
+ "version": "0.70.1",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
- "@roarkanalytics/sdk": "^7.1.0",
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.1.0",
26
- "resolved": "https://registry.npmjs.org/@roarkanalytics/sdk/-/sdk-7.1.0.tgz",
27
- "integrity": "sha512-y/54k/rdKadhhaMVHNLvyVRDArZ7pER9v7WtuKtoCRB6CvexczazAhGE5ExWZ+i2omX3c10yE0FEh8pAI2FF5A==",
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.70.0",
3
+ "version": "0.70.1",
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.1.0",
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
- /** The agent's lines, or undefined when they could not be read: that is not the same as none. */
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.map((endpoint) => ({ value: endpoint.value, direction: endpoint.direction }));
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)(`That agent has no endpoint yet, so there is no line to call. Add one, then run \`${binaryName} get-started\` again to finish.`, color, 'yellow'));
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.70.0";
1
+ export declare const version = "0.70.1";
package/version.js CHANGED
@@ -10,4 +10,4 @@ exports.version = void 0;
10
10
  //
11
11
  // Do not edit: an edit here is overwritten, and the published number is whatever
12
12
  // package.json says.
13
- exports.version = '0.70.0'; // x-release-please-version
13
+ exports.version = '0.70.1'; // x-release-please-version