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

Function isFeatureEnabled

apps/sim/lib/core/config/feature-flags.ts:218–224  ·  view source on GitHub ↗
(
  flag: FeatureFlagName,
  ctx: FeatureFlagContext = {}
)

Source from the content-addressed store, hash-verified

216
217/** Resolve a single flag for a context. Admin status is resolved internally from `userId`. */
218export async function isFeatureEnabled(
219 flag: FeatureFlagName,
220 ctx: FeatureFlagContext = {}
221): Promise<boolean> {
222 const flags = await getFeatureFlags()
223 return evaluate(flags[flag], ctx)
224}

Callers 15

resolveTriggerRegionFunction · 0.90
enabledFunction · 0.90
assertForkingEnabledFunction · 0.90
resolveInputFilesFunction · 0.90
getE2BDocFormatFunction · 0.90
materializeMethod · 0.90
resolveInsertOrderKeyFunction · 0.90
resolveInsertByNeighborFunction · 0.90
insertOrderedRowFunction · 0.90

Calls 2

getFeatureFlagsFunction · 0.85
evaluateFunction · 0.85

Tested by 1

enabledFunction · 0.72