| | |
| | | 'use client'; |
| | | 'use client'; |
| | | |
| | | import React, { useState, useRef, useEffect, useCallback } from 'react'; |
| | | import { useRouter, useSearchParams } from 'next/navigation'; |
| | |
| | | style?: string; |
| | | date: string; |
| | | status: string; |
| | | stages?: string[]; // stages_completed 列表 |
| | | stages?: Record<string, string>; // stageId => status 映射 |
| | | } |
| | | |
| | | function initStageStates(): Record<string, StageState> { |
| | |
| | | status = await getProjectStatus(sid); |
| | | } |
| | | if (pollRef.current !== key) return; |
| | | const done = status.stages_completed || []; |
| | | setGlobalStatusMap(status.status || {}); |
| | | const done = Object.keys(status.status || {}).filter(k => ["completed", "session_completed"].includes(status.status[k])); |
| | | const currentStageStatus = status.status?.[stageId] || 'idle'; |
| | | if (done.includes(stageId)) { |
| | | const isWait = status.status === 'waiting_in_stage' && status.current_stage === stageId; |
| | | const isWait = currentStageStatus === 'waiting' && status.current_stage === stageId; |
| | | let artifact = null; |
| | | try { artifact = (await getArtifact(sid, stageId)).artifact; } catch {} |
| | | updateStageState(stageId, { |
| | |
| | | pollRef.current = null; |
| | | return; |
| | | } |
| | | if (status.status === 'error') { |
| | | if (currentStageStatus === 'error') { |
| | | updateStageState(stageId, { |
| | | status: 'error', |
| | | error: status.error || '执行出错', |
| | |
| | | pollRef.current = null; |
| | | return; |
| | | } |
| | | // 如果后端状态不再是 running,提前停止轮询(比如变成了 waiting_intervention 或已完成) |
| | | if (status.status !== 'running') { |
| | | if (currentStageStatus === 'stopped') { |
| | | updateStageState(stageId, { |
| | | status: 'stopped', |
| | | error: '手动停止', |
| | | progressMessage: '已停止', |
| | | }); |
| | | pollRef.current = null; |
| | | return; |
| | | } |
| | | // 如果当前阶段不再是 running,提前停止轮询(比如变成了 waiting_intervention 或已完成) |
| | | if (currentStageStatus !== 'running') { |
| | | pollRef.current = null; |
| | | return; |
| | | } |
| | |
| | | const artifacts = status.artifacts || {}; |
| | | const currentArtifact = artifacts[stageId]; |
| | | const update: Partial<StageState> = {}; |
| | | |
| | | // 无论何种状态,只要有数据就更新 artifact |
| | | if (currentArtifact) { |
| | | update.artifact = currentArtifact; |
| | | } |
| | | |
| | | // 始终设置状态为 running(如果尚未设置) |
| | | const currentState = stageStates[stageId]; |
| | |
| | | } |
| | | |
| | | if (currentArtifact) { |
| | | // 检查是否有已生成的参考图/视频 |
| | | // 检查是否有已生成的参考图/视频/分镜 |
| | | const hasProgress = currentArtifact.scenes?.some((s: any) => s.versions?.length > 0) || |
| | | currentArtifact.clips?.some((c: any) => c.versions?.length > 0) || |
| | | currentArtifact.episodes?.some((e: any) => e.segments?.length > 0) || |
| | | currentArtifact.characters?.length > 0 || |
| | | currentArtifact.shots?.length > 0; |
| | | if (hasProgress) { |
| | |
| | | date: s.date |
| | | ? new Date(s.date * 1000).toLocaleDateString('zh-CN') |
| | | : '', |
| | | status: (s.stages?.length || 0) > 0 ? 'partial' : 'new', |
| | | stages: s.stages || [], |
| | | status: Object.keys(s.status || {}).length > 0 ? 'partial' : 'new', |
| | | stages: s.status || {}, |
| | | })) |
| | | ); |
| | | }) |
| | |
| | | artifact = artResult.artifact; |
| | | } catch { /* ignore */ } |
| | | |
| | | // 如果是后处理阶段,即使 artifact 为空也尝试从事件中读取预览数据 |
| | | if (stageId === 'post_production' && !artifact && event.data?.assets_preview) { |
| | | artifact = event.data.assets_preview; |
| | | } |
| | | |
| | | updateStageState(stageId, { |
| | | status: newStatus, |
| | | progress: 100, |
| | |
| | | const result = await startProject({ |
| | | idea: params.idea, |
| | | style: params.style, |
| | | video_ratio: params.video_ratio, |
| | | llm_model: params.llm_model, |
| | | vlm_model: params.vlm_model, |
| | | image_t2i_model: params.image_t2i_model, |
| | | image_it2i_model: params.image_it2i_model, |
| | | video_model: params.video_model, |
| | | enable_concurrency: params.enable_concurrency, |
| | | web_search: params.web_search, |
| | | expand_idea: params.expand_idea, |
| | | episodes: params.episodes, |
| | | }); |
| | | setSessionId(result.session_id); |
| | | |
| | |
| | | style: params.style, |
| | | date: new Date().toLocaleDateString('zh-CN'), |
| | | status: 'running', |
| | | stages: [], |
| | | stages: {}, |
| | | }, |
| | | ...prev, |
| | | ]); |
| | |
| | | idea: params.idea, |
| | | session_id: result.session_id, |
| | | style: params.style, |
| | | video_ratio: params.video_ratio, |
| | | llm_model: params.llm_model, |
| | | vlm_model: params.vlm_model, |
| | | image_t2i_model: params.image_t2i_model, |
| | |
| | | } |
| | | |
| | | const status = await getProjectStatus(result.session_id); |
| | | // waiting_in_stage: 等待用户介入(如选择角色/图片),不能自动 continue |
| | | // stage_completed: 阶段完成,等待确认进入下一阶段 |
| | | if (status.status === 'stage_completed') { |
| | | const stageStatus = status?.status?.[stageId]; |
| | | setGlobalStatusMap(status.status || {}); |
| | | // waiting: 等待用户介入(如选择角色/图片),不能自动 continue |
| | | // completed: 阶段完成,等待确认进入下一阶段 |
| | | if (stageStatus === 'completed' || stageStatus === 'session_completed') { |
| | | if (useAutoMode) { |
| | | // 代理模式:自动确认并继续 |
| | | await continueWorkflow(result.session_id); |
| | |
| | | setIsRunning(false); |
| | | return; |
| | | } |
| | | } else if (status.status === 'waiting_in_stage') { |
| | | } else if (stageStatus === 'waiting') { |
| | | // 用户需要介入,停止自动执行 |
| | | updateStageState(stageId, { status: 'waiting' }); |
| | | setActiveStage(stageId); |
| | |
| | | setIsRunning(true); |
| | | |
| | | try { |
| | | const result = await continueWorkflow(sessionId); |
| | | const result: any = await continueWorkflow(sessionId); |
| | | updateStageState(stageId, { status: 'completed', progressMessage: '已确认' }); |
| | | |
| | | // 更新顶栏状态 |
| | | if (result.status_map) { |
| | | setGlobalStatusMap(result.status_map); |
| | | } |
| | | setCompletedStagesFromSession(prev => [...prev, stageId]); |
| | | if (result.next_stage) { |
| | | setCurrentStageFromSession(result.next_stage); |
| | |
| | | image_t2i_model: projectParams?.image_t2i_model, |
| | | image_it2i_model: projectParams?.image_it2i_model, |
| | | video_model: projectParams?.video_model, |
| | | video_ratio: projectParams?.video_ratio, |
| | | video_sound: videoSound, |
| | | video_shot_type: videoShotType, |
| | | }; |
| | |
| | | await runStage(sessionId, nextStage, inputData); |
| | | |
| | | const status = await getProjectStatus(sessionId); |
| | | // waiting_in_stage: 等待用户介入(如选择角色/图片),不能自动 continue |
| | | // stage_completed: 阶段完成,等待确认进入下一阶段,可以自动 continue |
| | | if (status.status === 'stage_completed') { |
| | | setGlobalStatusMap(status.status || {}); |
| | | const nStageStatus = status?.status?.[nextStage]; |
| | | // waiting: 等待用户介入(如选择角色/图片),不能自动 continue |
| | | // completed: 阶段完成,等待确认进入下一阶段,可以自动 continue |
| | | if (nStageStatus === 'completed' || nStageStatus === 'session_completed') { |
| | | if (autoMode) { |
| | | await continueWorkflow(sessionId); |
| | | updateStageState(nextStage, { status: 'completed', progressMessage: '已自动确认' }); |
| | |
| | | setActiveStage(nextStage); |
| | | break; |
| | | } |
| | | } else if (status.status === 'waiting_in_stage') { |
| | | } else if (nStageStatus === 'waiting') { |
| | | // 用户需要介入,停止自动执行 |
| | | updateStageState(nextStage, { status: 'waiting' }); |
| | | setCurrentStageFromSession(nextStage); |
| | |
| | | // ── 用户介入修改 ── |
| | | const handleIntervene = async (stageId: string, modifications: Record<string, any>) => { |
| | | if (!sessionId) return; |
| | | |
| | | // 构建完整的 inputData 传给后端,确保比例等参数能传递 |
| | | const inputData: Record<string, any> = { |
| | | ...modifications, |
| | | session_id: sessionId, |
| | | style: projectParams?.style, |
| | | video_ratio: projectParams?.video_ratio, |
| | | llm_model: projectParams?.llm_model, |
| | | vlm_model: projectParams?.vlm_model, |
| | | image_t2i_model: projectParams?.image_t2i_model, |
| | | image_it2i_model: projectParams?.image_it2i_model, |
| | | video_model: projectParams?.video_model, |
| | | }; |
| | | |
| | | // 设置 running 状态以便显示进度条(如 Logline 选择后生成剧本) |
| | | // 若选择了 Logline,将其保存到 artifact 以便 ScriptStage 在生成期间展示 |
| | | // 若选择了模式,保留已选 Logline 并设置 generating 状态 |
| | |
| | | setIsRunning(true); |
| | | updateStageState(stageId, { status: 'running', progress: 0, progressMessage: '处理中...', ...(artifactPatch ? { artifact: artifactPatch } : {}) }); |
| | | try { |
| | | const response = await intervene(sessionId, stageId, modifications); |
| | | const response = await intervene(sessionId, stageId, inputData); |
| | | for await (const event of parseStreamEvents(response)) { |
| | | if (event.type === 'progress') { |
| | | updateStageState(stageId, { |
| | |
| | | const oldScenes = (oldRefArtifact?.scenes || []) as any[]; |
| | | const oldScenesMap = new Map(oldScenes.map((s: any) => [s.id, s])); |
| | | |
| | | // 使用 original_shots(保留 is_new 标记)构建第4阶段 scenes |
| | | const sourceShots = patch.original_shots || patch.shots || []; |
| | | console.log('[handleSaveSelections] sourceShots:', sourceShots); |
| | | const newScenes = sourceShots.map((shot: any, idx: number) => { |
| | | const oldScene = oldScenesMap.get(shot.shot_id) as any; |
| | | const isNew = shot.is_new; |
| | | // 如果是新分镜,使用空值;否则保留原有的 selected/versions |
| | | // 使用 segments 构建第4阶段 scenes 和第5阶段 clips |
| | | const sourceSegments = patch.segments || []; |
| | | console.log('[handleSaveSelections] sourceSegments:', sourceSegments); |
| | | |
| | | const newScenes = sourceSegments.map((seg: any, idx: number) => { |
| | | const seg_id = seg.segment_id; |
| | | const oldScene = oldScenesMap.get(seg_id) as any; |
| | | const isNew = seg.is_new; |
| | | |
| | | const shots = seg.shots || []; |
| | | const desc_ref = shots.map((sh: any) => sh.visual_prompt || sh.plot || sh.content || '').join(' ').trim(); |
| | | |
| | | return { |
| | | id: shot.shot_id, |
| | | name: `场景${shot.scene_number}-镜头${shot.shot_number}`, |
| | | id: seg_id, |
| | | name: `片段_${seg_id}`, |
| | | index: idx + 1, |
| | | description: shot.visual_prompt || '', |
| | | duration: shot.duration || 10, |
| | | description: desc_ref, |
| | | selected: isNew ? '' : (oldScene?.selected || ''), |
| | | versions: isNew ? [] : (oldScene?.versions || []), |
| | | status: isNew ? 'pending' : 'done', |
| | | }; |
| | | }); |
| | | console.log('[handleSaveSelections] newScenes:', newScenes); |
| | | |
| | | // 更新第4阶段的 artifact |
| | | updateStageState('reference_generation', { |
| | | artifact: { session_id: sessionId, scenes: newScenes }, |
| | | status: 'completed' |
| | | }); |
| | | console.log('[handleSaveSelections] 第4阶段已更新'); |
| | | |
| | | // 同步更新第5阶段(video_generation) |
| | | const oldVidArtifact = stageStates['video_generation']?.artifact; |
| | | const oldClips = (oldVidArtifact?.clips || []) as any[]; |
| | | const oldClipsMap = new Map(oldClips.map((c: any) => [c.id, c])); |
| | | |
| | | const newClips = sourceShots.map((shot: any, idx: number) => { |
| | | const oldClip = oldClipsMap.get(shot.shot_id) as any; |
| | | const newClips = sourceSegments.map((seg: any, idx: number) => { |
| | | const seg_id = seg.segment_id; |
| | | const oldClip = oldClipsMap.get(seg_id) as any; |
| | | |
| | | const shots = seg.shots || []; |
| | | const desc_video = shots.map((sh: any) => sh.plot || sh.content || '').join(' ').trim(); |
| | | const total_dur = seg.total_duration || shots.reduce((acc: number, sh: any) => acc + (sh.duration || 0), 0) || 10; |
| | | |
| | | return { |
| | | id: shot.shot_id, |
| | | name: `场景${shot.scene_number}-镜头${shot.shot_number}`, |
| | | id: seg_id, |
| | | name: `片段_${seg_id}`, |
| | | index: idx + 1, |
| | | description: shot.visual_prompt || '', |
| | | duration: shot.duration || 10, |
| | | description: desc_video, |
| | | duration: total_dur, |
| | | selected: oldClip?.selected || '', |
| | | versions: oldClip?.versions || [], |
| | | status: 'pending', |
| | |
| | | image_t2i_model: projectParams?.image_t2i_model, |
| | | image_it2i_model: projectParams?.image_it2i_model, |
| | | video_model: projectParams?.video_model, |
| | | video_sound: videoSound, |
| | | video_shot_type: videoShotType, |
| | | video_ratio: projectParams?.video_ratio, |
| | | }; |
| | | |
| | | // 尝试获取场景数 |
| | |
| | | await runStage(sessionId, stageId, inputData); |
| | | |
| | | const status = await getProjectStatus(sessionId); |
| | | if (status.status === 'waiting_in_stage') { |
| | | if (status?.status?.[stageId] === 'waiting') { |
| | | updateStageState(stageId, { status: 'waiting' }); |
| | | setActiveStage(stageId); |
| | | } |
| | |
| | | } catch { |
| | | status = await getProjectStatus(sid); |
| | | } |
| | | setGlobalStatusMap(status.status || {}); |
| | | const newStates = initStageStates(); |
| | | const completedStages = status.stages_completed || []; |
| | | const stMap = status.status || {}; |
| | | const allStatusStages = Object.keys(stMap); |
| | | const currentStage = status.current_stage; |
| | | const isWaiting = status.status === 'waiting_in_stage'; |
| | | |
| | | // 保存到 state 供顶栏流程图使用 |
| | | setCurrentStageFromSession(currentStage || null); |
| | | const completedStages = allStatusStages.filter(k => ["completed", "session_completed"].includes(stMap[k])); |
| | | setCompletedStagesFromSession(completedStages); |
| | | |
| | | for (const cs of completedStages) { |
| | | const isCurrentWaiting = cs === currentStage && isWaiting; |
| | | newStates[cs] = { |
| | | status: isCurrentWaiting ? 'waiting' : 'completed', |
| | | progress: 100, |
| | | progressMessage: isCurrentWaiting ? '等待确认' : '已完成', |
| | | artifact: null, |
| | | error: null, |
| | | }; |
| | | try { |
| | | const artResult = await getArtifact(sid, cs); |
| | | newStates[cs].artifact = artResult.artifact; |
| | | } catch { /* ignore */ } |
| | | } |
| | | for (const sName of allStatusStages) { |
| | | const cStatus = stMap[sName]; |
| | | if (cStatus === 'pending' || cStatus === 'idle') { |
| | | // 即使是 pending,如果 artifacts 中有数据,也尝试恢复数据(用于初始占位显示) |
| | | if (status.artifacts?.[sName]) { |
| | | newStates[sName].artifact = status.artifacts[sName]; |
| | | } |
| | | continue; |
| | | } |
| | | |
| | | // 如果 current_stage 不在 completedStages 中,也需要显示(可能是 stage_completed 或 running 状态) |
| | | if (currentStage && !completedStages.includes(currentStage)) { |
| | | newStates[currentStage] = { |
| | | status: status.status === 'waiting_in_stage' ? 'waiting' : (status.status === 'stage_completed' ? 'completed' : 'running'), |
| | | progress: 100, |
| | | progressMessage: status.status === 'waiting_in_stage' ? '等待确认' : (status.status === 'stage_completed' ? '已完成' : '进行中'), |
| | | artifact: null, |
| | | error: null, |
| | | const isCompleted = ["completed", "session_completed"].includes(cStatus); |
| | | const isError = cStatus === 'error'; |
| | | const isWaiting = cStatus === 'waiting'; |
| | | const isStopped = cStatus === 'stopped'; |
| | | const isRunningStatus = cStatus === 'running'; |
| | | |
| | | newStates[sName] = { |
| | | status: isError ? 'error' : (isWaiting ? 'waiting' : (isStopped ? 'stopped' : (isCompleted ? 'completed' : 'running'))), |
| | | progress: isCompleted ? 100 : 0, |
| | | progressMessage: isError ? '执行失败' : (isWaiting ? '等待确认' : (isStopped ? '已停止' : (isCompleted ? '已完成' : (isRunningStatus ? '执行中...' : '进行中')))), |
| | | artifact: status.artifacts?.[sName] || null, |
| | | error: isError ? (status.error || '执行出错') : (isStopped ? '手动停止' : null), |
| | | }; |
| | | try { |
| | | const artResult = await getArtifact(sid, currentStage); |
| | | newStates[currentStage].artifact = artResult.artifact; |
| | | } catch { /* ignore */ } |
| | | |
| | | // 如果内存中没有,尝试异步拉取 |
| | | if (!newStates[sName].artifact) { |
| | | try { |
| | | const artResult = await getArtifact(sid, sName); |
| | | newStates[sName].artifact = artResult.artifact; |
| | | } catch { /* ignore */ } |
| | | } |
| | | } |
| | | |
| | | // 恢复项目参数(从顶层字段读取,sessions json 中模型参数是顶层字段) |
| | |
| | | video_model: s.video_model || '', |
| | | expand_idea: s.expand_idea || false, |
| | | enable_concurrency: s.enable_concurrency || false, |
| | | web_search: s.web_search || false, |
| | | }); |
| | | } |
| | | |
| | |
| | | setStageStates(newStates); |
| | | |
| | | // 轮询当前正在执行的阶段(仅当该阶段有 artifact 数据时) |
| | | if (status.status === 'running' && currentStage && !completedStages.includes(currentStage)) { |
| | | if (currentStage && stMap[currentStage] === 'running') { |
| | | pollForCompletion(sid, currentStage); |
| | | } |
| | | } catch { |
| | |
| | | }; |
| | | |
| | | // ── 删除历史记录 ── |
| | | const handleDeleteSession = async (sid: string, password: string) => { |
| | | await deleteSession(sid, password); |
| | | const handleDeleteSession = async (sid: string) => { |
| | | await deleteSession(sid); |
| | | setHistory(prev => prev.filter(h => h.id !== sid)); |
| | | }; |
| | | |
| | | // ── 模型配置变更处理 ── |
| | | const handleModelConfigChange = (config: ModelConfig) => { |
| | | setProjectParams(prev => prev ? { ...prev, ...config } : null); |
| | | // 同步到后端会话元数据(需要将 boolean 转为 string) |
| | | // 同步到后端会话元数据 |
| | | if (sessionId) { |
| | | const stringConfig: Record<string, string> = {}; |
| | | for (const [key, value] of Object.entries(config)) { |
| | | stringConfig[key] = String(value); |
| | | } |
| | | updateModels(sessionId, stringConfig).catch(console.error); |
| | | const payload: Record<string, any> = { ...config }; |
| | | updateModels(sessionId, payload).catch(console.error); |
| | | } |
| | | }; |
| | | |
| | |
| | | video_model: projectParams.video_model, |
| | | video_ratio: projectParams.video_ratio, |
| | | enable_concurrency: projectParams.enable_concurrency || false, |
| | | // web_search: projectParams.web_search || false, |
| | | // expand_idea: projectParams.expand_idea || false, |
| | | } |
| | | : undefined; |
| | | |
| | | // ── 计算 stageStatuses for TopBar ── |
| | | // 根据 session 的 current_stage 和 stages_completed 判断图标状态 |
| | | // 直接根据后端返回的 status 数据计算图标状态 |
| | | const [globalStatusMap, setGlobalStatusMap] = useState<Record<string, string>>({}); |
| | | |
| | | const stageStatuses: Record<string, StageStatus> = {}; |
| | | const currentIdx = STAGE_ORDER.indexOf(currentStageFromSession || ''); |
| | | |
| | | for (let i = 0; i < STAGE_ORDER.length; i++) { |
| | | const s = STAGE_ORDER[i]; |
| | | const backendStatus = globalStatusMap[s]; // get status from global mapping updated from backend |
| | | |
| | | if (i < currentIdx) { |
| | | // current_stage 之前的阶段:已完成(绿色对勾) |
| | | if (backendStatus === 'completed') { |
| | | stageStatuses[s] = 'completed'; |
| | | } else if (i > currentIdx) { |
| | | // current_stage 之后的阶段 |
| | | if (completedStagesFromSession.includes(s)) { |
| | | // 在 stages_completed 中(黄色图案) |
| | | stageStatuses[s] = 'waiting'; |
| | | } else { |
| | | // 不在 stages_completed 中:pending |
| | | stageStatuses[s] = 'pending'; |
| | | } |
| | | } else if (backendStatus === 'waiting') { |
| | | stageStatuses[s] = 'waiting'; |
| | | } else if (backendStatus === 'running') { |
| | | stageStatuses[s] = 'running'; |
| | | } else if (backendStatus === 'error') { |
| | | stageStatuses[s] = 'error'; |
| | | } else { |
| | | // current_stage 本身:根据 stageStates 判断 |
| | | stageStatuses[s] = stageStates[s]?.status || 'pending'; |
| | | stageStatuses[s] = 'pending'; |
| | | } |
| | | } |
| | | |
| | | // ── 计算项目状态 ── |
| | | // 后端状态: idle, running, waiting_in_stage, stage_completed, session_completed, error |
| | | // 后端状态: pending, running, waiting, completed, completed, error |
| | | // 前端 StageStatus: pending, running, waiting, completed, error |
| | | const hasRunning = Object.values(stageStates).some(s => s.status === 'running'); |
| | | const hasWaiting = Object.values(stageStates).some(s => s.status === 'waiting'); |
| | |
| | | |
| | | let computedStatus: string; |
| | | if (hasRunning) computedStatus = 'running'; |
| | | else if (hasWaiting) computedStatus = 'waiting_in_stage'; |
| | | else if (hasWaiting) computedStatus = 'waiting'; |
| | | else if (hasError) computedStatus = 'error'; |
| | | // Check if stopped in stageStates |
| | | else if (Object.values(stageStates).some(s => s.status === 'stopped')) computedStatus = 'stopped'; |
| | | else if (allCompleted && stageStates[STAGE_ORDER[STAGE_ORDER.length - 1]]?.status === 'completed') { |
| | | computedStatus = 'session_completed'; |
| | | computedStatus = 'completed'; |
| | | } else if (allCompleted) { |
| | | computedStatus = 'stage_completed'; |
| | | computedStatus = 'completed'; |
| | | } else { |
| | | computedStatus = 'idle'; |
| | | computedStatus = Object.values(stageStates).some(s => s.status === 'stopped') ? 'stopped' : 'pending'; |
| | | } |
| | | |
| | | const projectStatus = sessionId ? computedStatus : undefined; |
| | |
| | | ? stageStates['reference_generation']?.artifact |
| | | : undefined; |
| | | |
| | | // 传递第1阶段的 artifact 到第4、5、6阶段用于获取剧集标题 |
| | | const scriptArtifact = (activeStage === 'reference_generation' || activeStage === 'video_generation' || activeStage === 'post_production') |
| | | ? stageStates['script_generation']?.artifact |
| | | : undefined; |
| | | |
| | | return ( |
| | | <Component |
| | | state={state} |
| | |
| | | if (params.videoShotType !== undefined) setVideoShotType(params.videoShotType); |
| | | }} |
| | | referenceArtifact={referenceArtifact} |
| | | scriptArtifact={scriptArtifact} |
| | | artifacts={Object.keys(stageStates).reduce((acc: any, key) => { |
| | | acc[key] = stageStates[key].artifact; |
| | | return acc; |
| | | }, {})} |
| | | /> |
| | | ); |
| | | }; |
| | |
| | | </div> |
| | | ); |
| | | } |
| | | |