@probelabs/visor 0.1.71 → 0.1.72
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/ai-review-service.d.ts +1 -0
- package/dist/ai-review-service.d.ts.map +1 -1
- package/dist/index.js +3440 -13
- package/dist/sdk/{check-execution-engine-TBF6LPYH.mjs → check-execution-engine-RXV4MUD2.mjs} +2 -2
- package/dist/sdk/{chunk-745RDQD3.mjs → chunk-J355UUEI.mjs} +11 -9
- package/dist/sdk/chunk-J355UUEI.mjs.map +1 -0
- package/dist/sdk/sdk.js +9 -7
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +1 -1
- package/package.json +2 -2
- package/dist/sdk/chunk-745RDQD3.mjs.map +0 -1
- /package/dist/sdk/{check-execution-engine-TBF6LPYH.mjs.map → check-execution-engine-RXV4MUD2.mjs.map} +0 -0
package/dist/sdk/sdk.js
CHANGED
|
@@ -1069,6 +1069,10 @@ ${schemaString}`);
|
|
|
1069
1069
|
// We don't want the agent to modify files
|
|
1070
1070
|
debug: this.config.debug || false
|
|
1071
1071
|
};
|
|
1072
|
+
if (this.config.mcpServers && Object.keys(this.config.mcpServers).length > 0) {
|
|
1073
|
+
options.enableMcp = true;
|
|
1074
|
+
options.mcpConfig = { mcpServers: this.config.mcpServers };
|
|
1075
|
+
}
|
|
1072
1076
|
if (this.config.provider) {
|
|
1073
1077
|
const providerOverride = this.config.provider === "claude-code" || this.config.provider === "bedrock" ? "anthropic" : this.config.provider === "anthropic" || this.config.provider === "openai" || this.config.provider === "google" ? this.config.provider : void 0;
|
|
1074
1078
|
if (providerOverride) {
|
|
@@ -2686,15 +2690,13 @@ var init_ai_check_provider = __esm({
|
|
|
2686
2690
|
Object.assign(mcpServers, config.ai.mcpServers);
|
|
2687
2691
|
}
|
|
2688
2692
|
if (Object.keys(mcpServers).length > 0) {
|
|
2693
|
+
aiConfig.mcpServers = mcpServers;
|
|
2689
2694
|
const mcpConfig = { mcpServers };
|
|
2690
2695
|
const mcpTools = await this.setupMcpTools(mcpConfig);
|
|
2691
|
-
if (
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
`\u{1F527} Debug: AI check configured with ${mcpTools.length} MCP tools from ${Object.keys(mcpServers).length} servers`
|
|
2696
|
-
);
|
|
2697
|
-
}
|
|
2696
|
+
if (aiConfig.debug) {
|
|
2697
|
+
console.error(
|
|
2698
|
+
`\u{1F527} Debug: AI check MCP configured with ${Object.keys(mcpServers).length} servers; discovered ${mcpTools.length} tools`
|
|
2699
|
+
);
|
|
2698
2700
|
}
|
|
2699
2701
|
}
|
|
2700
2702
|
const processedPrompt = await this.processPrompt(
|