/** * Aura Protocol - Zone Types * * Zones are isolated execution environments that contain agents. * Each zone has its own memory space and can run in parallel with other zones. */ export type ZoneStatus = 'idle' | 'running' | 'complete' | 'error'; export type ZoneType = 'scanner' | 'policy' | 'remediation' | 'reporting'; export interface ZoneConfig { id: string; name: string; type: ZoneType; color: string; description?: string; agentIds: string[]; config?: Record; } export interface ZoneMemory { data: Map; findings: ZoneFinding[]; logs: ZoneLog[]; } export interface ZoneFinding { id: string; agentId: string; type: 'secret' | 'vulnerability' | 'policy_violation' | 'recommendation'; severity: 'critical' | 'high' | 'medium' | 'low' | 'info'; title: string; description: string; file?: string; line?: number; metadata?: Record; timestamp: number; } export interface ZoneLog { level: 'debug' | 'info' | 'warn' | 'error'; message: string; agentId?: string; timestamp: number; } export interface Zone { config: ZoneConfig; status: ZoneStatus; memory: ZoneMemory; startTime?: number; endTime?: number; error?: string; } export interface ZoneResult { zoneId: string; zoneName: string; zoneType: ZoneType; status: ZoneStatus; findings: ZoneFinding[]; logs: ZoneLog[]; duration: number; agentResults: AgentResult[]; error?: string; } export interface AgentResult { agentId: string; agentName: string; status: 'success' | 'error' | 'skipped'; findings: ZoneFinding[]; duration: number; error?: string; } export interface ZoneContext { zoneId: string; zoneName: string; zoneType: ZoneType; targetPath: string; memory: ZoneMemory; config: Record; addFinding: (finding: Omit) => void; log: (level: ZoneLog['level'], message: string) => void; } export declare const DEFAULT_ZONES: ZoneConfig[];