feat(short-drama-agent-front): 接入素材预览审核并完善创作流程

This commit is contained in:
GJ committed 2026-11-02 10:16:10 +08:00
1 parent f8b0fbb8ca
commit dc8bb17a23
66 files changed
+2864 -632

No files matched your search

+12 -1
View File
@@ -37,13 +37,19 @@ const terms: [RegExp, string][] = [
[/\bBreakdown\b/gi, '剧本拆解'],
[/\bKeyframe\b/gi, '首帧'],
[/Creative Profile/gi, '项目生成配置'],
[/Visual Style/gi, '视觉风格'],
[/Visual\s*Style/gi, '视觉风格'],
[/GenerationSpec/gi, '镜头生成方案'],
[/generationPrompt/gi, '正式生图提示词'],
[/VisualState/gi, '画面即时状态'],
[/\bSubjectRefs?\b/gi, '主体引用'],
[/\bSubjectForms?\b/gi, '主体形态'],
[/Identity Anchor/gi, '身份母版'],
[/Prop Structure Spec|Structure Spec/gi, '道具结构规格'],
[/Form Prompt/gi, '形态画面描述'],
[/\bIdentity\b/g, '主体身份'],
[/\bAnchor\b/g, '身份母版'],
[/\bProduction\b/g, '制作准备'],
[/\bProp\b/g, '道具'],
[/Motion Plan/gi, '动作设计'],
[/Video Prompt/gi, '视频提示词'],
[/Negative\s*prompt/gi, '避免出现的内容'],
@@ -86,6 +92,9 @@ export function userFacingText(value: string | null | undefined, fallback = '暂
let text = value?.trim() ?? ''
const codeLabels: Record<string, string> = {
...configurationErrorLabels,
PROP_STRUCTURE_SPEC_NOT_READY: '道具结构规格尚未就绪,请在形态图片的“图片准备检查”中准备资料后重新预览。',
IMAGE_PREVIEW_STALE: '生成依据或配置已变化,请重新预览并确认后再生成。',
INVALID_IMAGE_PREVIEW_FINGERPRINT: '预览版本无效,请重新读取生成预览。',
QUALITY_POLICY_RECONFIRM_REQUIRED: '质量规则或正式分镜来源需要重新核对并确认。',
QUALITY_POLICY_NOT_CONFIRMED: '请先核对并确认项目质量规则。',
QUALITY_POLICY_VERSION_CONFLICT: '质量规则已更新,请重新核对后操作。',
@@ -97,6 +106,8 @@ export function userFacingText(value: string | null | undefined, fallback = '暂
const code = Object.keys(codeLabels).find(
key => text === key || text.startsWith(`${key}:`) || text.startsWith(`${key}:`)
)
if (code === 'PROP_STRUCTURE_SPEC_NOT_READY' || code === 'INVALID_IMAGE_PREVIEW_FINGERPRINT')
return codeLabels[code]!
if (code)
text =
text