MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / collectGroupPaths

Function collectGroupPaths

packages/react/src/components/tool-tree.tsx:188–195  ·  view source on GitHub ↗
(node: TreeNode, acc: Set<string>)

Source from the content-addressed store, hash-verified

186};
187
188const collectGroupPaths = (node: TreeNode, acc: Set<string>): void => {
189 for (const child of node.children.values()) {
190 if (child.children.size > 0) {
191 acc.add(child.path);
192 collectGroupPaths(child, acc);
193 }
194 }
195};
196
197const flattenTree = (
198 node: TreeNode,

Callers 1

ToolTreeBodyFunction · 0.85

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected