GeoLeaf Core API - v3.0.0
    Preparing search index...
    • 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.

      Parameters

      • gate: ICapabilityConfigGate | undefined

        the declared gate, or undefined for an ungated capability.

      • config: { get(key: string, defaultValue?: unknown): unknown }

        dotted-path config reader (see toCapConfig).

      Returns boolean