From 524e2f0f4fec78fc3b0e6051a431e4713dc23e39 Mon Sep 17 00:00:00 2001 From: kdletters Date: Sat, 5 Sep 2026 17:37:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=BF=9E=E6=8E=A5=E4=B8=8E?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E8=AE=BE=E7=BD=AE=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除运行设置中的连接与工具导航及页面内容 更新运行设置测试以校验该入口已删除 同步配置门禁,防止已删除页面重新出现 --- .../scripts/check-config.mjs | 15 ++++- .../runtime-config/RuntimeConfigDialog.tsx | 59 ------------------- .../appSurface/runtime-settings.suite.ts | 6 +- 3 files changed, 16 insertions(+), 64 deletions(-) diff --git a/apps/ai-game-creator-shell/scripts/check-config.mjs b/apps/ai-game-creator-shell/scripts/check-config.mjs index 9833f1251..da4523c06 100644 --- a/apps/ai-game-creator-shell/scripts/check-config.mjs +++ b/apps/ai-game-creator-shell/scripts/check-config.mjs @@ -1754,8 +1754,6 @@ for (const snippet of [ "'write_game_creator_app_config'", 'aria-label="运行时配置"', 'LLM API Key', - 'External Editor Base URL', - 'External Editor API Key', 'runtime_config.save', "'/run:运行自检,启动本地 HTTP 预览并载入客户端运行视图'", "'activate_local_game_preview'", @@ -1791,6 +1789,19 @@ for (const snippet of [ } } +for (const snippet of [ + "label: '连接与工具'", + "id: 'connections'", + "activeSection === 'connections'", + 'aria-label="外部连接"', +]) { + if (appSource.includes(snippet)) { + throw new Error( + `AI game creator shell removed settings page was reintroduced: ${snippet}`, + ); + } +} + for (const script of [ 'ai-game-creator-shell:dev', 'ai-game-creator-shell:dev-server', diff --git a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx index 0ff7f445c..44f47ffb7 100644 --- a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx +++ b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx @@ -1,6 +1,5 @@ import { Bot, - Cable, CheckCircle2, CircleAlert, Info, @@ -91,7 +90,6 @@ const defaultRuntimeConfigDraft: GameCreatorAppConfig = { type RuntimeSettingsSection = | 'general' | 'agents' - | 'connections' | 'extensions' | 'advanced' | 'about'; @@ -116,12 +114,6 @@ const runtimeSettingsSections = [ description: '按角色覆盖默认模型', icon: Bot, }, - { - id: 'connections', - label: '连接与工具', - description: '外部服务', - icon: Cable, - }, { id: 'extensions', label: '扩展', @@ -1452,57 +1444,6 @@ export function RuntimeConfigDialog({ })} ) : null} - {activeSection === 'connections' ? ( -
-
-
-

外部连接

-

配置图片编辑器使用的外部服务

-
-
- {allowAdvancedExternalEditorConfig ? ( -
- - -
- ) : null} -
- ) : null} {activeSection === 'extensions' ? (