export declare const COPILOT_HYDRA_FUSION_MODEL_ID = "hydrafusion"; /** The runtime's HydraFusion Max model, which it only offers with HydraFusion v2 (`HYDRAFUSION_PLAN_V2`). */ export declare const COPILOT_HYDRA_FUSION_MAX_MODEL_ID = "hydrafusion-max"; /** The runtime's HydraFusion routing models and their display names, HydraFusion before HydraFusion Max. */ export declare const COPILOT_HYDRA_FUSION_MODEL_NAMES: ReadonlyMap; /** Whether the model id names one of the runtime's HydraFusion routing models. */ export declare function isCopilotHydraFusionModelId(modelId: string | undefined): boolean; /** * Root-config keys consumed exclusively by the Copilot CLI provider * (`CopilotSessionLauncher` / `CopilotAgent`) — kept out of the * provider-agnostic `agentHostCustomizationConfigSchema`. */ export declare enum CopilotCliConfigKey { /** Use Agent Host's custom terminal tool instead of the SDK's default. Off by default. */ EnableCustomTerminalTool = "enableCustomTerminalTool", /** Apply the shell init script a client published for a session to SDK shell commands. Off by default. */ EnableShellInitScript = "enableShellInitScript", /** Enable runtime image generation and editing. The workbench mirrors it from the selected image model. */ ImageGeneration = "imageGeneration", /** Request a visible AI label on generated and edited images. */ ImageGenerationWatermark = "imageGenerationWatermark", /** Log level passed to the Copilot SDK client. */ CopilotSdkLogLevel = "copilotSdkLogLevel", /** Explicit local Copilot runtime executable path. Empty uses the bundled runtime. */ RuntimePath = "runtimePath", /** Enable the rubber duck critic subagent. */ RubberDuck = "rubberDuck", /** Enable the provider-native Claude Advisor tool. Off by default. */ ClaudeAdvisor = "claudeAdvisor", /** Offer the runtime's `search_code_subagent` tool to Copilot SDK sessions. Off by default. */ SearchSubagent = "searchSubagent", /** CAPI model override for the runtime's search subagent. Empty uses the runtime default. */ SearchSubagentModel = "searchSubagentModel", /** Offer the runtime's built-in Explore agent. On by default. */ ExploreAgent = "exploreAgent", /** Use the runtime's execution subagent instead of the extension-native client tool. */ ExecutionSubagent = "executionSubagent", /** Runtime model ID for the execution subagent; empty inherits the session model. */ ExecutionSubagentModel = "executionSubagentModel", /** Whether the workbench enablement value is controlled by its configuration default. */ ExecutionSubagentDefaultControlled = "executionSubagentDefaultControlled", /** Whether the workbench model value is controlled by its configuration default. */ ExecutionSubagentModelDefaultControlled = "executionSubagentModelDefaultControlled", /** Enable the SDK cross-session store and Chronicle commands. */ LocalIndexEnabled = "localIndexEnabled", /** Apply Opus 4.8-tuned system-prompt overrides on Opus 4.8 models. Off by default. */ Opus48Prompt = "opus48Prompt", /** Send the system prompt in the runtime's stability-ordered prompt-cache layout. Off by default. */ StabilityOrderedPrompt = "stabilityOrderedPrompt", /** Enable runtime tool search (deferred-tool loading) for Copilot SDK sessions. On by default. */ ToolSearchEnabled = "toolSearchEnabled", /** Minimum tool count before MCP/external tools are deferred behind tool search. 0 = always defer. */ ToolSearchDeferThreshold = "toolSearchDeferThreshold", /** Enable the experimental HydraFusion synthetic model. Off by default. */ HydraFusion = "hydraFusion", /** Use HydraFusion v2. Off by default; requires {@link HydraFusion}. */ HydraFusionV2 = "hydraFusionV2", /** Ask CAPI to keep a conversation's HydraFusion root model across turns. Set by the `'multiRoot'` HydraFusion setting value; requires {@link HydraFusionV2}. */ HydraFusionMultiRoot = "hydraFusionMultiRoot", /** Launch the runtime with `DYNAMIC_AUTO_TIERS`, so Auto's tiers (including HydraFusion ones) come from the service. Startup key; off by default. */ DynamicAutoTiers = "dynamicAutoTiers", /** Enable Copilot Memory for Copilot SDK sessions. Off by default. */ Memory = "memory", /** Store Copilot Memory in the repository instead of GitHub's cloud memory service. Off by default; requires {@link Memory}. */ LocalMemory = "localMemory", /** Character budget for skill descriptions included in the Copilot SDK system message. */ SkillCharBudget = "skillCharBudget", /** Override Auto's "Optimize for" preference. */ AutoModeTierOverride = "autoModeTierOverride", /** Per-model capability overrides (family aliases) keyed by model id. */ ModelCapabilityOverrides = "modelCapabilityOverrides", /** Opt-in for on-device models (`chat.copilot.localModel.enabled`). Startup key; off by default. */ LocalModelEnabled = "localModelEnabled", /** Whether Auto may route to the active on-device model. Read live at dispatch. */ LocalModelUseInAuto = "localModelUseInAuto", /** Absolute path to the user's `llama-server`; empty means there is no llama.cpp to run. */ LocalModelLlamaServerPath = "localModelLlamaServerPath", /** Account-dependent part of the on-device gate, computed by the workbench: preview features allowed, signed in, AI features enabled. */ LocalModelAccountGate = "localModelAccountGate", /** Whether Copilot adds its `Co-authored-by` trailer to the commits it creates. On by default. */ IncludeCoAuthoredBy = "includeCoAuthoredBy" } export declare const CopilotCliVSCodeAssignmentContextKey = "copilotCliVSCodeAssignmentContext"; export declare const AgentHostCustomTerminalToolEnabledSettingId = "chat.agentHost.customTerminalTool.enabled"; /** Enable VS Code's generated init script for the SDK built-in shell tool. */ export declare const AgentHostShellToolInitScriptEnabledSettingId = "chat.agentHost.shellTool.initScript.enabled"; export declare const AgentHostCopilotSdkLogLevelSettingId = "chat.agentHost.copilotSdk.logLevel"; export declare const AgentHostCopilotRuntimePathSettingId = "chat.agentHost.copilot.runtimePath"; export declare const CopilotClaudeAdvisorEnabledSettingId = "chat.copilot.claudeAdvisor.enabled"; export declare const CopilotSearchSubagentEnabledSettingId = "chat.copilot.searchSubagent.enabled"; /** Selects the image model offered to Copilot agents, or turns image generation off. */ export declare const CopilotImageGenerationModelSettingId = "chat.copilot.imageGeneration.model"; /** Legacy boolean setting, migrated to {@link CopilotImageGenerationModelSettingId}. */ export declare const CopilotImageGenerationEnabledSettingId = "chat.copilot.imageGeneration.enabled"; export declare const CopilotImageGenerationWatermarkSettingId = "chat.copilot.imageGeneration.watermark"; export declare const CopilotSearchSubagentModelSettingId = "chat.copilot.searchSubagent.model"; export declare const CopilotExploreAgentEnabledSettingId = "chat.copilot.exploreAgent.enabled"; export declare const AgentHostCopilotExecutionSubagentEnabledSettingId = "chat.agentHost.copilot.executionSubagent.enabled"; export declare const AgentHostCopilotExecutionSubagentModelSettingId = "chat.agentHost.copilot.executionSubagent.model"; export declare const DEFAULT_COPILOT_EXECUTION_SUBAGENT_MODEL = "gpt-5.6-luna"; export declare const CopilotLocalIndexEnabledSettingId = "github.copilot.chat.localIndex.enabled"; export declare const AgentHostOpus48PromptEnabledSettingId = "chat.agentHost.opus48Prompt.enabled"; export declare const CopilotStabilityOrderedPromptEnabledSettingId = "chat.copilot.stabilityOrderedPrompt.enabled"; export declare const AgentHostToolSearchEnabledSettingId = "chat.agentHost.copilot.toolSearch.enabled"; export declare const AgentHostToolSearchDeferThresholdSettingId = "chat.agentHost.copilot.toolSearch.deferThreshold"; export declare const AgentHostHydraFusionEnabledSettingId = "chat.copilot.hydraFusion.enabled"; /** * `true` enables HydraFusion (v1), `'v2'` enables HydraFusion v2, and `'multiRoot'` enables v2 plus the * sticky-root hint that lets CAPI keep a conversation's root model across turns. Experiments assign any value. */ export type AgentHostHydraFusionSettingValue = boolean | "v2" | "multiRoot"; export declare const AgentHostDynamicAutoTiersEnabledSettingId = "chat.copilot.dynamicAutoTiers.enabled"; export declare const AgentHostCopilotMemoryEnabledSettingId = "chat.copilot.memory.enabled"; export declare const AgentHostCopilotLocalMemoryEnabledSettingId = "chat.copilot.memory.local.enabled"; export declare const CopilotSkillCharBudgetSettingId = "chat.copilot.skillCharBudget"; export declare const CopilotAutoModeTierOverrideSettingId = "github.copilot.chat.autoModeTierOverride"; export declare const AgentHostCopilotModelCapabilityOverridesSettingId = "chat.agentHost.copilot.modelCapabilityOverrides"; export declare const AgentHostCopilotIncludeCoAuthoredBySettingId = "chat.agentHost.copilot.includeCoAuthoredBy"; export declare const copilotSdkLogLevelSettingValues: readonly [ "info", "trace" ]; export type CopilotSdkLogLevelSetting = typeof copilotSdkLogLevelSettingValues[number]; export declare const DEFAULT_COPILOT_RUBBER_DUCK_ENABLED = true; export declare const DEFAULT_COPILOT_SKILL_CHAR_BUDGET = 30000; /** Floors valid skill character budgets and returns the default for invalid values. */ export declare function normalizeSkillCharBudget(value: number | undefined): number; /** Floors valid tool-search thresholds and returns the default for invalid values. */ export declare function normalizeToolSearchDeferThreshold(value: number | undefined): number; /** Per-model capability override; the agent-host equivalent of the extension's `IModelCapabilityOverride`. */ export interface ICopilotCliModelCapabilityOverride { /** Family alias (e.g. `"claude-opus-4.8"`) for prompt and tool-capability routing. */ readonly family?: string; /** Wins over the model picker's effort level; unrecognized values are ignored. */ readonly reasoningEffort?: string; /** SDK tool allowlist (pattern syntax, e.g. `builtin:*`, `mcp:`, or bare names). */ readonly availableTools?: readonly string[]; /** SDK tool denylist; takes precedence over {@link availableTools}. */ readonly excludedTools?: readonly string[]; /** Deep-merged over the runtime's resolved defaults (e.g. `supports.vision`). */ readonly modelCapabilities?: Record; /** Inline YAML with system-prompt and tool-description overrides. */ readonly promptOverrideString?: string; /** Path to a YAML file with system-prompt and tool-description overrides. */ readonly promptOverrideFile?: string; } /** Map of model id → capability override. */ export type CopilotCliModelCapabilityOverrides = Record; /** Wildcard entry key matching every model id; a specific model-id entry wins field-by-field. */ export declare const MODEL_CAPABILITY_OVERRIDE_WILDCARD = "*"; /** * Resolves one field from the specific entry and then the wildcard. Invalid * specific values are ignored rather than masking a usable wildcard default. */ export declare function resolveModelCapabilityOverrideField(overrides: CopilotCliModelCapabilityOverrides | undefined, modelId: string | undefined, field: K, isUsable: (value: unknown) => value is T, onInvalid?: (value: unknown) => void): T | undefined; export declare const copilotCliConfigSchema: import("./agentHostSchema.js").ISchema<{ imageGeneration: import("./agentHostSchema.js").ISchemaProperty; imageGenerationWatermark: import("./agentHostSchema.js").ISchemaProperty; enableCustomTerminalTool: import("./agentHostSchema.js").ISchemaProperty; enableShellInitScript: import("./agentHostSchema.js").ISchemaProperty; copilotSdkLogLevel: import("./agentHostSchema.js").ISchemaProperty<"info" | "trace">; runtimePath: import("./agentHostSchema.js").ISchemaProperty; rubberDuck: import("./agentHostSchema.js").ISchemaProperty; claudeAdvisor: import("./agentHostSchema.js").ISchemaProperty; searchSubagent: import("./agentHostSchema.js").ISchemaProperty; searchSubagentModel: import("./agentHostSchema.js").ISchemaProperty; exploreAgent: import("./agentHostSchema.js").ISchemaProperty; executionSubagent: import("./agentHostSchema.js").ISchemaProperty; executionSubagentModel: import("./agentHostSchema.js").ISchemaProperty; executionSubagentDefaultControlled: import("./agentHostSchema.js").ISchemaProperty; executionSubagentModelDefaultControlled: import("./agentHostSchema.js").ISchemaProperty; localIndexEnabled: import("./agentHostSchema.js").ISchemaProperty; opus48Prompt: import("./agentHostSchema.js").ISchemaProperty; stabilityOrderedPrompt: import("./agentHostSchema.js").ISchemaProperty; toolSearchEnabled: import("./agentHostSchema.js").ISchemaProperty; toolSearchDeferThreshold: import("./agentHostSchema.js").ISchemaProperty; hydraFusion: import("./agentHostSchema.js").ISchemaProperty; hydraFusionV2: import("./agentHostSchema.js").ISchemaProperty; hydraFusionMultiRoot: import("./agentHostSchema.js").ISchemaProperty; dynamicAutoTiers: import("./agentHostSchema.js").ISchemaProperty; memory: import("./agentHostSchema.js").ISchemaProperty; localMemory: import("./agentHostSchema.js").ISchemaProperty; skillCharBudget: import("./agentHostSchema.js").ISchemaProperty; autoModeTierOverride: import("./agentHostSchema.js").ISchemaProperty; modelCapabilityOverrides: import("./agentHostSchema.js").ISchemaProperty; localModelEnabled: import("./agentHostSchema.js").ISchemaProperty; localModelUseInAuto: import("./agentHostSchema.js").ISchemaProperty; localModelLlamaServerPath: import("./agentHostSchema.js").ISchemaProperty; localModelAccountGate: import("./agentHostSchema.js").ISchemaProperty; includeCoAuthoredBy: import("./agentHostSchema.js").ISchemaProperty; }>; /** Returns a usable model-family alias, or `undefined` for malformed values. */ export declare function normalizeModelFamilyAlias(value: unknown): string | undefined;