(
id: string,
variant: 'ai' | 'user' | 'agent' | 'error' = 'ai',
blocks?: ContentBlock[],
metadata?: { isCollapsed?: boolean; userOpened?: boolean },
)
| 17 | |
| 18 | // Helper to create minimal test messages |
| 19 | const createMessage = ( |
| 20 | id: string, |
| 21 | variant: 'ai' | 'user' | 'agent' | 'error' = 'ai', |
| 22 | blocks?: ContentBlock[], |
| 23 | metadata?: { isCollapsed?: boolean; userOpened?: boolean }, |
| 24 | ): ChatMessage => ({ |
| 25 | id, |
| 26 | variant, |
| 27 | content: '', |
| 28 | timestamp: new Date().toISOString(), |
| 29 | blocks, |
| 30 | metadata, |
| 31 | }) |
| 32 | |
| 33 | // Helper to create tool blocks |
| 34 | const createToolBlock = ( |
no outgoing calls
no test coverage detected