feat: add new version notification dialog and version comparison logic

This commit is contained in:
Junyan Qin
2025-12-24 12:43:52 +08:00
parent a8594b76cd
commit a9a262eaae
7 changed files with 207 additions and 2 deletions
@@ -84,4 +84,18 @@ export class CloudServiceClient extends BaseHttpClient {
public getPluginMarketplaceURL(author: string, name: string): string {
return `https://space.langbot.app/market/${author}/${name}`;
}
public getLangBotReleases(): Promise<GitHubRelease[]> {
return this.get<GitHubRelease[]>('/api/v1/dist/info/releases');
}
}
export interface GitHubRelease {
tag_name: string;
name: string;
body: string;
html_url: string;
published_at: string;
prerelease: boolean;
draft: boolean;
}