diff --git a/apps/ai-game-creator-shell/scripts/check-config.mjs b/apps/ai-game-creator-shell/scripts/check-config.mjs index 159e50782..fdf535c69 100644 --- a/apps/ai-game-creator-shell/scripts/check-config.mjs +++ b/apps/ai-game-creator-shell/scripts/check-config.mjs @@ -123,9 +123,9 @@ const rustSharedContractSource = fs.readFileSync( ); const allowedUncalledTauriCommands = [ 'append_direct_project_conversation_message', - // Supervisor 调试窗口、开发者面板、专业 Agent 对话与旧命令聊天的前端调用方已随 - // Supervisor 前端链路整体删除,终端 swarm CLI 也已退役;命令本身仍注册在 Rust 侧 - // 供 native Runtime 与 Rust 测试使用,保留 present,仅不出现在 App 前端源码里。 + // Supervisor 调试窗口、开发者面板与专业 Agent 对话的前端调用方已随 Supervisor + // 前端链路整体删除;命令本身仍注册在 Rust 侧供 native Runtime 与 Rust 测试使用, + // 保留 present,仅不出现在 App 前端源码里。 'answer_game_creator_agent_runtime_user_input', 'cancel_game_creator_agent_runtime_task', 'chat_with_game_creator_role_agent', @@ -141,7 +141,6 @@ const allowedUncalledTauriCommands = [ 'reject_game_creator_agent_runtime_task', 'retry_game_creator_agent_runtime_task', 'schedule_game_creator_agent_ready_tasks', - 'start_game_creator_agent_runtime_task', 'steer_game_creator_agent_runtime_task', 'write_local_agent_memory', 'write_local_game_memory', diff --git a/apps/ai-game-creator-shell/src-tauri/src/commands.rs b/apps/ai-game-creator-shell/src-tauri/src/commands.rs index 4c60b2b7c..cb7345c01 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/commands.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/commands.rs @@ -1344,30 +1344,6 @@ pub(crate) async fn chat_with_game_creator_role_agent_stream( } } -#[tauri::command] -#[allow(dead_code)] -// Tauri IPC 入口:前端暂无调用方,内部实现 `*_at` 仍被 `--agent-steer`、goal 与测试使用。 -// 保留注册以维持既有 App IPC 表面;重接前端入口或删除属于单独的 native 能力取舍。 -pub(crate) fn start_game_creator_agent_runtime_task( - project_path: String, - agent_id: String, - session_id: Option, - task: String, - run_id: String, -) -> Result { - let root = Path::new(project_path.trim()); - enforce_project_permission_policy(root, "conversation.read")?; - enforce_project_permission_policy(root, "conversation.write")?; - enforce_project_permission_policy(root, "agent.run_status")?; - start_game_creator_agent_background_task_for_session_at( - root, - agent_id.trim(), - session_id.as_deref(), - task.trim(), - run_id.trim(), - ) -} - #[tauri::command] pub(crate) fn start_game_creator_supervisor_runtime_task( project_path: String, diff --git a/apps/ai-game-creator-shell/src-tauri/src/main.rs b/apps/ai-game-creator-shell/src-tauri/src/main.rs index f151f543d..2dc5cf29c 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/main.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/main.rs @@ -2613,7 +2613,6 @@ fn main() { import_design_workspace_file, list_design_workspace, read_design_workspace_file, - start_game_creator_agent_runtime_task, start_game_creator_supervisor_runtime_task, compact_game_creator_agent_runtime_context, read_game_creator_agent_goal,