Evaluates a config gate — the ONE place the gate semantics live:
no gate → enabled ;
key absent → enableWhenAbsent ?? false (opt-in by default) ;
value false → disabled ;
any other value → enabled.
Extracted from CapabilityRegistry.isEnabled (presets build, S2 Lot 6) so a
preset installer can gate its module on a sub-key of its capability's config
(CapabilityInstaller.moduleGate — e.g. share under permalink) with exactly the
same semantics, instead of an ad-hoc inline test in boot.ts.
Evaluates a config gate — the ONE place the gate semantics live:
enableWhenAbsent ?? false(opt-in by default) ;false→ disabled ;Extracted from CapabilityRegistry.isEnabled (presets build, S2 Lot 6) so a preset installer can gate its module on a sub-key of its capability's config (
CapabilityInstaller.moduleGate— e.g.shareunderpermalink) with exactly the same semantics, instead of an ad-hoc inline test inboot.ts.