@rigour-labs/cli 5.2.1 → 5.2.2
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.
- package/dist/commands/check.js +0 -22
- package/dist/commands/scan.js +1 -2
- package/package.json +2 -2
package/dist/commands/check.js
CHANGED
|
@@ -167,28 +167,6 @@ export async function checkCommand(cwd, files = [], options = {}) {
|
|
|
167
167
|
// Cache save is best-effort
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
// Persist to SQLite if deep analysis was used
|
|
171
|
-
if (isDeep) {
|
|
172
|
-
try {
|
|
173
|
-
const { openDatabase, insertScan, insertFindings } = await import('@rigour-labs/core');
|
|
174
|
-
const db = await openDatabase();
|
|
175
|
-
if (db) {
|
|
176
|
-
const repoName = path.basename(cwd);
|
|
177
|
-
const scanId = await insertScan(db, repoName, report, {
|
|
178
|
-
deepTier: report.stats.deep?.tier || (options.pro ? 'deep' : (resolvedDeepMode?.isLocal ? 'lite' : 'cloud')),
|
|
179
|
-
deepModel: report.stats.deep?.model,
|
|
180
|
-
});
|
|
181
|
-
await insertFindings(db, scanId, report.failures);
|
|
182
|
-
await db.close();
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
catch (dbError) {
|
|
186
|
-
// SQLite persistence is best-effort — log but don't fail
|
|
187
|
-
if (process.env.RIGOUR_DEBUG) {
|
|
188
|
-
console.error(`[rigour] SQLite persistence failed: ${dbError.message}`);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
170
|
await logStudioEvent(cwd, {
|
|
193
171
|
type: "tool_response",
|
|
194
172
|
requestId,
|
package/dist/commands/scan.js
CHANGED
|
@@ -4,7 +4,7 @@ import chalk from 'chalk';
|
|
|
4
4
|
import yaml from 'yaml';
|
|
5
5
|
import { globby } from 'globby';
|
|
6
6
|
import { GateRunner, ConfigSchema, DiscoveryService, FixPacketService, recordScore, getScoreTrend, } from '@rigour-labs/core';
|
|
7
|
-
import { buildDeepOpts,
|
|
7
|
+
import { buildDeepOpts, renderDeepScanResults } from './scan-deep.js';
|
|
8
8
|
// Exit codes per spec
|
|
9
9
|
const EXIT_PASS = 0;
|
|
10
10
|
const EXIT_FAIL = 1;
|
|
@@ -59,7 +59,6 @@ export async function scanCommand(cwd, files = [], options = {}) {
|
|
|
59
59
|
const report = await runner.run(cwd, files.length > 0 ? files : undefined, deepOpts);
|
|
60
60
|
await writeReportArtifacts(cwd, report, scanCtx.config);
|
|
61
61
|
await writeLastScanJson(cwd, scanCtx, stackSignals, report, isDeep);
|
|
62
|
-
persistDeepResults(cwd, report, isDeep, options);
|
|
63
62
|
if (options.json) {
|
|
64
63
|
outputJson(scanCtx, stackSignals, report);
|
|
65
64
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
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.2.
|
|
47
|
+
"@rigour-labs/core": "5.2.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|