MCPcopy
hub / github.com/FlowiseAI/Flowise / initializeNodes

Method initializeNodes

packages/server/src/NodesPool.ts:26–31  ·  view source on GitHub ↗

* Initialize nodes

()

Source from the content-addressed store, hash-verified

24 * Initialize nodes
25 */
26 private async initializeNodes() {
27 const packagePath = getNodeModulesPackagePath('flowise-components')
28 const nodesPath = path.join(packagePath, 'dist', 'nodes')
29 const nodes = await this.loadNodesFromDir(nodesPath)
30 Object.assign(this.componentNodes, nodes)
31 }
32
33 /**
34 * Load and filter nodes from a directory.

Callers 1

initializeMethod · 0.95

Calls 2

loadNodesFromDirMethod · 0.95

Tested by

no test coverage detected