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

Function checkVersion

packages/cli/src/commands/doctor.ts:63–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63function checkVersion(): CheckResult {
64 const meta = getUpdateMeta();
65 if (meta.updateAvailable && meta.latestVersion) {
66 return {
67 ok: false,
68 detail: `${VERSION} \u2192 ${meta.latestVersion} available`,
69 hint: "Run: hyperframes upgrade",
70 };
71 }
72 return { ok: true, detail: `${VERSION} (latest)` };
73}
74
75function checkNode(): CheckResult {
76 return { ok: true, detail: `${process.version} (${process.platform} ${process.arch})` };

Callers

nothing calls this directly

Calls 1

getUpdateMetaFunction · 0.85

Tested by

no test coverage detected