From df3e5f8ab1ff230c03d124dba8efe32447a439e1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 31 Jul 2026 07:07:49 +0000 Subject: [PATCH] chore: publish from main --- website/src/components/pages/PluginInstall.astro | 10 ++++++---- website/src/pages/extension/[id].astro | 1 + website/src/pages/plugin/[id].astro | 2 +- website/src/scripts/pages/extensions-render.ts | 6 +++--- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/website/src/components/pages/PluginInstall.astro b/website/src/components/pages/PluginInstall.astro index 12e4598c..8e367491 100644 --- a/website/src/components/pages/PluginInstall.astro +++ b/website/src/components/pages/PluginInstall.astro @@ -8,7 +8,7 @@ */ export interface PluginInstallProps { isExternal?: boolean; - /** awesome-copilot plugin id (internal installs). */ + /** awesome-copilot plugin id. */ pluginId?: string | null; /** Upstream marketplace source (owner/repo or git URL) for external installs. */ externalSource?: string | null; @@ -36,6 +36,11 @@ let insidersUrl: string | null = null; let ghappUrl: string | null = null; if (isExternal) { + if (pluginId) { + ghappUrl = `ghapp://plugins/install?source=${encodeURIComponent( + `${pluginId}@${MARKETPLACE}` + )}`; + } if (externalSource) { vscodeUrl = `vscode://chat-plugin/install?source=${encodeURIComponent( externalSource @@ -43,9 +48,6 @@ if (isExternal) { insidersUrl = `vscode-insiders://chat-plugin/install?source=${encodeURIComponent( externalSource )}`; - ghappUrl = `ghapp://plugins/marketplace/add?source=${encodeURIComponent( - externalSource - )}`; } } else if (pluginId) { const plugin = encodeURIComponent(pluginId); diff --git a/website/src/pages/extension/[id].astro b/website/src/pages/extension/[id].astro index 9b38d341..eecdeb05 100644 --- a/website/src/pages/extension/[id].astro +++ b/website/src/pages/extension/[id].astro @@ -264,6 +264,7 @@ if (!isExternal && item.ref) { diff --git a/website/src/scripts/pages/extensions-render.ts b/website/src/scripts/pages/extensions-render.ts index 0c7a5cfc..c0362f56 100644 --- a/website/src/scripts/pages/extensions-render.ts +++ b/website/src/scripts/pages/extensions-render.ts @@ -100,9 +100,9 @@ export function renderExtensionsHtml(items: RenderableExtension[]): string { const pluginId = item.pluginName || item.id; const ghappInstallUrl = item.external - ? externalSource - ? `ghapp://plugins/marketplace/add?source=${encodeURIComponent( - externalSource + ? pluginId + ? `ghapp://plugins/install?source=${encodeURIComponent( + `${pluginId}@awesome-copilot` )}` : "" : pluginId