MCPcopy
hub / github.com/simstudioai/sim / registerEmitFunctions

Function registerEmitFunctions

apps/sim/stores/operation-queue/store.ts:54–67  ·  view source on GitHub ↗
(
  workflowEmit: WorkflowOperationEmit,
  subblockEmit: SubblockUpdateEmit,
  variableEmit: VariableUpdateEmit,
  workflowId: string | null
)

Source from the content-addressed store, hash-verified

52let emitVariableUpdate: VariableUpdateEmit | null = null
53
54export function registerEmitFunctions(
55 workflowEmit: WorkflowOperationEmit,
56 subblockEmit: SubblockUpdateEmit,
57 variableEmit: VariableUpdateEmit,
58 workflowId: string | null
59) {
60 emitWorkflowOperation = workflowEmit
61 emitSubblockUpdate = subblockEmit
62 emitVariableUpdate = variableEmit
63 currentRegisteredWorkflowId = workflowId
64 if (workflowId) {
65 useOperationQueueStore.getState().processNextOperation()
66 }
67}
68
69let currentRegisteredWorkflowId: string | null = null
70

Callers 2

store.test.tsFile · 0.90
useCollaborativeWorkflowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected