/** * Subagent <-> parent log bridge. Wraps child `MoxxyEvent`s into * `plugin_event` envelopes on the parent log so the TUI / exporters can * render live progress, and emits the start/completed bookend envelopes. */ import type { MoxxyEvent, SessionId, StopReason, SubagentSpec, TurnId } from '@moxxy/sdk'; import type { SessionRuntime } from '../session-runtime.js'; export declare const SUBAGENT_PLUGIN_ID: import("@moxxy/sdk").PluginId; export declare function emitSubagentStart(parentSession: SessionRuntime, parentTurnId: TurnId, label: string, childSessionId: SessionId, spec: SubagentSpec, mode: string): Promise; export declare function emitSubagentCompleted(parentSession: SessionRuntime, parentTurnId: TurnId, label: string, childSessionId: SessionId, text: string, stopReason: StopReason, errorMessage: string | null, agentType: string, tokensUsed: number): Promise; export declare function emitSubagentWarning(parentSession: SessionRuntime, parentTurnId: TurnId, label: string, childSessionId: SessionId, message: string): Promise; /** * Map each interesting child event to a parent `plugin_event` so the TUI * can render the subagent's progress in real time. Noisy / book-keeping * events (mode_iteration, provider_request, provider_response, * assistant_message — covered by the explicit `subagent_completed`) are * filtered out to keep the parent log lean. */ export declare function streamChildEventToParent(parentSession: SessionRuntime, parentTurnId: TurnId, label: string, childSessionId: SessionId, childEvt: MoxxyEvent): Promise; //# sourceMappingURL=events.d.ts.map