Interface: ExtensionConfigProvider
Makaio Framework / contracts / ExtensionConfigProvider
Interface: ExtensionConfigProvider
Section titled “Interface: 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.
Methods
Section titled “Methods”loadConfig()
Section titled “loadConfig()”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.
Parameters
Section titled “Parameters”string
Extension package name.
Returns
Section titled “Returns”Record<string, unknown> | undefined
Stored configuration object, or undefined when absent.
loadEnabled()
Section titled “loadEnabled()”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).
Parameters
Section titled “Parameters”string
Extension package name.
Returns
Section titled “Returns”boolean | undefined
false to skip the package at boot, true or undefined to start normally.