(current: string, latest: string)
| 132 | |
| 133 | /** One user-facing sentence; every surface (stderr, instructions, status) shows this. */ |
| 134 | export function formatUpdateNotice(current: string, latest: string): string { |
| 135 | return ( |
| 136 | `CodeGraph ${latest} is available (this server is running ` + |
| 137 | `${current}). Update with \`codegraph upgrade\`.` |
| 138 | ); |
| 139 | } |
| 140 | |
| 141 | function noticeFrom(cache: UpdateCheckCacheFile | null, d: ResolvedDeps): string | null { |
| 142 | if (!cache?.latest) return null; |
no outgoing calls
no test coverage detected