@probelabs/visor 0.1.77 → 0.1.78
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 +40 -2
- 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 +1 -1
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/config.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,WAAW,EAOX,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzC;;GAEG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,eAAe,CASrB;IACF,OAAO,CAAC,kBAAkB,CASxB;IACF,OAAO,CAAC,kBAAkB,CAAgE;IAC1F,OAAO,CAAC,mBAAmB,CAAkD;IAE7E;;OAEG;IACU,UAAU,CACrB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,WAAW,CAAC;IA2FvB;;OAEG;IACU,iBAAiB,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,WAAW,CAAC;IAyBrF;;OAEG;YACW,qBAAqB;IAiBnC;;OAEG;IACU,gBAAgB,IAAI,OAAO,CAAC,WAAW,CAAC;IAerD;;OAEG;IACI,wBAAwB,IAAI,WAAW,GAAG,IAAI;IA4DrD;;OAEG;IACH,OAAO,CAAC,eAAe;IAuBvB;;OAEG;IACI,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,UAAU,GAAG,YAAY;IAqB9F;;OAEG;IACU,0BAA0B,IAAI,OAAO,CAAC;QACjD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hC;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAyE7B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA6DzB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA6EhC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IA+B5B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAY9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;CA6B1B"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
process.env.VISOR_VERSION = '0.1.
|
|
2
|
+
process.env.VISOR_VERSION = '0.1.78';
|
|
3
3
|
process.env.PROBE_VERSION = '0.6.0-rc120';
|
|
4
4
|
/******/ (() => { // webpackBootstrap
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
@@ -105343,6 +105343,44 @@ class ConfigManager {
|
|
|
105343
105343
|
: 'Both ai_mcp_servers and ai.mcpServers are set; ai.mcpServers takes precedence for this check.',
|
|
105344
105344
|
});
|
|
105345
105345
|
}
|
|
105346
|
+
// Type-specific guidance for MCP placement to avoid silent ignores
|
|
105347
|
+
try {
|
|
105348
|
+
const anyCheck = checkConfig;
|
|
105349
|
+
const aiObj = anyCheck.ai || undefined;
|
|
105350
|
+
const hasBareMcpAtCheck = Object.prototype.hasOwnProperty.call(anyCheck, 'mcpServers');
|
|
105351
|
+
const hasAiMcp = aiObj && Object.prototype.hasOwnProperty.call(aiObj, 'mcpServers');
|
|
105352
|
+
const hasClaudeCodeMcp = anyCheck.claude_code &&
|
|
105353
|
+
typeof anyCheck.claude_code === 'object' &&
|
|
105354
|
+
Object.prototype.hasOwnProperty.call(anyCheck.claude_code, 'mcpServers');
|
|
105355
|
+
if (checkConfig.type === 'ai') {
|
|
105356
|
+
if (hasBareMcpAtCheck) {
|
|
105357
|
+
warnings.push({
|
|
105358
|
+
field: `checks.${checkName}.mcpServers`,
|
|
105359
|
+
message: "'mcpServers' at the check root is ignored for type 'ai'. Use 'ai.mcpServers' or 'ai_mcp_servers' instead.",
|
|
105360
|
+
value: anyCheck.mcpServers,
|
|
105361
|
+
});
|
|
105362
|
+
}
|
|
105363
|
+
if (hasClaudeCodeMcp) {
|
|
105364
|
+
warnings.push({
|
|
105365
|
+
field: `checks.${checkName}.claude_code.mcpServers`,
|
|
105366
|
+
message: "'claude_code.mcpServers' is ignored for type 'ai'. Use 'ai.mcpServers' or 'ai_mcp_servers' instead.",
|
|
105367
|
+
});
|
|
105368
|
+
}
|
|
105369
|
+
}
|
|
105370
|
+
if (checkConfig.type === 'claude-code') {
|
|
105371
|
+
if (hasAiMcp || checkConfig.ai_mcp_servers) {
|
|
105372
|
+
warnings.push({
|
|
105373
|
+
field: hasAiMcp
|
|
105374
|
+
? `checks.${checkName}.ai.mcpServers`
|
|
105375
|
+
: `checks.${checkName}.ai_mcp_servers`,
|
|
105376
|
+
message: "For type 'claude-code', MCP must be configured under 'claude_code.mcpServers'. 'ai.mcpServers' and 'ai_mcp_servers' are ignored for this check.",
|
|
105377
|
+
});
|
|
105378
|
+
}
|
|
105379
|
+
}
|
|
105380
|
+
}
|
|
105381
|
+
catch {
|
|
105382
|
+
// best-effort hints; never fail validation here
|
|
105383
|
+
}
|
|
105346
105384
|
}
|
|
105347
105385
|
}
|
|
105348
105386
|
// Validate global MCP servers if present
|
|
@@ -228463,7 +228501,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
228463
228501
|
/***/ ((module) => {
|
|
228464
228502
|
|
|
228465
228503
|
"use strict";
|
|
228466
|
-
module.exports = {"rE":"0.1.
|
|
228504
|
+
module.exports = {"rE":"0.1.78"};
|
|
228467
228505
|
|
|
228468
228506
|
/***/ })
|
|
228469
228507
|
|
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) {
|