Function: activateProviderContextStrict()
Makaio Framework / services-core / activateProviderContextStrict
Function: activateProviderContextStrict()
Section titled “Function: activateProviderContextStrict()”activateProviderContextStrict(
bus,providerContext):Promise<void>
Defined in: ../../../packages/services/core/src/provider-context/activate-provider-context.ts:58
Fire the credential activation hook and propagate failures.
Rotation paths use this stricter variant so a failed native-store update does not report a successful credential swap.
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>