@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/sdk/sdk.js CHANGED
@@ -10705,6 +10705,40 @@ var ConfigManager = class {
10705
10705
  )}` : "Both ai_mcp_servers and ai.mcpServers are set; ai.mcpServers takes precedence for this check."
10706
10706
  });
10707
10707
  }
10708
+ try {
10709
+ const anyCheck = checkConfig;
10710
+ const aiObj = anyCheck.ai || void 0;
10711
+ const hasBareMcpAtCheck = Object.prototype.hasOwnProperty.call(anyCheck, "mcpServers");
10712
+ const hasAiMcp = aiObj && Object.prototype.hasOwnProperty.call(aiObj, "mcpServers");
10713
+ const hasClaudeCodeMcp = anyCheck.claude_code && typeof anyCheck.claude_code === "object" && Object.prototype.hasOwnProperty.call(
10714
+ anyCheck.claude_code,
10715
+ "mcpServers"
10716
+ );
10717
+ if (checkConfig.type === "ai") {
10718
+ if (hasBareMcpAtCheck) {
10719
+ warnings.push({
10720
+ field: `checks.${checkName}.mcpServers`,
10721
+ message: "'mcpServers' at the check root is ignored for type 'ai'. Use 'ai.mcpServers' or 'ai_mcp_servers' instead.",
10722
+ value: anyCheck.mcpServers
10723
+ });
10724
+ }
10725
+ if (hasClaudeCodeMcp) {
10726
+ warnings.push({
10727
+ field: `checks.${checkName}.claude_code.mcpServers`,
10728
+ message: "'claude_code.mcpServers' is ignored for type 'ai'. Use 'ai.mcpServers' or 'ai_mcp_servers' instead."
10729
+ });
10730
+ }
10731
+ }
10732
+ if (checkConfig.type === "claude-code") {
10733
+ if (hasAiMcp || checkConfig.ai_mcp_servers) {
10734
+ warnings.push({
10735
+ field: hasAiMcp ? `checks.${checkName}.ai.mcpServers` : `checks.${checkName}.ai_mcp_servers`,
10736
+ message: "For type 'claude-code', MCP must be configured under 'claude_code.mcpServers'. 'ai.mcpServers' and 'ai_mcp_servers' are ignored for this check."
10737
+ });
10738
+ }
10739
+ }
10740
+ } catch {
10741
+ }
10708
10742
  }
10709
10743
  }
10710
10744
  if (config.ai_mcp_servers) {