MCPcopy Create free account
hub / github.com/cloudflare/agents / buildTree

Function buildTree

packages/shell/src/extras.ts:84–91  ·  view source on GitHub ↗
(
  root: string,
  ops: TreeOps,
  options: StateTreeOptions = {}
)

Source from the content-addressed store, hash-verified

82}
83
84export async function buildTree(
85 root: string,
86 ops: TreeOps,
87 options: StateTreeOptions = {}
88): Promise<StateTreeNode> {
89 const seenDepth = options.maxDepth ?? Number.POSITIVE_INFINITY;
90 return buildTreeNode(root, 0, seenDepth, ops);
91}
92
93export async function summarizeTree(
94 root: string,

Callers 2

walkTreeMethod · 0.90
summarizeTreeFunction · 0.85

Calls 1

buildTreeNodeFunction · 0.85

Tested by

no test coverage detected