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。" +}