@rigour-labs/cli 6.12.1-rc.1 → 6.12.2-rc.1

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.
@@ -11,7 +11,7 @@ import { execFileSync } from 'child_process';
11
11
  import chalk from 'chalk';
12
12
  import path from 'path';
13
13
  import { personOf } from './git-identity.js';
14
- import { acceptSuggestedText, scopeLesson, branchBase, decideCompiledCheck, decideLesson, defaultExec, proposeCompiledChecks, readCompiledChecks, suspension, githubToken, learnFromReviews, lessonsPath, readLessons, ruleWriterFor, ConfigSchema } from '@rigour-labs/core';
14
+ import { acceptSuggestedText, scopeLesson, branchBase, decideCompiledCheck, decideLesson, defaultExec, proposeCompiledChecks, readCompiledChecks, suspension, githubToken, learnFromReviews, lessonsPath, pendingDecision, readLessons, ruleWriterFor, ConfigSchema } from '@rigour-labs/core';
15
15
  import { loadConfig } from './review-config.js';
16
16
  export async function learnReviewsCommand(cwd, options) {
17
17
  if (options.promote)
@@ -62,12 +62,23 @@ function list(cwd, json) {
62
62
  const prs = [...new Set(l.evidence.map(e => `#${e.pr}`))].join(', ');
63
63
  const by = chalk.dim(`${l.promotedBy ? ` [${l.promotedBy}]` : ''}${l.scope ? ` [${l.scope === 'repo' ? 'every change' : 'its folder'}]` : ''}`);
64
64
  console.log(`${label[l.state]} ${chalk.dim(l.id)} ${l.file || '(team standard)'}: ${l.text}${by} ${chalk.dim(`(${prs})`)}`);
65
+ const pending = pendingDecision(l);
66
+ if (pending)
67
+ console.log(chalk.yellow(` ${pendingReason(pending)}`));
65
68
  if (l.suggestedText)
66
69
  console.log(chalk.cyan(` corrected wording (${l.suggestedWhy ?? 'reworded'}): ${l.suggestedText}`) + chalk.dim(` take it: rigour learn-reviews --use-wording ${l.id}`));
67
70
  }
68
71
  if (lessons.length === 0)
69
72
  console.log('No review lessons yet. Run `rigour learn-reviews`.');
70
73
  }
74
+ /** Why a candidate waits on a person, in the words Studio's chip uses. */
75
+ function pendingReason(e) {
76
+ if (e.kind === 'lines')
77
+ return `a later fix changed its lines: ${e.detail ?? ''}`.trim();
78
+ if (e.kind === 'reclassified')
79
+ return `back to candidate: ${e.detail ?? ''}`;
80
+ return e.detail ?? 'taken back';
81
+ }
71
82
  /** Proposes checks for the verified lessons a template fits, then lists every compiled check and its state. */
72
83
  function compile(cwd, json) {
73
84
  const proposed = proposeCompiledChecks(cwd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rigour-labs/cli",
3
- "version": "6.12.1-rc.1",
3
+ "version": "6.12.2-rc.1",
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.1-rc.1"
62
+ "@rigour-labs/core": "6.12.2-rc.1"
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.1-rc.1"
68
+ "@rigour-labs/studio": "6.12.2-rc.1"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsc && pnpm bundle-studio",