@rigour-labs/cli 1.5.1 → 1.6.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.
@@ -56,6 +56,12 @@ async function explainCommand(cwd) {
56
56
  else if (report.status === 'PASS') {
57
57
  console.log(chalk_1.default.green('\n✨ All quality gates passed! No violations found.\n'));
58
58
  }
59
+ if (report.status === 'FAIL') {
60
+ console.log(chalk_1.default.bold('\n👉 Next Steps:'));
61
+ console.log(chalk_1.default.dim(' 1. Refactor the code to address the violations above.'));
62
+ console.log(chalk_1.default.dim(' 2. Run `rigour check` again to verify your fixes.'));
63
+ console.log(chalk_1.default.dim(' 3. If using an agent, pass it the violations as constraints.\n'));
64
+ }
59
65
  if (report.stats) {
60
66
  console.log(chalk_1.default.dim(`Duration: ${report.stats.duration_ms}ms`));
61
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigour-labs/cli",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "bin": {
5
5
  "rigour": "dist/cli.js"
6
6
  },
@@ -20,7 +20,7 @@
20
20
  "fs-extra": "^11.2.0",
21
21
  "globby": "^14.0.1",
22
22
  "yaml": "^2.8.2",
23
- "@rigour-labs/core": "1.5.1"
23
+ "@rigour-labs/core": "1.6.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/fs-extra": "^11.0.4",
@@ -57,6 +57,13 @@ export async function explainCommand(cwd: string) {
57
57
  console.log(chalk.green('\n✨ All quality gates passed! No violations found.\n'));
58
58
  }
59
59
 
60
+ if (report.status === 'FAIL') {
61
+ console.log(chalk.bold('\n👉 Next Steps:'));
62
+ console.log(chalk.dim(' 1. Refactor the code to address the violations above.'));
63
+ console.log(chalk.dim(' 2. Run `rigour check` again to verify your fixes.'));
64
+ console.log(chalk.dim(' 3. If using an agent, pass it the violations as constraints.\n'));
65
+ }
66
+
60
67
  if (report.stats) {
61
68
  console.log(chalk.dim(`Duration: ${report.stats.duration_ms}ms`));
62
69
  }