@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/{check-execution-engine-TBF6LPYH.mjs → check-execution-engine-RXV4MUD2.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CheckExecutionEngine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J355UUEI.mjs";
|
|
4
4
|
import "./chunk-FIL2OGF6.mjs";
|
|
5
5
|
import "./chunk-WMJKH4XE.mjs";
|
|
6
6
|
export {
|
|
7
7
|
CheckExecutionEngine
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=check-execution-engine-
|
|
9
|
+
//# sourceMappingURL=check-execution-engine-RXV4MUD2.mjs.map
|
|
@@ -1032,6 +1032,10 @@ ${schemaString}`);
|
|
|
1032
1032
|
// We don't want the agent to modify files
|
|
1033
1033
|
debug: this.config.debug || false
|
|
1034
1034
|
};
|
|
1035
|
+
if (this.config.mcpServers && Object.keys(this.config.mcpServers).length > 0) {
|
|
1036
|
+
options.enableMcp = true;
|
|
1037
|
+
options.mcpConfig = { mcpServers: this.config.mcpServers };
|
|
1038
|
+
}
|
|
1035
1039
|
if (this.config.provider) {
|
|
1036
1040
|
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;
|
|
1037
1041
|
if (providerOverride) {
|
|
@@ -1489,7 +1493,7 @@ var PRReviewer = class {
|
|
|
1489
1493
|
async reviewPR(owner, repo, prNumber, prInfo, options = {}) {
|
|
1490
1494
|
const { debug = false, config, checks } = options;
|
|
1491
1495
|
if (config && checks && checks.length > 0) {
|
|
1492
|
-
const { CheckExecutionEngine: CheckExecutionEngine2 } = await import("./check-execution-engine-
|
|
1496
|
+
const { CheckExecutionEngine: CheckExecutionEngine2 } = await import("./check-execution-engine-RXV4MUD2.mjs");
|
|
1493
1497
|
const engine = new CheckExecutionEngine2();
|
|
1494
1498
|
const groupedResults = await engine.executeGroupedChecks(
|
|
1495
1499
|
prInfo,
|
|
@@ -2528,15 +2532,13 @@ var AICheckProvider = class extends CheckProvider {
|
|
|
2528
2532
|
Object.assign(mcpServers, config.ai.mcpServers);
|
|
2529
2533
|
}
|
|
2530
2534
|
if (Object.keys(mcpServers).length > 0) {
|
|
2535
|
+
aiConfig.mcpServers = mcpServers;
|
|
2531
2536
|
const mcpConfig = { mcpServers };
|
|
2532
2537
|
const mcpTools = await this.setupMcpTools(mcpConfig);
|
|
2533
|
-
if (
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
`\u{1F527} Debug: AI check configured with ${mcpTools.length} MCP tools from ${Object.keys(mcpServers).length} servers`
|
|
2538
|
-
);
|
|
2539
|
-
}
|
|
2538
|
+
if (aiConfig.debug) {
|
|
2539
|
+
console.error(
|
|
2540
|
+
`\u{1F527} Debug: AI check MCP configured with ${Object.keys(mcpServers).length} servers; discovered ${mcpTools.length} tools`
|
|
2541
|
+
);
|
|
2540
2542
|
}
|
|
2541
2543
|
}
|
|
2542
2544
|
const processedPrompt = await this.processPrompt(
|
|
@@ -8296,4 +8298,4 @@ ${result.value.result.debug.rawResponse}`;
|
|
|
8296
8298
|
export {
|
|
8297
8299
|
CheckExecutionEngine
|
|
8298
8300
|
};
|
|
8299
|
-
//# sourceMappingURL=chunk-
|
|
8301
|
+
//# sourceMappingURL=chunk-J355UUEI.mjs.map
|