fix(design): connect video preparation and playable history

This commit is contained in:
2026-09-16 15:42:39 +08:00
parent 4321c77613
commit 1acca836fe
21 changed files with 900 additions and 115 deletions

View File

@@ -94,6 +94,15 @@ function decodeUserInput(value: unknown): DesignUserInput {
}
return { kind: 'direct_edit', operations: input.operations.map(decodeFieldOperation) };
}
if (input.kind === 'prepare_generation') {
if (input.operations !== undefined && !Array.isArray(input.operations)) {
invalidCommand('制作方案整理的字段操作无效');
}
return {
kind: 'prepare_generation',
operations: input.operations?.map(decodeFieldOperation) ?? [],
};
}
if (input.kind === 'chat') {
return { kind: 'chat', message: requiredString(input.message, '消息') };
}