Interface: ExtensionContributionProcessor<THostContext>
Makaio Framework / contracts / ExtensionContributionProcessor
Interface: ExtensionContributionProcessor<THostContext>
Section titled “Interface: ExtensionContributionProcessor<THostContext>”Defined in: ../../../packages/contracts/src/extension/makaio-extension.ts:30
Awaited contribution processor registered with the runtime coordinator.
Processors are registered before package startup and are invoked when a package activates or stops. A processor can filter the packages it handles by inspecting the executable MakaioExtension manifest.
Type Parameters
Section titled “Type Parameters”THostContext
Section titled “THostContext”THostContext extends ExtensionContext = NodeExtensionContext
Host context supplied to active extensions.
Properties
Section titled “Properties”filter?
Section titled “filter?”
readonlyoptionalfilter?: (pkg) =>boolean
Defined in: ../../../packages/contracts/src/extension/makaio-extension.ts:36
Optional activation filter.
Parameters
Section titled “Parameters”MakaioExtension<THostContext>
Extension manifest to evaluate.
Returns
Section titled “Returns”boolean
true when this processor should handle the extension.
processActivated
Section titled “processActivated”
readonlyprocessActivated: (name,pkg,ctx) =>Promise<void>
Defined in: ../../../packages/contracts/src/extension/makaio-extension.ts:43
Called when an extension is being activated.
Parameters
Section titled “Parameters”string
Extension package name.
MakaioExtension<THostContext>
Extension manifest.
THostContext
Per-extension runtime context.
Returns
Section titled “Returns”Promise<void>
processStopped?
Section titled “processStopped?”
readonlyoptionalprocessStopped?: (name) =>Promise<void>
Defined in: ../../../packages/contracts/src/extension/makaio-extension.ts:48
Called when an extension is stopped or disabled.
Parameters
Section titled “Parameters”string
Extension package name.
Returns
Section titled “Returns”Promise<void>