GeoLeaf Core API - v3.0.0
    Preparing search index...

    Function registerPresetDeclarations

    • Pass 1 — register each installer's declaration and assign its facade globals. Order follows the manifest (introspection insertion-order preserved). Pure and synchronous; registerGlobals writes are idempotent references.

      This pass is the only place that sees every installer: Pass 2 skips those without a createModule (5 of the 21 shipped ones), and it is itself conditional on the module registry not being initialised yet. Recording hasModule there would answer "no module" for a capability that has one, depending on when boot ran.

      createModule is read as a field, never invoked — Pass 2 is the single caller, and a second call would build a second module instance.

      Parameters

      • preset: PresetManifest

        the active preset manifest.

      • capabilityRegistry: Pick<CapRegistryLike, "register" | "noteInstaller">

        registry that records declarations for the gate + introspection.

      • gl: Record<string, unknown>

        the boot-populated GeoLeaf global namespace (bag view).

      Returns void