@probelabs/visor 0.1.80 → 0.1.81
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/cli-main.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +120 -129
- package/dist/providers/ai-check-provider.d.ts +0 -4
- package/dist/providers/ai-check-provider.d.ts.map +1 -1
- package/dist/providers/claude-code-check-provider.d.ts +0 -4
- package/dist/providers/claude-code-check-provider.d.ts.map +1 -1
- package/dist/sdk/{check-execution-engine-2EQWRXWI.mjs → check-execution-engine-47OZJFUV.mjs} +2 -2
- package/dist/sdk/{chunk-GNA5GPF7.mjs → chunk-V5PUTL5N.mjs} +85 -129
- package/dist/sdk/chunk-V5PUTL5N.mjs.map +1 -0
- package/dist/sdk/sdk.js +86 -131
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +1 -1
- package/dist/session-registry.d.ts +5 -0
- package/dist/session-registry.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/sdk/chunk-GNA5GPF7.mjs.map +0 -1
- /package/dist/sdk/{check-execution-engine-2EQWRXWI.mjs.map → check-execution-engine-47OZJFUV.mjs.map} +0 -0
package/dist/cli-main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/cli-main.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/cli-main.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAmc1C"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/index.ts"],"names":[],"mappings":"AAwGA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/index.ts"],"names":[],"mappings":"AAwGA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CA+KzC"}
|
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.81';
|
|
3
3
|
process.env.PROBE_VERSION = '0.6.0-rc122';
|
|
4
4
|
/******/ (() => { // webpackBootstrap
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
@@ -102989,19 +102989,6 @@ class CheckExecutionEngine {
|
|
|
102989
102989
|
}
|
|
102990
102990
|
}
|
|
102991
102991
|
}
|
|
102992
|
-
// Build and log final execution summary
|
|
102993
|
-
const executionStatistics = this.buildExecutionStatistics();
|
|
102994
|
-
// Show detailed summary table (only if logFn outputs to console)
|
|
102995
|
-
// Skip when output format is JSON/SARIF to avoid polluting structured output
|
|
102996
|
-
// Check if logFn is console.log (not a no-op or console.error)
|
|
102997
|
-
if (logFn === console.log) {
|
|
102998
|
-
this.logExecutionSummary(executionStatistics);
|
|
102999
|
-
}
|
|
103000
|
-
// Add warning if execution stopped early
|
|
103001
|
-
if (shouldStopExecution) {
|
|
103002
|
-
logger_1.logger.info('');
|
|
103003
|
-
logger_1.logger.warn(`⚠️ Execution stopped early due to fail-fast`);
|
|
103004
|
-
}
|
|
103005
102992
|
if (debug) {
|
|
103006
102993
|
if (shouldStopExecution) {
|
|
103007
102994
|
log(`🛑 Execution stopped early due to fail-fast after processing ${results.size} of ${checks.length} checks`);
|
|
@@ -103010,7 +102997,7 @@ class CheckExecutionEngine {
|
|
|
103010
102997
|
log(`✅ Dependency-aware execution completed successfully for all ${results.size} checks`);
|
|
103011
102998
|
}
|
|
103012
102999
|
}
|
|
103013
|
-
// Cleanup sessions
|
|
103000
|
+
// Cleanup sessions BEFORE printing summary to avoid mixing debug logs with table output
|
|
103014
103001
|
if (sessionIds.size > 0 && debug) {
|
|
103015
103002
|
log(`🧹 Cleaning up ${sessionIds.size} AI sessions...`);
|
|
103016
103003
|
for (const [checkName, sessionId] of sessionIds) {
|
|
@@ -103023,6 +103010,19 @@ class CheckExecutionEngine {
|
|
|
103023
103010
|
}
|
|
103024
103011
|
}
|
|
103025
103012
|
}
|
|
103013
|
+
// Build and log final execution summary
|
|
103014
|
+
const executionStatistics = this.buildExecutionStatistics();
|
|
103015
|
+
// Show detailed summary table (only if logFn outputs to console)
|
|
103016
|
+
// Skip when output format is JSON/SARIF to avoid polluting structured output
|
|
103017
|
+
// Check if logFn is console.log (not a no-op or console.error)
|
|
103018
|
+
if (logFn === console.log) {
|
|
103019
|
+
this.logExecutionSummary(executionStatistics);
|
|
103020
|
+
}
|
|
103021
|
+
// Add warning if execution stopped early
|
|
103022
|
+
if (shouldStopExecution) {
|
|
103023
|
+
logger_1.logger.info('');
|
|
103024
|
+
logger_1.logger.warn(`⚠️ Execution stopped early due to fail-fast`);
|
|
103025
|
+
}
|
|
103026
103026
|
// Aggregate all results
|
|
103027
103027
|
return this.aggregateDependencyAwareResults(results, dependencyGraph, debug, shouldStopExecution);
|
|
103028
103028
|
}
|
|
@@ -104577,6 +104577,13 @@ async function main() {
|
|
|
104577
104577
|
const hasRepositoryError = allResults.some((result) => {
|
|
104578
104578
|
return result.content.includes('Not a git repository');
|
|
104579
104579
|
});
|
|
104580
|
+
// Cleanup AI sessions before exit to prevent process hanging
|
|
104581
|
+
const { SessionRegistry } = await Promise.resolve().then(() => __importStar(__nccwpck_require__(46059)));
|
|
104582
|
+
const sessionRegistry = SessionRegistry.getInstance();
|
|
104583
|
+
if (sessionRegistry.getActiveSessionIds().length > 0) {
|
|
104584
|
+
logger_1.logger.debug(`🧹 Cleaning up ${sessionRegistry.getActiveSessionIds().length} active AI sessions...`);
|
|
104585
|
+
sessionRegistry.clearAllSessions();
|
|
104586
|
+
}
|
|
104580
104587
|
if (criticalCount > 0 || hasRepositoryError) {
|
|
104581
104588
|
process.exit(1);
|
|
104582
104589
|
}
|
|
@@ -109033,6 +109040,15 @@ async function run() {
|
|
|
109033
109040
|
(0, core_1.setFailed)(error instanceof Error ? error.message : 'Unknown error');
|
|
109034
109041
|
}
|
|
109035
109042
|
}
|
|
109043
|
+
finally {
|
|
109044
|
+
// Cleanup AI sessions before GitHub Action exits to prevent process hanging
|
|
109045
|
+
const { SessionRegistry } = await Promise.resolve().then(() => __importStar(__nccwpck_require__(46059)));
|
|
109046
|
+
const sessionRegistry = SessionRegistry.getInstance();
|
|
109047
|
+
if (sessionRegistry.getActiveSessionIds().length > 0) {
|
|
109048
|
+
console.log(`🧹 Cleaning up ${sessionRegistry.getActiveSessionIds().length} active AI sessions...`);
|
|
109049
|
+
sessionRegistry.clearAllSessions();
|
|
109050
|
+
}
|
|
109051
|
+
}
|
|
109036
109052
|
}
|
|
109037
109053
|
function mapGitHubEventToTrigger(eventName, action) {
|
|
109038
109054
|
if (!eventName)
|
|
@@ -111256,7 +111272,6 @@ const issue_filter_1 = __nccwpck_require__(36879);
|
|
|
111256
111272
|
const liquid_extensions_1 = __nccwpck_require__(33042);
|
|
111257
111273
|
const promises_1 = __importDefault(__nccwpck_require__(91943));
|
|
111258
111274
|
const path_1 = __importDefault(__nccwpck_require__(16928));
|
|
111259
|
-
const claude_code_types_1 = __nccwpck_require__(21710);
|
|
111260
111275
|
/**
|
|
111261
111276
|
* AI-powered check provider using probe agent
|
|
111262
111277
|
*/
|
|
@@ -111583,53 +111598,6 @@ class AICheckProvider extends check_provider_interface_1.CheckProvider {
|
|
|
111583
111598
|
throw new Error(`Failed to render prompt template: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
111584
111599
|
}
|
|
111585
111600
|
}
|
|
111586
|
-
/**
|
|
111587
|
-
* Setup MCP tools based on AI configuration
|
|
111588
|
-
*/
|
|
111589
|
-
async setupMcpTools(aiConfig) {
|
|
111590
|
-
const tools = [];
|
|
111591
|
-
// Setup custom MCP servers if configured
|
|
111592
|
-
if (aiConfig.mcpServers) {
|
|
111593
|
-
try {
|
|
111594
|
-
// Import MCP SDK for custom server creation using safe import
|
|
111595
|
-
const mcpModule = await (0, claude_code_types_1.safeImport)('@modelcontextprotocol/sdk');
|
|
111596
|
-
if (!mcpModule) {
|
|
111597
|
-
console.warn('@modelcontextprotocol/sdk package not found. MCP servers disabled.');
|
|
111598
|
-
return tools;
|
|
111599
|
-
}
|
|
111600
|
-
const createSdkMcpServer = mcpModule.createSdkMcpServer || mcpModule.default?.createSdkMcpServer;
|
|
111601
|
-
if (typeof createSdkMcpServer === 'function') {
|
|
111602
|
-
for (const [serverName, serverConfig] of Object.entries(aiConfig.mcpServers)) {
|
|
111603
|
-
try {
|
|
111604
|
-
// Create MCP server instance
|
|
111605
|
-
const server = await createSdkMcpServer({
|
|
111606
|
-
name: serverName,
|
|
111607
|
-
command: serverConfig.command,
|
|
111608
|
-
args: serverConfig.args || [],
|
|
111609
|
-
env: { ...process.env, ...serverConfig.env },
|
|
111610
|
-
});
|
|
111611
|
-
// Add server tools to available tools
|
|
111612
|
-
const serverTools = (await server.listTools());
|
|
111613
|
-
tools.push(...serverTools.map(tool => ({
|
|
111614
|
-
name: tool.name,
|
|
111615
|
-
server: serverName,
|
|
111616
|
-
})));
|
|
111617
|
-
}
|
|
111618
|
-
catch (serverError) {
|
|
111619
|
-
console.warn(`Failed to setup MCP server ${serverName}: ${serverError instanceof Error ? serverError.message : 'Unknown error'}`);
|
|
111620
|
-
}
|
|
111621
|
-
}
|
|
111622
|
-
}
|
|
111623
|
-
else {
|
|
111624
|
-
console.warn('createSdkMcpServer function not found in @modelcontextprotocol/sdk. MCP servers disabled.');
|
|
111625
|
-
}
|
|
111626
|
-
}
|
|
111627
|
-
catch (error) {
|
|
111628
|
-
console.warn(`Failed to import MCP SDK: ${error instanceof Error ? error.message : 'Unknown error'}. MCP servers disabled.`);
|
|
111629
|
-
}
|
|
111630
|
-
}
|
|
111631
|
-
return tools;
|
|
111632
|
-
}
|
|
111633
111601
|
async execute(prInfo, config, _dependencyResults, sessionInfo) {
|
|
111634
111602
|
// Apply environment configuration if present
|
|
111635
111603
|
if (config.env) {
|
|
@@ -111693,15 +111661,12 @@ class AICheckProvider extends check_provider_interface_1.CheckProvider {
|
|
|
111693
111661
|
if (config.ai?.mcpServers) {
|
|
111694
111662
|
Object.assign(mcpServers, config.ai.mcpServers);
|
|
111695
111663
|
}
|
|
111696
|
-
//
|
|
111664
|
+
// Pass MCP server config directly to AI service
|
|
111697
111665
|
if (Object.keys(mcpServers).length > 0) {
|
|
111698
|
-
//
|
|
111666
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111699
111667
|
aiConfig.mcpServers = mcpServers;
|
|
111700
|
-
// Optional: attempt to enumerate tools for debug visibility (not required for functionality)
|
|
111701
|
-
const mcpConfig = { mcpServers };
|
|
111702
|
-
const mcpTools = await this.setupMcpTools(mcpConfig);
|
|
111703
111668
|
if (aiConfig.debug) {
|
|
111704
|
-
console.error(`🔧 Debug: AI check MCP configured with ${Object.keys(mcpServers).length} servers
|
|
111669
|
+
console.error(`🔧 Debug: AI check MCP configured with ${Object.keys(mcpServers).length} servers`);
|
|
111705
111670
|
}
|
|
111706
111671
|
}
|
|
111707
111672
|
// Process prompt with Liquid templates and file loading
|
|
@@ -112115,59 +112080,6 @@ class ClaudeCodeCheckProvider extends check_provider_interface_1.CheckProvider {
|
|
|
112115
112080
|
throw new Error(`Failed to initialize Claude Code SDK: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
112116
112081
|
}
|
|
112117
112082
|
}
|
|
112118
|
-
/**
|
|
112119
|
-
* Setup MCP tools based on configuration
|
|
112120
|
-
*/
|
|
112121
|
-
async setupMcpTools(config) {
|
|
112122
|
-
const tools = [];
|
|
112123
|
-
// Add allowed tools
|
|
112124
|
-
if (config.allowedTools) {
|
|
112125
|
-
for (const toolName of config.allowedTools) {
|
|
112126
|
-
tools.push({ name: toolName });
|
|
112127
|
-
}
|
|
112128
|
-
}
|
|
112129
|
-
// Setup custom MCP servers if configured
|
|
112130
|
-
if (config.mcpServers) {
|
|
112131
|
-
try {
|
|
112132
|
-
// Import MCP SDK for custom server creation using safe import
|
|
112133
|
-
const mcpModule = await (0, claude_code_types_1.safeImport)('@modelcontextprotocol/sdk');
|
|
112134
|
-
if (!mcpModule) {
|
|
112135
|
-
console.warn('@modelcontextprotocol/sdk package not found. MCP servers disabled.');
|
|
112136
|
-
return tools;
|
|
112137
|
-
}
|
|
112138
|
-
const createSdkMcpServer = mcpModule.createSdkMcpServer || mcpModule.default?.createSdkMcpServer;
|
|
112139
|
-
if (typeof createSdkMcpServer === 'function') {
|
|
112140
|
-
for (const [serverName, serverConfig] of Object.entries(config.mcpServers)) {
|
|
112141
|
-
try {
|
|
112142
|
-
// Create MCP server instance
|
|
112143
|
-
const server = await createSdkMcpServer({
|
|
112144
|
-
name: serverName,
|
|
112145
|
-
command: serverConfig.command,
|
|
112146
|
-
args: serverConfig.args || [],
|
|
112147
|
-
env: { ...process.env, ...serverConfig.env },
|
|
112148
|
-
});
|
|
112149
|
-
// Add server tools to available tools
|
|
112150
|
-
const serverTools = (await server.listTools());
|
|
112151
|
-
tools.push(...serverTools.map(tool => ({
|
|
112152
|
-
name: tool.name,
|
|
112153
|
-
server: serverName,
|
|
112154
|
-
})));
|
|
112155
|
-
}
|
|
112156
|
-
catch (serverError) {
|
|
112157
|
-
console.warn(`Failed to setup MCP server ${serverName}: ${serverError instanceof Error ? serverError.message : 'Unknown error'}`);
|
|
112158
|
-
}
|
|
112159
|
-
}
|
|
112160
|
-
}
|
|
112161
|
-
else {
|
|
112162
|
-
console.warn('createSdkMcpServer function not found in @modelcontextprotocol/sdk. MCP servers disabled.');
|
|
112163
|
-
}
|
|
112164
|
-
}
|
|
112165
|
-
catch (error) {
|
|
112166
|
-
console.warn(`Failed to import MCP SDK: ${error instanceof Error ? error.message : 'Unknown error'}. MCP servers disabled.`);
|
|
112167
|
-
}
|
|
112168
|
-
}
|
|
112169
|
-
return tools;
|
|
112170
|
-
}
|
|
112171
112083
|
/**
|
|
112172
112084
|
* Group files by their file extension for template context
|
|
112173
112085
|
*/
|
|
@@ -112432,16 +112344,22 @@ class ClaudeCodeCheckProvider extends check_provider_interface_1.CheckProvider {
|
|
|
112432
112344
|
try {
|
|
112433
112345
|
// Initialize Claude Code client
|
|
112434
112346
|
const client = await this.initializeClaudeCodeClient();
|
|
112435
|
-
//
|
|
112436
|
-
const tools = await this.setupMcpTools(claudeCodeConfig);
|
|
112437
|
-
// Prepare query object
|
|
112347
|
+
// Prepare query object with MCP servers passed directly to SDK
|
|
112438
112348
|
const query = {
|
|
112439
112349
|
query: processedPrompt,
|
|
112440
|
-
tools: tools.length > 0 ? tools : undefined,
|
|
112441
112350
|
maxTurns: claudeCodeConfig.maxTurns || 5,
|
|
112442
112351
|
systemPrompt: claudeCodeConfig.systemPrompt,
|
|
112443
112352
|
subagent: claudeCodeConfig.subagent,
|
|
112444
112353
|
};
|
|
112354
|
+
// Add allowed tools if specified
|
|
112355
|
+
if (claudeCodeConfig.allowedTools && claudeCodeConfig.allowedTools.length > 0) {
|
|
112356
|
+
query.tools = claudeCodeConfig.allowedTools.map(name => ({ name }));
|
|
112357
|
+
}
|
|
112358
|
+
// Pass MCP servers directly to the SDK - let it handle spawning and tool discovery
|
|
112359
|
+
if (claudeCodeConfig.mcpServers && Object.keys(claudeCodeConfig.mcpServers).length > 0) {
|
|
112360
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
112361
|
+
query.mcpServers = claudeCodeConfig.mcpServers;
|
|
112362
|
+
}
|
|
112445
112363
|
// Execute query with Claude Code
|
|
112446
112364
|
let response;
|
|
112447
112365
|
if (sessionInfo?.reuseSession && sessionInfo.parentSessionId) {
|
|
@@ -112475,7 +112393,6 @@ class ClaudeCodeCheckProvider extends check_provider_interface_1.CheckProvider {
|
|
|
112475
112393
|
sessionId: response.session_id,
|
|
112476
112394
|
turnCount: response.turn_count,
|
|
112477
112395
|
usage: response.usage,
|
|
112478
|
-
toolsUsed: tools.map(t => t.name),
|
|
112479
112396
|
};
|
|
112480
112397
|
// Apply issue suppression filtering
|
|
112481
112398
|
const suppressionEnabled = config.suppressionEnabled !== false;
|
|
@@ -114522,7 +114439,11 @@ exports.SessionRegistry = void 0;
|
|
|
114522
114439
|
class SessionRegistry {
|
|
114523
114440
|
static instance;
|
|
114524
114441
|
sessions = new Map();
|
|
114525
|
-
|
|
114442
|
+
exitHandlerRegistered = false;
|
|
114443
|
+
constructor() {
|
|
114444
|
+
// Register process exit handlers to cleanup sessions
|
|
114445
|
+
this.registerExitHandlers();
|
|
114446
|
+
}
|
|
114526
114447
|
/**
|
|
114527
114448
|
* Get the singleton instance of SessionRegistry
|
|
114528
114449
|
*/
|
|
@@ -114555,7 +114476,19 @@ class SessionRegistry {
|
|
|
114555
114476
|
unregisterSession(sessionId) {
|
|
114556
114477
|
if (this.sessions.has(sessionId)) {
|
|
114557
114478
|
console.error(`🗑️ Unregistering AI session: ${sessionId}`);
|
|
114479
|
+
const agent = this.sessions.get(sessionId);
|
|
114558
114480
|
this.sessions.delete(sessionId);
|
|
114481
|
+
// Cleanup the ProbeAgent instance to prevent hanging processes
|
|
114482
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114483
|
+
if (agent && typeof agent.cleanup === 'function') {
|
|
114484
|
+
try {
|
|
114485
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114486
|
+
agent.cleanup();
|
|
114487
|
+
}
|
|
114488
|
+
catch (error) {
|
|
114489
|
+
console.error(`⚠️ Warning: Failed to cleanup ProbeAgent: ${error}`);
|
|
114490
|
+
}
|
|
114491
|
+
}
|
|
114559
114492
|
}
|
|
114560
114493
|
}
|
|
114561
114494
|
/**
|
|
@@ -114563,6 +114496,19 @@ class SessionRegistry {
|
|
|
114563
114496
|
*/
|
|
114564
114497
|
clearAllSessions() {
|
|
114565
114498
|
console.error(`🧹 Clearing all AI sessions (${this.sessions.size} sessions)`);
|
|
114499
|
+
// Cleanup each ProbeAgent instance before clearing
|
|
114500
|
+
for (const [, agent] of this.sessions.entries()) {
|
|
114501
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114502
|
+
if (agent && typeof agent.cleanup === 'function') {
|
|
114503
|
+
try {
|
|
114504
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114505
|
+
agent.cleanup();
|
|
114506
|
+
}
|
|
114507
|
+
catch {
|
|
114508
|
+
// Silent fail during bulk cleanup
|
|
114509
|
+
}
|
|
114510
|
+
}
|
|
114511
|
+
}
|
|
114566
114512
|
this.sessions.clear();
|
|
114567
114513
|
}
|
|
114568
114514
|
/**
|
|
@@ -114577,6 +114523,51 @@ class SessionRegistry {
|
|
|
114577
114523
|
hasSession(sessionId) {
|
|
114578
114524
|
return this.sessions.has(sessionId);
|
|
114579
114525
|
}
|
|
114526
|
+
/**
|
|
114527
|
+
* Register process exit handlers to cleanup sessions on exit
|
|
114528
|
+
*/
|
|
114529
|
+
registerExitHandlers() {
|
|
114530
|
+
if (this.exitHandlerRegistered) {
|
|
114531
|
+
return;
|
|
114532
|
+
}
|
|
114533
|
+
const cleanupAndExit = (signal) => {
|
|
114534
|
+
if (this.sessions.size > 0) {
|
|
114535
|
+
console.error(`\n🧹 [${signal}] Cleaning up ${this.sessions.size} active AI sessions...`);
|
|
114536
|
+
this.clearAllSessions();
|
|
114537
|
+
}
|
|
114538
|
+
};
|
|
114539
|
+
// Handle normal process exit
|
|
114540
|
+
process.on('exit', () => {
|
|
114541
|
+
if (this.sessions.size > 0) {
|
|
114542
|
+
console.error(`🧹 [exit] Cleaning up ${this.sessions.size} active AI sessions...`);
|
|
114543
|
+
// Note: async operations won't complete here, but sync cleanup methods will
|
|
114544
|
+
for (const [, agent] of this.sessions.entries()) {
|
|
114545
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114546
|
+
if (agent && typeof agent.cleanup === 'function') {
|
|
114547
|
+
try {
|
|
114548
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
114549
|
+
agent.cleanup();
|
|
114550
|
+
}
|
|
114551
|
+
catch {
|
|
114552
|
+
// Silent fail on exit
|
|
114553
|
+
}
|
|
114554
|
+
}
|
|
114555
|
+
}
|
|
114556
|
+
this.sessions.clear();
|
|
114557
|
+
}
|
|
114558
|
+
});
|
|
114559
|
+
// Handle SIGINT (Ctrl+C)
|
|
114560
|
+
process.on('SIGINT', () => {
|
|
114561
|
+
cleanupAndExit('SIGINT');
|
|
114562
|
+
process.exit(0);
|
|
114563
|
+
});
|
|
114564
|
+
// Handle SIGTERM
|
|
114565
|
+
process.on('SIGTERM', () => {
|
|
114566
|
+
cleanupAndExit('SIGTERM');
|
|
114567
|
+
process.exit(0);
|
|
114568
|
+
});
|
|
114569
|
+
this.exitHandlerRegistered = true;
|
|
114570
|
+
}
|
|
114580
114571
|
}
|
|
114581
114572
|
exports.SessionRegistry = SessionRegistry;
|
|
114582
114573
|
|
|
@@ -228810,7 +228801,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
228810
228801
|
/***/ ((module) => {
|
|
228811
228802
|
|
|
228812
228803
|
"use strict";
|
|
228813
|
-
module.exports = {"rE":"0.1.
|
|
228804
|
+
module.exports = {"rE":"0.1.81"};
|
|
228814
228805
|
|
|
228815
228806
|
/***/ })
|
|
228816
228807
|
|
|
@@ -35,10 +35,6 @@ export declare class AICheckProvider extends CheckProvider {
|
|
|
35
35
|
* Render Liquid template in prompt with comprehensive event context
|
|
36
36
|
*/
|
|
37
37
|
private renderPromptTemplate;
|
|
38
|
-
/**
|
|
39
|
-
* Setup MCP tools based on AI configuration
|
|
40
|
-
*/
|
|
41
|
-
private setupMcpTools;
|
|
42
38
|
execute(prInfo: PRInfo, config: CheckProviderConfig, _dependencyResults?: Map<string, ReviewSummary>, sessionInfo?: {
|
|
43
39
|
parentSessionId?: string;
|
|
44
40
|
reuseSession?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-check-provider.d.ts","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/providers/ai-check-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ai-check-provider.d.ts","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/providers/ai-check-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAS5C;;GAEG;AACH,qBAAa,eAAgB,SAAQ,aAAa;IAChD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,YAAY,CAAS;;IAQ7B,OAAO,IAAI,MAAM;IAIjB,cAAc,IAAI,MAAM;IAIlB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAoDvD;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAqB1B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAiB7B;;OAEG;YACW,aAAa;IAmB3B;;OAEG;YACW,UAAU;IAsExB;;OAEG;YACW,kBAAkB;IA0ChC;;OAEG;YACW,oBAAoB;IA0I5B,OAAO,CACX,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,mBAAmB,EAC3B,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,EAC/C,WAAW,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,GACjE,OAAO,CAAC,aAAa,CAAC;YAiBX,iBAAiB;IAoL/B,sBAAsB,IAAI,MAAM,EAAE;IAmB5B,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAYrC,eAAe,IAAI,MAAM,EAAE;CAQ5B"}
|
|
@@ -28,10 +28,6 @@ export declare class ClaudeCodeCheckProvider extends CheckProvider {
|
|
|
28
28
|
* Initialize Claude Code SDK client
|
|
29
29
|
*/
|
|
30
30
|
private initializeClaudeCodeClient;
|
|
31
|
-
/**
|
|
32
|
-
* Setup MCP tools based on configuration
|
|
33
|
-
*/
|
|
34
|
-
private setupMcpTools;
|
|
35
31
|
/**
|
|
36
32
|
* Group files by their file extension for template context
|
|
37
33
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-code-check-provider.d.ts","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/providers/claude-code-check-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAqB5C;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,KAAK;;CAOxD;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;;CAOtD;AAED;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IACxD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,gBAAgB,CAAiC;;IAOzD,OAAO,IAAI,MAAM;IAIjB,cAAc,IAAI,MAAM;IAIlB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAwDvD;;OAEG;YACW,0BAA0B;IAyCxC;;OAEG;
|
|
1
|
+
{"version":3,"file":"claude-code-check-provider.d.ts","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/providers/claude-code-check-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAqB5C;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,KAAK;;CAOxD;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;;CAOtD;AAED;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,aAAa;IACxD,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,gBAAgB,CAAiC;;IAOzD,OAAO,IAAI,MAAM;IAIjB,cAAc,IAAI,MAAM;IAIlB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAwDvD;;OAEG;YACW,0BAA0B;IAyCxC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAiB7B;;OAEG;YACW,aAAa;IAmB3B;;OAEG;YACW,UAAU;IAkExB;;OAEG;YACW,kBAAkB;IA0ChC;;OAEG;YACW,oBAAoB;IA4GlC;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAiBzB,OAAO,CACX,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,mBAAmB,EAC3B,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,EAC9C,WAAW,CAAC,EAAE;QAAE,eAAe,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,GACjE,OAAO,CAAC,aAAa,CAAC;YAgBX,iBAAiB;IA0I/B,sBAAsB,IAAI,MAAM,EAAE;IAiB5B,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IA0BrC,eAAe,IAAI,MAAM,EAAE;CAQ5B"}
|
package/dist/sdk/{check-execution-engine-2EQWRXWI.mjs → check-execution-engine-47OZJFUV.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CheckExecutionEngine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5PUTL5N.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-47OZJFUV.mjs.map
|