@nexusclawhq/cli 0.3.72 → 0.3.73
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/dist/build-info.json +4 -4
- package/dist/nexus-cli/src/commands/test/report.js +36 -27
- package/dist/nexus-cli/src/commands/test/report.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "@nexusclawhq/cli",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"gitSha": "
|
|
3
|
+
"version": "0.3.73",
|
|
4
|
+
"gitSha": "02379960a4fb8efed178ec45d121c570c2dad654",
|
|
5
5
|
"ciRunId": null,
|
|
6
|
-
"contentDigest": "sha256:
|
|
7
|
-
"generatedAt": "2026-10-
|
|
6
|
+
"contentDigest": "sha256:29b073f4b0716a13d3bff397a9e40cd3ef3117e061ab3c9a2c32b78ce8201100",
|
|
7
|
+
"generatedAt": "2026-10-02T20:42:48.858Z"
|
|
8
8
|
}
|
|
@@ -3,43 +3,52 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.reportCommand = void 0;
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
5
|
const error_handler_1 = require("../../utils/error-handler");
|
|
6
|
-
const api_client_1 = require("../../services/api-client");
|
|
7
6
|
const table_formatter_1 = require("../../utils/table-formatter");
|
|
8
7
|
const machine_result_1 = require("../../contracts/machine-result");
|
|
9
8
|
const command_options_1 = require("../../utils/command-options");
|
|
9
|
+
const workforce_test_remote_1 = require("../../services/workforce-test-remote");
|
|
10
10
|
exports.reportCommand = new commander_1.Command('report')
|
|
11
|
-
.description('View historical test results')
|
|
12
|
-
.option('--result-format <format>', 'Output format: table|json', 'table')
|
|
11
|
+
.description('View historical agent test results')
|
|
13
12
|
.option('-o, --target-org <alias>', 'Target org alias')
|
|
13
|
+
.option('--test-case-id <id>', 'Filter results by test case ID')
|
|
14
|
+
.option('--suite-run-id <id>', 'Filter results by suite run ID')
|
|
15
|
+
.option('--result-format <format>', 'Output format: table|json', 'table')
|
|
14
16
|
.option('--json', 'Output one machine-readable JSON document', false)
|
|
15
17
|
.action((0, error_handler_1.withErrorHandler)(async (opts, command) => {
|
|
16
18
|
const json = (0, command_options_1.isJsonOutputRequested)(opts, command);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
19
|
+
const results = (await (0, workforce_test_remote_1.listTestResultsRemote)({
|
|
20
|
+
targetOrg: opts.targetOrg ?? 'default',
|
|
21
|
+
testCaseId: opts.testCaseId,
|
|
22
|
+
suiteRunId: opts.suiteRunId,
|
|
23
|
+
}));
|
|
23
24
|
if (json) {
|
|
24
|
-
(0, machine_result_1.emitCliResult)((0, machine_result_1.buildCliResult)({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
(0, machine_result_1.emitCliResult)((0, machine_result_1.buildCliResult)({
|
|
26
|
+
command: 'test report',
|
|
27
|
+
phase: 'complete',
|
|
28
|
+
contractVersion: 'nexusclaw.cli-command-contract/v1',
|
|
29
|
+
ok: true,
|
|
30
|
+
data: { results, count: results.length },
|
|
31
|
+
}));
|
|
32
|
+
return;
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
{ key: 'startTime', label: 'TIME' },
|
|
33
|
-
{ key: 'passed', label: 'PASSED' },
|
|
34
|
-
{ key: 'failed', label: 'FAILED' },
|
|
35
|
-
{ key: 'total', label: 'TOTAL' },
|
|
36
|
-
{ key: 'duration', label: 'DURATION' },
|
|
37
|
-
], res.data.runs.map((r) => ({
|
|
38
|
-
...r,
|
|
39
|
-
startTime: new Date(r.startTime).toLocaleString(),
|
|
40
|
-
duration: `${r.duration}ms`,
|
|
41
|
-
})));
|
|
42
|
-
console.log(table);
|
|
34
|
+
if (results.length === 0) {
|
|
35
|
+
console.log('No test results found. Run `nexus test run` or `nexus workforce test-case run` first.');
|
|
36
|
+
return;
|
|
43
37
|
}
|
|
38
|
+
const table = (0, table_formatter_1.formatTable)([
|
|
39
|
+
{ key: 'suiteRunId', label: 'SUITE RUN' },
|
|
40
|
+
{ key: 'testCaseId', label: 'TEST CASE' },
|
|
41
|
+
{ key: 'status', label: 'STATUS' },
|
|
42
|
+
{ key: 'durationMs', label: 'DURATION (MS)' },
|
|
43
|
+
{ key: 'createdAt', label: 'CREATED' },
|
|
44
|
+
], results.map((r) => ({
|
|
45
|
+
suiteRunId: r.suiteRunId ?? '-',
|
|
46
|
+
testCaseId: r.testCaseId ?? '-',
|
|
47
|
+
status: r.status ?? '-',
|
|
48
|
+
durationMs: r.durationMs ?? '-',
|
|
49
|
+
createdAt: r.createdAt ?? '-',
|
|
50
|
+
})));
|
|
51
|
+
console.log(table);
|
|
52
|
+
console.log(`\n${results.length} result(s)`);
|
|
44
53
|
}));
|
|
45
54
|
//# sourceMappingURL=report.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/test/report.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,6DAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/test/report.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,6DAA6D;AAC7D,iEAA0D;AAC1D,mEAA+E;AAC/E,iEAAoE;AACpE,gFAA6E;AAmBhE,QAAA,aAAa,GAAG,IAAI,mBAAO,CAAC,QAAQ,CAAC;KAC/C,WAAW,CAAC,oCAAoC,CAAC;KACjD,MAAM,CAAC,0BAA0B,EAAE,kBAAkB,CAAC;KACtD,MAAM,CAAC,qBAAqB,EAAE,gCAAgC,CAAC;KAC/D,MA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E,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE;KACvC,EACD,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAClB,UAAU,EAAE,CAAC,CAAC,UAAU,IAAI,GAAG;QAC/B,UAAU,EAAE,CAAC,CAAC,UAAU,IAAI,GAAG;QAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,IAAI,GAAG;QACvB,UAAU,EAAE,CAAC,CAAC,UAAU,IAAI,GAAG;QAC/B,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,GAAG;KAC9B,CAAC,CAAC,CACJ,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACnB,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,MAAM,YAAY,CAAC,CAAC;AAC/C,CAAC,CACF,CACF,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const WORKFORCE_TEST_CLI_VERSION = "0.3.
|
|
1
|
+
export declare const WORKFORCE_TEST_CLI_VERSION = "0.3.73";
|
|
2
2
|
export declare function assertWorkforceTestCompatibility(compatibilityVersion: string): void;
|
|
3
3
|
export declare const WORKFORCE_TEST_REGRESSION_QUERY = "\nquery AgentTestRegression($agentId: ID!, $suiteRunId: ID!) {\n agentTestRegression(agentId: $agentId, suiteRunId: $suiteRunId) { suiteRunId current baseline deltas }\n}";
|
|
4
4
|
export interface WorkforceTestSuiteMetrics {
|
|
@@ -12,7 +12,7 @@ exports.listTestResultsRemote = listTestResultsRemote;
|
|
|
12
12
|
exports.getTestBaselineRemote = getTestBaselineRemote;
|
|
13
13
|
exports.getTestRegressionRemote = getTestRegressionRemote;
|
|
14
14
|
const api_client_1 = require("./api-client");
|
|
15
|
-
exports.WORKFORCE_TEST_CLI_VERSION = '0.3.
|
|
15
|
+
exports.WORKFORCE_TEST_CLI_VERSION = '0.3.73';
|
|
16
16
|
function parseCompatibilityVersion(version) {
|
|
17
17
|
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(version.trim());
|
|
18
18
|
if (!match)
|