mlx-bun library API
    Preparing search index...
    interface HistoryItem {
        entryId?: string;
        role: "user" | "assistant";
        text: string;
        thinking?: string;
        tools: HistoryToolItem[];
    }
    Index
    entryId?: string

    Session entry id (user items only). Lets the browser correlate "the last user message" in the replayed thread with the siblings frame's entryId, so it knows which DOM node gets the edit/sibling-toggle UI. Undefined for assistant items — they aren't fork targets.

    role: "user" | "assistant"
    text: string
    thinking?: string

    Model reasoning/thinking, kept separate from the final answer.