@open-code-review/cli 1.8.3 → 1.8.4
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/dashboard/server.js +4 -3
- package/dist/index.js +20 -4
- package/package.json +2 -2
package/dist/dashboard/server.js
CHANGED
|
@@ -26525,9 +26525,10 @@ var FilesystemSync = class {
|
|
|
26525
26525
|
return;
|
|
26526
26526
|
}
|
|
26527
26527
|
const allFindings = meta.reviewers.flatMap((r) => r.findings ?? []);
|
|
26528
|
-
const
|
|
26529
|
-
const
|
|
26530
|
-
const
|
|
26528
|
+
const sc = meta.synthesis_counts;
|
|
26529
|
+
const blockerCount = sc?.blockers ?? allFindings.filter((f) => f.category === "blocker").length;
|
|
26530
|
+
const shouldFixCount = sc?.should_fix ?? allFindings.filter((f) => f.category === "should_fix").length;
|
|
26531
|
+
const suggestionCount = sc?.suggestions ?? allFindings.filter((f) => f.category === "suggestion").length;
|
|
26531
26532
|
const reviewerCount = meta.reviewers.length;
|
|
26532
26533
|
const totalFindingCount = allFindings.length;
|
|
26533
26534
|
this.db.run("BEGIN TRANSACTION");
|
package/dist/index.js
CHANGED
|
@@ -20776,7 +20776,7 @@ ${hint}
|
|
|
20776
20776
|
}
|
|
20777
20777
|
|
|
20778
20778
|
// src/lib/version.ts
|
|
20779
|
-
var CLI_VERSION = true ? "1.8.
|
|
20779
|
+
var CLI_VERSION = true ? "1.8.4" : createRequire(import.meta.url)("../../package.json").version;
|
|
20780
20780
|
|
|
20781
20781
|
// src/lib/deps.ts
|
|
20782
20782
|
import { execFileSync } from "node:child_process";
|
|
@@ -24992,6 +24992,21 @@ function validateRoundMeta(meta) {
|
|
|
24992
24992
|
}
|
|
24993
24993
|
}
|
|
24994
24994
|
}
|
|
24995
|
+
if (obj.synthesis_counts !== void 0) {
|
|
24996
|
+
if (!obj.synthesis_counts || typeof obj.synthesis_counts !== "object") {
|
|
24997
|
+
throw new Error("synthesis_counts must be an object");
|
|
24998
|
+
}
|
|
24999
|
+
const sc = obj.synthesis_counts;
|
|
25000
|
+
if (typeof sc.blockers !== "number" || sc.blockers < 0) {
|
|
25001
|
+
throw new Error("synthesis_counts.blockers must be a non-negative number");
|
|
25002
|
+
}
|
|
25003
|
+
if (typeof sc.should_fix !== "number" || sc.should_fix < 0) {
|
|
25004
|
+
throw new Error("synthesis_counts.should_fix must be a non-negative number");
|
|
25005
|
+
}
|
|
25006
|
+
if (typeof sc.suggestions !== "number" || sc.suggestions < 0) {
|
|
25007
|
+
throw new Error("synthesis_counts.suggestions must be a non-negative number");
|
|
25008
|
+
}
|
|
25009
|
+
}
|
|
24995
25010
|
return meta;
|
|
24996
25011
|
}
|
|
24997
25012
|
function computeRoundCounts(meta) {
|
|
@@ -24999,10 +25014,11 @@ function computeRoundCounts(meta) {
|
|
|
24999
25014
|
for (const reviewer of meta.reviewers) {
|
|
25000
25015
|
allFindings.push(...reviewer.findings);
|
|
25001
25016
|
}
|
|
25017
|
+
const sc = meta.synthesis_counts;
|
|
25002
25018
|
return {
|
|
25003
|
-
blockerCount: allFindings.filter((f) => f.category === "blocker").length,
|
|
25004
|
-
shouldFixCount: allFindings.filter((f) => f.category === "should_fix").length,
|
|
25005
|
-
suggestionCount: allFindings.filter((f) => f.category === "suggestion").length,
|
|
25019
|
+
blockerCount: sc ? sc.blockers : allFindings.filter((f) => f.category === "blocker").length,
|
|
25020
|
+
shouldFixCount: sc ? sc.should_fix : allFindings.filter((f) => f.category === "should_fix").length,
|
|
25021
|
+
suggestionCount: sc ? sc.suggestions : allFindings.filter((f) => f.category === "suggestion").length,
|
|
25006
25022
|
reviewerCount: meta.reviewers.length,
|
|
25007
25023
|
totalFindingCount: allFindings.length
|
|
25008
25024
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-code-review/cli",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "CLI for Open Code Review - Multi-environment setup and progress tracking",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"ora": "^8.1.1",
|
|
51
51
|
"socket.io": "^4.8",
|
|
52
52
|
"sql.js": "^1.14.1",
|
|
53
|
-
"@open-code-review/agents": "1.8.
|
|
53
|
+
"@open-code-review/agents": "1.8.4"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|