@rigour-labs/cli 6.12.3-rc.2 → 6.12.3
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.
|
@@ -51,13 +51,9 @@ function printFindings(result, all) {
|
|
|
51
51
|
console.log(chalk.dim(`\n …and ${count - SHOWN} more: rigour review --all`));
|
|
52
52
|
console.log(chalk.dim('\n Wrong? Dismiss it once and it never comes back.\n'));
|
|
53
53
|
}
|
|
54
|
-
/**
|
|
55
|
-
function leftOutByCheck(
|
|
56
|
-
const
|
|
57
|
-
for (const counts of [result.preexistingByCheck, result.outsideChangeByCheck])
|
|
58
|
-
for (const [check, n] of Object.entries(counts ?? {}))
|
|
59
|
-
byCheck.set(check, (byCheck.get(check) ?? 0) + n);
|
|
60
|
-
const parts = countsByCheck(byCheck);
|
|
54
|
+
/** Findings left out of the verdict, by check, most first (`: ast-analysis 12, file-size 1`), as `checked.preexisting` or `checked.outsideChange` gives them in JSON. */
|
|
55
|
+
function leftOutByCheck(counts) {
|
|
56
|
+
const parts = countsByCheck(new Map(Object.entries(counts ?? {})));
|
|
61
57
|
return parts ? `: ${parts}` : '';
|
|
62
58
|
}
|
|
63
59
|
/** `ast-analysis 12, file-size 3`: most first, then by name. */
|
|
@@ -82,9 +78,13 @@ function printQuietLines(result, notes) {
|
|
|
82
78
|
const wholeFile = fileFindingsByCheck(result);
|
|
83
79
|
if (wholeFile)
|
|
84
80
|
lines.push(`About a changed file as a whole: ${wholeFile}${notes ? ' (listed below)' : ', shown with --notes'}.`);
|
|
85
|
-
|
|
81
|
+
// Two kinds, each with its own pointer: show_preexisting lists only the first.
|
|
82
|
+
const before = result.preexisting;
|
|
86
83
|
if (before)
|
|
87
|
-
lines.push(`Not shown: ${before} issue${before === 1 ? '' : 's'} the code already had before this change${leftOutByCheck(result)} (review.show_preexisting: true lists them).`);
|
|
84
|
+
lines.push(`Not shown: ${before} issue${before === 1 ? '' : 's'} the code already had before this change${leftOutByCheck(result.preexistingByCheck)} (review.show_preexisting: true lists them).`);
|
|
85
|
+
const outside = result.excludedOutsideChangedLines;
|
|
86
|
+
if (outside)
|
|
87
|
+
lines.push(`Not shown: ${outside} issue${outside === 1 ? '' : 's'} on lines this change did not touch${leftOutByCheck(result.outsideChangeByCheck)}.`);
|
|
88
88
|
if (result.baseUnknown)
|
|
89
89
|
lines.push('Compared with no base: HEAD already holds this diff, so findings on its lines were not checked against the code before it. Pass --base to compare.');
|
|
90
90
|
if (result.hints.length)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "6.12.3
|
|
3
|
+
"version": "6.12.3",
|
|
4
4
|
"description": "Code review that happens while your agent writes: deterministic checks on the lines it changed, quiet unless it can prove a defect, and learning from your team's fixes and dismissals. Works with Claude Code, Cursor, Codex, Cline and Windsurf.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.13"
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"inquirer": "9.2.16",
|
|
60
60
|
"ora": "^8.0.1",
|
|
61
61
|
"yaml": "^2.8.2",
|
|
62
|
-
"@rigour-labs/core": "6.12.3
|
|
62
|
+
"@rigour-labs/core": "6.12.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/fs-extra": "^11.0.4",
|
|
66
66
|
"@types/inquirer": "9.0.7",
|
|
67
67
|
"@types/node": "^25.0.3",
|
|
68
|
-
"@rigour-labs/studio": "6.12.3
|
|
68
|
+
"@rigour-labs/studio": "6.12.3"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsc && pnpm bundle-studio",
|