//#region src/agent/streaming/reasoning-visibility-sse.ts
/**
* @returns `null` to drop the event; unchanged `event` otherwise.
*/
function applyReasoningVisibilityToSseEvent(event, reasoningLevel) {
	if (reasoningLevel !== "off") return event;
	if (event.type === "thinking") return null;
	if (event.type === "progress" && event.stage === "thinking") return null;
	return event;
}
//#endregion
export { applyReasoningVisibilityToSseEvent };

//# sourceMappingURL=reasoning-visibility-sse.js.map