@rigour-labs/cli 5.3.2 → 5.3.3
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/init.js +15 -2
- package/package.json +2 -2
package/dist/commands/init.js
CHANGED
|
@@ -543,8 +543,21 @@ function resolveMCPServerConfig() {
|
|
|
543
543
|
// Running from local dev checkout — use local path
|
|
544
544
|
return { command: 'node', args: [localMcpEntry] };
|
|
545
545
|
}
|
|
546
|
-
// Fallback: published npm package
|
|
547
|
-
|
|
546
|
+
// Fallback: pin published npm package so Cursor resolves a known build
|
|
547
|
+
let mcpSpec = '@rigour-labs/mcp@5.3.2';
|
|
548
|
+
try {
|
|
549
|
+
const mcpPkgPath = path.resolve(thisDir, '../../../rigour-mcp/package.json');
|
|
550
|
+
if (fs.existsSync(mcpPkgPath)) {
|
|
551
|
+
const pkg = JSON.parse(fs.readFileSync(mcpPkgPath, 'utf-8'));
|
|
552
|
+
if (pkg.version && pkg.version.trim().length > 0) {
|
|
553
|
+
mcpSpec = `@rigour-labs/mcp@${pkg.version}`;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
catch {
|
|
558
|
+
// Keep pinned fallback.
|
|
559
|
+
}
|
|
560
|
+
return { command: 'npx', args: ['-y', mcpSpec] };
|
|
548
561
|
}
|
|
549
562
|
async function initMCPForDetectedTools(cwd, detectedIDEs, force) {
|
|
550
563
|
const mcpServerConfig = resolveMCPServerConfig();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigour-labs/cli",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "AI-native quality gates with local LLM analysis. Forces AI agents (Claude, Cursor, Copilot, Cline, Windsurf) to meet engineering standards. Bayesian Brain learns your codebase. Zero config: npx rigour-scan.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://rigour.run",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"inquirer": "9.2.16",
|
|
54
54
|
"ora": "^8.0.1",
|
|
55
55
|
"yaml": "^2.8.2",
|
|
56
|
-
"@rigour-labs/core": "5.3.
|
|
56
|
+
"@rigour-labs/core": "5.3.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/fs-extra": "^11.0.4",
|