Skip to content

Commit ab7c4ca

Browse files
committed
feat(animations): 添加三个新的动画演示组件
添加 Memory Import 解析、命令加载冲突解决和工具确认状态机的动画演示组件 包括完整的交互式状态展示、流程图和核心实现代码示例
1 parent fb7492f commit ab7c4ca

File tree

5 files changed

+1739
-0
lines changed

5 files changed

+1739
-0
lines changed

src/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ const StreamingJsonParserAnimation = lazy(() => import('./pages/StreamingJsonPar
107107
const VimCompositeActionsAnimation = lazy(() => import('./pages/VimCompositeActionsAnimation'));
108108
const PromptProcessingPipelineAnimation = lazy(() => import('./pages/PromptProcessingPipelineAnimation'));
109109
const SlashCommandExecutionAnimation = lazy(() => import('./pages/SlashCommandExecutionAnimation'));
110+
const MemoryImportProcessorAnimation = lazy(() => import('./pages/animations/MemoryImportProcessorAnimation').then(m => ({ default: m.MemoryImportProcessorAnimation })));
111+
const CommandLoadingAnimation = lazy(() => import('./pages/animations/CommandLoadingAnimation').then(m => ({ default: m.CommandLoadingAnimation })));
112+
const ToolConfirmationFlowAnimation = lazy(() => import('./pages/animations/ToolConfirmationFlowAnimation').then(m => ({ default: m.ToolConfirmationFlowAnimation })));
110113
const TurnStateMachine = lazy(() => import('./pages/TurnStateMachine').then(m => ({ default: m.TurnStateMachine })));
111114
const TokenAccountingSystem = lazy(() => import('./pages/TokenAccountingSystem').then(m => ({ default: m.TokenAccountingSystem })));
112115
const SessionPersistence = lazy(() => import('./pages/SessionPersistence').then(m => ({ default: m.SessionPersistence })));
@@ -405,6 +408,12 @@ function App() {
405408
return <VimCompositeActionsAnimation />;
406409
case 'prompt-pipeline-anim':
407410
return <PromptProcessingPipelineAnimation />;
411+
case 'memory-import-anim':
412+
return <MemoryImportProcessorAnimation />;
413+
case 'command-loading-anim':
414+
return <CommandLoadingAnimation />;
415+
case 'tool-confirmation-anim':
416+
return <ToolConfirmationFlowAnimation />;
408417
case 'code':
409418
return <CoreCode />;
410419
case 'loop':

src/nav.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ export const navGroups: NavGroup[] = [
190190
{ id: 'streaming-json-parser-anim', label: '流式 JSON 解析', highlight: true },
191191
{ id: 'vim-composite-actions-anim', label: 'Vim 复合操作', highlight: true },
192192
{ id: 'prompt-pipeline-anim', label: 'Prompt 处理管道', highlight: true },
193+
{ id: 'memory-import-anim', label: 'Memory Import 解析', highlight: true },
194+
{ id: 'command-loading-anim', label: '命令加载冲突解决', highlight: true },
195+
{ id: 'tool-confirmation-anim', label: '工具确认状态机', highlight: true },
193196
],
194197
},
195198
{

0 commit comments

Comments
 (0)