UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

73 lines 2.04 kB
import { Agent, AgentConfig } from '../agent'; export interface SystemMetrics { timestamp: number; cpu: number; memory: number; disk: number; network: { bytesIn: number; bytesOut: number; }; } export interface AlertRule { id: string; name: string; condition: string; threshold: number; severity: 'low' | 'medium' | 'high' | 'critical'; actions: string[]; } export interface Alert { id: string; ruleId: string; message: string; severity: 'low' | 'medium' | 'high' | 'critical'; timestamp: number; resolved: boolean; } export interface MonitoringConfig { id: string; projectId: string; metrics: string[]; alertRules: AlertRule[]; intervals: { collection: number; analysis: number; reporting: number; }; thresholds: Record<string, number>; } export interface HealthStatus { overall: 'healthy' | 'warning' | 'critical'; components: Array<{ name: string; status: 'healthy' | 'warning' | 'critical'; message: string; lastCheck: number; }>; alerts: Alert[]; recommendations: string[]; } export declare class Monitor extends Agent { private metricsHistory; private activeAlerts; private alertRules; initialize(config: AgentConfig): Promise<void>; getPromptTemplate(): string; executeTask(): Promise<HealthStatus>; collectSystemMetrics(): Promise<SystemMetrics>; analyzeSystemHealth(currentMetrics: SystemMetrics): Promise<HealthStatus>; detectAnomalies(metrics: SystemMetrics[]): Promise<Alert[]>; generateRecommendations(healthStatus: HealthStatus): Promise<string[]>; private loadMonitoringConfiguration; private getDefaultAlertRules; private processAlerts; private triggerAlert; private resolveAlert; private updateMonitoringState; private parseMetrics; private parseHealthStatus; private parseAlerts; private parseRecommendations; } //# sourceMappingURL=monitor.d.ts.map