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' ? (