Skip to content

kernel/modules/registry

Defined in: app/src/kernel/modules/registry.ts:8

Holds every known module manifest and checks the module graph: unique ids, known dependencies, no cycles, and core modules that only depend on core modules.

new ModuleRegistry(manifests): ModuleRegistry

Defined in: app/src/kernel/modules/registry.ts:16

readonly ModuleManifest[]

Manifests in registration order. The order breaks ties when the activation order is computed, so it stays deterministic.

ModuleRegistry

ModuleError when the graph is invalid.

all(): readonly ModuleManifest[]

Defined in: app/src/kernel/modules/registry.ts:40

All manifests in registration order.

readonly ModuleManifest[]

get(id): ModuleManifest | undefined

Defined in: app/src/kernel/modules/registry.ts:48

Looks up a manifest.

string

The module id.

ModuleManifest | undefined

topologicalOrder(): readonly ModuleManifest[]

Defined in: app/src/kernel/modules/registry.ts:57

Orders all modules so that every module comes after its dependencies. Ties keep the registration order.

readonly ModuleManifest[]

ModuleError on a dependency cycle.

const ModuleRegistryToken: Token<ModuleRegistry>

Defined in: app/src/kernel/modules/registry.ts:87

Token for the ModuleRegistry.