MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isUndoContextComponent

Function isUndoContextComponent

apps/kimi-code/src/tui/commands/undo.ts:467–486  ·  view source on GitHub ↗
(child: Component)

Source from the content-addressed store, hash-verified

465}
466
467function 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
488function renderWelcome(host: SlashCommandHost): void {
489 if (

Callers 1

Calls 2

isUndoContextEntryFunction · 0.85

Tested by

no test coverage detected