testzeus-cli 0.0.34__tar.gz → 0.0.36__tar.gz

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.
Files changed (53) hide show
  1. testzeus_cli-0.0.34/README.md → testzeus_cli-0.0.36/PKG-INFO +57 -0
  2. testzeus_cli-0.0.34/PKG-INFO → testzeus_cli-0.0.36/README.md +26 -30
  3. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/pyproject.toml +3 -2
  4. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/agent-capabilities.json +359 -0
  5. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/agent_capabilities.py +10 -1
  6. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/auth.py +5 -2
  7. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/cli.py +22 -14
  8. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/agent_harness.py +221 -27
  9. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/daemon.py +4 -0
  10. testzeus_cli-0.0.36/testzeus_cli/commands/telemetry.py +22 -0
  11. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_blocks.py +155 -17
  12. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/tests.py +3 -3
  13. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/tests_authoring.py +6 -2
  14. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/config.py +3 -1
  15. testzeus_cli-0.0.36/testzeus_cli/observability/__init__.py +300 -0
  16. testzeus_cli-0.0.36/testzeus_cli/observability/scrub.py +82 -0
  17. testzeus_cli-0.0.36/testzeus_cli/observability/settings.py +167 -0
  18. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/auth.py +6 -3
  19. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/formatters.py +34 -3
  20. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/validators.py +2 -2
  21. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/LICENSE +0 -0
  22. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/__init__.py +0 -0
  23. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/__init__.py +0 -0
  24. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/capabilities.py +0 -0
  25. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/connected_environments.py +0 -0
  26. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/device_pool.py +0 -0
  27. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/environments.py +0 -0
  28. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/hypermind_code_blocks.py +0 -0
  29. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/knowledge_bases.py +0 -0
  30. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/knowledge_documents.py +0 -0
  31. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/notification_channels.py +0 -0
  32. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/qa.py +0 -0
  33. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/records.py +0 -0
  34. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/tags.py +0 -0
  35. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_data.py +0 -0
  36. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_report_runs.py +0 -0
  37. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_report_schedules.py +0 -0
  38. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_run_groups.py +0 -0
  39. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_runs.py +0 -0
  40. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_suite_node_runs.py +0 -0
  41. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_suite_runs.py +0 -0
  42. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_suite_schedules.py +0 -0
  43. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/test_suites.py +0 -0
  44. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/tests_ai_generator.py +0 -0
  45. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/commands/user_integrations.py +0 -0
  46. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/record-contract.json +0 -0
  47. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/record_contract.py +0 -0
  48. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/record_query.py +0 -0
  49. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/__init__.py +0 -0
  50. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/client.py +0 -0
  51. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/files.py +0 -0
  52. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/links.py +0 -0
  53. {testzeus_cli-0.0.34 → testzeus_cli-0.0.36}/testzeus_cli/utils/profile.py +0 -0
@@ -1,3 +1,33 @@
1
+ Metadata-Version: 2.4
2
+ Name: testzeus-cli
3
+ Version: 0.0.36
4
+ Summary: Command-line interface for TestZeus testing platform
5
+ License-File: LICENSE
6
+ Author: Shriyansh Agnihotri
7
+ Author-email: shriyansh@testzeus.com
8
+ Requires-Python: >=3.11,<3.14
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Provides-Extra: daemon
15
+ Requires-Dist: Pygments (==2.20.0)
16
+ Requires-Dist: aiohttp (>=3.14.1,<4.0.0)
17
+ Requires-Dist: click (>=8.1.3,<9.0.0)
18
+ Requires-Dist: cryptography (>=48.0.1,<49.0.0)
19
+ Requires-Dist: ipdb (>=0.13.13,<0.14.0)
20
+ Requires-Dist: keyring (>=24.0.0,<25.0.0)
21
+ Requires-Dist: pocketbase (>=0.15.0,<0.16.0)
22
+ Requires-Dist: pydantic (>=2.0.0,<3.0.0)
23
+ Requires-Dist: pyyaml (>=6.0,<7.0)
24
+ Requires-Dist: rich (>=13.3.1,<14.0.0)
25
+ Requires-Dist: sentry-sdk (>=3.0.2,<4.0.0)
26
+ Requires-Dist: testzeus-sdk (>=0.0.35,<0.1.0)
27
+ Requires-Dist: toml (>=0.10.2,<0.11.0)
28
+ Project-URL: Repository, https://github.com/test-zeus-ai/testzeus-cli
29
+ Description-Content-Type: text/markdown
30
+
1
31
  # TestZeus CLI
