Skip to content

RepoMap

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/libs/agent-core/src/context/repo-map.ts

Methods

MethodSignatureReturns
generategenerate(focusQuery: string, recentFiles: string[])Promise<RepoMapResult>
invalidateinvalidate(files: string[])void
clearCacheclearCache()void

Where it refuses work

  • RepoMap stops the work with an early return when results.length >= this.config.maxFiles, in 2 places.
  • RepoMap stops the work with an early return when a.def.exported !== b.def.exported.
  • RepoMap stops the work with an early return when b.score !== a.score.
  • RepoMap stops the work with an early return when cached && cached.mtime === mtime.
  • RepoMap stops the work with an early return when content.length > 200_000.
  • RepoMap stops the work with an early return when n === 0.

When something fails

  • RepoMap handles failure in 3 places: it turns it into a return value in all 3.

Was this page helpful?

Download as PDF