@rigour-labs/cli 6.12.4-rc.1 → 6.12.5-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,
|
|
14
|
+
import { acceptSuggestedText, scopeLesson, branchBase, decideCompiledCheck, decideLesson, defaultExec, proposeCompiledChecks, readCompiledChecks, suspension, githubReader, learnFromReviews, lessonsPath, pendingDecision, quietBotCandidate, 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)
|
|
@@ -36,7 +36,7 @@ export async function learnReviewsCommand(cwd, options) {
|
|
|
36
36
|
if (options.rules && !writeRules)
|
|
37
37
|
throw new Error('--rules needs a reviewer CLI (claude, codex or cursor-agent) installed, as named in review.reviewer.reviewers.');
|
|
38
38
|
const result = await learnFromReviews(cwd, {
|
|
39
|
-
|
|
39
|
+
...await reader(cwd, config.review?.github_account ?? process.env.RIGOUR_GITHUB_ACCOUNT), repo: originRepo(cwd), since: options.since, until: options.until,
|
|
40
40
|
limit: options.limit ? Number(options.limit) : undefined, mainRef: branchBase(cwd)?.mainRef, writeRules, ...(options.pr ? { pr: Number(options.pr) } : {}), apiUrl: process.env.GITHUB_API_URL,
|
|
41
41
|
});
|
|
42
42
|
if (options.json)
|
|
@@ -53,6 +53,11 @@ export async function learnReviewsCommand(cwd, options) {
|
|
|
53
53
|
process.exitCode = 1;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
/** The token and who it reads as, for learnFromReviews. */
|
|
57
|
+
async function reader(cwd, account) {
|
|
58
|
+
const { token, as } = await githubReader(cwd, account, defaultExec);
|
|
59
|
+
return { token, readAs: as };
|
|
60
|
+
}
|
|
56
61
|
function list(cwd, json, includeBots) {
|
|
57
62
|
const all = readLessons(cwd);
|
|
58
63
|
if (json)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.5-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.
|
|
62
|
+
"@rigour-labs/core": "6.12.5-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.
|
|
68
|
+
"@rigour-labs/studio": "6.12.5-rc.1"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsc && pnpm bundle-studio",
|