/**
 * Event types whose volume makes durable persistence wasteful.
 *
 * `text_delta` and `tool_input_delta` arrive at provider cadence (often
 * 50–100 events per second), carry no information not derivable from the
 * surrounding message/tool lifecycle events, and are not consulted by
 * replay (`runtime/query/replay/prepare.ts` reads checkpoints, not the
 * transcript). The kernel still dispatches them on the in-memory bus so
 * SSE consumers can render live progress, but the disk store
 * (`store/run/disk.ts:appendEvent`) skips them via this predicate.
 *
 * Keeping the predicate centralised — rather than threading an
 * `ephemeral: true` field through every emit site — means new ephemeral
 * variants are added by editing one Set and consumers don't have to
 * inspect event shape to decide what to persist.
 */
const EPHEMERAL_EVENT_TYPES = new Set([
    'text_delta',
    'tool_input_delta',
]);
export function isEphemeralEvent(event) {
    return EPHEMERAL_EVENT_TYPES.has(event.type);
}
//# sourceMappingURL=events.js.map