(entry: TranscriptEntry)
| 412 | } |
| 413 | |
| 414 | function isUndoContextEntry(entry: TranscriptEntry): boolean { |
| 415 | switch (entry.kind) { |
| 416 | case 'user': |
| 417 | case 'assistant': |
| 418 | case 'tool_call': |
| 419 | case 'thinking': |
| 420 | case 'skill_activation': |
| 421 | case 'plugin_command': |
| 422 | case 'cron': |
| 423 | return true; |
| 424 | case 'status': |
| 425 | case 'goal': |
| 426 | return entry.turnId !== undefined; |
| 427 | case 'welcome': |
| 428 | return false; |
| 429 | } |
| 430 | } |
| 431 | |
| 432 | function findUndoAnchorComponentIndex( |
| 433 | children: readonly Component[], |
no outgoing calls
no test coverage detected