remcode
Version:
Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.
79 lines (78 loc) • 2.49 kB
TypeScript
import { Request, Response } from 'express';
export interface ProcessingOptions {
type: 'auto' | 'full' | 'incremental' | 'vectorize' | 'analyze';
force: boolean;
repository?: string;
owner?: string;
repo?: string;
branch?: string;
token?: string;
timeout?: number;
dryRun?: boolean;
}
export interface ProcessingStatusResponse {
status: 'idle' | 'analyzing' | 'vectorizing' | 'updating' | 'completed' | 'failed';
lastProcessed?: string;
currentCommit?: string;
pendingChanges?: boolean;
lastError?: string;
stats?: {
filesProcessed: number;
chunksCreated: number;
vectorsStored: number;
lastDuration?: number;
};
workflow?: {
status: string;
runId?: number;
url?: string;
startedAt?: string;
completedAt?: string;
};
}
export declare class ProcessingMCPHandler {
private stateManager;
private workflowMonitor;
private workflowGenerator;
constructor(githubToken?: string);
/**
* Trigger repository reprocessing
*/
handleTriggerReprocessing(req: Request, res: Response, params?: any): Promise<void>;
/**
* Get current processing status
*/
handleGetProcessingStatus(req: Request, res: Response, params?: any): Promise<void>;
/**
* Get workflow processing history
*/
handleGetProcessingHistory(req: Request, res: Response, params?: any): Promise<void>;
/**
* Cancel a running workflow
*/
handleCancelProcessing(req: Request, res: Response, params?: any): Promise<void>;
/**
* Retry a failed workflow
*/
handleRetryProcessing(req: Request, res: Response, params?: any): Promise<void>;
/**
* Get workflow logs
*/
handleGetProcessingLogs(req: Request, res: Response, params?: any): Promise<void>;
/**
* Get processing metrics and analytics
*/
handleGetProcessingMetrics(req: Request, res: Response, params?: any): Promise<void>;
/**
* Get workflow analytics and performance metrics
*/
handleGetWorkflowAnalytics(req: Request, res: Response, params?: any): Promise<void>;
/**
* Monitor workflow health and get recommendations
*/
handleMonitorWorkflowHealth(req: Request, res: Response, params?: any): Promise<void>;
/**
* Get automated workflow recommendations
*/
handleGetWorkflowRecommendations(req: Request, res: Response, params?: any): Promise<void>;
}