Skip to content

Function: activateProviderContextStrict()

Makaio Framework


Makaio Framework / services-core / 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.

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>