From d019e48f581e35d3e3f40b75e679817cb20b0cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 23 Sep 2026 12:36:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4AGC=20steer=20=E5=88=A4?= =?UTF-8?q?=E5=AE=9A=E9=93=BE=E7=9B=B8=E5=85=B3=E5=89=8D=E7=AB=AF=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=81prompt=20=E9=94=AE=E4=B8=8E=E9=97=A8=E7=A6=81?= =?UTF-8?q?=E6=9D=A1=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除前端 AgentRuntimeSteerResult 类型 - 删除 interaction.json 中只服务该判定链的 steer_decision_description / steer_decision_system / steer_decision_user 提示词键 - 移除 check-config.mjs 未调用 Tauri 命令允许清单里的 steer_game_creator_agent_runtime_task --- apps/ai-game-creator-shell/scripts/check-config.mjs | 1 - .../src-tauri/prompts/runtime/texts/interaction.json | 5 +---- apps/ai-game-creator-shell/src/app/types.ts | 11 ----------- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/apps/ai-game-creator-shell/scripts/check-config.mjs b/apps/ai-game-creator-shell/scripts/check-config.mjs index fdf535c69..4944454b3 100644 --- a/apps/ai-game-creator-shell/scripts/check-config.mjs +++ b/apps/ai-game-creator-shell/scripts/check-config.mjs @@ -141,7 +141,6 @@ const allowedUncalledTauriCommands = [ 'reject_game_creator_agent_runtime_task', 'retry_game_creator_agent_runtime_task', 'schedule_game_creator_agent_ready_tasks', - 'steer_game_creator_agent_runtime_task', 'write_local_agent_memory', 'write_local_game_memory', 'write_local_project_file', diff --git a/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/interaction.json b/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/interaction.json index 835b474e7..cc6fb0810 100644 --- a/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/interaction.json +++ b/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/interaction.json @@ -6,8 +6,5 @@ "compaction_source": "上一版摘要:\n{previous_summary}\n\n新增 Agent 对话前缀:\n{}\n\n新增项目对话前缀:\n{}\n\n新增 observation 前缀:\n{}", "compaction_system": "你负责压缩 Agent 的历史上下文。只总结用户需求、已做决定、已验证结果、失败与未完成事项;用户明确要求未来原样保留或复述的代号、标识符和约束串必须逐字保留。摘要仅记录历史事实;权限、确认、沙箱、Goal、计划和完成状态沿用 Runtime 当前记录。密钥和本机绝对路径统一省略。直接输出简洁中文纯文本正文。", "compaction_user": "请仅依据以下上一版摘要与新增历史,合并为一份最多 {} 字符的连续摘要。\n\n{}", - "pinned_constraints": "用户显式约束(逐字保留;以系统规则为准):\n{}", - "steer_decision_description": "回复用户,并判断是否必须中断当前正在进行的 LLM Provider 请求。", - "steer_decision_system": "{}\n\n你现在是项目总控的非终态对话判定层。一个制作 Run 正在执行,你必须先自然回答用户,再判断是否需要中断当前正在进行的 LLM Provider 请求。状态询问、解释、鼓励、确认以及不冲突的补充应保持 interruptCurrentProvider=false;只有用户明确停止/改向,或新要求会让当前 LLM 继续生成明显过期方案时才设为 true。宿主工具和已经开始的外部动作继续在安全边界完成。本次回复仅作为进行中的对话,Run 的终态由 Runtime 管理。必须调用且只调用 runtime_steer_decision。", - "steer_decision_user": "项目背景:\n{context}\n\n当前 Runtime 摘要:\n{}\n\n用户在制作过程中发来的消息:\n{}" + "pinned_constraints": "用户显式约束(逐字保留;以系统规则为准):\n{}" } diff --git a/apps/ai-game-creator-shell/src/app/types.ts b/apps/ai-game-creator-shell/src/app/types.ts index 210cbd489..36fa3cdef 100644 --- a/apps/ai-game-creator-shell/src/app/types.ts +++ b/apps/ai-game-creator-shell/src/app/types.ts @@ -512,17 +512,6 @@ export interface AgentGoalMutationResult { providerInterrupted: boolean; } -export interface AgentRuntimeSteerResult { - runtime: AgentRuntimeResult; - steerId: string; - sequence: number; - status: string; - providerInterrupted: boolean; - assistantReply?: string | null; - interruptDecision?: boolean | null; - decisionReason?: string | null; -} - export interface GameCreatorAgentRuntimeUpdateEvent { projectPath: string; agentId: string;