import { Disposable, DisposableStore, IDisposable, IReference } from "../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../base/common/observable.js"; import { URI } from "../../../../../base/common/uri.js"; import { IAgentConnection } from "../../../../../platform/agentHost/common/agentService.js"; import { LocalArtifactIntegrationHost } from "../../../../../platform/artifactIntegrations/browser/localArtifactIntegrationHost.js"; import { IArtifactIntegrationAccess, IArtifactModel } from "../../../../../platform/artifactIntegrations/common/artifactIntegration.js"; import { IArtifactIntegrationRegistry } from "../../../../../platform/artifactIntegrations/common/artifactIntegrationRegistry.service.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js"; import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js"; import { IStorageService } from "../../../../../platform/storage/common/storage.service.js"; import { IUserDataProfileService } from "../../../../../workbench/services/userDataProfile/common/userDataProfile.service.js"; import { IChatEntitlementService } from "../../../../../workbench/services/chat/common/chatEntitlementService.service.js"; import { IExtensionService } from "../../../../../workbench/services/extensions/common/extensions.service.js"; import { IRemoteAgentHostConnectionCustomizationService } from "../../../../../workbench/contrib/chat/browser/remoteAgentHost/remoteAgentHostConnectionCustomization.service.js"; export interface IArtifactWorkspaceConfigurationContext { readonly chat: string; readonly workingDirectory: string; readonly resource: URI; } export type ArtifactWorkspaceConfigurationSynchronizer = (store: DisposableStore, connection: IObservable, isHostSelected: () => boolean, session: string, artifactId: string, workspace: IObservable, model: IArtifactModel) => void; /** Adapts advertised chat identifiers without changing execution, history cursors, or run ownership. */ export declare function mapArtifactModelChats(model: IArtifactModel, chats: IObservable, isEqual: (first: URI, second: URI) => boolean): IArtifactModel; /** * Narrows the integrations this client serves to what the host's agent tools need: the host can observe artifacts and * run their native actions, but cannot start a sign-in, post automation notices, or submit prompts through this client. */ export declare function createHostFacingArtifactAccess(access: IArtifactIntegrationAccess): IArtifactIntegrationAccess; interface IClientArtifactHost extends IDisposable { readonly client: IArtifactIntegrationAccess; } export declare class AgentHostArtifactIntegrations extends Disposable { private readonly synchronizeWorkspaceConfiguration; private readonly registry; private readonly logService; private readonly storageService; private readonly extensionService; private readonly connection; private readonly client; private readonly bridge; private readonly fallback; private readonly permitted; private current; private selected; private reason; private scope; private selectionKey; constructor(targetHost: string, remoteAddress: string | undefined, createLocalHost: ((...args: ConstructorParameters) => IClientArtifactHost) | undefined, synchronizeWorkspaceConfiguration: ArtifactWorkspaceConfigurationSynchronizer | undefined, registry: IArtifactIntegrationRegistry, logService: ILogService, storageService: IStorageService, profileService: IUserDataProfileService, entitlementService: IChatEntitlementService, instantiationService: IInstantiationService, connectionCustomizations: IRemoteAgentHostConnectionCustomizationService, extensionService: IExtensionService, configurationService: IConfigurationService); setConnection(connection: IAgentConnection | undefined): void; /** Lets the host's agents use integrations that this client coordinates, such as extension integrations. */ private serveClientIntegrations; acquireArtifact(session: string, artifactId: string, workspace?: IObservable): Promise>; } export {};