feat(*): 短剧创作工作台 - 完善章节分镜、资产管理、技能运行与生成任务恢复

This commit is contained in:
ddCat committed 2026-08-29 23:34:55 +08:00
1 parent 4f07daae9e
commit 2f6832f99c
113 files changed
+7016 -723

No files matched your search

@@ -28,6 +28,7 @@ export async function executeVideoGeneration({
applyGenerationTaskResult,
registerPendingNodeIds,
styleMetadata,
skillMetadata,
taskContext,
retryContext,
}: CanvasGenerationExecution) {
@@ -62,6 +63,7 @@ export async function executeVideoGeneration({
references: generationReferenceUrls(generationContext),
...videoGenerationMetadata,
...styleMetadata,
...skillMetadata,
},
};
registerPendingNodeIds([videoId]);
@@ -111,6 +113,7 @@ export async function executeVideoGeneration({
promptTemplateVariables: sourceNode?.metadata?.promptTemplateVariables,
...videoGenerationMetadata,
...styleMetadata,
...skillMetadata,
},
},
{
@@ -139,6 +142,7 @@ export async function executeAudioGeneration({
applyGenerationTaskResult,
registerPendingNodeIds,
taskContext,
skillMetadata,
retryContext,
}: CanvasGenerationExecution) {
const spec = NODE_DEFAULT_SIZE[CanvasNodeType.Audio];
@@ -152,7 +156,7 @@ export async function executeAudioGeneration({
position: isEmptyAudioNode ? sourceNode.position : { x: parent.x + (sourceNode?.width || spec.width) + 96, y: parent.y + ((sourceNode?.height || spec.height) - spec.height) / 2 },
width: isEmptyAudioNode ? sourceNode.width : spec.width,
height: isEmptyAudioNode ? sourceNode.height : spec.height,
metadata: { prompt: effectivePrompt, status: NODE_STATUS_LOADING, ...buildAudioGenerationMetadata(generationConfig) },
metadata: { prompt: effectivePrompt, status: NODE_STATUS_LOADING, ...buildAudioGenerationMetadata(generationConfig), ...skillMetadata },
};
registerPendingNodeIds([audioId]);
setNodes((current) =>
@@ -171,7 +175,7 @@ export async function executeAudioGeneration({
prompt: effectivePrompt,
config: generationConfig,
signal: controller.signal,
metadata: { sourceNodeId: nodeId, ...taskContext, resolvedCharacterVersions: generationContext.resolvedCharacterVersions, resolvedCharacterVoiceKey: generationContext.resolvedCharacterVoices[0]?.voiceKey },
metadata: { sourceNodeId: nodeId, ...taskContext, resolvedCharacterVersions: generationContext.resolvedCharacterVersions, resolvedCharacterVoiceKey: generationContext.resolvedCharacterVoices[0]?.voiceKey, ...skillMetadata },
},
{
bindTask: (task) => bindGenerationTask(audioId, task),