/** * mailbox-attach — composition glue for the agent-loop mailbox checker. * * Lives at the src root (composition layer) because it constructs the * concrete GlobalMailbox from coordination/ and hands the resulting * checker to core/ — core/ itself may only depend on the Mailbox * interface (architecture Rule 3, see tests/architecture/ * package-boundaries.test.ts). * * @module mailbox-attach */ import type { MailboxMessage } from './coordination/mailbox-types.js'; import type { FleetConfig } from './types/config.js'; import type { AgentInternals } from './core/agent-internals.js'; export declare function attachMailboxChecker(a: AgentInternals, source?: 'cli' | 'webui'): () => Promise; /** * Fleet-pulse provider: returns a fresh "[FLEET PULSE]" digest block when * (a) the read throttle allows, (b) at least one online peer exists, and * (c) the peer picture actually changed since the last injected pulse. * Otherwise `null`. Same best-effort posture as the mailbox checker — any * failure degrades to "no pulse", never to a thrown error. */ export declare function attachFleetPulse(a: AgentInternals, cfg?: FleetConfig['pulse']): () => Promise<{ type: 'text'; text: string; } | null>; //# sourceMappingURL=mailbox-attach.d.ts.map