/** * Agent-behavior toggles stored under the `agent` namespace in * `settings.json`. These control whether the primary-agent system prompt * is injected and whether the `subagent` tool is registered. * * Both default to `true` so existing behaviour is preserved when the * namespace is absent. */ export interface AgentSettings { primaryAgentEnabled: boolean; subagentsEnabled: boolean; /** Names of individual subagents that have been explicitly disabled. */ disabledSubagents: string[]; activePrimaryAgent: string | null; } export declare const AGENT_SETTINGS_DEFAULTS: AgentSettings; export interface PutAgentSettingsInput { primaryAgentEnabled?: unknown; subagentsEnabled?: unknown; disabledSubagents?: unknown; activePrimaryAgent?: unknown; scope?: unknown; } export interface PutAgentSettingsOutput extends AgentSettings { ok: true; } /** * Load agent settings by merging defaults ← global ← project overrides. * Mirrors the precedence pattern used by `loadConfig` for observational * memory config. */ export declare function loadAgentSettings(cwd: string, agentDir?: string): AgentSettings; /** Async twin of {@link loadAgentSettings}. */ export declare function loadAgentSettingsAsync(cwd: string, agentDir?: string): Promise; export declare function handleGetAgentSettings(cwd: string, agentDir?: string): AgentSettings; /** Async relay-path twin of {@link handleGetAgentSettings}. */ export declare function handleGetAgentSettingsAsync(cwd: string, agentDir?: string): Promise; /** * Persist a partial update to the `agent` namespace in the **global** * `settings.json` (per-machine, matching the existing memory-settings * behaviour). Project-level overrides are read-only from the REST API. * * Only boolean values are accepted for the two known keys; anything else * is a `400 BadRequestError`. */ export declare function handlePutAgentSettings(cwd: string, body: PutAgentSettingsInput, agentDir?: string): PutAgentSettingsOutput; /** Async relay-path twin of {@link handlePutAgentSettings}. */ export declare function handlePutAgentSettingsAsync(cwd: string, body: PutAgentSettingsInput, agentDir?: string): Promise; export interface AgentInfo { name: string; description: string; mode: string; source: string; } export declare function handleListAgents(cwd: string, agentDir?: string, teamId?: string): { agents: AgentInfo[]; }; //# sourceMappingURL=agent-settings.d.ts.map