MCPcopy Create free account
hub / github.com/Noumena-Network/code / normalizeEnvironmentKind

Function normalizeEnvironmentKind

src/utils/teleport/environments.ts:40–48  ·  view source on GitHub ↗
(kind: string)

Source from the content-addressed store, hash-verified

38}
39
40export function normalizeEnvironmentKind(kind: string): EnvironmentKind {
41 if (isManagedCloudEnvironmentKind(kind)) {
42 return NOUMENA_CLOUD_ENVIRONMENT_KIND
43 }
44 if (kind === 'byoc' || kind === 'bridge') {
45 return kind
46 }
47 return kind as EnvironmentKind
48}
49
50/**
51 * Fetches the list of available environments from the Environment API

Callers 1

fetchEnvironmentsFunction · 0.85

Calls 1

Tested by

no test coverage detected