vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
66 lines • 2.21 kB
TypeScript
import { VibeTaskManagerConfig } from './config-loader.js';
export interface TaskManagerMemoryStats {
totalMemoryUsage: number;
heapUsed: number;
heapTotal: number;
external: number;
arrayBuffers: number;
rss: number;
percentageUsed: number;
cacheMemoryUsage: number;
taskStorageMemoryUsage: number;
agentMemoryUsage: number;
timestamp: Date;
}
export interface MemoryAlert {
id: string;
type: 'warning' | 'critical';
threshold: number;
currentUsage: number;
message: string;
timestamp: Date;
resolved: boolean;
}
export interface MemoryCleanupResult {
success: boolean;
memoryFreed: number;
itemsRemoved: number;
duration: number;
error?: string;
}
export declare class TaskManagerMemoryManager {
private static instance;
private memoryManager;
private config;
private monitoringInterval;
private memoryStats;
private alerts;
private cleanupCallbacks;
private constructor();
static getInstance(config?: VibeTaskManagerConfig['taskManager']['performance']['memoryManagement']): TaskManagerMemoryManager;
private startMonitoring;
stopMonitoring(): void;
private collectMemoryStats;
private checkMemoryThresholds;
private generateAlert;
performAggressiveCleanup(): Promise<MemoryCleanupResult>;
registerCleanupCallback(name: string, callback: () => Promise<MemoryCleanupResult>): void;
unregisterCleanupCallback(name: string): void;
getCurrentMemoryStats(): TaskManagerMemoryStats | null;
getMemoryStatsHistory(limit?: number): TaskManagerMemoryStats[];
getActiveAlerts(): MemoryAlert[];
resolveAlert(alertId: string): boolean;
private estimateCacheMemoryUsage;
private estimateTaskStorageMemoryUsage;
private estimateAgentMemoryUsage;
getMemoryUsageSummary(): {
current: TaskManagerMemoryStats | null;
peak: TaskManagerMemoryStats | null;
average: number;
alertCount: number;
cleanupCallbacksCount: number;
};
shutdown(): void;
}
export declare function getTaskManagerMemoryManager(): TaskManagerMemoryManager | null;
//# sourceMappingURL=memory-manager-integration.d.ts.map