mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-16 17:36:07 +00:00
feat: add new version notification dialog and version comparison logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user