MCPcopy
hub / github.com/forloopcodes/contextplus / pruneHeaders

Function pruneHeaders

src/tools/context-tree.ts:101–105  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

99}
100
101function pruneHeaders(node: TreeNode): void {
102 node.header = undefined;
103 node.symbols = undefined;
104 for (const child of node.children) pruneHeaders(child);
105}
106
107export async function getContextTree(options: ContextTreeOptions): Promise<string> {
108 const entries = await walkDirectory({

Callers 1

getContextTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected