MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / toolPruneStaleLinks

Function toolPruneStaleLinks

src/tools/memory-tools.ts:101–108  ·  view source on GitHub ↗
(options: PruneStaleLinksOptions)

Source from the content-addressed store, hash-verified

99}
100
101export async function toolPruneStaleLinks(options: PruneStaleLinksOptions): Promise<string> {
102 const result = await pruneStaleLinks(options.rootDir, options.threshold);
103 return [
104 `🧹 Pruning complete`,
105 ` Removed: ${result.removed} stale links/orphan nodes`,
106 ` Remaining edges: ${result.remaining}`,
107 ].join("\n");
108}
109
110export async function toolAddInterlinkedContext(options: AddInterlinkedContextOptions): Promise<string> {
111 const result = await addInterlinkedContext(options.rootDir, options.items, options.autoLink);

Callers 2

index.tsFile · 0.85

Calls 1

pruneStaleLinksFunction · 0.85

Tested by

no test coverage detected