From 78ba9e33b6bbafe63dc2b1f1e6531130cd5e61ec Mon Sep 17 00:00:00 2001 From: Suzumiya Date: Wed, 9 Sep 2026 17:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20AGC=20=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E5=AE=88=E5=8D=AB=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - check-config.mjs 启动诊断守卫改按 StartupLogSlot 契约匹配:setup_log.fail 加稳定失败码 - 同时校验 StartupLogSlot 内部仍写有界诊断日志并调用可见提示,避免守卫被绕过 --- apps/ai-game-creator-shell/scripts/check-config.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/scripts/check-config.mjs b/apps/ai-game-creator-shell/scripts/check-config.mjs index 0149d953a..fb115058b 100644 --- a/apps/ai-game-creator-shell/scripts/check-config.mjs +++ b/apps/ai-game-creator-shell/scripts/check-config.mjs @@ -1705,10 +1705,13 @@ if ( runtimeConfigSetupStart === -1 || runtimeConfigSetupEnd === -1 || !runtimeConfigSetupSource.includes('sanitize_diagnostic_message(') || - !runtimeConfigSetupSource.includes('append_bounded_diagnostic_line(') || + !runtimeConfigSetupSource.includes('setup_log.fail(') || !runtimeConfigSetupSource.includes( 'startup.appdata.configure.failed details={details}', - ) + ) || + !tauriHandlerSource.includes('impl StartupLogSlot {') || + !tauriHandlerSource.includes('append_bounded_diagnostic_line(&path, line)') || + !tauriHandlerSource.includes('show_startup_error_dialog(&path)') ) { throw new Error( 'AI game creator setup must configure the runtime AppData directory and log sanitized setup failures',