feat: changelog.md release notes, v tags, plugin release notes and videos

This commit is contained in:
LukeGus committed 2026-10-06 18:13:39 -05:00
1 parent b9dd3488a5
commit 9bc2be721b
45 files changed
+1462 -816

No files matched your search

+15
View File
@@ -1,5 +1,9 @@
import { rbacApi } from "@/main-axios";
import type { ChoiceAdjustment, PluginChoice } from "@/types/plugin-onboarding";
import type {
ChangelogRelease,
ReleaseNotes,
} from "@termix-ssh/plugin-sdk/changelog";
export type { PluginChoice };
@@ -246,6 +250,8 @@ export interface PluginSummary {
description?: string;
author?: string;
repository?: string;
/** A YouTube video id from the manifest. Admins only. */
videoId?: string;
signedBy?: string | null;
}
@@ -267,6 +273,7 @@ export interface RegistryPluginVersion {
capabilities: string[];
publishedAt?: string;
releaseNotesUrl?: string;
notes?: ReleaseNotes;
size: number;
}
@@ -278,6 +285,7 @@ export interface RegistryPluginEntry {
category: string;
repository?: string;
icon?: string;
videoId?: string;
versions: RegistryPluginVersion[];
latestVersion: string | null;
installed: boolean;
@@ -448,6 +456,13 @@ export async function getPluginData(
return response.data;
}
export async function getPluginChangelog(
pluginId: string,
): Promise<ChangelogRelease[]> {
const response = await rbacApi.get(`${pluginPath(pluginId)}/changelog`);
return response.data?.releases ?? [];
}
export async function deletePluginData(pluginId: string): Promise<void> {
try {
await rbacApi.delete(`${pluginPath(pluginId)}/data`);