合并编辑器场景生成与图片编辑契约
Project CI / Repository checks (pull_request) Failing after 8s
Project CI / Frontend tests (pull_request) Failing after 1m58s
Project CI / Backend tests (pull_request) Failing after 9s
Project CI / Native shell tests (pull_request) Successful in 16m24s

合并生成目标预检与图片编辑权威来源校验

保留场景生成前端分流与外部 API 契约

同步 Rust facade、后端架构文档和前端提交工作流
This commit is contained in:
2026-08-08 11:13:44 +08:00
140 changed files with 11917 additions and 2044 deletions
@@ -95,6 +95,7 @@ For image edit/redraw, confirming an upload is not sufficient: create a project
Use OpenAPI as the final authority; these common values are a routing aid:
- Image `kind`: `spec`, `character`, `quick-edit`, `ui-design`, `publication-material`; ordinary image generation may omit it.
- External v1 currently has no structured game-scene generation operation. Do not send `kind: "scene"` or `assetKind: "scene"` through generic image generation; the server rejects both before queueing.
- Image `model`: `gpt-image-2`, `gemini-3.1-flash-image-preview`, `nanobanana2`, `nano-banana`.
- Image `aspectRatio`: `1:1`, `2:3`, `3:2`, `9:16`, `16:9`.
- Image `imageSize`: `0.5K`, `1K`, `2K`.
@@ -104,6 +104,8 @@ For the lower-level asset/resource creation endpoints, `generationInputs` is rep
## Art Spec and Image Request
Generic External v1 image generation does not expose the main-site structured game-scene contract. `kind: "scene"` and `assetKind: "scene"` are both invalid and return HTTP `400` before any generation job is queued. Do not replace the structured scene fields and server-owned prompt assembly with a generic image prompt.
Carry the current art spec in `generationInputs.artSpec` and reflect important constraints in the prompt:
```json