import { IAction } from "../../../../../../base/common/actions.js"; import { IDisposable } from "../../../../../../base/common/lifecycle.js"; import { ThemeIcon } from "../../../../../../base/common/themables.js"; import { URI } from "../../../../../../base/common/uri.js"; import { MenuItemAction } from "../../../../../../platform/actions/common/actions.js"; import { IActionWidgetService } from "../../../../../../platform/actionWidget/browser/actionWidget.service.js"; import { IActionWidgetDropdownAction } from "../../../../../../platform/actionWidget/browser/actionWidgetDropdown.js"; import { ICommandService } from "../../../../../../platform/commands/common/commands.service.js"; import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js"; import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js"; import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js"; import { IOpenerService } from "../../../../../../platform/opener/common/opener.service.js"; import { IStorageService } from "../../../../../../platform/storage/common/storage.service.js"; import { ITelemetryService } from "../../../../../../platform/telemetry/common/telemetry.service.js"; import { IWorkspaceContextService } from "../../../../../../platform/workspace/common/workspace.service.js"; import { IAgentHostEnablementService } from "../../../../../../platform/agentHost/common/agentHostEnablementService.service.js"; import { IManagedSettingsService } from "../../../../../../platform/policy/common/copilotManagedSettings.service.js"; import { IChatEntitlementService } from "../../../../../services/chat/common/chatEntitlementService.service.js"; import { IAgentSdkSetupService } from "../../../../../services/agentHost/browser/agentSdkSetupService.service.js"; import { IChatSessionsService } from "../../../common/chatSessionsService.service.js"; import { ILanguageModelsService } from "../../../common/languageModels.service.js"; import { AgentSessionTarget } from "../../agentSessions/agentSessions.js"; import { SessionTypeAvailability } from "../../agentSessions/sessionTypeAvailability.js"; import { IChatHarnessSwitchFeedbackSurveyService } from "../../feedbackSurvey/chatHarnessSwitchFeedbackSurveyService.service.js"; import { ChatInputPickerActionViewItem, IChatInputPickerOptions } from "./chatInputPickerActionItem.js"; import { ISessionTypePickerDelegate } from "../../chat.js"; export interface ISessionTypeItem { type: AgentSessionTarget; label: string; hoverDescription: string; commandId: string; } export declare function createSessionTypePickerAction(action: IAction, sessionTypeItem: ISessionTypeItem, currentType: AgentSessionTarget, availability: SessionTypeAvailability, enabled: boolean, category: IActionWidgetDropdownAction["category"], sourceDescription: string | undefined, icon: ThemeIcon, run: () => void): IActionWidgetDropdownAction; /** * Returns picker availability for every chat surface. */ export declare function getConfiguredSessionTypePickerAvailability(type: AgentSessionTarget, configurationService: IConfigurationService, chatSessionsService: IChatSessionsService, chatEntitlementService: IChatEntitlementService, languageModelsService: ILanguageModelsService, agentSdkSetupService: IAgentSdkSetupService, managedSettingsService: IManagedSettingsService): SessionTypeAvailability; /** * Action view item for selecting a session target in the chat interface. * This picker allows switching between different chat session types for new/empty sessions. */ export declare class SessionTypePickerActionItem extends ChatInputPickerActionViewItem { protected readonly chatSessionPosition: "sidebar" | "editor"; protected readonly delegate: ISessionTypePickerDelegate; private readonly inputUri; protected readonly keybindingService: IKeybindingService; protected readonly chatSessionsService: IChatSessionsService; protected readonly commandService: ICommandService; protected readonly openerService: IOpenerService; protected readonly telemetryService: ITelemetryService; protected readonly chatEntitlementService: IChatEntitlementService; protected readonly languageModelsService: ILanguageModelsService; protected readonly configurationService: IConfigurationService; protected readonly storageService: IStorageService; private readonly workspaceContextService; private readonly agentHostEnablementService; protected readonly agentSdkSetupService: IAgentSdkSetupService; private readonly harnessSwitchFeedbackSurveyService; private readonly managedSettingsService; private _sessionTypeItems; protected readonly _isSessionsWindow: boolean; constructor(action: MenuItemAction, chatSessionPosition: "sidebar" | "editor", delegate: ISessionTypePickerDelegate, pickerOptions: IChatInputPickerOptions, inputUri: URI, actionWidgetService: IActionWidgetService, keybindingService: IKeybindingService, contextKeyService: IContextKeyService, chatSessionsService: IChatSessionsService, commandService: ICommandService, openerService: IOpenerService, telemetryService: ITelemetryService, chatEntitlementService: IChatEntitlementService, languageModelsService: ILanguageModelsService, configurationService: IConfigurationService, storageService: IStorageService, workspaceContextService: IWorkspaceContextService, agentHostEnablementService: IAgentHostEnablementService, agentSdkSetupService: IAgentSdkSetupService, harnessSwitchFeedbackSurveyService: IChatHarnessSwitchFeedbackSurveyService, managedSettingsService: IManagedSettingsService); protected _run(sessionTypeItem: ISessionTypeItem): void; protected _reportCopilotHarnessTargetChanged(target: AgentSessionTarget): void; protected _promptForCopilotToLocalSwitch(previousTarget: AgentSessionTarget, target: AgentSessionTarget): void; protected _getSelectedSessionType(): AgentSessionTarget | undefined; protected _getAdditionalActions(): IActionWidgetDropdownAction[]; protected _getLearnMore(): IAction; private _updateAgentSessionItems; /** * The default session type for the picker when no session is yet active. * Defaults to Agent Host Copilot when the agent host is enabled, otherwise * {@link AgentSessionProviders.Local}. */ protected _getDefaultSessionType(): AgentSessionTarget; protected _isVisible(type: AgentSessionTarget): boolean; protected _isSessionTypeEnabled(type: AgentSessionTarget): boolean; protected _getSessionCategory(sessionTypeItem: ISessionTypeItem): { label: string; order: number; }; protected _getSessionDescription(_sessionTypeItem: ISessionTypeItem): string | undefined; protected _getSessionLabel(type: AgentSessionTarget): string; private _getSessionIcon; render(container: HTMLElement): void; protected updateEnabled(): void; protected renderLabel(element: HTMLElement): IDisposable | null; }