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

Function formatUpdateNotice

src/upgrade/update-check.ts:134–139  ·  view source on GitHub ↗
(current: string, latest: string)

Source from the content-addressed store, hash-verified

132
133/** One user-facing sentence; every surface (stderr, instructions, status) shows this. */
134export 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
141function noticeFrom(cache: UpdateCheckCacheFile | null, d: ResolvedDeps): string | null {
142 if (!cache?.latest) return null;

Callers 2

noticeFromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected