From 9345236b93b16b5833d4bd71a51e745224fbb614 Mon Sep 17 00:00:00 2001 From: Linghong Date: Fri, 11 Sep 2026 03:34:56 +0000 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E7=AD=96=E5=88=92=20Agent=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增始终可见的策划工作区与文件预览 复用 GameAgent 双栏布局并调整审批澄清交互 审批按钮改为文字与图标并保留现有 Runtime 行为 --- .../project-workspace/DesignAgentSurface.tsx | 138 +++---- .../DesignWorkspacePanel.tsx | 284 +++++++++++++ .../ProjectSupervisorView.tsx | 4 +- apps/ai-game-creator-shell/src/styles.css | 381 ++++++++++++++++++ .../src/view/project-development/index.tsx | 28 ++ 5 files changed, 746 insertions(+), 89 deletions(-) create mode 100644 apps/ai-game-creator-shell/src/features/project-workspace/DesignWorkspacePanel.tsx diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx index b75c68dd0..2097c5622 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/DesignAgentSurface.tsx @@ -1,12 +1,11 @@ +import { Check, RotateCcw, X } from 'lucide-react'; import { useState } from 'react'; -import { closeDialogOnEscape } from '../../app/dialogs'; import type { DesignClarificationRequest, DesignView, DesignWorkspaceEntry, } from '../../app/types'; -import { ChatMarkdownMessage } from '../../components/ChatMarkdownMessage'; const PHASE_LABELS: Record = { concept: '概念设计', @@ -37,72 +36,71 @@ type DesignAgentSurfaceProps = { export function DesignAgentSurface({ view, - files, - previewPath, - previewText, busy, error, onApprove, onClarify, onRetry, - onOpenFile, - onClosePreview, }: DesignAgentSurfaceProps) { const [clarifyText, setClarifyText] = useState(''); const phase = view?.session.currentPhase ?? 'concept'; const pending = view?.session.pendingApproval; const clarification = view?.session.pendingClarification; return ( -
-
-
+
+
+
+ 当前阶段 {PHASE_LABELS[phase] ?? phase} - {view?.running ? 进行中 : null}
+ {view?.running ? ( + 工作中 + ) : null}
- {error ? ( -

{error}

- ) : null} + {error ?

{error}

: null} {pending ? (
- - +

当前阶段产物已提交,是否批准进入下一阶段?

+
+ + +
) : null} {clarification ? (

{clarification.question}

- {clarification.options.map((option, index) => ( - - ))} +
+ {clarification.options.map((option, index) => ( + + ))} +