Codex/fix pr188 191 ci (#194)
Project CI / Repository checks (push) Successful in 2m24s
Project CI / Frontend tests (push) Successful in 2m54s
Project CI / Backend tests (push) Successful in 4m33s
Project CI / Native shell tests (push) Successful in 14m29s

Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/194
Co-authored-by: kdletters <kdletters@qq.com>
Co-committed-by: kdletters <kdletters@qq.com>
This commit was merged in pull request #194.
This commit is contained in:
2026-08-25 15:41:55 +08:00
committed by 段舒康
parent a265a0ff92
commit c09a511aaa
113 changed files with 1102 additions and 40430 deletions
+1 -35
View File
@@ -42,10 +42,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',
@@ -60,12 +56,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',
@@ -2374,21 +2364,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 =
@@ -2539,16 +2514,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',
);