(build: IndexBuildInfo)
| 28 | |
| 29 | /** Human-readable engine identity recorded in an index's metadata. */ |
| 30 | export function formatIndexBuildVersion(build: IndexBuildInfo): string { |
| 31 | const extraction = build.extractionVersion ?? 'unknown'; |
| 32 | if (!build.version) return `an earlier CodeGraph version (extraction ${extraction})`; |
| 33 | return `CodeGraph v${build.version.replace(/^v/, '')} (extraction ${extraction})`; |
| 34 | } |
| 35 | |
| 36 | /** Human-readable identity of the process currently serving MCP. */ |
| 37 | export function formatRunningVersion(): string { |
no outgoing calls
no test coverage detected