(updates: Partial<ChatMessage>)
| 665 | |
| 666 | function createStreamBlockHelpers(targetBuffer: AIChatBuffer, getAiMessageIndex: () => number): StreamBlockHelpers { |
| 667 | const updateAIMessage = (updates: Partial<ChatMessage>) => { |
| 668 | const idx = getAiMessageIndex() |
| 669 | targetBuffer.messages[idx] = { ...targetBuffer.messages[idx], ...updates } |
| 670 | } |
| 671 | |
| 672 | const appendTextToBlocks = (text: string) => { |
| 673 | if (!text) return |
no outgoing calls
no test coverage detected