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

Function resolveChannel

apps/cli/src/installation.ts:9–13  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

7// TODO: source channel from release infra once it lands; for now this matches
8// the heuristic in src/release.ts.
9const resolveChannel = (version: string): InstallationChannel => {
10 if (version.includes("-")) return "beta";
11 if (version === "0.0.0" || version === "local") return "dev";
12 return "stable";
13};
14
15export const CHANNEL: InstallationChannel = resolveChannel(CLI_VERSION);
16export const VERSION: string = CLI_VERSION;

Callers 1

installation.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected