Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type { OrchestrationMessage } from "@akeru/contracts";
import { replyMarkdownToSpokenText } from "./spokenText.ts";
/** Uses only the stored assistant text, never attachments, tool events, or a new turn. */
export function replyReadoutMessageAction(
message: Pick<OrchestrationMessage, "role" | "streaming" | "text">,
) {
if (message.role !== "assistant" || message.streaming) return null;
return replyMarkdownToSpokenText(message.text);
}