feat(short-drama-agent-front): 完善质量规则确认与中文交互

This commit is contained in:
GJ committed 2026-10-17 22:09:28 +08:00
1 parent 190333d4f9
commit c4b43b9725
85 files changed
+2059 -480

No files matched your search

+22
View File
@@ -35,6 +35,28 @@ export function candidateState(overrides: Partial<BreakdownState> = {}): Breakdo
}
}
/**
* 创建有明确同阶段左手占用冲突的候选,供问题入口与例外保存的集成验收复用。
* @param overrides 当前项目与生命周期差异
* @returns 带完整角色和动作证据的独立候选
*/
export function resourceConflictState(overrides: Partial<BreakdownState> = {}): BreakdownState {
const state = candidateState(overrides)
const shot = state.storyboardEpisodeShots![0]!.beatShots[0]!.shots[0]!
shot.requiredActions = [
{ id: 'hold', description: '左手握住铜铃', kind: 'action', mustPerformInShot: true },
{ id: 'wave', description: '左手向村民挥动', kind: 'action', mustPerformInShot: true }
]
shot.durationPlanning!.phases = [{
action: '握铃时挥手', actionIds: ['hold', 'wave'], estimatedSeconds: 4,
resourceOccupancy: [
{ ownerRef: '@CH0001', resource: 'left_hand', actionId: 'hold', usage: 'hold', shareable: false },
{ ownerRef: '@CH0001', resource: 'left_hand', actionId: 'wave', usage: 'move', shareable: false }
]
}]
return state
}
/**
* 构造稳定的当前候选检查点。
* @param state 当前候选状态