/** * Global config type definitions for the CLI. * * Shared types (ClaudeConfig, SkillsConfig, DeepPartial) come from * brain-shared. BrainConfig extends the shared base with * gateway-specific fields used only by the CLI. */ import type { ClaudeConfig, SkillsConfig, DeepPartial } from 'brain-shared'; export type { ClaudeConfig, SkillsConfig, DeepPartial }; export interface BrainConfig { /** Set by postinstall — path to bot-app directory */ botAppDir: string; /** Set by postinstall — path to local-server directory */ localServerDir: string; claude: ClaudeConfig; skills: SkillsConfig; /** WSS Gateway URL, e.g. wss://brain-beta-myorg.azurewebsites.net/connect */ gatewayUrl: string; /** Entra ID App Registration client ID — auto-discovered from /connect/config */ relayClientId: string; /** MSAL scope — auto-discovered from /connect/config */ relayScope: string; /** MSAL authority URL — auto-discovered from /connect/config */ msalAuthority: string; /** Teams Team ID — auto-discovered via Graph API on first start */ teamId: string; /** User-provided display name for this device. Optional; falls back to os.hostname() in local-server. */ deviceName?: string; } export type DeepPartialObject = DeepPartial;