(workflowId: string)
| 101 | } |
| 102 | |
| 103 | export function captureBaselineSnapshot(workflowId: string): WorkflowState { |
| 104 | const workflowStore = useWorkflowStore.getState() |
| 105 | const currentState = workflowStore.getWorkflowState() |
| 106 | const mergedBlocks = mergeSubblockState(currentState.blocks, workflowId) |
| 107 | |
| 108 | return { |
| 109 | ...cloneWorkflowState(currentState), |
| 110 | blocks: structuredClone(mergedBlocks), |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | export async function persistWorkflowStateToServer( |
| 115 | workflowId: string, |
no test coverage detected