删除AGC无调用方的 Tauri 后台任务命令并清理门禁注释
- 删除 commands.rs 的 start_game_creator_agent_runtime_task(前端无调用方,内部实现与 CLI 入口保持不变) - main.rs invoke_handler 同步移除该命令注册 - check-config.mjs 的 native-only allowlist 同步移除该条目 - check-config.mjs allowlist 注释去掉「终端 swarm CLI 也已退役」的墓碑式表述
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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<String>,
|
||||
task: String,
|
||||
run_id: String,
|
||||
) -> Result<AgentRuntimeResult, String> {
|
||||
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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user