2
32
 
3
33
  A powerful command-line interface for the TestZeus testing platform.
@@ -42,6 +72,7 @@ The following options can be used with any command:
42
72
  | `--api-url` | Custom TestZeus API URL |
43
73
  | `--verbose` | Enable verbose output |
44
74
  | `--format` | Output format: json, table, or yaml (default: table) |
75
+ | `--no-telemetry` | Send no usage or error reports for this command |
45
76
 
46
77
  ## Managing Tests
47
78
 
@@ -1101,6 +1132,31 @@ Example GitHub Actions workflow:
1101
1132
  --interval 30
1102
1133
  ```
1103
1134
 
1135
+ ## Telemetry
1136
+
1137
+ The CLI sends anonymous usage metrics and reports of unexpected errors to [Sentry](https://sentry.io) to help us find bugs and see which commands are used. It is on by default. The first command you run prints a notice to stderr once, saying what is sent and how to opt out.
1138
+
1139
+ What is sent:
1140
+
1141
+ - for each command: its name (for example `testzeus tests list`, never its arguments), outcome (`ok`, `expected_error`, `error` or `cancelled`), exit code, duration and error class name;
1142
+ - for unexpected errors only: the exception type, its message and the stack trace, with argument values, home-directory paths, tokens, keys, passwords and emails removed;
1143
+ - the CLI, SDK, Python (major and minor) and OS family (`darwin`, `linux`, `windows` or `other`);
1144
+ - which coding agent ran the CLI, if any: `claude-code`, `codex`, `cursor`, `copilot`, `gemini` or `other`, else `human`;
1145
+ - a random installation id stored in `~/.testzeus/installation_id` and, after you log in, your TestZeus user id and tenant id.
1146
+
1147
+ What is never sent: argument or option values, test content, file contents or paths, emails, tokens, API keys, passwords, local variables or your machine's host name. Expected errors (wrong usage, Ctrl-C, authentication, not found and validation errors from the platform) are counted but not reported.
1148
+
1149
+ Reports are sent only when the profile points at the TestZeus cloud (`pb.prod.testzeus.app` or a TestZeus preprod or dev host). Against `localhost` or any other host, nothing is sent. Sending never slows the CLI down by more than 2 seconds, even offline, and never changes its output or exit code.
1150
+
1151
+ Any of these turns it off:
1152
+
1153
+ ```bash
1154
+ testzeus --no-telemetry tests list # this command only (the flag also works after the command)
1155
+ export TESTZEUS_TELEMETRY=0 # this shell; also accepts false, no, off
1156
+ export DO_NOT_TRACK=1 # the cross-tool convention; TESTZEUS_TELEMETRY wins if both are set
1157
+ testzeus telemetry off # saved in ~/.testzeus/config.yaml; `testzeus telemetry status` shows the state
1158
+ ```
1159
+
1104
1160
  ## Error Handling
1105
1161
 
1106
1162
  When an error occurs, the CLI will display an error message. For more detailed information, run any command with the `--verbose` flag:
@@ -1190,3 +1246,4 @@ their own consent rules. The timestamp check is preflight, not atomic CAS.
1190
1246
  Regenerate the committed discovery snapshot using
1191
1247
  `PYTHONPATH=. python scripts/export-record-contract.py`, then update Hermes' pin
1192
1248
  and its `src/tools/record-contract.json`. Contract tests reject drift.
1249
+
@@ -1,32 +1,3 @@
1
- Metadata-Version: 2.4
2
- Name: testzeus-cli
3
- Version: 0.0.34
4
- Summary: Command-line interface for TestZeus testing platform
5
- License-File: LICENSE
6
- Author: Shriyansh Agnihotri
7
- Author-email: shriyansh@testzeus.com
8
- Requires-Python: >=3.11,<3.14
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Python :: 3.13
14
- Provides-Extra: daemon
15
- Requires-Dist: Pygments (==2.20.0)
16
- Requires-Dist: aiohttp (>=3.14.1,<4.0.0)
17
- Requires-Dist: click (>=8.1.3,<9.0.0)
18
- Requires-Dist: cryptography (>=48.0.1,<49.0.0)
19
- Requires-Dist: ipdb (>=0.13.13,<0.14.0)
20
- Requires-Dist: keyring (>=24.0.0,<25.0.0)
21
- Requires-Dist: pocketbase (>=0.15.0,<0.16.0)
22
- Requires-Dist: pydantic (>=2.0.0,<3.0.0)
23
- Requires-Dist: pyyaml (>=6.0,<7.0)
24
- Requires-Dist: rich (>=13.3.1,<14.0.0)
25
- Requires-Dist: testzeus-sdk (>=0.0.28,<0.1.0)
26
- Requires-Dist: toml (>=0.10.2,<0.11.0)
27
- Project-URL: Repository, https://github.com/test-zeus-ai/testzeus-cli
28
- Description-Content-Type: text/markdown
29
-
30
1
  # TestZeus CLI
31
2
 
32
3
  A powerful command-line interface for the TestZeus testing platform.
@@ -71,6 +42,7 @@ The following options can be used with any command:
71
42
  | `--api-url` | Custom TestZeus API URL |
72
43
  | `--verbose` | Enable verbose output |
73
44
  | `--format` | Output format: json, table, or yaml (default: table) |
45
+ | `--no-telemetry` | Send no usage or error reports for this command |
74
46
 
75
47
  ## Managing Tests
76
48
 
@@ -1130,6 +1102,31 @@ Example GitHub Actions workflow:
1130
1102
  --interval 30
1131
1103
  ```
