mirror of
https://github.com/aaronsb/obsidian-mcp-plugin.git
synced 2026-07-22 06:45:14 +00:00
fix(graph): count filtered seed set in root-traverse message
The '/' traverse summary reported Math.min(10, getFiles().length) using the unfiltered file count, while the traversal actually seeds from the .mcpignore-filtered set (graph-traversal.ts). With exclusions enabled this overcounted and leaked that hidden files exist via an inflated number. Count the same filtered set the seed logic uses.
This commit is contained in:
parent
42ac8b361e
commit
cda1b1b4a7
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ export class GraphSearchTool {
|
|||
edges: result.edges,
|
||||
graphStats: result.stats,
|
||||
message: params.sourcePath === '/' || params.sourcePath === ''
|
||||
? `Traversed from ${Math.min(10, this.app.vault.getFiles().length)} most recent files: Found ${result.stats.totalNodes} connected nodes within ${params.maxDepth} degrees`
|
||||
? `Traversed from ${Math.min(10, this.app.vault.getFiles().filter(f => !this.graphTraversal.isExcluded(f.path)).length)} most recent files: Found ${result.stats.totalNodes} connected nodes within ${params.maxDepth} degrees`
|
||||
: `Found ${result.stats.totalNodes} connected nodes within ${params.maxDepth} degrees of separation`,
|
||||
workflow: {
|
||||
message: 'Graph traversal complete. You can explore individual nodes or find paths between them.',
|
||||
|
|
|
|||
Loading…
Reference in a new issue