/** * Shared config type definitions. * * These types are used by both cli/ and local-server/ when reading * ~/.brainbotbeta/config.json. Package-specific extensions (e.g. CLI's * gateway fields) are defined in each consumer's own config-schema. */ /** * Which CLI binary the local-server uses to answer messages. * * - `'claude'` — `@anthropic-ai/claude-agent-sdk` (the historic default; supports MCP servers, hooks, sub-agents) * - `'copilot'` — `@github/copilot` CLI invoked per-turn (`copilot --output-format json`); no MCP/hooks, but native GitHub access */ export type BackendType = 'claude' | 'copilot'; export declare const KNOWN_BACKEND_TYPES: readonly BackendType[]; export interface ClaudeConfig { /** * Which CLI backend to use. Defaults to `'claude'` for backward compatibility. * Overridable per-conversation via `#backend ` and globally via `#default-backend `. */ backend: BackendType; model: string; baseUrl: string; systemPromptFile: string; allowedTools: string[]; additionalDirectories: string[]; env: Record; /** * Scenario-B grounding gate. When `'on'`, replies are verified against the * turn's read-set before delivery (interactive → annotate, proactive → block). * Optional and defaults to `'off'` so the feature lands inert until opted in. */ groundingGate?: 'on' | 'off'; } export interface SkillsConfig { baseDir: string; dirs: string[]; } /** * Recursively makes all properties optional. * Objects are recursed into; arrays are kept as-is. */ export type DeepPartial = { [P in keyof T]?: T[P] extends (infer U)[] ? U[] : T[P] extends object ? DeepPartial : T[P]; };