@rigour-labs/cli 4.0.0 → 4.0.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.
package/dist/commands/studio.js
CHANGED
|
@@ -295,6 +295,43 @@ async function setupApiAndLaunch(apiPort, studioPort, eventsPath, cwd, studioPro
|
|
|
295
295
|
res.end(e.message);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
+
else if (url.pathname === '/api/report-stats') {
|
|
299
|
+
try {
|
|
300
|
+
const reportPath = path.join(cwd, 'rigour-report.json');
|
|
301
|
+
if (await fs.pathExists(reportPath)) {
|
|
302
|
+
const report = await fs.readJson(reportPath);
|
|
303
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
304
|
+
res.end(JSON.stringify(report.stats || {}));
|
|
305
|
+
}
|
|
306
|
+
else {
|
|
307
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
308
|
+
res.end(JSON.stringify({}));
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
catch (e) {
|
|
312
|
+
res.writeHead(500);
|
|
313
|
+
res.end(e.message);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else if (url.pathname === '/api/deep-findings') {
|
|
317
|
+
try {
|
|
318
|
+
const reportPath = path.join(cwd, 'rigour-report.json');
|
|
319
|
+
if (await fs.pathExists(reportPath)) {
|
|
320
|
+
const report = await fs.readJson(reportPath);
|
|
321
|
+
const findings = (report.failures || []).filter((f) => f.provenance === 'deep-analysis' || f.source === 'llm' || f.source === 'hybrid');
|
|
322
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
323
|
+
res.end(JSON.stringify(findings));
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
327
|
+
res.end(JSON.stringify([]));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
catch (e) {
|
|
331
|
+
res.writeHead(500);
|
|
332
|
+
res.end(e.message);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
298
335
|
else if (url.pathname === '/api/arbitrate' && req.method === 'POST') {
|
|
299
336
|
let body = '';
|
|
300
337
|
req.on('data', chunk => body += chunk);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
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": "4.0.
|
|
47
|
+
"@rigour-labs/core": "4.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|