agentic-qe
Version: 
Agentic Quality Engineering Fleet System - AI-driven quality management platform
40 lines • 1.06 kB
TypeScript
/**
 * EventBus - Central event coordination system for the AQE Fleet
 *
 * Provides a reliable, persistent event system for agent coordination
 * and fleet-wide communication using EventEmitter with SQLite persistence.
 */
/// <reference types="node" />
import { EventEmitter } from 'events';
export interface FleetEvent {
    id: string;
    type: string;
    source: string;
    target?: string;
    data: any;
    timestamp: Date;
    processed: boolean;
}
export declare class EventBus extends EventEmitter {
    private readonly logger;
    private readonly events;
    private isInitialized;
    constructor();
    /**
     * Initialize the event bus
     */
    initialize(): Promise<void>;
    /**
     * Emit a fleet event
     */
    emitFleetEvent(type: string, source: string, data: any, target?: string): Promise<string>;
    /**
     * Get event by ID
     */
    getEvent(eventId: string): FleetEvent | undefined;
    /**
     * Setup internal event handlers
     */
    private setupInternalHandlers;
}
//# sourceMappingURL=EventBus.d.ts.map