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

Function createNode

apps/sim/executor/orchestrators/loop.test.ts:29–45  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

27}))
28
29function createNode(id: string): DAGNode {
30 return {
31 id,
32 block: {
33 id,
34 position: { x: 0, y: 0 },
35 enabled: true,
36 metadata: { id: 'function', name: id },
37 config: { params: {} },
38 inputs: {},
39 outputs: {},
40 },
41 incomingEdges: new Set(),
42 outgoingEdges: new Map(),
43 metadata: {},
44 }
45}
46
47function createState(): BlockStateController {
48 return {

Callers 1

loop.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected