MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / resolveComparisonChannel

Function resolveComparisonChannel

packages/core/api/src/update-check.ts:128–134  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

126 * never catch up to
127 */
128export const resolveComparisonChannel = (version: string): UpdateChannel | null => {
129 if (isUnstampedVersion(version)) return null;
130 const parsed = parseVersion(version);
131 if (!parsed) return null;
132 if (parsed.prerelease === null) return "latest";
133 return parsed.prerelease[0] === "beta" ? "beta" : null;
134};
135
136/**
137 * The single "should we nag?" verdict both the CLI and the web UpdateCard

Callers 4

updateFetchChannelFunction · 0.90
isUpdateAvailableFunction · 0.85
checkForUpdateFunction · 0.85

Calls 2

isUnstampedVersionFunction · 0.85
parseVersionFunction · 0.85

Tested by

no test coverage detected