import { Button } from "../../../../../base/browser/ui/button/button.js"; import { CancellationToken } from "../../../../../base/common/cancellation.js"; import { Disposable } from "../../../../../base/common/lifecycle.js"; import { IRequestService } from "../../../../../platform/request/common/request.service.js"; import { AgentPluginItemKind, IAgentPluginItem } from "../agentPluginEditor/agentPluginItems.js"; import { IPluginInstallService } from "../../common/plugins/pluginInstallService.service.js"; import { ICustomizationMarketplaceInstallationSnapshot } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/customizationMarketplaceInstallService"; import { ICustomizationMarketplaceInstallService } from "../../common/customizationMarketplaceInstallService.service.js"; import { ILabelService } from "../../../../../platform/label/common/label.service.js"; import { IClipboardService } from "../../../../../platform/clipboard/common/clipboardService.service.js"; import { IOpenerService } from "../../../../../platform/opener/common/opener.service.js"; import { IAgentPlugin } from "../../common/plugins/agentPluginService.js"; import { IAgentPluginService } from "../../common/plugins/agentPluginService.service.js"; import { INotificationService } from "../../../../../platform/notification/common/notification.service.js"; import { URI } from "../../../../../base/common/uri.js"; import { AICustomizationManagementSection } from "../../common/aiCustomizationWorkspaceService.js"; import { IFileService } from "../../../../../platform/files/common/files.service.js"; import { IMarkdownRendererService } from "../../../../../platform/markdown/browser/markdownRenderer.service.js"; import { IContextMenuService } from "../../../../../platform/contextview/browser/contextView.service.js"; import { ICommandService } from "../../../../../platform/commands/common/commands.service.js"; import { IHoverService } from "../../../../../platform/hover/browser/hover.service.js"; import { IAgentPluginRepositoryService } from "../../common/plugins/agentPluginRepositoryService.service.js"; import { IPathService } from "../../../../services/path/common/pathService.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; export interface IPluginReadme { readonly content: string; readonly baseUri: URI; } export declare class PluginReadmeRenderGuard { private generation; begin(): number; isCurrent(generation: number): boolean; } export declare function loadPluginReadme(item: IAgentPluginItem, fileService: Pick, requestService: Pick): Promise; export declare function waitForInstalledPlugin(agentPluginService: Pick, expectedUri: URI, token: CancellationToken): Promise; export declare function resolvePluginSkillUri(reference: URI, skills: readonly { readonly uri: URI; }[]): URI | undefined; export declare function resolveInstalledPluginSkillLink(item: IAgentPluginItem, link: string): URI | undefined; /** * Compact detail view for an agent plugin inside the AI Customizations management editor's * split-pane host. Renders identity, provenance, contribution summary, and description while * keeping management actions in the list/context-menu surfaces. */ export declare class EmbeddedAgentPluginDetail extends Disposable { private readonly labelService; private readonly clipboardService; private readonly openerService; private readonly agentPluginService; private readonly pluginInstallService; private readonly notificationService; private readonly contextMenuService; private readonly commandService; private readonly hoverService; private readonly fileService; private readonly requestService; private readonly markdownRendererService; private readonly agentPluginRepositoryService; private readonly pathService; private readonly logService; private readonly marketplaceInstallService; private readonly _onDidRequestOpenSkill; readonly onDidRequestOpenSkill: import("../../../../../base/common/event.js").Event; private readonly _onDidRequestOpenAgent; readonly onDidRequestOpenAgent: import("../../../../../base/common/event.js").Event; private readonly _onDidRequestOpenSection; readonly onDidRequestOpenSection: import("../../../../../base/common/event.js").Event; private readonly _onDidUninstall; readonly onDidUninstall: import("../../../../../base/common/event.js").Event; private readonly _onDidChangeContent; readonly onDidChangeContent: import("../../../../../base/common/event.js").Event; private readonly root; private readonly headerEl; private readonly leadingSlotEl; private readonly nameRowEl; private readonly nameEl; private readonly statusBadgeEl; private readonly titleActionsEl; private readonly descriptionEl; private readonly sourceFactsEl; private readonly factsEl; private readonly contributionsEl; private readonly contributionsListEl; private readonly readmeEl; private readonly readmeContentEl; private readonly emptyEl; private readonly renderDisposables; private readonly copyStateReset; private readonly narrowLayoutUpdate; private readonly inputStateAutorun; private readonly installWaitDisposables; private readonly contributionLoadDisposables; private readonly pluginRepositoryDisposables; private current; private primaryActionButton; private narrowLayout; private readonly readmeRenderGuard; private updateEnablementAction; private pluginVersionRowEl; private pluginVersionValueEl; private pluginRepositoryRowEl; private pluginRepositoryValueEl; private renderedPolicyEnablement; private renderedRepository; private readonly factHoverGroupId; constructor(parent: HTMLElement, labelService: ILabelService, clipboardService: IClipboardService, openerService: IOpenerService, agentPluginService: IAgentPluginService, pluginInstallService: IPluginInstallService, notificationService: INotificationService, contextMenuService: IContextMenuService, commandService: ICommandService, hoverService: IHoverService, fileService: IFileService, requestService: IRequestService, markdownRendererService: IMarkdownRendererService, agentPluginRepositoryService: IAgentPluginRepositoryService, pathService: IPathService, logService: ILogService, marketplaceInstallService: ICustomizationMarketplaceInstallService); private updateNarrowLayout; get element(): HTMLElement; get headerElement(): HTMLElement; /** * Header slot reserved for leading chrome (e.g. a back button). * Prefer this over reaching into the header element directly. */ get leadingSlot(): HTMLElement; /** The header's primary (non-secondary) action, if one is shown. */ get primaryAction(): Button | undefined; setInput(item: IAgentPluginItem): void; clearInput(): void; private renderItem; private updateInstalledState; private renderTitleActions; private renderEnablementSplitButton; private toInstalledPluginItem; private renderMarketplaceLink; private renderFacts; private appendPluginVersionFact; private updatePluginVersionFact; private appendPluginRepositoryFact; private updatePluginRepositoryFact; private appendFact; private createLocationValue; private renderReadme; dispose(): void; private renderContributions; private loadMarketplaceContributions; private renderContributionEntries; } interface IPluginContributionEntry { readonly kind: string; readonly label: string; readonly items: readonly { name: string; description?: string; uri?: URI; }[]; } export declare function loadMarketplacePluginContributionEntries(item: Extract, repositoryService: Pick, fileService: IFileService, pathService: { userHome(): Promise | URI; }, logService: Pick, token: CancellationToken): Promise; export declare function getPluginVersion(item: IAgentPluginItem): string | undefined; export declare function getPluginRepository(item: IAgentPluginItem, installations: Pick): URI | undefined; export declare function getPluginSourceUri(item: IAgentPluginItem, installations: Pick): URI | undefined; export {};