Function: activateProviderContext()
Makaio Framework / services-core / activateProviderContext
Function: activateProviderContext()
Section titled “Function: 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.
Parameters
Section titled “Parameters”Bus used to invoke the activation hook
providerContext
Section titled “providerContext”Provider context whose refs should be activated
credentialEnvVars?
Section titled “credentialEnvVars?”Record<string, string> = ...
Maps credential keys to environment variable names for subprocess adapters.
E.g., { apiKey: 'ANTHROPIC_API_KEY' }.
credentialRefs
Section titled “credentialRefs”Record<string, string & $brand<"CredentialRef">> = ...
Credential references resolved at the connector layer, not on the bus.
definitionId
Section titled “definitionId”string = ...
Provider definition ID (e.g., 'anthropic', 'alibaba').
endpointOverrides?
Section titled “endpointOverrides?”{ anthropic?: string; openai?: string; } = ...
Endpoint URL overrides keyed by protocol.
endpointOverrides.anthropic?
Section titled “endpointOverrides.anthropic?”string = ...
endpointOverrides.openai?
Section titled “endpointOverrides.openai?”string = ...
providerConfigId
Section titled “providerConfigId”string = ...
Provider config UUID. Links back to the ProviderConfig that produced this context.
Returns
Section titled “Returns”Promise<void>