From 9dccf5318eb7de3f45a58a38ca345852b82788b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 16 Sep 2026 23:10:59 +0800 Subject: [PATCH] =?UTF-8?q?UI=20=E5=8E=9F=E5=9E=8B=20kind=20=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=94=B9=E7=94=A8=E5=85=B1=E4=BA=AB=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - uiDesignResourceBridge.ts:原型 kind 比较由裸字符串 `'ui-design'` 改为 `GAME_CREATION_APP_UI_DESIGN_ASSET_KIND`,与 manifest kind 契约保持同一处定义。 --- .../src/features/ui-editor/uiDesignResourceBridge.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts b/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts index 358af30c9..2d4078959 100644 --- a/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts +++ b/apps/ai-game-creator-shell/src/features/ui-editor/uiDesignResourceBridge.ts @@ -3,6 +3,7 @@ import type { GameCreationAppManifest, } from '../../../../../packages/shared/src/contracts/gameCreationApp'; import { + GAME_CREATION_APP_UI_DESIGN_ASSET_KIND, GAME_CREATION_APP_UI_DESIGN_DOC_ASSET_KIND, GAME_CREATION_APP_UI_DESIGN_DOC_MEDIA_TYPE, } from '../../../../../packages/shared/src/contracts/gameCreationApp'; @@ -93,7 +94,7 @@ export async function ensureUiDesignResourceForPrototype({ parseGameCreationAppAssetKind( prototype.kind, 'ui-design-resource-bridge.prototype', - ) !== 'ui-design' + ) !== GAME_CREATION_APP_UI_DESIGN_ASSET_KIND ) { throw new Error('目标资源不是 UI 原型图片'); }