1132
1104
 
1105
+ ## Telemetry
1106
+
1107
+ The CLI sends anonymous usage metrics and reports of unexpected errors to [Sentry](https://sentry.io) to help us find bugs and see which commands are used. It is on by default. The first command you run prints a notice to stderr once, saying what is sent and how to opt out.
1108
+
1109
+ What is sent:
1110
+
1111
+ - for each command: its name (for example `testzeus tests list`, never its arguments), outcome (`ok`, `expected_error`, `error` or `cancelled`), exit code, duration and error class name;
1112
+ - for unexpected errors only: the exception type, its message and the stack trace, with argument values, home-directory paths, tokens, keys, passwords and emails removed;
1113
+ - the CLI, SDK, Python (major and minor) and OS family (`darwin`, `linux`, `windows` or `other`);
1114
+ - which coding agent ran the CLI, if any: `claude-code`, `codex`, `cursor`, `copilot`, `gemini` or `other`, else `human`;
1115
+ - a random installation id stored in `~/.testzeus/installation_id` and, after you log in, your TestZeus user id and tenant id.
1116
+
1117
+ What is never sent: argument or option values, test content, file contents or paths, emails, tokens, API keys, passwords, local variables or your machine's host name. Expected errors (wrong usage, Ctrl-C, authentication, not found and validation errors from the platform) are counted but not reported.
1118
+
1119
+ Reports are sent only when the profile points at the TestZeus cloud (`pb.prod.testzeus.app` or a TestZeus preprod or dev host). Against `localhost` or any other host, nothing is sent. Sending never slows the CLI down by more than 2 seconds, even offline, and never changes its output or exit code.
1120
+
1121
+ Any of these turns it off:
1122
+
1123
+ ```bash
1124
+ testzeus --no-telemetry tests list # this command only (the flag also works after the command)
1125
+ export TESTZEUS_TELEMETRY=0 # this shell; also accepts false, no, off
1126
+ export DO_NOT_TRACK=1 # the cross-tool convention; TESTZEUS_TELEMETRY wins if both are set
1127
+ testzeus telemetry off # saved in ~/.testzeus/config.yaml; `testzeus telemetry status` shows the state
1128
+ ```
1129
+
1133
1130
  ## Error Handling
1134
1131
 
1135
1132
  When an error occurs, the CLI will display an error message. For more detailed information, run any command with the `--verbose` flag:
@@ -1219,4 +1216,3 @@ their own consent rules. The timestamp check is preflight, not atomic CAS.
1219
1216
  Regenerate the committed discovery snapshot using
1220
1217
  `PYTHONPATH=. python scripts/export-record-contract.py`, then update Hermes' pin
1221
1218
  and its `src/tools/record-contract.json`. Contract tests reject drift.
1222
-
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "testzeus-cli"
7
- version = "0.0.34"
7
+ version = "0.0.36"
8
8
  description = "Command-line interface for TestZeus testing platform"
9
9
  authors = ["Shriyansh Agnihotri <shriyansh@testzeus.com>"]
10
10
  readme = "README.md"
@@ -22,12 +22,13 @@ pydantic = "^2.0.0"
22
22
  pyyaml = "^6.0"
23
23
  keyring = "^24.0.0"
24
24
  ipdb = "^0.13.13"
25
- testzeus-sdk = ">=0.0.28,<0.1.0"
25
+ testzeus-sdk = ">=0.0.35,<0.1.0"
26
26
  pocketbase = "^0.15.0"
27
27
  toml = "^0.10.2"
28
28
  aiohttp = "^3.14.1"
29
29
  Pygments = "2.20.0"
30
30
  cryptography = "^48.0.1"
31
+ sentry-sdk = "^3.0.2"
31
32
 
32
33
  [tool.poetry.extras]
33
34
  daemon = [
@@ -43,6 +43,49 @@
43
43
  }
44
44
  ]
