MaYucong6/dsh-batch-uninstall ↗★ 1
dsh-batch-uninstall
Geek 风格批量卸载 DSH 插件:通过 HTTP API 列出可卸载 Bundle 并批量移除,核心系统插件自动锁定保护。A Geek-Uninstaller-style batch uninstaller for DeepSeek Harness plugins. 适合需要安全、批量清理非核心插件的系统维护者。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MaYucong6/dsh-batch-uninstallドキュメント
README 全文を読む ↗使用
# 强制使用内置示例数据(插件未运行时)
python dsh_geek_uninstall.py --json dsh_plugins.json
交互操作
| 按键 | 功能 |
|---|---|
↑ ↓ | 移动光标(自动跳过 🔒 锁定行) |
Space | 勾选 / 取消勾选 |
Ctrl+A | 全选 / 反选 |
Enter | 确认 → 二次确认 → 批量卸载 |
Q | 退出 |
架构
┌─────────────────────────────────────────────┐
│ dsh_geek_uninstall.py (Python TUI) │
│ 交互式勾选 · 二次确认 · 进度条 │
└──────────────┬──────────────────────────────┘
│ HTTP (localhost:19387)
▼
┌─────────────────────────────────────────────┐
│ lib/index.js (Host 插件) │
│ GET /dsh-batch-uninstall/bundles.json │
│ POST /dsh-batch-uninstall/remove │
└──────────────┬──────────────────────────────┘
│ ctx.get('pluginManager')
▼
┌─────────────────────────────────────────────┐
│ DSH pluginManager 服务 │
│ listBundles() / removeBundle(name) │
└─────────────────────────────────────────────┘
核心保护
以下 Bundle 无法被卸载(Host 与 TUI 双层锁定):
| 保护对象 | 说明 |
|---|---|
@deepseek-ai/dsh-base | 核心基础层 |
@deepseek-ai/dsh-web-app | Web 应用层 |
@deepseek-ai/dsh-sdk-* | SDK 配置 |
所有 removable: false 的 Bundle | 系统声明不可移除 |
文件说明
| 文件 | 说明 |
|---|---|
lib/index.js | Host 插件入口(暴露 HTTP API) |
cordis.patch.yml | Bundle 挂载补丁 |
package.json | npm 包清单(含 dsh 元数据) |
dsh_geek_uninstall.py | Python TUI 客户端 |
dsh_batch_uninstall.py | 旧版纯序号版本 |
dsh_plugins.json | 示例数据 |
开发