feat(short-drama-agent-front): 完善视觉资产审核流程
This commit is contained in:
1 parent
dc8bb17a23
commit
b88ad8770f
45 files changed
+2258
-352
No files matched your search
@@ -3,6 +3,7 @@ import type { CandidateCommitPreview, CandidateCommitCheckPreview } from './cand
|
||||
|
||||
/** 安全检查项与用户可理解的阻断原因共用一份映射。 */
|
||||
export const candidateCheckLabels: Record<keyof CandidateCommitCheckPreview['checks'], string> = {
|
||||
durationBudgetCurrent: '候选预算与当前正式时长一致',
|
||||
qualityPolicyMatches: '质量规则与当前已确认版本一致',
|
||||
episodeNumbersMatch: '剧集范围与候选一致',
|
||||
episodeFingerprintsMatch: '剧本正文版本未变化',
|
||||
@@ -16,6 +17,7 @@ export const candidateCheckLabels: Record<keyof CandidateCommitCheckPreview['che
|
||||
/** 必须逐项校验的固定安全门禁,不根据响应动态减少检查项。 */
|
||||
export const candidateCheckKeys = [
|
||||
'qualityPolicyMatches',
|
||||
'durationBudgetCurrent',
|
||||
'episodeNumbersMatch',
|
||||
'episodeFingerprintsMatch',
|
||||
'noActiveExecutions',
|
||||
@@ -42,7 +44,8 @@ export function candidatePreviewReady(
|
||||
!preview ||
|
||||
preview.status === 'already_committed' ||
|
||||
preview.projectId !== projectId ||
|
||||
preview.checkpointId !== checkpointId
|
||||
preview.checkpointId !== checkpointId ||
|
||||
!!preview.durationSourceIssue
|
||||
)
|
||||
return false
|
||||
// 外部 JSON 的布尔值必须严格为 true,不接受缺失值或字符串等真值。
|
||||
|
||||
Reference in new issue
Block a user