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

Function variantTagFromVersion

apps/cli/src/build.ts:749–757  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

747 * publishing them doesn't move the channel pointer. The wrapper alone
748 * drives `latest`/`beta`. */
749const variantTagFromVersion = (version: string): string => {
750 const idx = version.indexOf("-");
751 if (idx === -1) {
752 throw new Error(
753 `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`,
754 );
755 }
756 return version.slice(idx + 1);
757};
758
759const publish = async (channel: string) => {
760 const meta = await readMetadata();

Callers 1

publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected