(options: PruneStaleLinksOptions)
| 99 | } |
| 100 | |
| 101 | export 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 | |
| 110 | export async function toolAddInterlinkedContext(options: AddInterlinkedContextOptions): Promise<string> { |
| 111 | const result = await addInterlinkedContext(options.rootDir, options.items, options.autoLink); |
no test coverage detected