修复外部生成阶段上报与后处理降级

为 phase procedure 增加结构化 lease/fencing 拒绝结果并同步 typed bindings
仅对 Build、ConnectDropped、Timeout 重试一次,最终失败不回 pending
角色、图标和 UI 后处理最终失败时保留原图并以 completed warning 收口
同步 inline、队列轮询和刷新恢复 warning,保留 sliceWarning 契约
同步 external v1 OpenAPI、权威文档和 external editor skill
更新 BgFilter 服务地址
This commit is contained in:
2026-07-16 03:49:48 +00:00
parent fddf30d7c3
commit d6ff106a0b
32 changed files with 1311 additions and 131 deletions
@@ -969,7 +969,7 @@
"Editor Images"
],
"operationId": "generateExternalEditorIconSpritesheet",
"summary": "按规范图生成并拆分图标素材",
"summary": "按规范图生成图标 spritesheet 并尝试拆分",
"security": [
{
"ExternalApiKey": []
@@ -987,7 +987,7 @@
},
"responses": {
"200": {
"description": "图标 spritesheet、切片结果与落库资源",
"description": "图标 spritesheet、实际切片结果、可选非阻断告警与落库资源",
"content": {
"application/json": {
"schema": {
@@ -1017,7 +1017,7 @@
"Editor Images"
],
"operationId": "extractExternalEditorUiDesignAssets",
"summary": "从 UI 设计图拆分素材",
"summary": "从 UI 设计图生成素材 spritesheet 并尝试拆分",
"security": [
{
"ExternalApiKey": []
@@ -1035,7 +1035,7 @@
},
"responses": {
"200": {
"description": "UI 设计图素材 spritesheet、切片结果与落库资源",
"description": "UI 设计图素材 spritesheet、实际切片结果、可选非阻断告警与落库资源",
"content": {
"application/json": {
"schema": {
@@ -2849,6 +2849,17 @@
}
],
"description": "当请求携带 canvasCompletion 且服务端成功写入画布布局时返回最新项目快照。"
},
"warning": {
"anyOf": [
{
"$ref": "#/components/schemas/EditorGenerationWarning"
},
{
"type": "null"
}
],
"description": "生成成功但后处理降级时返回的非阻断告警。"
}
}
},
@@ -3090,6 +3101,25 @@
},
"additionalProperties": false
},
"EditorGenerationWarning": {
"type": "object",
"required": [
"code",
"reason"
],
"properties": {
"code": {
"type": "string",
"const": "postprocess-failed-source-preserved",
"description": "透明背景处理最终失败并保留 provider 原图时的稳定原因码。"
},
"reason": {
"type": "string",
"description": "可直接展示给调用方的非阻断告警原因。"
}
},
"additionalProperties": false
},
"EditorIconSpritesheetGenerationResponse": {
"type": "object",
"required": [
@@ -3130,7 +3160,7 @@
"type": "null"
}
],
"description": "图集已成功持久化,但自动拆分未完成时返回;此时 iconImageSrcs 为空,调用方仍应使用整张图集。"
"description": "图集已成功持久化,但自动拆分未完成时返回;此时 iconImageSrcs 为空,调用方仍应使用整张图集。与通用 warning 互斥。"
},
"prompt": {
"type": "string"
@@ -3184,7 +3214,24 @@
}
],
"description": "当请求携带 canvasCompletion 且服务端成功写入画布布局时返回最新项目快照。"
},
"warning": {
"anyOf": [
{
"$ref": "#/components/schemas/EditorGenerationWarning"
},
{
"type": "null"
}
],
"description": "透明背景处理最终失败、provider 原图作为主结果时返回的非阻断告警。与 sliceWarning 互斥。"
}
},
"not": {
"required": [
"warning",
"sliceWarning"
]
}
},
"EditorCharacterAnimationGenerationRequest": {