(child: Component)
| 465 | } |
| 466 | |
| 467 | function isUndoContextComponent(child: Component): boolean { |
| 468 | const entry = getTranscriptComponentEntry(child); |
| 469 | if (entry !== undefined) { |
| 470 | return isUndoContextEntry(entry); |
| 471 | } |
| 472 | |
| 473 | return ( |
| 474 | child instanceof UserMessageComponent || |
| 475 | child instanceof AssistantMessageComponent || |
| 476 | child instanceof ThinkingComponent || |
| 477 | child instanceof ToolCallComponent || |
| 478 | child instanceof AgentGroupComponent || |
| 479 | child instanceof AgentSwarmProgressComponent || |
| 480 | child instanceof ReadGroupComponent || |
| 481 | child instanceof SkillActivationComponent || |
| 482 | child instanceof PluginCommandComponent || |
| 483 | child instanceof BackgroundAgentStatusComponent || |
| 484 | child instanceof CronMessageComponent |
| 485 | ); |
| 486 | } |
| 487 | |
| 488 | function renderWelcome(host: SlashCommandHost): void { |
| 489 | if ( |
no test coverage detected