Function: resolveSessionEnvironment()
Makaio Framework / ai-adapters-core/config / resolveSessionEnvironment
Function: resolveSessionEnvironment()
Section titled “Function: resolveSessionEnvironment()”resolveSessionEnvironment(
options):Promise<SessionEnvironmentResult>
Defined in: ../../../adapters/core/src/config/resolve-session-environment.ts:105
Resolve credentials, build credential environment variables, and locate the client binary — the three-step pattern shared by subprocess connectors.
Encapsulates:
resolveConnectorCredentials(bus, credentialRefs)— opens an encrypted DirectChannel, resolves each ref, and closes the channel.buildCredentialEnv(credentials, credentialEnvVars)— maps credential values to subprocess env var names.resolveClientBinary(clientId)— dispatchesclient.resolveBinaryon the static bus; returnsundefinedin framework-only boot.
The returned SessionEnvironmentResult includes every intermediate value so callers with non-standard composition strategies (e.g. connectors that treat binary env as optional or pass credentials through a different channel) can compose the final env themselves.
Parameters
Section titled “Parameters”options
Section titled “options”Session environment resolution options
Returns
Section titled “Returns”Promise<SessionEnvironmentResult>
Resolved credentials, credential env, binary execution context, and merged spawn environment