import { useAgentInlineDialogEvents } from "./useAgentInlineDialogEvents";
import { useAgentQueuedPromptReset } from "./useAgentQueuedPromptReset";
import { useAgentTerminalReadyEvents } from "./useAgentTerminalReadyEvents";
import { useAgentToolApprovalResolvedEvents } from "./useAgentToolApprovalResolvedEvents";
export function useAgentTerminalBackgroundEvents(input) {
    const { inlineDialogEvents, toolApprovalResolved, readyEvents, queuedPromptReset, } = input;
    const { agentIdRefForDialogs, agentStubIdRefForDialogs } = useAgentInlineDialogEvents(inlineDialogEvents);
    useAgentToolApprovalResolvedEvents({
        ...toolApprovalResolved,
        agentIdRef: agentIdRefForDialogs,
        agentStubIdRef: agentStubIdRefForDialogs,
    });
    useAgentTerminalReadyEvents(readyEvents);
    useAgentQueuedPromptReset(queuedPromptReset);
}
//# sourceMappingURL=useAgentTerminalBackgroundEvents.js.map