彻底移除 Game Chat 模式
删除 Game Chat 客户端入口、命令与专属配置 移除 Game Chat Runtime 快车道、提示词和专属测试 清理文档、检查脚本与残留路由命令 保留通用 autonomous-game-build 与共享美术契约
This commit is contained in:
@@ -40,10 +40,6 @@ const aiGameCreatorLocalGamePreviewFrameSource = fs.readFileSync(
|
||||
'apps/ai-game-creator-shell/src/features/project-workspace/LocalGamePreviewFrame.tsx',
|
||||
'utf8',
|
||||
);
|
||||
const aiGameCreatorSupervisorChatOnlyViewSource = fs.readFileSync(
|
||||
'apps/ai-game-creator-shell/src/features/project-workspace/SupervisorChatOnlyView.tsx',
|
||||
'utf8',
|
||||
);
|
||||
const aiGameCreatorProjectDevelopmentSource = fs.readFileSync(
|
||||
'apps/ai-game-creator-shell/src/view/project-development/index.tsx',
|
||||
'utf8',
|
||||
@@ -58,12 +54,6 @@ const aiGameCreatorShellTauriConfig = JSON.parse(
|
||||
'utf8',
|
||||
),
|
||||
);
|
||||
const aiGameCreatorGameChatTauriConfig = JSON.parse(
|
||||
fs.readFileSync(
|
||||
'apps/ai-game-creator-shell/src-tauri/tauri.game-chat-release.conf.json',
|
||||
'utf8',
|
||||
),
|
||||
);
|
||||
const aiGameCreatorShellTauriSource = readSourceTree(
|
||||
'apps/ai-game-creator-shell/src-tauri/src',
|
||||
'.rs',
|
||||
@@ -2388,21 +2378,6 @@ function assertAiGameCreatorShellUserDevBoundary() {
|
||||
'AI game creator release shell must default to 1280x800 and stay at least 1280x720',
|
||||
);
|
||||
}
|
||||
const gameChatWindows = aiGameCreatorGameChatTauriConfig.app?.windows ?? [];
|
||||
const gameChatClientWindow = gameChatWindows[0];
|
||||
if (
|
||||
gameChatWindows.length !== 1 ||
|
||||
gameChatClientWindow?.label !== 'client' ||
|
||||
gameChatClientWindow?.url !== 'index.html' ||
|
||||
gameChatClientWindow?.width !== 1280 ||
|
||||
gameChatClientWindow?.height !== 800 ||
|
||||
gameChatClientWindow?.minWidth !== 1280 ||
|
||||
gameChatClientWindow?.minHeight !== 720
|
||||
) {
|
||||
throw new Error(
|
||||
'AI game creator game-chat shell must default to 1280x800 and stay at least 1280x720',
|
||||
);
|
||||
}
|
||||
const releaseCsp = aiGameCreatorShellTauriConfig.app?.security?.csp ?? '';
|
||||
const devCsp = aiGameCreatorShellTauriConfig.app?.security?.devCsp ?? '';
|
||||
const releaseFrameSrc =
|
||||
@@ -2553,16 +2528,7 @@ function assertAiGameCreatorShellUserDevBoundary() {
|
||||
/<LocalGamePreviewFrame\b/g,
|
||||
),
|
||||
].length;
|
||||
const gameChatPreviewMountCount = [
|
||||
...aiGameCreatorSupervisorChatOnlyViewSource.matchAll(
|
||||
/<LocalGamePreviewFrame\b/g,
|
||||
),
|
||||
].length;
|
||||
if (
|
||||
sharedPreviewIframeCount !== 1 ||
|
||||
clientPreviewMountCount !== 1 ||
|
||||
gameChatPreviewMountCount !== 1
|
||||
) {
|
||||
if (sharedPreviewIframeCount !== 1 || clientPreviewMountCount !== 1) {
|
||||
throw new Error(
|
||||
'AI game creator workbenches must reuse one guarded local preview frame component',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user