MCPcopy Index your code
hub / github.com/simstudioai/sim / fallbackFlags

Function fallbackFlags

apps/sim/lib/core/config/feature-flags.ts:127–135  ·  view source on GitHub ↗

Build the fallback document from each flag's secret. Truthy secret ⇒ enabled.

()

Source from the content-addressed store, hash-verified

125
126/** Build the fallback document from each flag's secret. Truthy secret ⇒ enabled. */
127function fallbackFlags(): FeatureFlagsConfig {
128 const flags: FeatureFlagsConfig = {}
129 for (const [name, def] of Object.entries(FEATURE_FLAGS) as Array<
130 [string, FeatureFlagDefinition]
131 >) {
132 flags[name] = { enabled: isTruthy(env[def.fallback]) }
133 }
134 return flags
135}
136
137function normalizeIds(values: unknown): string[] | undefined {
138 if (!Array.isArray(values)) return undefined

Callers 1

getFeatureFlagsFunction · 0.85

Calls 1

isTruthyFunction · 0.90

Tested by

no test coverage detected