From 425743820a71c9dfbe609f9fab694fb8239f849e Mon Sep 17 00:00:00 2001 From: AIGameCreator App Date: Fri, 3 Jul 2026 01:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90AI=E6=B8=B8=E6=88=8F=E5=88=9B?= =?UTF-8?q?=E4=BD=9C=E8=BD=BB=E9=87=8F=E8=AF=BB=E5=8F=96=E8=8D=89=E7=A8=BF?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为Trace产物和checkpoint补充只填草稿的读取与回滚入口 补充Agent输出、活动和上下文包读取草稿入口 补充黑板覆盖与清空草稿入口 同步AI游戏创作App文档和共享决策记录 --- apps/ai-game-creator-shell/src/App.tsx | 80 ++++++++++++++++++- .../tests/appSurface.test.ts | 75 ++++++++++++++++- .../shared-memory/decision-log.md | 6 +- ...案】AI游戏创作智能体App实施计划-2026-06-24.md | 12 +-- 4 files changed, 162 insertions(+), 11 deletions(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 71e9745fa..539af1977 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -3123,6 +3123,14 @@ function commandDraftFromAgentRunTrace(trace: GameCreationAgentRunTrace) { ); } +function readableArtifactPathFromAgentRunTrace( + trace: GameCreationAgentRunTrace, +) { + return trace.artifacts.find((artifact) => + isSafeProjectRelativePath(artifact.path), + )?.path; +} + function localAgentConversationReceipt(agent: AgentStatusCard) { return `已记录给 ${agent.title}。下一次生成会把这条对话作为该 agent 的上下文读取。`; } @@ -3256,9 +3264,16 @@ export function summarizeAgentRunTrace(trace: GameCreationAgentRunTrace) { } function summarizeAgentRunCompletionForChat(trace: GameCreationAgentRunTrace) { + const suggestedCommand = commandDraftFromAgentRunTrace(trace); + const readableArtifactPath = readableArtifactPathFromAgentRunTrace(trace); + const artifactReadCommand = readableArtifactPath + ? `/read ${readableArtifactPath}` + : undefined; return { text: `${summarizeAgentRunTrace(trace)}\n完整 trace:/trace`, - draftCommand: commandDraftFromAgentRunTrace(trace) ?? undefined, + draftCommand: suggestedCommand ?? artifactReadCommand, + draftCommandLabel: + suggestedCommand || !artifactReadCommand ? undefined : '读取首个产物', }; } @@ -9487,6 +9502,22 @@ export function App() { > 记到黑板 + + + + ))} @@ -9817,6 +9868,33 @@ export function App() { > 继续 + + +