dsh-hotplug-engine
在终端中运行以下命令:
dsh plugin install AnothetLoice/dsh-hotplug-engine
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 终端中运行安装命令 dsh plugin install AnothetLoice/dsh-hotplug-engine 即可安装该插件,源码地址为 https://github.com/AnothetLoice/dsh-hotplug-engine 。
插件介绍
DSH manages plugin loading and unloading through cordis.patch.yml and its loader, yet the actual workflow is scattered across file edits, pnpm commands, and post-install health checks with no unified programmatic entry point. dsh-hotplug-engine bundles these steps into a single service: patch modification, pnpm invocation, post-install health verification, automatic rollback on failure, and full audit logging - all in one pipeline that only touches files and commands without modifying the DSH kernel.
At its core, the engine can toggle any patch line (both flow and block YAML), auto-rolls back when an install fails, and enforces a DSH default-disabled gate via a UI lock badge and a HOTPLUG.PATCH.DEFAULT_DISABLED API error. Three access patterns are exposed: host plugins inject the hotplugEngine service and call install, rollback, enable, and other methods directly; REST endpoints under the /api/dsh-hotplug prefix cover reads, writes, and SSE event streams; and agent-facing hotplug_* tools handle status, install, uninstall, toggle, rollback, and audit with write operations subject to approval.
This plugin fits teams and individuals who need to manage DSH plugins programmatically: developers building marketplace or admin-panel UIs, orchestration layers that dynamically install or remove plugins within agent workflows, and host-plugin authors who require auditable, rollback-capable plugin operations.
使用场景
- 在管理面板中安装、启停和回滚 DSH 插件
- 在 agent 会话中通过工具动态管理插件生命周期
- 宿主插件需要审计日志和失败自动回滚时调用引擎
适合人员
- 构建插件市场或管理界面的开发者
- 需要在 agent 工作流中动态装卸插件的编排层
- 要求审计与回滚能力的宿主插件作者