Skip to content

Interface: ExtensionConfigProvider

Makaio Framework


Makaio Framework / contracts / ExtensionConfigProvider

Defined in: ../../../packages/contracts/src/extension/extension-config-provider.ts:7

Provider for persisted extension configuration and enablement state.

Injected by the host composition root. When absent, all extensions start enabled with default (Zod-schema) configuration only.

loadConfig(name): Record<string, unknown> | undefined

Defined in: ../../../packages/contracts/src/extension/extension-config-provider.ts:16

Load persisted configuration for an extension by name.

Returns undefined when no stored config exists for the extension. Invalid values are ignored by the coordinator during schema parse.

string

Extension package name.

Record<string, unknown> | undefined

Stored configuration object, or undefined when absent.


loadEnabled(name): boolean | undefined

Defined in: ../../../packages/contracts/src/extension/extension-config-provider.ts:26

Check whether an extension is enabled in persistent storage.

Returns undefined to indicate no persisted preference — the coordinator treats undefined the same as true (start normally).

string

Extension package name.

boolean | undefined

false to skip the package at boot, true or undefined to start normally.