@probelabs/visor 0.1.77 → 0.1.79
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/config.d.ts.map +1 -1
- package/dist/index.js +289 -60
- package/dist/sdk/sdk.js +34 -0
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +34 -0
- package/dist/sdk/sdk.mjs.map +1 -1
- package/package.json +6 -6
package/dist/sdk/sdk.mjs
CHANGED
|
@@ -1600,6 +1600,40 @@ var ConfigManager = class {
|
|
|
1600
1600
|
)}` : "Both ai_mcp_servers and ai.mcpServers are set; ai.mcpServers takes precedence for this check."
|
|
1601
1601
|
});
|
|
1602
1602
|
}
|
|
1603
|
+
try {
|
|
1604
|
+
const anyCheck = checkConfig;
|
|
1605
|
+
const aiObj = anyCheck.ai || void 0;
|
|
1606
|
+
const hasBareMcpAtCheck = Object.prototype.hasOwnProperty.call(anyCheck, "mcpServers");
|
|
1607
|
+
const hasAiMcp = aiObj && Object.prototype.hasOwnProperty.call(aiObj, "mcpServers");
|
|
1608
|
+
const hasClaudeCodeMcp = anyCheck.claude_code && typeof anyCheck.claude_code === "object" && Object.prototype.hasOwnProperty.call(
|
|
1609
|
+
anyCheck.claude_code,
|
|
1610
|
+
"mcpServers"
|
|
1611
|
+
);
|
|
1612
|
+
if (checkConfig.type === "ai") {
|
|
1613
|
+
if (hasBareMcpAtCheck) {
|
|
1614
|
+
warnings.push({
|
|
1615
|
+
field: `checks.${checkName}.mcpServers`,
|
|
1616
|
+
message: "'mcpServers' at the check root is ignored for type 'ai'. Use 'ai.mcpServers' or 'ai_mcp_servers' instead.",
|
|
1617
|
+
value: anyCheck.mcpServers
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
if (hasClaudeCodeMcp) {
|
|
1621
|
+
warnings.push({
|
|
1622
|
+
field: `checks.${checkName}.claude_code.mcpServers`,
|
|
1623
|
+
message: "'claude_code.mcpServers' is ignored for type 'ai'. Use 'ai.mcpServers' or 'ai_mcp_servers' instead."
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
if (checkConfig.type === "claude-code") {
|
|
1628
|
+
if (hasAiMcp || checkConfig.ai_mcp_servers) {
|
|
1629
|
+
warnings.push({
|
|
1630
|
+
field: hasAiMcp ? `checks.${checkName}.ai.mcpServers` : `checks.${checkName}.ai_mcp_servers`,
|
|
1631
|
+
message: "For type 'claude-code', MCP must be configured under 'claude_code.mcpServers'. 'ai.mcpServers' and 'ai_mcp_servers' are ignored for this check."
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
} catch {
|
|
1636
|
+
}
|
|
1603
1637
|
}
|
|
1604
1638
|
}
|
|
1605
1639
|
if (config.ai_mcp_servers) {
|