Function: loadConfig()
loadConfig(
options?):Promise<Readonly<{ai?: {anthropicApiKey?:string;apiKey?:string;apiVersion?:string;deployment?:string;endpoint?:string;maxTokens?:number;model?:string;provider:"openai"|"azure-openai"|"anthropic";temperature:number; };auth?: {baseUrl:string;client:string;language:string;password?:string;strategy:"btp-saml"|"basic"|"office365"|"custom";username?:string; };controlDiscoveryTimeout:number;discoveryStrategies: ("direct-id"|"recordreplay"|"registry")[];ignoreAutoWaitUrls:string[];interactionStrategy:"ui5-native"|"dom-first"|"opa5";logLevel:"error"|"debug"|"warn"|"info"|"verbose";opa5?: {autoWait:boolean;debug:boolean;interactionTimeout:number; };preferVisibleControls:boolean;selectors?: {defaultTimeout:number;preferVisibleControls:boolean;skipStabilityWait:boolean; };skipStabilityWait:boolean;telemetry?: {endpoint?:string;exporter:"otlp"|"azure-monitor"|"jaeger";openTelemetry:boolean;serviceName:string; };ui5WaitTimeout:number; }>>
Defined in: src/core/config/loader.ts:122
Loads, validates, and freezes Praman configuration.
Parameters​
options?​
Optional inline overrides.
Returns​
Promise<Readonly<{ ai?: { anthropicApiKey?: string; apiKey?: string; apiVersion?: string; deployment?: string; endpoint?: string; maxTokens?: number; model?: string; provider: "openai" | "azure-openai" | "anthropic"; temperature: number; }; auth?: { baseUrl: string; client: string; language: string; password?: string; strategy: "btp-saml" | "basic" | "office365" | "custom"; username?: string; }; controlDiscoveryTimeout: number; discoveryStrategies: ("direct-id" | "recordreplay" | "registry")[]; ignoreAutoWaitUrls: string[]; interactionStrategy: "ui5-native" | "dom-first" | "opa5"; logLevel: "error" | "debug" | "warn" | "info" | "verbose"; opa5?: { autoWait: boolean; debug: boolean; interactionTimeout: number; }; preferVisibleControls: boolean; selectors?: { defaultTimeout: number; preferVisibleControls: boolean; skipStabilityWait: boolean; }; skipStabilityWait: boolean; telemetry?: { endpoint?: string; exporter: "otlp" | "azure-monitor" | "jaeger"; openTelemetry: boolean; serviceName: string; }; ui5WaitTimeout: number; }>>
Frozen, validated PramanConfig with all defaults applied.
Example​
const config = await loadConfig({ overrides: { logLevel: 'debug' } });