import { directionsResult, visualStatesResult, designedShot } from '../../src/features/storyboard/testing/fixtures' import { draftFromFormal } from '../../src/features/storyboard/derived-review' import { preparationFixture } from '../features/storyboard-preparation/fixtures' import type { KeyframeSpec } from '../../src/features/production/types' import type { SavedKeyframeDraft } from '../../src/features/storyboard/derived-review.types' /** * 当前正式数据和已保存草案的隔离投影,不用于正式项目。 * @param projectId 隔离项目 * @returns 可用于Vitest/Chrome的完整原版本与有限差异 */ export function jointReviewFixture(projectId = 'joint-review-project') { const shot = designedShot(), approval = preparationFixture(projectId), directions = directionsResult(projectId), visuals = visualStatesResult(projectId, 1, true) const keyframe: KeyframeSpec = { projectId, shotId: shot.shotId, episodeNo: 1, beatNo: 1, shotNo: 1, prompt: '隔离正式开拍输入', formalSourceFingerprint: 'e'.repeat(64), references: [] } const formal = draftFromFormal(shot, keyframe, approval.record.shotFingerprint) const draft = structuredClone(formal) draft.direction.composition = '仅用于Mock的构图调整' draft.direction.visualIntent = '保留正式动作的开拍意图' draft.visualState.subjects[0]!.pose = '仅用于Mock的0秒姿态' draft.visualState.continuityNote = '【输入事实】原主体保持开拍姿态。【规划末态】后续镜头规划,尚未执行。【连续要求】保持原观察轴。【视频末态】未知,尚无真实视频末态证据。' const saved: SavedKeyframeDraft = { shotId: shot.shotId, revision: 7, updatedAt: '2026-11-16T01:00:00Z', status: 'current', staleReason: null, draft, providerInput: { provider: 'openai-image', generationOptions: { quality: 'auto' } }, expectedCurrentFormalSourceFingerprint: keyframe.formalSourceFingerprint! } return { shot, shots: [shot, { ...designedShot('shot-db-1-2'), beatNo: 2 }], approval, directions, visuals, keyframe, formal, saved } }