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

Function resolveChannel

apps/local/src/installation.ts:12–16  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

10// A `-` in semver indicates a prerelease (beta train).
11// TODO: source channel from release infra once it lands; mirrors apps/cli.
12const resolveChannel = (version: string): InstallationChannel => {
13 if (version.includes("-")) return "beta";
14 if (version === "0.0.0" || version === "local") return "dev";
15 return "stable";
16};
17
18// The surface is cli|desktop — never a "local" catch-all: the desktop main
19// process marks its sidecar via EXECUTOR_CLIENT=desktop; everything else

Callers 1

installation.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected