MCPcopy Index your code
hub / github.com/simstudioai/sim / createContext

Function createContext

apps/sim/executor/execution/block-executor.test.ts:41–58  ·  view source on GitHub ↗
(state: ExecutionState)

Source from the content-addressed store, hash-verified

39}
40
41function createContext(state: ExecutionState): ExecutionContext {
42 return {
43 workflowId: 'workflow-1',
44 workspaceId: 'workspace-1',
45 executionId: 'execution-1',
46 userId: 'user-1',
47 blockStates: state.getBlockStates(),
48 blockLogs: [],
49 metadata: { requestId: 'request-1', duration: 0 },
50 environmentVariables: {},
51 workflowVariables: {},
52 decisions: { router: new Map(), condition: new Map() },
53 loopExecutions: new Map(),
54 executedBlocks: new Set(),
55 activeExecutionPath: new Set(),
56 completedLoops: new Set(),
57 } as ExecutionContext
58}
59
60function createNode(block: SerializedBlock): DAGNode {
61 return {

Callers 1

Calls 1

getBlockStatesMethod · 0.80

Tested by

no test coverage detected