45
45
  },
46
+ {
47
+ "id": "agent-harness.generate-more",
48
+ "command": [
49
+ "agent-harness",
50
+ "generate-more"
51
+ ],
52
+ "description": "Generate more pathways for an existing agent",
53
+ "risk": "mutate",
54
+ "fixedOptions": [],
55
+ "parameters": [
56
+ {
57
+ "name": "agent_id",
58
+ "kind": "string",
59
+ "required": true,
60
+ "multiple": false,
61
+ "positional": true,
62
+ "flag": false,
63
+ "description": "agent id"
64
+ },
65
+ {
66
+ "name": "prompt",
67
+ "kind": "string",
68
+ "required": false,
69
+ "multiple": false,
70
+ "positional": false,
71
+ "flag": false,
72
+ "description": "Directional prompt for the new pathways",
73
+ "option": "--prompt"
74
+ },
75
+ {
76
+ "name": "num",
77
+ "kind": "integer",
78
+ "required": false,
79
+ "multiple": false,
80
+ "positional": false,
81
+ "flag": false,
82
+ "description": "Number of pathways to generate",
83
+ "option": "--num",
84
+ "minimum": 1,
85
+ "maximum": 100
86
+ }
87
+ ]
88
+ },
46
89
  {
47
90
  "id": "agent-harness.generate-pathways",
48
91
  "command": [
@@ -106,6 +149,50 @@
106
149
  }
107
150
  ]
108
151
  },
152
+ {
153
+ "id": "agent-harness.generation-runs",
154
+ "command": [
155
+ "agent-harness",
156
+ "generation-runs"
157
+ ],
158
+ "description": "List an agent's pathway-generation runs with their status",
159
+ "risk": "read",
160
+ "fixedOptions": [],
161
+ "parameters": [
162
+ {
163
+ "name": "agent_id",
164
+ "kind": "string",
165
+ "required": true,
166
+ "multiple": false,
167
+ "positional": true,
168
+ "flag": false,
169
+ "description": "agent id"
170
+ },
171
+ {
172
+ "name": "page",
173
+ "kind": "integer",
174
+ "required": false,
175
+ "multiple": false,
176
+ "positional": false,
177
+ "flag": false,
178
+ "description": "Page number",
179
+ "option": "--page",
180
+ "minimum": 1
181
+ },
182
+ {
183
+ "name": "per_page",
184
+ "kind": "integer",
185
+ "required": false,
186
+ "multiple": false,
187
+ "positional": false,
188
+ "flag": false,
189
+ "description": "Items per page",
190
+ "option": "--per-page",
191
+ "minimum": 1,
192
+ "maximum": 100
193
+ }
194
+ ]
195
+ },
109
196
  {
110
197
  "id": "agent-harness.get-agent",
111
198
  "command": [
@@ -148,6 +235,27 @@
148
235
  }
149
236
  ]
150
237
  },
238
+ {
239
+ "id": "agent-harness.get-report",
240
+ "command": [
241
+ "agent-harness",
242
+ "get-report"
243
+ ],
244
+ "description": "Get one simulation report",
245
+ "risk": "read",
246
+ "fixedOptions": [],
247
+ "parameters": [
248
+ {
249
+ "name": "report_id",
250
+ "kind": "string",
251
+ "required": true,
252
+ "multiple": false,
253
+ "positional": true,
254
+ "flag": false,
255
+ "description": "report id"
256
+ }
257
+ ]
258
+ },
151
259
  {
152
260
  "id": "agent-harness.get-simulation",
153
261
  "command": [
@@ -311,6 +419,116 @@
311
419
  }
312
420
  ]
313
421
  },
422
+ {
423
+ "id": "agent-harness.list-profiles",
424
+ "command": [
425
+ "agent-harness",
426
+ "list-profiles"
427
+ ],
428
+ "description": "List Agentforce agent profiles you can generate pathways for",
429
+ "risk": "read",
430
+ "fixedOptions": [],
431
+ "parameters": [
432
+ {
433
+ "name": "search",
434
+ "kind": "string",
435
+ "required": false,
436
+ "multiple": false,
437
+ "positional": false,
438
+ "flag": false,
439
+ "description": "Filter by profile name",
440
+ "option": "--search"
441
+ },
442
+ {
443
+ "name": "connection_id",
444
+ "kind": "string",
445
+ "required": false,
446
+ "multiple": false,
447
+ "positional": false,
448
+ "flag": false,
449
+ "description": "Only profiles of this Salesforce connection",
450
+ "option": "--connection"
451
+ },
452
+ {
453
+ "name": "page",
454
+ "kind": "integer",
455
+ "required": false,
456
+ "multiple": false,
457
+ "positional": false,
458
+ "flag": false,
459
+ "description": "Page number",
460
+ "option": "--page",
461
+ "minimum": 1
462
+ },
463
+ {
464
+ "name": "per_page",
465
+ "kind": "integer",
466
+ "required": false,
467
+ "multiple": false,
468
+ "positional": false,
469
+ "flag": false,
470
+ "description": "Items per page",
471
+ "option": "--per-page",
472
+ "minimum": 1,
473
+ "maximum": 100
474
+ }
475
+ ]
476
+ },
477
+ {
478
+ "id": "agent-harness.list-reports",
479
+ "command": [
480
+ "agent-harness",
481
+ "list-reports"
482
+ ],
483
+ "description": "List simulation reports with pass rates and verdicts",
484
+ "risk": "read",
485
+ "fixedOptions": [],
486
+ "parameters": [
487
+ {
488
+ "name": "agent_id",
489
+ "kind": "string",
490
+ "required": false,
491
+ "multiple": false,
492
+ "positional": false,
493
+ "flag": false,
494
+ "description": "Only reports of this agent",
495
+ "option": "--agent"
496
+ },
497
+ {
498
+ "name": "group_id",
499
+ "kind": "string",
500
+ "required": false,
501
+ "multiple": false,
502
+ "positional": false,
503
+ "flag": false,
504
+ "description": "Only the report of this run group",
505
+ "option": "--group"
506
+ },
507
+ {
508
+ "name": "page",
509
+ "kind": "integer",
510
+ "required": false,
511
+ "multiple": false,
512
+ "positional": false,
513
+ "flag": false,
514
+ "description": "Page number",
515
+ "option": "--page",
516
+ "minimum": 1
517
+ },
518
+ {
519
+ "name": "per_page",
520
+ "kind": "integer",
521
+ "required": false,
522
+ "multiple": false,
523
+ "positional": false,
524
+ "flag": false,
525
+ "description": "Items per page",
526
+ "option": "--per-page",
527
+ "minimum": 1,
528
+ "maximum": 100
529
+ }
530
+ ]
531
+ },
314
532
  {
315
533
  "id": "agent-harness.list-simulations",
316
534
  "command": [
@@ -355,6 +573,57 @@
355
573
  }
356
574
  ]
