reina4xa/dsh-plugin-reload2

dsh-plugin-reload

A DeepSeek Harness plugin: model-facing reload_plugin tool that restarts one Cordis Loader entry (by entry id, module name, or MCP serverName) without touching sibling entries — respawns mcp-client server processes and hard-reloads in-process plugin code (ESM/CJS cache bust + fiber swap)

AI 분석

核心用途是实现 DSH 插件的无缝热重载。适合插件开发者或需要频繁调整 MCP 服务配置的用户,无需重启整个 DSH 即可让代码改动或配置立即生效。

패키지
dsh-plugin-reload
버전
0.2.1
라이선스
MIT
최근 업데이트
2026. 8. 16.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:reina4xa/dsh-plugin-reload

Usage

reload_plugin accepts:

ArgumentRequiredMeaning
nameyesEntry id (preferred), module name, or MCP config.serverName of the entry to reload
modenoauto (default) — hard reload for in-process plugins, fiber restart for mcp-client; soft — dispose and re-apply only (never picks up in-process code changes); hard — bust ESM/CJS caches and re-import the entry code from disk
dry_runnotrue reports the single matched entry and the strategy that would run, without restarting it

Matching walks the Loader's non-group entries once: exact entry id first, then module name, then mcp-client serverName. Zero matches fail with a bounded list of available entries; multiple matches fail listing the candidate entry ids and change nothing. Group entries never match — restarting a subtree requires one call per leaf entry.

A successful reload returns the entry id, module, optional serverName, previous and current fiber phases, the strategy used, and a semantics note. A hard reload writes nothing back to the loader config: the entry's options stay untouched, only its fiber is swapped onto the re-imported module.