@roarkanalytics/cli 0.29.0 → 0.32.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 +28 -0
- package/README.md +12 -0
- package/commands.js +37 -2
- package/completions.js +4 -4
- package/man/roark-project-list.1 +89 -0
- package/man/roark-whoami.1 +89 -0
- package/man/roark.1 +6 -0
- package/npm-shrinkwrap.json +6 -6
- package/package.json +5 -3
- package/runtime/browser-login.d.ts +15 -1
- package/runtime/browser-login.js +2 -1
- package/runtime/commands/api.js +4 -0
- package/runtime/commands/auth.js +99 -17
- package/runtime/commands/config.js +1 -0
- package/runtime/config.d.ts +12 -0
- package/runtime/config.js +1 -0
- package/runtime/program.d.ts +1 -0
- package/runtime/program.js +5 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.32.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.31.1...v0.32.0) (2026-09-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **cli:** cli update ([#79](https://github.com/roarkhq/cli-roark-analytics/issues/79)) ([9147caa](https://github.com/roarkhq/cli-roark-analytics/commit/9147caab0016324dd5307014257ca497e32aaaac))
|
|
9
|
+
|
|
10
|
+
## [0.31.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.31.0...v0.31.1) (2026-09-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** require the SDK release that has the `project` option ([#77](https://github.com/roarkhq/cli-roark-analytics/issues/77)) ([04a2553](https://github.com/roarkhq/cli-roark-analytics/commit/04a255329242ab8abdc95acb77b26a6fcd7fff4d))
|
|
16
|
+
|
|
17
|
+
## [0.31.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.30.0...v0.31.0) (2026-09-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **project:** choose the project a command acts on ([#61](https://github.com/roarkhq/cli-roark-analytics/issues/61)) ([240b672](https://github.com/roarkhq/cli-roark-analytics/commit/240b67220696ca58c36f15e8c846cdffc396b293))
|
|
23
|
+
|
|
24
|
+
## [0.30.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.29.0...v0.30.0) (2026-09-28)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **cli:** cli update ([#74](https://github.com/roarkhq/cli-roark-analytics/issues/74)) ([2fd7ff5](https://github.com/roarkhq/cli-roark-analytics/commit/2fd7ff54f2dbfe0a47d933a96edd1cdc7d176d60))
|
|
30
|
+
|
|
3
31
|
## [0.29.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.28.0...v0.29.0) (2026-09-28)
|
|
4
32
|
|
|
5
33
|
|
package/README.md
CHANGED
|
@@ -230,6 +230,12 @@ roark completion fish | source
|
|
|
230
230
|
| `roark metric variant list <id-or-slug>` | List a metric’s variants |
|
|
231
231
|
| `roark metric variant update <id-or-slug> <variant-id>` | Update a metric variant |
|
|
232
232
|
|
|
233
|
+
### project
|
|
234
|
+
|
|
235
|
+
| Command | Description |
|
|
236
|
+
| -------------------- | ------------------------------------------ |
|
|
237
|
+
| `roark project list` | List projects available to this credential |
|
|
238
|
+
|
|
233
239
|
### simulation
|
|
234
240
|
|
|
235
241
|
| Command | Description |
|
|
@@ -272,6 +278,12 @@ roark completion fish | source
|
|
|
272
278
|
| `roark webhook get <webhook-id>` | Get webhook by ID |
|
|
273
279
|
| `roark webhook list` | List webhooks |
|
|
274
280
|
|
|
281
|
+
### whoami
|
|
282
|
+
|
|
283
|
+
| Command | Description |
|
|
284
|
+
| -------------- | ------------------------------- |
|
|
285
|
+
| `roark whoami` | Describe the current credential |
|
|
286
|
+
|
|
275
287
|
## Requirements
|
|
276
288
|
|
|
277
289
|
Node.js 20 or newer.
|
package/commands.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.GROUPS = {
|
|
|
40
40
|
'metric definition': 'Manage metric definitions',
|
|
41
41
|
'metric policy': 'Manage metric policies',
|
|
42
42
|
'metric variant': 'Manage metric variants',
|
|
43
|
+
project: 'Read projects',
|
|
43
44
|
simulation: 'Manage simulations',
|
|
44
45
|
'simulation environment': 'Manage simulation environments',
|
|
45
46
|
'simulation job': 'Read simulation jobs',
|
|
@@ -1795,7 +1796,7 @@ exports.COMMANDS = [
|
|
|
1795
1796
|
httpMethod: 'post',
|
|
1796
1797
|
httpPath: '/v1/config/apply',
|
|
1797
1798
|
summary: 'Apply a config bundle',
|
|
1798
|
-
description: 'Reconcile a config-as-code bundle
|
|
1799
|
+
description: 'Reconcile a config-as-code bundle. With a PROJECT API key, submit project-scoped resources (agents, personas, flows, collectors, metrics, ...). With an ORGANIZATION API key, submit `kind: project` resources, each optionally carrying its members and its own nested `resources`. Submit the full desired set; managed resources are updated, new ones created, and (unless prune is false) managed resources absent from the bundle are deleted. Identity is by name.',
|
|
1799
1800
|
positionals: [],
|
|
1800
1801
|
flags: [
|
|
1801
1802
|
{
|
|
@@ -1829,7 +1830,7 @@ exports.COMMANDS = [
|
|
|
1829
1830
|
httpMethod: 'post',
|
|
1830
1831
|
httpPath: '/v1/config/diff',
|
|
1831
1832
|
summary: 'Diff a config bundle',
|
|
1832
|
-
description: 'Dry run for
|
|
1833
|
+
description: 'Dry run for an apply: returns the projected changes (create / update / delete) for the submitted bundle without writing anything. Works for both project and organization keys.',
|
|
1833
1834
|
positionals: [],
|
|
1834
1835
|
flags: [
|
|
1835
1836
|
{
|
|
@@ -3562,6 +3563,23 @@ exports.COMMANDS = [
|
|
|
3562
3563
|
acceptsBody: true,
|
|
3563
3564
|
requiresAuth: true,
|
|
3564
3565
|
},
|
|
3566
|
+
{
|
|
3567
|
+
commandPath: ['project', 'list'],
|
|
3568
|
+
clientProperty: 'project',
|
|
3569
|
+
methodName: 'list',
|
|
3570
|
+
httpMethod: 'get',
|
|
3571
|
+
httpPath: '/v1/projects',
|
|
3572
|
+
summary: 'List projects available to this credential',
|
|
3573
|
+
description: 'Returns every project the calling credential may act on, with the permissions it holds in each. A project-scoped API key returns the single project it is bound to. A user-scoped credential returns the projects in its organization where the holder is an active member. Use the returned id in the X-Roark-Project-Id header.',
|
|
3574
|
+
positionals: [],
|
|
3575
|
+
flags: [],
|
|
3576
|
+
hasParams: false,
|
|
3577
|
+
paramsAllOptional: true,
|
|
3578
|
+
bodyOpaque: false,
|
|
3579
|
+
bodyVariants: [],
|
|
3580
|
+
acceptsBody: false,
|
|
3581
|
+
requiresAuth: true,
|
|
3582
|
+
},
|
|
3565
3583
|
{
|
|
3566
3584
|
commandPath: ['simulation', 'environment', 'create'],
|
|
3567
3585
|
clientProperty: 'simulationEnvironment',
|
|
@@ -5787,4 +5805,21 @@ exports.COMMANDS = [
|
|
|
5787
5805
|
acceptsBody: false,
|
|
5788
5806
|
requiresAuth: true,
|
|
5789
5807
|
},
|
|
5808
|
+
{
|
|
5809
|
+
commandPath: ['whoami'],
|
|
5810
|
+
clientProperty: 'me',
|
|
5811
|
+
methodName: 'get',
|
|
5812
|
+
httpMethod: 'get',
|
|
5813
|
+
httpPath: '/v1/me',
|
|
5814
|
+
summary: 'Describe the current credential',
|
|
5815
|
+
description: 'Returns the scope of the credential making the request, the organization it acts in, its default project (if any) and the permissions it was granted. Works for both project-scoped API keys and user-scoped credentials from the CLI or an MCP connector.',
|
|
5816
|
+
positionals: [],
|
|
5817
|
+
flags: [],
|
|
5818
|
+
hasParams: false,
|
|
5819
|
+
paramsAllOptional: true,
|
|
5820
|
+
bodyOpaque: false,
|
|
5821
|
+
bodyVariants: [],
|
|
5822
|
+
acceptsBody: false,
|
|
5823
|
+
requiresAuth: true,
|
|
5824
|
+
},
|
|
5790
5825
|
];
|