feat: show plugin features from the manifest on the plugin page

This commit is contained in:
LukeGus committed 2026-10-06 22:38:13 -05:00
1 parent 60024bdd4e
commit b6bb3ffc73
13 files changed
+158 -2

No files matched your search

+3
View File
@@ -13,6 +13,7 @@ import fs from "node:fs";
import path from "node:path";
import semver from "semver";
import {
pluginFeatures,
SUPPORTED_PLUGIN_API_VERSION,
youtubeVideoId,
} from "@termix-ssh/plugin-sdk/manifest";
@@ -57,6 +58,7 @@ export interface RegistryPlugin {
icon?: string;
/** Only ever a YouTube video id, never a link. */
videoId?: string;
features: string[];
/** Newest first. */
versions: RegistryVersion[];
}
@@ -138,6 +140,7 @@ export function parseRegistryIndex(raw: unknown): RegistryIndex {
repository: asString(entry.repository),
icon: asString(entry.icon),
videoId: youtubeVideoId(entry.video) ?? undefined,
features: pluginFeatures(entry.features),
versions,
});
}