MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getPendingFiles

Method getPendingFiles

src/sync/watcher.ts:1009–1020  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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/**

Callers 2

withStalenessNoticeMethod · 0.45
handleStatusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected