UNPKG

@sethdouglasford/claude-flow

Version:

Claude Code Flow - Advanced AI-powered development workflows with SPARC methodology

37 lines 1.3 kB
/** * Inter-agent messaging system */ import { Message, CoordinationConfig } from "../utils/types.js"; import { IEventBus } from "../core/event-bus.js"; import { ILogger } from "../core/logger.js"; /** * Message router for inter-agent communication */ export declare class MessageRouter { private config; private eventBus; private logger; private queues; private pendingResponses; private messageCount; constructor(config: CoordinationConfig, eventBus: IEventBus, logger: ILogger); initialize(): void; shutdown(): void; send(from: string, to: string, payload: unknown): Promise<void>; sendWithResponse<T = unknown>(from: string, to: string, payload: unknown, timeoutMs?: number): Promise<T>; broadcast(from: string, payload: unknown): Promise<void>; subscribe(agentId: string, handler: (message: Message) => void): void; unsubscribe(agentId: string, handlerId: string): void; sendResponse(originalMessageId: string, response: unknown): void; getHealthStatus(): { healthy: boolean; error?: string; metrics?: Record<string, number>; }; private sendMessage; private processMessage; private ensureQueue; performMaintenance(): void; private cleanup; } //# sourceMappingURL=messaging.d.ts.map