import { createRuntimeEventFeed } from './event-feeds.js';
function createUiEventFeed(runtimeBus) {
    return createRuntimeEventFeed((type, listener) => (runtimeBus.on(type, listener)));
}
export function createUiRuntimeEvents(runtimeBus) {
    return {
        sessions: createUiEventFeed(runtimeBus),
        turns: createUiEventFeed(runtimeBus),
        tools: createUiEventFeed(runtimeBus),
        providers: createUiEventFeed(runtimeBus),
        agents: createUiEventFeed(runtimeBus),
        workflows: createUiEventFeed(runtimeBus),
        planner: createUiEventFeed(runtimeBus),
        ops: createUiEventFeed(runtimeBus),
    };
}
