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

Function runCodebaseMetadata

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

Source from the content-addressed store, hash-verified

75}
76
77async function runCodebaseMetadata(
78 _task: DiscoveryTaskType,
79 rootPath: string
80): Promise<DiscoverySurfaceResultType> {
81 const project = createToolProject(rootPath);
82 const response = await getCodebaseMetadataHandle(
83 {},
84 {
85 indexState: project.indexState,
86 paths: project.paths,
87 rootPath: project.rootPath,
88 performIndexing: () => undefined
89 }
90 );
91 return { payload: response.content?.[0]?.text ?? '{}' };
92}
93
94async function runTeamPatterns(
95 task: DiscoveryTaskType,

Callers

nothing calls this directly

Calls 1

createToolProjectFunction · 0.85

Tested by

no test coverage detected