Skip to content

Function: activateProviderContext()

Makaio Framework


Makaio Framework / services-core / activateProviderContext

activateProviderContext(bus, providerContext): Promise<void>

Defined in: ../../../packages/services/core/src/provider-context/activate-provider-context.ts:37

Fire the credential activation hook for a provider context.

Callers await this before starting an adapter so extensions such as account-manager can prepare native credential stores ahead of connector-side resolution. Missing handlers are treated as a no-op and handler failures are intentionally suppressed because activation must not block agent startup.

IMakaioBus

Bus used to invoke the activation hook

Provider context whose refs should be activated

Record<string, string> = ...

Maps credential keys to environment variable names for subprocess adapters. E.g., { apiKey: 'ANTHROPIC_API_KEY' }.

Record<string, string & $brand<"CredentialRef">> = ...

Credential references resolved at the connector layer, not on the bus.

string = ...

Provider definition ID (e.g., 'anthropic', 'alibaba').

{ anthropic?: string; openai?: string; } = ...

Endpoint URL overrides keyed by protocol.

string = ...

string = ...

string = ...

Provider config UUID. Links back to the ProviderConfig that produced this context.

Promise<void>