* Snapshot of files seen by the watcher since the last successful sync. * * Used by MCP tool responses to mark stale results without blocking on a * sync: a tool that returns a hit in `src/foo.ts` while `src/foo.ts` is in * this list tells the agent "Read this file directly, the index la
()
| 1007 | * Cheap: O(pendingFiles.size), no I/O, no locks. |
| 1008 | */ |
| 1009 | getPendingFiles(): PendingFile[] { |
| 1010 | const result: PendingFile[] = []; |
| 1011 | for (const [filePath, info] of this.pendingFiles) { |
| 1012 | result.push({ |
| 1013 | path: filePath, |
| 1014 | firstSeenMs: info.firstSeenMs, |
| 1015 | lastSeenMs: info.lastSeenMs, |
| 1016 | indexing: this.syncing && this.syncStartedMs >= info.lastSeenMs, |
| 1017 | }); |
| 1018 | } |
| 1019 | return result; |
| 1020 | } |
| 1021 | } |
| 1022 | |
| 1023 | /** |
no outgoing calls
no test coverage detected