From 3318be3da0ce421bcbcefbbd28f9bd20868b01a6 Mon Sep 17 00:00:00 2001 From: menghao Date: Thu, 30 Jul 2026 19:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=89=80=E6=9C=89=E6=9D=83=E9=97=A8=E7=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 让 Native shell 检查识别共享 LocalGamePreviewFrame 的唯一物理 iframe 校验项目开发与总控对话视图分别委托共享预览组件 同步校验抽取后的 URL 安全与 sandbox 契约位置 --- scripts/check-native-shells.mjs | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/scripts/check-native-shells.mjs b/scripts/check-native-shells.mjs index 423154400..2e4fd3631 100644 --- a/scripts/check-native-shells.mjs +++ b/scripts/check-native-shells.mjs @@ -42,6 +42,14 @@ const aiGameCreatorProjectDevelopmentSource = fs.readFileSync( 'apps/ai-game-creator-shell/src/view/project-development/index.tsx', 'utf8', ); +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 aiGameCreatorPreviewRustSource = fs.readFileSync( 'apps/ai-game-creator-shell/src-tauri/src/preview.rs', 'utf8', @@ -2409,20 +2417,38 @@ function assertAiGameCreatorShellUserDevBoundary() { } const clientPreviewFrameCount = [ - ...aiGameCreatorProjectDevelopmentSource.matchAll(/