← Về thư mục
frontend/src/features/messages/list.ts
- HistoryItem · type · L21-L26 — type HistoryItem = { t: number; seq: number; kind: "msg" | "step"; v: unknown; };
- StoredMessage · type · L28-L38 — type StoredMessage = { role?: string; content?: unknown; created_at?: unknown; artifact_refs?: unknown; failure?: { request_id?: unknown; code?: unknown; output_committed?: unknown }; cancelled?: { request_id?: unknown; execution_id?: unknown; reason?: unknown }; review_status?: unknown; metadata?: { review_status?: unknown }; [key: string]: unknown; };
- StepRenderer · type · L40-L40 — type StepRenderer = (step: unknown, target?: ParentNode | null) => Node | null | void;
- setRenderStoredStepImpl · function · L47-L49 — function setRenderStoredStepImpl(fn: StepRenderer | null): void
- nextBatchEnd · function · L51-L57 — function nextBatchEnd( start: number, total: number, batch = INITIAL_RENDER_BATCH, ): number
- callWindow · function · L59-L63 — function callWindow(name: string, ...args: unknown[]): void
- failureMeta · function · L65-L89 — function failureMeta(failure: NonNullable): HTMLElement
- addMsgActions · function · L91-L125 — function addMsgActions(wrap: HTMLElement, text: string): void
- messageText · function · L127-L139 — function messageText(m: StoredMessage): string
- reviewStatusOf · function · L141-L147 — function reviewStatusOf(m: StoredMessage): unknown
- renderStored · function · L150-L205 — function renderStored( m: StoredMessage, target?: ParentNode | null, ): HTMLElement | null
- insertMessageByTime · function · L208-L229 — function insertMessageByTime( node: HTMLElement, host: ParentNode | null = messagesHost(), ): void
- appendBatch · function · L231-L239 — function appendBatch(host: ParentNode, nodes: Node[]): void
- renderHistoryItem · function · L241-L254 — function renderHistoryItem( item: HistoryItem, target: ParentNode, ): Node | null
- scheduleFramedRender · function · L260-L321 — function scheduleFramedRender( items: HistoryItem[], opts: { host?: ParentNode | null; stillCurrent?: () => boolean; onDone?: () => void; onCancel?: () => void; onError?: (error: unknown) => void; batch?: number; onBatch?: () => void; renderItem?: (item: HistoryItem, target: ParentNode) => void; } = {}, ): void
- tick · function · L283-L319 — tick = (): void
- appendChild · method · L294-L297 — appendChild(node: Node): Node
- cancelFramedRender · function · L323-L329 — function cancelFramedRender(): void
- renderEmptySession · function · L332-L359 — function renderEmptySession(host: ParentNode | null = messagesHost()): void
- interleaveHistory · function · L361-L384 — function interleaveHistory( msgs: StoredMessage[], steps: Array<{ created_at?: number; seq?: number; [key: string]: unknown }>, ): HistoryItem[]