Merge pull request #2719 from QwenLM/feat/npm-extension-installation

feat(extension): Add npm registry support for extension installation
This commit is contained in:
tanzhenxin 2026-04-01 16:18:17 +08:00 committed by GitHub
commit 2eb2f4e319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 924 additions and 12 deletions

View file

@ -228,9 +228,10 @@ export type ExtensionOriginSource = 'QwenCode' | 'Claude' | 'Gemini';
export interface ExtensionInstallMetadata {
source: string;
type: 'git' | 'local' | 'link' | 'github-release';
type: 'git' | 'local' | 'link' | 'github-release' | 'npm';
originSource?: ExtensionOriginSource;
releaseTag?: string; // Only present for github-release installs.
releaseTag?: string; // Only present for github-release and npm installs.
registryUrl?: string; // Only present for npm installs.
ref?: string;
autoUpdate?: boolean;
allowPreRelease?: boolean;