← Về thư mục
frontend/src/features/messages/delta.ts
- LiveOutputDelta · type · L15-L19 — type LiveOutputDelta = { next: string; added: string; addedNewlines: number; };
- countNewlines · function · L21-L27 — function countNewlines(text: string): number
- liveOutputDelta · function · L33-L41 — function liveOutputDelta( current: string | null | undefined, chunk: string | null | undefined, ): LiveOutputDelta
- AppendableText · type · L43-L43 — type AppendableText = { appendData: (data: string) => void };
- StreamingPreHandle · type · L45-L50 — type StreamingPreHandle = { append: (chunk: string) => void; readonly text: string; readonly newlines: number; readonly truncated: boolean; };
- bindStreamingPre · function · L57-L80 — function bindStreamingPre( textNode: AppendableText, initial = "", ): StreamingPreHandle
- append · method · L64-L69 — append(chunk: string): void
- text · method · L70-L72 — get text(): string
- newlines · method · L73-L75 — get newlines(): number
- truncated · method · L76-L78 — get truncated(): boolean
- toolMetaLabel · function · L86-L90 — function toolMetaLabel(newlines: number): string