/** * Shared BTW transcript types. * * Consolidates the `BtwTranscriptEntry` / `BtwTranscript` union types that were * duplicated verbatim across `btw-runtime-core.ts` and `btw-overlay.ts`. */ export type BtwTranscriptEntry = | { id: number; turnId: number; type: "turn-boundary"; phase: "start" | "end" } | { id: number; turnId: number; type: "user-message"; text: string } | { id: number; turnId: number; type: "thinking"; text: string; streaming: boolean } | { id: number; turnId: number; type: "assistant-text"; text: string; streaming: boolean } | { id: number; turnId: number; type: "tool-call"; toolCallId: string; toolName: string; args: string } | { id: number; turnId: number; type: "tool-result"; toolCallId: string; toolName: string; content: string; truncated: boolean; isError: boolean; streaming: boolean; }; export type BtwTranscript = BtwTranscriptEntry[];