Codex/fix pr188 191 ci (#194)
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:
@@ -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',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user