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

Function variantTagFromVersion

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

Source from the content-addressed store, hash-verified

827 * publishing them doesn't move the channel pointer. The wrapper alone
828 * drives `latest`/`beta`. */
829const variantTagFromVersion = (version: string): string => {
830 const idx = version.indexOf("-");
831 if (idx === -1) {
832 throw new Error(
833 `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`,
834 );
835 }
836 return version.slice(idx + 1);
837};
838
839const publish = async (channel: string) => {
840 const meta = await readMetadata();

Callers 1

publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected