← Về thư mục
frontend/src/features/messages/stream.ts
- LiveStream · type · L48-L64 — type LiveStream = { wrap: HTMLElement; md: HTMLElement; sealed: HTMLElement | null; tail: HTMLElement | null; text: string; full: string; toolPre: HTMLElement | null; toolCard: HTMLElement | null; toolMeta: HTMLElement | null; toolHandle: StreamingPreHandle | null; _stableAt: number; _mdCut: MdCutState; _dirty: boolean; _raf: number | null; _lastFlush: number; };
- NbLiveStart · type · L66-L72 — type NbLiveStart = ( tool: string, raw: string, kernelId: unknown, cellIndex: unknown, language: unknown, ) => void;
- NbLiveAppend · type · L73-L73 — type NbLiveAppend = (txt: string) => void;
- setNbLiveStartImpl · function · L79-L81 — function setNbLiveStartImpl(fn: NbLiveStart | null): void
- setNbLiveAppendImpl · function · L82-L84 — function setNbLiveAppendImpl(fn: NbLiveAppend | null): void
- currentStream · function · L86-L88 — function currentStream(): LiveStream | null
- ensureDual · function · L90-L97 — function ensureDual(st: LiveStream): void
- resetMdState · function · L99-L104 — function resetMdState(st: LiveStream): void
- flushRender · function · L107-L137 — function flushRender(st: LiveStream | null, finalRender?: boolean): void
- scheduleRender · function · L140-L162 — function scheduleRender(st: LiveStream): void
- sealText · function · L165-L170 — function sealText(st: LiveStream | null): void
- startStream · function · L173-L207 — function startStream(): LiveStream | null
- ensure · function · L209-L213 — function ensure(): LiveStream | null
- callWindow · function · L215-L219 — function callWindow(name: string, ...args: unknown[]): void
- newToolPre · function · L221-L227 — function newToolPre(): { pre: HTMLElement; handle: StreamingPreHandle }
- paintToolMeta · function · L229-L232 — function paintToolMeta(st: LiveStream): void
- feed · function · L237-L344 — function feed( kind: string, chunk: string, event?: WsMessage | null, storedOwnsChunk = false, ): void