MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / runCodebaseContext

Function runCodebaseContext

src/eval/discovery-harness.ts:117–125  ·  view source on GitHub ↗
(
  _task: DiscoveryTaskType,
  rootPath: string
)

Source from the content-addressed store, hash-verified

115}
116
117async function runCodebaseContext(
118 _task: DiscoveryTaskType,
119 rootPath: string
120): Promise<DiscoverySurfaceResultType> {
121 const project = createToolProject(rootPath);
122 return {
123 payload: await generateCodebaseIntelligence(project)
124 };
125}
126
127const DEFAULT_SURFACE_RUNNERS: Record<DiscoverySurface, DiscoverySurfaceRunner> = {
128 search_codebase: runSearchCodebase,

Callers

nothing calls this directly

Calls 2

createToolProjectFunction · 0.85

Tested by

no test coverage detected