@rigour-labs/cli 5.1.2 → 5.2.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.
|
@@ -227,7 +227,21 @@ export function printClosing(cinematic) {
|
|
|
227
227
|
console.log(chalk.white(' $ npx @rigour-labs/cli check'));
|
|
228
228
|
console.log(chalk.white(' $ npx @rigour-labs/cli hooks init'));
|
|
229
229
|
console.log('');
|
|
230
|
-
|
|
230
|
+
// ── Rigovo Ecosystem ──
|
|
231
|
+
console.log(divider);
|
|
232
|
+
console.log(chalk.bold('Rigovo Ecosystem — AI-Native Engineering Platform\n'));
|
|
233
|
+
console.log(chalk.bold(' Rigour'));
|
|
234
|
+
console.log(chalk.dim(' Quality gates for AI-generated code (this tool)'));
|
|
235
|
+
console.log(chalk.dim(' 27+ deterministic gates + local LLM deep analysis'));
|
|
236
|
+
console.log(chalk.white(' https://github.com/rigour-labs/rigour\n'));
|
|
237
|
+
console.log(chalk.bold(' Rigovo HR'));
|
|
238
|
+
console.log(chalk.dim(' AI-powered technical hiring — Maya AI interviewer'));
|
|
239
|
+
console.log(chalk.dim(' 15-signal verification, job success prediction, evidence reports'));
|
|
240
|
+
console.log(chalk.white(' https://rigovo.com\n'));
|
|
241
|
+
console.log(chalk.bold(' Rigovo Virtual Team'));
|
|
242
|
+
console.log(chalk.dim(' Multi-agent software delivery with deterministic quality gates'));
|
|
243
|
+
console.log(chalk.dim(' Planning → Coding → Review → QA → Security → DevOps pipeline'));
|
|
244
|
+
console.log(chalk.white(' https://github.com/rigovo/rigovo-virtual-team\n'));
|
|
231
245
|
console.log(chalk.dim('Docs: https://docs.rigour.run'));
|
|
232
246
|
console.log(chalk.dim('Paper: https://zenodo.org/records/18673564\n'));
|
|
233
247
|
console.log(chalk.dim.italic('If this saved you from a bad commit, star the repo ⭐'));
|
|
@@ -2,7 +2,7 @@ import fs from 'fs-extra';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
import yaml from 'yaml';
|
|
5
|
-
import { GateRunner, ConfigSchema } from '@rigour-labs/core';
|
|
5
|
+
import { GateRunner, ConfigSchema, IncrementalCache, FileScanner } from '@rigour-labs/core';
|
|
6
6
|
import { recordScore } from '@rigour-labs/core';
|
|
7
7
|
import { pause, typewrite } from './demo-helpers.js';
|
|
8
8
|
import { simulateCodeWrite, simulateHookCatch, renderScoreBar, renderTrendChart, displayGateResults, } from './demo-display.js';
|
|
@@ -192,6 +192,27 @@ export async function handleRequest(req: express.Request, res: express.Response)
|
|
|
192
192
|
console.log(chalk.green.bold(' All issues resolved!'));
|
|
193
193
|
}
|
|
194
194
|
console.log('');
|
|
195
|
+
// ── Incremental Cache Demo ──
|
|
196
|
+
// Save cache after the rescan, then run a third scan to show cache hit
|
|
197
|
+
try {
|
|
198
|
+
const allFiles = await FileScanner.findFiles({ cwd: demoDir, ignore: config.ignore });
|
|
199
|
+
const cache = new IncrementalCache(demoDir);
|
|
200
|
+
await cache.save(allFiles, configContent, report2);
|
|
201
|
+
await pause(300, options);
|
|
202
|
+
console.log(chalk.bold.blue('Running scan again (no changes)...\n'));
|
|
203
|
+
await pause(200, options);
|
|
204
|
+
const cacheStart = Date.now();
|
|
205
|
+
const cacheResult = await cache.check(allFiles, configContent);
|
|
206
|
+
const cacheMs = Date.now() - cacheStart;
|
|
207
|
+
if (cacheResult.hit) {
|
|
208
|
+
console.log(chalk.green.bold(` ⚡ Incremental cache hit — ${cacheMs}ms (no files changed)`));
|
|
209
|
+
console.log(chalk.dim(` Skipped all 27+ gates. Same result returned instantly.`));
|
|
210
|
+
console.log(chalk.dim(` Use --no-cache to force a full re-scan.\n`));
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
catch {
|
|
214
|
+
// Cache demo is best-effort
|
|
215
|
+
}
|
|
195
216
|
}
|
|
196
217
|
catch (error) {
|
|
197
218
|
const msg = error instanceof Error ? error.message : String(error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "CLI quality gates for AI-generated code. Forces AI agents (Claude, Cursor, Copilot) to meet strict engineering standards with PASS/FAIL enforcement.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://rigour.run",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"inquirer": "9.2.16",
|
|
45
45
|
"ora": "^8.0.1",
|
|
46
46
|
"yaml": "^2.8.2",
|
|
47
|
-
"@rigour-labs/core": "5.
|
|
47
|
+
"@rigour-labs/core": "5.2.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|