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

Function formatIndexVersionWarning

src/mcp/index-version-warning.ts:42–50  ·  view source on GitHub ↗
(build: IndexBuildInfo)

Source from the content-addressed store, hash-verified

40
41/** Actionable warning prepended to the first successful response for a stale project. */
42export function formatIndexVersionWarning(build: IndexBuildInfo): string {
43 return (
44 `${INDEX_VERSION_WARNING_PREFIX} ` +
45 `It was built with ${formatIndexBuildVersion(build)}; the running engine is ` +
46 `CodeGraph ${formatRunningVersion()}. Answers can miss symbols and relationships this ` +
47 "engine adds. Indexing is the user's decision: they can run `codegraph index` in the " +
48 'project to rebuild it.'
49 );
50}

Callers 1

Calls 2

formatIndexBuildVersionFunction · 0.85
formatRunningVersionFunction · 0.85

Tested by

no test coverage detected