Skip to content

Interface: ResolveVendorKeysOptions

Defined in: packages/aiui-util/src/vendor-keys.ts:189

Properties

decisions?

optional decisions?: Partial<Record<VendorProvider, KeyDecision>>

Defined in: packages/aiui-util/src/vendor-keys.ts:199

Defaults to readKeyDecisions of the user config.


env?

optional env?: ProcessEnv

Defined in: packages/aiui-util/src/vendor-keys.ts:197


lookup?

optional lookup?: (account) => Promise<string | null>

Defined in: packages/aiui-util/src/vendor-keys.ts:201

Injectable vault read (defaults to vaultLookup).

Parameters

account

string

Returns

Promise<string | null>


mode

mode: "source" | "installed"

Defined in: packages/aiui-util/src/vendor-keys.ts:196

"source" = running from this monorepo checkout (aiui-util's packageFromSource on the caller's own package is the usual signal): env vars are honored and WIN. "installed": the environment is ignored for keys — the vault (as gated by the decisions) is the only source.


onWarn?

optional onWarn?: (message) => void

Defined in: packages/aiui-util/src/vendor-keys.ts:209

Vault failures/timeouts surface here (once per key), never as throws.

Parameters

message

string

Returns

void


timeoutMs?

optional timeoutMs?: number

Defined in: packages/aiui-util/src/vendor-keys.ts:207

Per-lookup guard: a wedged vault (Linux with no D-Bus session, a locked keychain waiting on a prompt that can't render) must degrade the key to missing, never hang the caller's boot. Default 3000 ms.