From 665788760e1ea61449261c1712d84ef6c5aebae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 23 Sep 2026 17:51:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20UI=20=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=B7=A5=E5=85=B7=E7=9A=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=8D=E7=9B=AE=E5=BD=95=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 prompts/runtime/texts/ui-design-doc.json,承载 from-images、run-workflow、into-js 三个工具的描述与参数文案 - manifest.json 的 textCatalogs 登记 uiDesignDoc 目录 --- .../src-tauri/prompts/runtime/manifest.json | 1 + .../src-tauri/prompts/runtime/texts/ui-design-doc.json | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/ui-design-doc.json diff --git a/apps/ai-game-creator-shell/src-tauri/prompts/runtime/manifest.json b/apps/ai-game-creator-shell/src-tauri/prompts/runtime/manifest.json index 88d921118..982112915 100644 --- a/apps/ai-game-creator-shell/src-tauri/prompts/runtime/manifest.json +++ b/apps/ai-game-creator-shell/src-tauri/prompts/runtime/manifest.json @@ -7,6 +7,7 @@ "execution": "texts/execution.json", "media": "texts/media.json", "nativeTools": "texts/native-tools.json", + "uiDesignDoc": "texts/ui-design-doc.json", "recovery": "texts/recovery.json", "interaction": "texts/interaction.json", "goalContext": "texts/goal-context.json", diff --git a/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/ui-design-doc.json b/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/ui-design-doc.json new file mode 100644 index 000000000..81f1f7f42 --- /dev/null +++ b/apps/ai-game-creator-shell/src-tauri/prompts/runtime/texts/ui-design-doc.json @@ -0,0 +1,8 @@ +{ + "from_images.description": "用一至四张设计图新建一份 UI 设计文档:输入给已登记资源的 assetId,或给项目内相对路径由本工具顺带登记;随后按 ui/UI 设计 N.json 取号创建文档、把设计图写进文档并登记为 ui-design-doc 资源,返回新文档的 assetId 与 relativePath。每次调用都新建文档,不复用既有文档。", + "from_images.parameters.images": "一至四张设计图。每张给 assets 里已登记图片资源的 assetId,或给项目内相对路径(相对路径会先登记成图片资源);文档内的设计图身份就是该图片资源的 assetId。", + "run_workflow.description": "对一份 UI 设计文档依次执行结构识别与素材切分,并把切分素材、组件绑定与问题状态写回文档后保存。每完成一步追加一行检查点,崩溃后从第一个缺失的步骤继续;结构识别之前不做任何页面发现,合并与组件绑定不在本工具范围内。", + "run_workflow.parameters.designDocAssetId": "目标 UI 设计文档在 assets 里的 assetId;文档内必须已有设计图。", + "into_js.description": "把一份 UI 设计文档的当前 revision 渲染成 ui/generated--.js,返回相对路径与导出树。只读文档内容,不修改文档、不推进 revision。", + "into_js.parameters.designDocAssetId": "目标 UI 设计文档在 assets 里的 assetId。" +}