357
575
  },
576
+ {
577
+ "id": "agent-harness.pathway-history",
578
+ "command": [
579
+ "agent-harness",
580
+ "pathway-history"
581
+ ],
582
+ "description": "Every run of one pathway, to compare outcomes over time",
583
+ "risk": "read",
584
+ "fixedOptions": [],
585
+ "parameters": [
586
+ {
587
+ "name": "agent_id",
588
+ "kind": "string",
589
+ "required": true,
590
+ "multiple": false,
591
+ "positional": true,
592
+ "flag": false,
593
+ "description": "agent id"
594
+ },
595
+ {
596
+ "name": "pathway_id",
597
+ "kind": "string",
598
+ "required": true,
599
+ "multiple": false,
600
+ "positional": true,
601
+ "flag": false,
602
+ "description": "pathway id"
603
+ }
604
+ ]
605
+ },
606
+ {
607
+ "id": "agent-harness.pathway-trends",
608
+ "command": [
609
+ "agent-harness",
610
+ "pathway-trends"
611
+ ],
612
+ "description": "Compare how each pathway of an agent did across runs",
613
+ "risk": "read",
614
+ "fixedOptions": [],
615
+ "parameters": [
616
+ {
617
+ "name": "agent_id",
618
+ "kind": "string",
619
+ "required": true,
620
+ "multiple": false,
621
+ "positional": true,
622
+ "flag": false,
623
+ "description": "agent id"
624
+ }
625
+ ]
626
+ },
358
627
  {
359
628
  "id": "agent-harness.run",
360
629
  "command": [
@@ -406,6 +675,27 @@
406
675
  }
407
676
  ]
408
677
  },
678
+ {
679
+ "id": "agent-harness.sf-profiles",
680
+ "command": [
681
+ "agent-harness",
682
+ "sf-profiles"
683
+ ],
684
+ "description": "List the Salesforce user profiles a run can simulate (Run as profile)",
685
+ "risk": "read",
686
+ "fixedOptions": [],
687
+ "parameters": [
688
+ {
689
+ "name": "connection_id",
690
+ "kind": "string",
691
+ "required": true,
692
+ "multiple": false,
693
+ "positional": true,
694
+ "flag": false,
695
+ "description": "connection id"
696
+ }
697
+ ]
698
+ },
409
699
  {
410
700
  "id": "agent-harness.status",
411
701
  "command": [
@@ -427,6 +717,75 @@
427
717
  }
428
718
  ]
429
719
  },
