Kind: Class
Source: atloria-monorepo/libs/agent-core/src/context/repo-map.ts
Methods
| Method | Signature | Returns |
|---|---|---|
generate | generate(focusQuery: string, recentFiles: string[]) | Promise<RepoMapResult> |
invalidate | invalidate(files: string[]) | void |
clearCache | clearCache() | void |
Where it refuses work
RepoMapstops the work with an early return whenresults.length >= this.config.maxFiles, in 2 places.RepoMapstops the work with an early return whena.def.exported !== b.def.exported.RepoMapstops the work with an early return whenb.score !== a.score.RepoMapstops the work with an early return whencached && cached.mtime === mtime.RepoMapstops the work with an early return whencontent.length > 200_000.RepoMapstops the work with an early return whenn === 0.
When something fails
RepoMaphandles failure in 3 places: it turns it into a return value in all 3.
Was this page helpful?