MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / makeResult

Function makeResult

src/utils/updateCheck.ts:130–140  ·  view source on GitHub ↗
(current: string, latest: string | null)

Source from the content-addressed store, hash-verified

128}
129
130function makeResult(current: string, latest: string | null): UpdateInfo {
131 if (latest === null) {
132 return { current, latest: null, updateAvailable: false, unknown: true };
133 }
134 return {
135 current,
136 latest,
137 updateAvailable: compareVersions(current, latest) < 0,
138 unknown: false,
139 };
140}
141
142/** Invalidate the cached "latest" so the next launch re-checks. */
143export function clearUpdateCache(): void {

Callers 1

getUpdateInfoFunction · 0.85

Calls 1

compareVersionsFunction · 0.85

Tested by

no test coverage detected