import { Disposable } from "../../../../../base/common/lifecycle.js"; import { RawContextKey } from "../../../../../platform/contextkey/common/contextkey.js"; import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js"; import { IWorkbenchContribution } from "../../../../../workbench/common/contributions.js"; import { ISessionsProvidersService } from "../../../../services/sessions/browser/sessionsProvidersService.service.js"; import { ISessionsService } from "../../../../services/sessions/browser/sessionsService.service.js"; /** * True when the active session (in the Sessions window) is provided by an * agent-host sessions provider (local or remote). Used to gate the built-in * skill toolbar buttons and to suppress the Copilot CLI extension's own * buttons for the same sessions. */ export declare const IsAgentHostSession: RawContextKey; /** * Binds {@link IsAgentHostSession} to the global context key service based on * the active session's provider — true iff the provider is a * {@link BaseAgentHostSessionsProvider}. */ export declare class IsAgentHostSessionContextContribution extends Disposable implements IWorkbenchContribution { static readonly ID = "sessions.contrib.agentHost.isAgentHostSession"; constructor(contextKeyService: IContextKeyService, sessionsService: ISessionsService, sessionsProvidersService: ISessionsProvidersService); } /** * The `update-pr` button gets the same outgoing-changes count badge styling * as the Copilot CLI extension's Sync PR button. Exported so the changes * view can pick it out of the toolbar without re-deriving the ID. */ export declare const AGENT_HOST_SKILL_BUTTON_UPDATE_PR_ID = "workbench.action.agentSessions.runSkill.updatePR"; /** * True for any {@link Action2#id} created by this module. Used by the changes * view to apply primary-button styling. */ export declare function isAgentHostSkillButtonId(actionId: string): boolean;