/** * Aura Protocol - Zone Manager * * Manages creation, execution, and lifecycle of zones. * Zones are isolated execution environments that contain agents. */ import { EventEmitter } from 'events'; import { Zone, ZoneConfig, ZoneFinding, ZoneResult, ZoneStatus } from './types.js'; import { Agent } from '../agents/types.js'; export declare class ZoneManager extends EventEmitter { private zones; private agents; constructor(); private initializeDefaultZones; /** * Create a new zone */ createZone(config: ZoneConfig): Zone; /** * Get a zone by ID */ getZone(zoneId: string): Zone | undefined; /** * Get all zones */ getAllZones(): Zone[]; /** * Register an agent */ registerAgent(agent: Agent): void; /** * Get an agent by ID */ getAgent(agentId: string): Agent | undefined; /** * Get all agents */ getAllAgents(): Agent[]; /** * Get agents for a specific zone */ getZoneAgents(zoneId: string): Agent[]; /** * Assign an agent to a zone */ assignAgentToZone(agentId: string, zoneId: string): void; /** * Remove an agent from a zone */ removeAgentFromZone(agentId: string, zoneId: string): void; /** * Create a zone context for agent execution */ private createZoneContext; /** * Execute a single zone */ executeZone(zoneId: string, targetPath: string): Promise; /** * Execute multiple zones in parallel */ executeZonesParallel(zoneIds: string[], targetPath: string): Promise>; /** * Execute all zones in parallel */ executeAllZones(targetPath: string): Promise>; /** * Reset a zone to idle state */ resetZone(zoneId: string): void; /** * Get zone status */ getZoneStatus(zoneId: string): ZoneStatus | undefined; /** * Get all findings from all zones */ getAllFindings(): ZoneFinding[]; /** * Export zone state for visualization */ exportState(): { zones: Array<{ id: string; name: string; type: string; color: string; status: ZoneStatus; agentCount: number; findingCount: number; }>; agents: Array<{ id: string; name: string; role: string; zoneId: string | null; status: string; }>; }; } export declare const zoneManager: ZoneManager;