Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

feat(preinstall): 预设插件声明 dshSupportedVersion,超出上限的项置灰不可选

hairyf7469eda170b3
diff --git a/src-tauri/resources/preset-plugins.json b/src-tauri/resources/preset-plugins.json
index 9ea7a958..cb6a2268 100644
--- a/src-tauri/resources/preset-plugins.json
+++ b/src-tauri/resources/preset-plugins.json
@@ -6,7 +6,8 @@
"name": "DSH Market",
"description": "Visual plugin market inside DeepSeek Harness — browse, search, and one-click install community plugins.",
"repoUrl": "https://github.com/dsh-market/dsh-market",
- "recommended": true
+ "recommended": true,
+ "dshSupportedVersion": "0.1.5-rc.2"
},
{
"id": "dsh-better-sidebar",
@@ -14,7 +15,8 @@
"name": "DSH Better Sidebar",
"description": "A VSCode-like right sidebar (explorer / editor / terminal / git / browser), isolated per conversation session. Exposes a service for other plugins to register sidebar tabs and file viewers.",
"repoUrl": "https://github.com/omdsh-dev/DSH-better-sidebar",
- "recommended": true
+ "recommended": true,
+ "dshSupportedVersion": "0.1.5-rc.2"
},
{
"id": "dsh-rewind-plugin",
@@ -22,7 +24,8 @@
"name": "DSH Rewind",
"description": "In-window conversation rewind that never forks a new session, with a lightweight workspace backup that restores files together with the rewind.",
"repoUrl": "https://github.com/SiriLee/dsh-rewind",
- "recommended": true
+ "recommended": true,
+ "dshSupportedVersion": "0.1.5-rc.2"
},
{
"id": "@xmanrui/dsh-im",
@@ -31,6 +34,7 @@
"description": "Connect IM channels (WeChat, Feishu, DingTalk, WeCom, QQ, Slack, Telegram, Discord, WhatsApp, iMessage and more) plus a public AI Office to a local DeepSeek Harness, with bot management in the desktop sidebar.",
"repoUrl": "https://github.com/xmanrui/dsh-im",
"recommended": true,
- "defaultUnchecked": true
+ "defaultUnchecked": true,
+ "dshSupportedVersion": "0.1.5-rc.2"
}
]
diff --git a/src-tauri/src/service/plugin/install/single.rs b/src-tauri/src/service/plugin/install/single.rs
index 6ef38cac..31e6337e 100644
--- a/src-tauri/src/service/plugin/install/single.rs
+++ b/src-tauri/src/service/plugin/install/single.rs
@@ -192,7 +192,8 @@ fn deprecated_residue_present(app_handle: &AppHandle, name: &str) -> bool {
.is_ok()
}
-/// 启动时自动卸载弃用清单(`resources/deprecated-plugins.json`)登记的插件。
+/// 启动时自动卸载弃用清单(`resources/deprecated-plugins.json`)登记的插件,
+/// 以及当前核心已高于其 `dshSupportedVersion` 的预设插件。
///
/// 弃用是发布侧决策:某个插件下架/被替换后,把它的 id 追加进弃用清单,桌面端
/// 每次启动核对「已安装 → 自动卸载」,无需用户手动处理,也避免残留插件继续在
@@ -205,8 +206,16 @@ fn deprecated_residue_present(app_handle: &AppHandle, name: &str) -> bool {
/// 只记告警,不阻断启动(调用方仅打日志)。
pub(crate) async fn uninstall_deprecated_plugins(app_handle: &AppHandle) -> Result<(), String> {
let presets = load_presets(app_handle);
- let deprecated_ids = load_deprecated_ids(app_handle);
- let names = deprecated_installed_names(&presets, &deprecated_ids, |name| {
+ let core_version = core::active_version(app_handle);
+ // 弃用清单之外,当前核心已高于 `dshSupportedVersion` 的预设同样自动卸载:
+ // 这些插件只在旧核心上验证过,升级核心后留在 profile 里只会拖垮启动。
+ let mut auto_uninstall_ids = load_deprecated_ids(app_handle);
+ for preset in &presets {
+ if preset.unsupported_on(core_version.as_deref()) {
+ auto_uninstall_ids.insert(preset.id.clone());
+ }
+ }
+ let names = deprecated_installed_names(&presets, &auto_uninstall_ids, |name| {
deprecated_residue_present(app_handle, name)
});
if names.is_empty() {
@@ -413,6 +422,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
internal,
}
diff --git a/src-tauri/src/service/plugin/install/spec.rs b/src-tauri/src/service/plugin/install/spec.rs
index 1ffe45f0..1df61e54 100644
--- a/src-tauri/src/service/plugin/install/spec.rs
+++ b/src-tauri/src/service/plugin/install/spec.rs
@@ -159,6 +159,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
internal,
}
diff --git a/src-tauri/src/service/plugin/installed.rs b/src-tauri/src/service/plugin/installed.rs
index 683a3f68..5d670456 100644
--- a/src-tauri/src/service/plugin/installed.rs
+++ b/src-tauri/src/service/plugin/installed.rs
@@ -90,6 +90,9 @@ pub struct PreinstallPlugin {
/// 显式声明首次引导不默认勾选(仍可标「推荐」chip,但不预选)
pub default_unchecked: bool,
pub installed: bool,
+ /// 当前核心已高于该预设声明的 `dshSupportedVersion`:界面置灰不可选,
+ /// 且随启动自动卸载
+ pub unsupported: bool,
}
/// 用于“已安装”检测的包名:预设显式声明 `package` 时用它(scoped 包名与预设
@@ -105,6 +108,8 @@ pub fn list(app_handle: &AppHandle) -> Vec<PreinstallPlugin> {
// 弃用插件(deprecated-plugins.json 登记)不再提供安装入口,启动时自动卸载,
// 不进入首次引导清单。
let deprecated_ids = load_deprecated_ids(app_handle);
+ // 当前活动核心版本:用于判定预设声明的 `dshSupportedVersion` 是否已被超越。
+ let core_version = crate::service::core::active_version(app_handle);
load_presets(app_handle)
.into_iter()
@@ -118,6 +123,9 @@ pub fn list(app_handle: &AppHandle) -> Vec<PreinstallPlugin> {
// 已安装检测以实际 npm 包名为准:预设可显式声明 package(scoped 包
// 名与预设 id 不一致时),未声明则回落到 id。
let is_installed = installed.contains(installed_name(&p));
+ // 超出支持上限的预设仍留在清单里:界面置灰并给出「不支持当前核心」,
+ // 而不是静默消失,用户才能理解插件为何不再可选。
+ let unsupported = p.unsupported_on(core_version.as_deref());
PreinstallPlugin {
id: p.id,
name: p.name,
@@ -128,6 +136,7 @@ pub fn list(app_handle: &AppHandle) -> Vec<PreinstallPlugin> {
default_checked: p.default_checked,
default_unchecked: p.default_unchecked,
installed: is_installed,
+ unsupported,
}
})
.collect()
@@ -274,6 +283,7 @@ mod tests {
fix: false,
default_checked: true,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
internal: false,
};
diff --git a/src-tauri/src/service/plugin/preset.rs b/src-tauri/src/service/plugin/preset.rs
index 31436af8..f433d63f 100644
--- a/src-tauri/src/service/plugin/preset.rs
+++ b/src-tauri/src/service/plugin/preset.rs
@@ -51,11 +51,32 @@ pub struct PreinstallPluginInfo {
/// 显式声明首次引导不默认勾选:仍可标「推荐」chip,但不预选(如 dsh-im)
#[serde(default)]
pub default_unchecked: bool,
+ /// 该预设声明支持的最高核心版本;当前核心高于它时视为不再兼容:
+ /// 界面置灰不可选,并随启动自动卸载。
+ #[serde(default)]
+ pub dsh_supported_version: Option<String>,
/// 仅 Windows 平台列出
#[serde(default)]
pub win_only: bool,
}
+impl PreinstallPluginInfo {
+ /// 当前核心是否已高于该预设声明的支持上限。
+ ///
+ /// 任一侧版本缺失或无法解析时按兼容处理:清单字段是发布侧提示,解析失败
+ /// 不应把插件在界面上误标为「不支持当前核心」。
+ pub(crate) fn unsupported_on(&self, core_version: Option<&str>) -> bool {
+ let (Some(core), Some(limit)) = (core_version, self.dsh_supported_version.as_deref())
+ else {
+ return false;
+ };
+ match (semver::Version::parse(core), semver::Version::parse(limit)) {
+ (Ok(core), Ok(limit)) => core > limit,
+ _ => false,
+ }
+ }
+}
+
/// debug workspace 插件 package.json 中用于生成内置元数据的字段。
#[cfg(debug_assertions)]
#[derive(Clone, Deserialize, Default)]
@@ -187,6 +208,7 @@ fn discover_dev_internal_plugins_at(root: &Path) -> Vec<DevPluginCandidate> {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
};
Some(DevPluginCandidate { info, directory })
@@ -584,6 +606,39 @@ mod tests {
assert!(!presets.iter().any(|p| p.id == "unknown-package"));
}
+ /// 预设声明的支持上限:当前核心高于它时不再兼容,等于或低于时仍可用。
+ #[test]
+ fn preset_supported_version_marks_newer_cores_unsupported() {
+ let presets = load_presets_for_test();
+ assert!(!presets.is_empty());
+ assert!(
+ presets
+ .iter()
+ .all(|p| p.dsh_supported_version.as_deref() == Some("0.1.5-rc.2")),
+ "every preset entry declares the supported core ceiling"
+ );
+ let preset = &presets[0];
+ assert!(!preset.unsupported_on(Some("0.1.5-rc.1")));
+ assert!(!preset.unsupported_on(Some("0.1.5-rc.2")));
+ assert!(preset.unsupported_on(Some("0.1.6-alpha.2")));
+ assert!(preset.unsupported_on(Some("0.1.7-alpha.1")));
+ // 任一侧缺失或不可解析时按兼容处理,避免把插件误标为不支持
+ assert!(!preset.unsupported_on(None));
+ assert!(!preset.unsupported_on(Some("not-a-version")));
+ }
+
+ /// 未声明 `dshSupportedVersion` 的条目(内置插件)永远视为兼容。
+ #[test]
+ fn manifest_without_supported_version_is_always_compatible() {
+ let internal = load_manifest_for_test(INTERNAL_PLUGINS_FILE, true);
+ assert!(!internal.is_empty());
+ assert!(
+ internal
+ .iter()
+ .all(|p| p.dsh_supported_version.is_none() && !p.unsupported_on(Some("9.9.9")))
+ );
+ }
+
#[test]
fn plugin_manifest_ids_are_unique_across_files() {
let plugins = load_all_plugins_for_test();
@@ -1025,6 +1080,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
},
PreinstallPluginInfo {
@@ -1039,6 +1095,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
},
];
diff --git a/src-tauri/src/service/plugin/verify.rs b/src-tauri/src/service/plugin/verify.rs
index 47554006..d4cb715d 100644
--- a/src-tauri/src/service/plugin/verify.rs
+++ b/src-tauri/src/service/plugin/verify.rs
@@ -337,6 +337,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
internal: false,
}
diff --git a/src-tauri/src/service/plugin/watch.rs b/src-tauri/src/service/plugin/watch.rs
index b6e7225a..d1a75565 100644
--- a/src-tauri/src/service/plugin/watch.rs
+++ b/src-tauri/src/service/plugin/watch.rs
@@ -407,6 +407,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
package: None,
internal: false,
@@ -492,6 +493,7 @@ mod tests {
fix: false,
default_checked: false,
default_unchecked: false,
+ dsh_supported_version: None,
win_only: false,
package: None,
internal: true,
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json
index 256714ce..df293663 100644
--- a/src/i18n/locales/en-US.json
+++ b/src/i18n/locales/en-US.json
@@ -30,6 +30,7 @@
"preinstall.fix": "Fix",
"preinstall.installed": "Installed",
"preinstall.to_uninstall": "To be uninstalled",
+ "preinstall.unsupported_core": "Unsupported by current core",
"preinstall.confirm": "Install",
"preinstall.skip": "Skip",
"preinstall.installing": "Installing plugins...",
diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json
index 78105296..bada91fe 100644
--- a/src/i18n/locales/zh-CN.json
+++ b/src/i18n/locales/zh-CN.json
@@ -30,6 +30,7 @@
"preinstall.fix": "修复",
"preinstall.installed": "已安装",
"preinstall.to_uninstall": "待卸载",
+ "preinstall.unsupported_core": "不支持当前核心",
"preinstall.confirm": "确定",
"preinstall.skip": "跳过",
"preinstall.installing": "正在安装插件...",
diff --git a/src/layout/components/setup-preinstall.tsx b/src/layout/components/setup-preinstall.tsx
index 5b8122c4..5eec768c 100644
--- a/src/layout/components/setup-preinstall.tsx
+++ b/src/layout/components/setup-preinstall.tsx
@@ -30,6 +30,9 @@ import { writeClipboardText } from '@/utils/clipboard'
*/
function initialCheckedSet(plugins: readonly PreinstallPlugin[], isFirstTime: boolean): Set<string> {
return new Set(plugins.filter((p) => {
+ // 超出支持上限的插件不可选:既不预选,也不参与安装 diff
+ if (p.unsupported)
+ return false
if (p.installed)
return true
// 非首次场景:不推荐未安装的插件,避免已卸载的推荐项仍默认勾着
@@ -55,7 +58,7 @@ function PluginCard({ plugin, checked, toUninstall, disabled, onToggle, onOpenRe
return (
<Card
- className="h-[124px] gap-1 rounded-lg border border-line bg-panel2 p-3 shadow-none transition-colors hover:border-line-strong"
+ className={`h-[124px] gap-1 rounded-lg border border-line bg-panel2 p-3 shadow-none transition-colors ${plugin.unsupported ? 'opacity-60' : 'hover:border-line-strong'}`}
>
<div className="flex min-w-0 items-center gap-1.5">
<span className="grid size-6 shrink-0 place-items-center rounded-md bg-accent/10 text-accent">
@@ -64,16 +67,21 @@ function PluginCard({ plugin, checked, toUninstall, disabled, onToggle, onOpenRe
<span className="min-w-0 flex-1 truncate text-[13px] font-medium text-ink">
{plugin.name}
</span>
- <If cond={plugin.recommended && !plugin.installed && !toUninstall}>
+ <If cond={plugin.recommended && !plugin.installed && !toUninstall && !plugin.unsupported}>
<Chip size="sm" variant="soft" color="success" className="shrink-0 font-medium">
{t('preinstall.recommend')}
</Chip>
</If>
- <If cond={plugin.fix && !plugin.installed && !toUninstall}>
+ <If cond={plugin.fix && !plugin.installed && !toUninstall && !plugin.unsupported}>
<Chip size="sm" variant="soft" color="warning" className="shrink-0 font-medium">
{t('preinstall.fix')}
</Chip>
</If>
+ <If cond={plugin.unsupported}>
+ <Chip size="sm" variant="soft" color="danger" className="shrink-0 font-medium">
+ {t('preinstall.unsupported_core')}
+ </Chip>
+ </If>
<If cond={plugin.installed && !toUninstall}>
<Chip size="sm" variant="soft" color="success" className="shrink-0 font-medium">
{t('preinstall.installed')}
@@ -106,7 +114,7 @@ function PluginCard({ plugin, checked, toUninstall, disabled, onToggle, onOpenRe
<Switch
size="sm"
isSelected={checked}
- isDisabled={disabled}
+ isDisabled={disabled || plugin.unsupported}
onChange={isSelected => onToggle(plugin.id, isSelected)}
aria-label={plugin.name}
>
@@ -206,7 +214,7 @@ export function PreinstallSetup() {
.filter(p => effectiveSelected.has(p.id) && !p.installed)
.map(p => p.id)
const toUninstall = preinstall.plugins
- .filter(p => p.installed && !effectiveSelected.has(p.id))
+ .filter(p => p.installed && !effectiveSelected.has(p.id) && !p.unsupported)
.map(p => p.id)
void store.preinstall.confirm({ installIds: toInstall, uninstallIds: toUninstall })
}
@@ -217,7 +225,7 @@ export function PreinstallSetup() {
// 是否有变更:存在需安装或需卸载的插件时启用"确定"
const toInstallCount = preinstall.plugins.filter(p => effectiveSelected.has(p.id) && !p.installed).length
- const toUninstallCount = preinstall.plugins.filter(p => p.installed && !effectiveSelected.has(p.id)).length
+ const toUninstallCount = preinstall.plugins.filter(p => p.installed && !effectiveSelected.has(p.id) && !p.unsupported).length
const hasChanges = toInstallCount > 0 || toUninstallCount > 0
const installing = preinstall.installing
@@ -269,8 +277,8 @@ export function PreinstallSetup() {
>
{preinstall.plugins.map((plugin) => {
const checked = effectiveSelected.has(plugin.id)
- // 已安装但用户取消勾选 → 待卸载
- const toUninstall = plugin.installed && !checked
+ // 已安装但用户取消勾选 → 待卸载(超出支持上限的项不参与)
+ const toUninstall = plugin.installed && !checked && !plugin.unsupported
return (
<PluginCard
key={plugin.id}
diff --git a/src/store/modules/preinstall/types.ts b/src/store/modules/preinstall/types.ts
index d9442dde..9e23263c 100644
--- a/src/store/modules/preinstall/types.ts
+++ b/src/store/modules/preinstall/types.ts
@@ -12,6 +12,8 @@ export interface PreinstallPlugin {
/** 显式声明首次引导不默认勾选(仍可标「推荐」chip,但不预选) */
defaultUnchecked: boolean
installed: boolean
+ /** 当前核心已高于该预设声明的 `dshSupportedVersion`:置灰不可选,且随启动自动卸载 */
+ unsupported: boolean
}
/** Rust 侧 preinstall-log 事件载荷(dsh plugin 进程输出行) */
diff --git a/src/ui/config/plugin.tsx b/src/ui/config/plugin.tsx
index 07e882d0..cce2b87f 100644
--- a/src/ui/config/plugin.tsx
+++ b/src/ui/config/plugin.tsx
@@ -72,7 +72,9 @@ export function ConfigPlugin() {
useMount(refreshUpdates)
useListen<DshPlugin[]>('dsh-plugins-updated', refreshUpdates)
- const plugins = pluginList ?? []
+ // 内置插件由启动自愈自动安装与维护,不进入本面板:这里只列出用户可管理
+ // (升级/禁用/卸载)的插件,避免必装项混进可卸载清单。
+ const plugins = (pluginList ?? []).filter(plugin => !plugin.internal)
const loading = isLoading
const error = pluginError ? String(pluginError) : ''
@@ -425,7 +427,7 @@ export function ConfigPlugin() {
)}
>
<div className="flex flex-col gap-4">
- {plugins.sort(a => a.internal ? -1 : 1).map(plugin => (
+ {plugins.map(plugin => (
<Item
key={plugin.id}
left={(
@@ -462,16 +464,11 @@ export function ConfigPlugin() {
{plugin.version}
</code>
</If>
- <If cond={!plugin.internal && plugin.recommended}>
+ <If cond={plugin.recommended}>
<Chip size="sm" variant="soft" color="success" className="shrink-0 font-medium">
{t('plugins.preset')}
</Chip>
</If>
- <If cond={plugin.internal}>
- <code className="shrink-0 rounded bg-default px-1.5 py-0.5 font-mono text-[10px] text-muted">
- {t('plugins.builtin')}
- </code>
- </If>
<If cond={plugin.disabled}>
<Chip size="sm" variant="soft" color="default">
{t('plugins.disabled_badge')}
@@ -517,7 +514,7 @@ export function ConfigPlugin() {
</If>
{/* 启用入口:配置覆盖禁用(含内置插件)或桌面禁用清单 → 可启用。
配置覆盖禁用时点击会先弹确认框,确认后后端才移除该覆盖 */}
- <If cond={plugin.patchDisabled || (!plugin.internal && plugin.disabled)}>
+ <If cond={plugin.patchDisabled || plugin.disabled}>
<Chip
className={actionChip({ busy: !!busy })}
variant="primary"
@@ -531,7 +528,7 @@ export function ConfigPlugin() {
</span>
</Chip>
</If>
- <If cond={!plugin.internal && !plugin.patchDisabled && !plugin.disabled}>
+ <If cond={!plugin.patchDisabled && !plugin.disabled}>
<Chip
className={actionChip({ busy: !!busy })}
size="sm"
@@ -543,58 +540,56 @@ export function ConfigPlugin() {
</span>
</Chip>
</If>
- <If cond={!plugin.internal}>
- {/* 单插件快照:快照始终可用(已存在时覆盖确认);还原/删除快照仅在
- 存在快照时显示。还原会停服务,还原后 toast 提示重启(issue #303) */}
+ {/* 单插件快照:快照始终可用(已存在时覆盖确认);还原/删除快照仅在
+ 存在快照时显示。还原会停服务,还原后 toast 提示重启(issue #303) */}
+ <Chip
+ className={actionChip({ busy: !!busy })}
+ variant="primary"
+ color="accent"
+ size="sm"
+ onClick={() => onSnapshot(plugin.id, plugin.name, plugin.hasSnapshot)}
+ >
+ <span className="flex items-center gap-1">
+ <If cond={busy?.id === plugin.id && busy.action === 'snapshot'} then={<Spinner size="sm" color="current" />} />
+ {t('plugins.snapshot')}
+ </span>
+ </Chip>
+ <If cond={plugin.hasSnapshot}>
<Chip
className={actionChip({ busy: !!busy })}
variant="primary"
color="accent"
size="sm"
- onClick={() => onSnapshot(plugin.id, plugin.name, plugin.hasSnapshot)}
+ onClick={() => onRestore(plugin.id, plugin.name)}
>
<span className="flex items-center gap-1">
- <If cond={busy?.id === plugin.id && busy.action === 'snapshot'} then={<Spinner size="sm" color="current" />} />
- {t('plugins.snapshot')}
+ <If cond={busy?.id === plugin.id && busy.action === 'restore'} then={<Spinner size="sm" color="current" />} />
+ {t('plugins.restore')}
</span>
</Chip>
- <If cond={plugin.hasSnapshot}>
- <Chip
- className={actionChip({ busy: !!busy })}
- variant="primary"
- color="accent"
- size="sm"
- onClick={() => onRestore(plugin.id, plugin.name)}
- >
- <span className="flex items-center gap-1">
- <If cond={busy?.id === plugin.id && busy.action === 'restore'} then={<Spinner size="sm" color="current" />} />
- {t('plugins.restore')}
- </span>
- </Chip>
- <Chip
- className={actionChip({ busy: !!busy })}
- size="sm"
- onClick={() => onDeleteSnapshot(plugin.id, plugin.name)}
- >
- <span className="flex items-center gap-1">
- <If cond={busy?.id === plugin.id && busy.action === 'delete-snapshot'} then={<Spinner size="sm" color="current" />} />
- {t('plugins.delete_snapshot')}
- </span>
- </Chip>
- </If>
<Chip
className={actionChip({ busy: !!busy })}
- variant="primary"
- color="danger"
size="sm"
- onClick={() => onRemove(plugin.id, plugin.name)}
+ onClick={() => onDeleteSnapshot(plugin.id, plugin.name)}
>
<span className="flex items-center gap-1">
- <If cond={busy?.id === plugin.id && busy.action === 'remove'} then={<Spinner size="sm" color="current" />} />
- {t('plugins.uninstall')}
+ <If cond={busy?.id === plugin.id && busy.action === 'delete-snapshot'} then={<Spinner size="sm" color="current" />} />
+ {t('plugins.delete_snapshot')}
</span>
</Chip>
</If>
+ <Chip
+ className={actionChip({ busy: !!busy })}
+ variant="primary"
+ color="danger"
+ size="sm"
+ onClick={() => onRemove(plugin.id, plugin.name)}
+ >
+ <span className="flex items-center gap-1">
+ <If cond={busy?.id === plugin.id && busy.action === 'remove'} then={<Spinner size="sm" color="current" />} />
+ {t('plugins.uninstall')}
+ </span>
+ </Chip>
</>
)}
/>