MCPcopy Index your code
hub / github.com/callstack/agent-device / profileToCliFlags

Function profileToCliFlags

src/utils/remote-config.ts:14–23  ·  view source on GitHub ↗
(profile: RemoteConfigProfile)

Source from the content-addressed store, hash-verified

12) as readonly (keyof RemoteConfigProfile)[];
13
14export function profileToCliFlags(profile: RemoteConfigProfile): Partial<CliFlags> {
15 const flags: Partial<CliFlags> = {};
16 for (const key of REMOTE_CONFIG_DEFAULT_FLAG_KEYS) {
17 const value = profile[key];
18 if (value !== undefined) {
19 (flags as Record<string, unknown>)[key] = value;
20 }
21 }
22 return flags;
23}
24
25export function resolveRemoteConfigDefaults(options: {
26 remoteConfig?: string;

Calls

no outgoing calls

Tested by

no test coverage detected