import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { Lazy } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lazy"; import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service"; import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; import { CountTokensCallback, IPreparedToolInvocation, IToolData, IToolImpl, IToolInvocation, IToolResult, ToolProgress } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService"; import { IChatAgentImplementation, IChatAgentRequest, IChatAgentResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents"; import { ChatEntitlementContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService"; import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service"; import { IChatProgress } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService"; import { ChatAgentLocation, ChatModeKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants"; import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service"; import { CodeActionList, Command, NewSymbolName, NewSymbolNameTriggerKind } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages"; import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model"; import { IRange, Range } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range"; import { Selection } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/selection"; import { IMarker } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers"; import { IMarkerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service"; import { ChatSetupController } from "./chatSetupController.js"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service"; import { IOutputService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/output/common/output.service"; import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service"; export declare class SetupAgent extends Disposable implements IChatAgentImplementation { private readonly context; private readonly controller; private readonly location; private readonly instantiationService; private readonly logService; private readonly telemetryService; private readonly environmentService; private readonly workspaceTrustManagementService; private readonly chatEntitlementService; private readonly viewsService; private readonly contextKeyService; private readonly outputService; private readonly extensionsWorkbenchService; private readonly commandService; static registerDefaultAgents(instantiationService: IInstantiationService, location: ChatAgentLocation, mode: ChatModeKind, context: ChatEntitlementContext, controller: Lazy): { agent: SetupAgent; disposable: IDisposable; }; static registerBuiltInAgents(instantiationService: IInstantiationService, context: ChatEntitlementContext, controller: Lazy): IDisposable; private static doRegisterAgent; private static readonly SETUP_NEEDED_MESSAGE; private static readonly TRUST_NEEDED_MESSAGE; private static readonly CHAT_RETRY_COMMAND_ID; private static readonly CHAT_SHOW_OUTPUT_COMMAND_ID; private readonly _onUnresolvableError; readonly onUnresolvableError: Event; private readonly pendingForwardedRequests; constructor(context: ChatEntitlementContext, controller: Lazy, location: ChatAgentLocation, instantiationService: IInstantiationService, logService: ILogService, telemetryService: ITelemetryService, environmentService: IWorkbenchEnvironmentService, workspaceTrustManagementService: IWorkspaceTrustManagementService, chatEntitlementService: IChatEntitlementService, viewsService: IViewsService, contextKeyService: IContextKeyService, outputService: IOutputService, extensionsWorkbenchService: IExtensionsWorkbenchService, commandService: ICommandService); private registerCommands; invoke(request: IChatAgentRequest, progress: (parts: IChatProgress[]) => void): Promise; private doInvoke; private doInvokeWithoutSetup; private forwardRequestToChat; private doForwardRequestToChat; private doForwardRequestToChatWhenReady; private whenPanelAgentHasGuidance; private whenLanguageModelReady; private whenToolsModelReady; private whenAgentReady; private whenAgentActivated; private computeDiagnosticInfo; private doInvokeWithSetup; private replaceAgentInRequestModel; private replaceToolInRequestModel; } export declare class SetupTool implements IToolImpl { static registerTool(instantiationService: IInstantiationService, toolData: IToolData): IDisposable; invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, progress: ToolProgress, token: CancellationToken): Promise; prepareToolInvocation?(parameters: unknown, token: CancellationToken): Promise; } export declare class AINewSymbolNamesProvider { private readonly context; private readonly controller; private readonly instantiationService; private readonly chatEntitlementService; static registerProvider(instantiationService: IInstantiationService, context: ChatEntitlementContext, controller: Lazy): IDisposable; constructor(context: ChatEntitlementContext, controller: Lazy, instantiationService: IInstantiationService, chatEntitlementService: IChatEntitlementService); provideNewSymbolNames(model: ITextModel, range: IRange, triggerKind: NewSymbolNameTriggerKind, token: CancellationToken): Promise; } export declare class ChatCodeActionsProvider { private readonly markerService; static registerProvider(instantiationService: IInstantiationService): IDisposable; constructor(markerService: IMarkerService); provideCodeActions(model: ITextModel, range: Range | Selection): Promise; } export declare class AICodeActionsHelper { static warningOrErrorMarkersAtRange(markerService: IMarkerService, resource: URI, range: Range | Selection): IMarker[]; static modify(range: Range): Command; static generate(range: Range): Command; private static rangeToSelection; static explainMarkers(markers: IMarker[]): Command; static fixMarkers(markers: IMarker[], range: Range): Command; }