restore: import verified wave3 baseline
This commit is contained in:
@@ -71,13 +71,17 @@ export async function submitDemoTurn(
|
||||
|
||||
const committedNodeId = nextNodeId(currentView.nodeId);
|
||||
const previousHistory = currentView.history.map((node) => ({ ...node, isCurrent: false }));
|
||||
const beats = replyBeats(request);
|
||||
const finalVisual = [...beats].reverse().find((beat) => beat.visual)?.visual;
|
||||
|
||||
return {
|
||||
committedNodeId,
|
||||
playerView: {
|
||||
...currentView,
|
||||
nodeId: committedNodeId,
|
||||
beats: [...currentView.beats, ...replyBeats(request)].slice(-8),
|
||||
characterExpression: finalVisual?.expression ?? currentView.characterExpression,
|
||||
characterPose: finalVisual?.pose ?? currentView.characterPose,
|
||||
beats: [...currentView.beats, ...beats].slice(-8),
|
||||
history: [
|
||||
...previousHistory,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user