MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / printUpdateNotice

Function printUpdateNotice

packages/cli/src/utils/updateCheck.ts:122–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 * Skipped in CI, non-TTY, dev mode, or when HYPERFRAMES_NO_UPDATE_CHECK is set.
121 */
122export function printUpdateNotice(): void {
123 if (updateNoticesSuppressed()) return;
124
125 const meta = getUpdateMeta();
126 if (!meta.updateAvailable || !meta.latestVersion) return;
127
128 process.stderr.write(
129 `\n Update available: ${meta.version} \u2192 ${meta.latestVersion}\n` +
130 ` Run: npx hyperframes@latest\n\n`,
131 );
132}

Callers

nothing calls this directly

Calls 3

updateNoticesSuppressedFunction · 0.85
getUpdateMetaFunction · 0.85
writeMethod · 0.65

Tested by

no test coverage detected