/** * Agent client settings — agent type selection, default models, Copilot * BYOK provider config, per-agent custom spawn env vars, and Claude spawn * overrides (CLI path, OAuth token, git-bash path, concurrency cap). */ export type AgentType = "copilot" | "claude" | "codex" | "openai_codex" | "fable"; /** The single source of truth for the default agent type when none is configured. */ export declare const DEFAULT_AGENT_TYPE: AgentType; export declare const VALID_AGENT_TYPES: readonly string[]; export declare function isValidAgentType(v: unknown): v is AgentType; export declare function getAgentType(): AgentType; export declare function setAgentType(type: AgentType): void; export declare function getFableModel(): string; export declare function getDefaultThreadModel(): string; export declare function getDefaultWorkerModel(): string; export declare function updateDefaultThreadModel(model: string): void; export declare function updateDefaultWorkerModel(model: string): void; export type CopilotProviderType = "openai" | "azure" | "anthropic"; /** * "Bring Your Own Key" provider config for the Copilot CLI. When enabled and a * baseUrl + apiKey are present, the Copilot child is spawned pointing at a * custom OpenAI-compatible endpoint (OpenRouter, DeepSeek, Kimi, …) instead of * GitHub-hosted models. GitHub authentication is not used in this mode. */ export interface CopilotByokConfig { enabled: boolean; providerType: CopilotProviderType; baseUrl: string; apiKey: string; /** Optional COPILOT_PROVIDER_MODEL_ID — well-known base model for tool-calling config. */ modelId: string; /** Optional COPILOT_PROVIDER_WIRE_MODEL — actual model id sent on the wire. */ wireModel: string; } export declare function isValidCopilotProviderType(v: unknown): v is CopilotProviderType; /** Model passed to the Copilot CLI via --model / COPILOT_MODEL (native or BYOK). */ export declare function getCopilotModel(): string; export declare function setCopilotModel(model: string): void; /** Reasoning effort written to the Copilot CLI's settings.json (low/medium/high). */ export declare function getCopilotEffortLevel(): string; export declare function setCopilotEffortLevel(level: string): void; /** Context window tier written to the Copilot CLI's settings.json (normal/long_context). */ export declare function getCopilotContextTier(): string; export declare function setCopilotContextTier(tier: string): void; export declare function getCopilotByokConfig(): CopilotByokConfig; /** * Merge a partial patch into the stored BYOK config and persist. The merged * result is re-validated through normalizeByokConfig so the settings file can * never hold an invalid providerType or non-string field, even though the input * originates from the dashboard. */ export declare function setCopilotByokConfig(patch: Partial): CopilotByokConfig; /** * Assemble the environment variables that configure the Copilot CLI's model and * (optionally) a custom BYOK provider. Values here are meant to override any * inherited process.env at spawn time. */ export declare function getCopilotSpawnEnv(): Record; export declare function getClaudeCustomEnvVars(): Record; export declare function setClaudeCustomEnvVars(vars: Record): void; export declare function getCopilotCustomEnvVars(): Record; export declare function setCopilotCustomEnvVars(vars: Record): void; /** Explicit path to the Claude CLI binary (settings only — env is read at the call site). */ export declare function getClaudeCliPath(): string | undefined; export declare function setClaudeCliPath(path: string): void; /** Long-lived Claude setup token used in place of the broken OAuth refresh flow. */ export declare function getClaudeOauthToken(): string | undefined; export declare function setClaudeOauthToken(token: string): void; /** Path to git-bash (Windows) passed to Claude via CLAUDE_CODE_GIT_BASH_PATH. */ export declare function getClaudeGitBashPath(): string | undefined; export declare function setClaudeGitBashPath(path: string): void; /** Maximum number of concurrent spawned threads. */ export declare function getMaxConcurrentThreads(): number; export declare function setMaxConcurrentThreads(count: number): void; /** * Whether Claude Code's native auto-memory (MEMORY.md read/write) runs in spawned * threads. Off by default — it conflicts with Sensorium's own memory system. Toggleable * from the dashboard's Claude tab; applied to each thread's settings.json at spawn. */ export declare function getClaudeAutoMemoryEnabled(): boolean; export declare function setClaudeAutoMemoryEnabled(enabled: boolean): void; export declare function getCodexToolTimeoutSec(): number; export declare function setCodexToolTimeoutSec(sec: number): void; export type CodexModelVerbosity = "default" | "low" | "medium" | "high"; export declare const CODEX_MODEL_VERBOSITY_VALUES: readonly CodexModelVerbosity[]; export declare function isCodexModelVerbosity(v: unknown): v is CodexModelVerbosity; export declare function getCodexModelVerbosity(): CodexModelVerbosity; export declare function setCodexModelVerbosity(v: CodexModelVerbosity): void; export declare function getCodexRootModel(): string; export declare function setCodexRootModel(model: string): void; export declare function getCodexWorkerModel(): string; export declare function setCodexWorkerModel(model: string): void; //# sourceMappingURL=agent-settings.d.ts.map