MCPcopy
hub / github.com/koala73/worldmonitor / getEffectiveSecrets

Function getEffectiveSecrets

src/services/runtime-config.ts:389–391  ·  view source on GitHub ↗
(feature: RuntimeFeatureDefinition)

Source from the content-addressed store, hash-verified

387}
388
389export function getEffectiveSecrets(feature: RuntimeFeatureDefinition): RuntimeSecretKey[] {
390 return (isDesktopRuntime() && feature.desktopRequiredSecrets) ? feature.desktopRequiredSecrets : feature.requiredSecrets;
391}
392
393export function setFeatureToggle(featureId: RuntimeFeatureId, enabled: boolean): void {
394 runtimeConfig.featureToggles[featureId] = enabled;

Callers 7

renderFeatureSectionFunction · 0.90
updateFeatureCardStatusFunction · 0.90
handleSearchFunction · 0.90
renderFeatureMethod · 0.90

Calls 1

isDesktopRuntimeFunction · 0.90

Tested by

no test coverage detected