720
+ {
721
+ "id": "agent-harness.update-pathway",
722
+ "command": [
723
+ "agent-harness",
724
+ "update-pathway"
725
+ ],
726
+ "description": "Edit an adversarial pathway",
727
+ "risk": "mutate",
728
+ "fixedOptions": [],
729
+ "parameters": [
730
+ {
731
+ "name": "pathway_id",
732
+ "kind": "string",
733
+ "required": true,
734
+ "multiple": false,
735
+ "positional": true,
736
+ "flag": false,
737
+ "description": "pathway id"
738
+ },
739
+ {
740
+ "name": "objective",
741
+ "kind": "string",
742
+ "required": false,
743
+ "multiple": false,
744
+ "positional": false,
745
+ "flag": false,
746
+ "description": "New objective",
747
+ "option": "--objective"
748
+ },
749
+ {
750
+ "name": "expected_outcome",
751
+ "kind": "string",
752
+ "required": false,
753
+ "multiple": false,
754
+ "positional": false,
755
+ "flag": false,
756
+ "description": "New expected outcome",
757
+ "option": "--expected-outcome"
758
+ },
759
+ {
760
+ "name": "max_turns",
761
+ "kind": "integer",
762
+ "required": false,
763
+ "multiple": false,
764
+ "positional": false,
765
+ "flag": false,
766
+ "description": "New turn limit",
767
+ "option": "--max-turns",
768
+ "minimum": 1,
769
+ "maximum": 200
770
+ },
771
+ {
772
+ "name": "risk_level",
773
+ "kind": "string",
774
+ "required": false,
775
+ "multiple": false,
776
+ "positional": false,
777
+ "flag": false,
778
+ "description": "New risk level",
779
+ "option": "--risk-level",
780
+ "choices": [
781
+ "CRITICAL",
782
+ "HIGH",
783
+ "MEDIUM",
784
+ "LOW"
785
+ ]
786
+ }
787
+ ]
788
+ },
430
789
  {
431
790
  "id": "device-pool.get",
432
791
  "command": [
@@ -46,6 +46,15 @@ APPROVED = {
46
46
  "agent-harness run": "mutate",
47
47
  "agent-harness cancel": "destructive",
48
48
  "agent-harness delete-pathway": "destructive",
49
+ "agent-harness list-profiles": "read",
50
+ "agent-harness sf-profiles": "read",
51
+ "agent-harness generation-runs": "read",
52
+ "agent-harness list-reports": "read",
53
+ "agent-harness get-report": "read",
54
+ "agent-harness pathway-trends": "read",
55
+ "agent-harness pathway-history": "read",
56
+ "agent-harness generate-more": "mutate",
57
+ "agent-harness update-pathway": "mutate",
49
58
  "knowledge-documents list": "read",
50
59
  "knowledge-documents list-connections": "read",
51
60
  "knowledge-documents get": "read",
@@ -91,7 +100,7 @@ def parameter_contract(param):
91
100
  value["maximum"] = param.type.max
92
101
  if param.name == "page":
93
102
  value["minimum"] = 1
94
- if param.name in ("per_page", "per_agent", "num"):
103
+ if param.name in ("per_page", "per_agent"):
95
104
  value.update(minimum=1, maximum=100)
96
105
  return value
97
106
 
@@ -13,6 +13,8 @@ from rich.console import Console
13
13
  from typing import Dict, Any, Optional
14
14
 
15
15
  from testzeus_sdk import TestZeusClient
16
+ from testzeus_cli import observability
17
+ from testzeus_cli.observability import client_identity
16
18
  from testzeus_cli.config import (
17
19
  update_config,
18
20
  get_client_config,
@@ -59,7 +61,7 @@ def login_command(
59
61
  )
60
62
 
61
63
  # Create a clean config without email/password to avoid duplicates
62
- base_config = {"base_url": config.get("base_url")}
64
+ base_config = {"base_url": config.get("base_url"), **client_identity()}
63
65
 
64
66
  # Create client with explicit email/password
65
67
  client = TestZeusClient(email=email, password=password, **base_config)
@@ -72,6 +74,7 @@ def login_command(
72
74
  # Get tenant ID from the authenticated client
73
75
  tenant_id = client.get_tenant_id()
74
76
  user_id = client.get_user_id()
77
+ observability.identify(user_id, tenant_id)
75
78
 
76
79
  if save:
77
80
  update_config(
@@ -198,7 +201,7 @@ def session_exchange_command(
198
201
  _debug(f"session-exchange start profile={profile_name} base_url={base_url}")
199
202
 
200
203
  # Create SDK client
201
- client = TestZeusClient(base_url=base_url)
204
+ client = TestZeusClient(base_url=base_url, **client_identity())
202
205
 
203
206
  async def enrich_from_user_record(
204
207
  session_token: str,