MaYucong6/dsh-batch-uninstall ↗★ 1

dsh-batch-uninstall

Geek 风格批量卸载 DSH 插件:通过 HTTP API 列出可卸载 Bundle 并批量移除,核心系统插件自动锁定保护。A Geek-Uninstaller-style batch uninstaller for DeepSeek Harness plugins. 适合需要安全、批量清理非核心插件的系统维护者。

Package
dsh-batch-uninstall
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Oct 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MaYucong6/dsh-batch-uninstall

使用


# 强制使用内置示例数据(插件未运行时)
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-appWeb 应用层
@deepseek-ai/dsh-sdk-*SDK 配置
所有 removable: false 的 Bundle系统声明不可移除

文件说明

文件说明
lib/index.jsHost 插件入口(暴露 HTTP API)
cordis.patch.ymlBundle 挂载补丁
package.jsonnpm 包清单(含 dsh 元数据)
dsh_geek_uninstall.pyPython TUI 客户端
dsh_batch_uninstall.py旧版纯序号版本
dsh_plugins.json示例数据

开发