dsh-region
Switches DSH's package download source between the npmmirror China mirror and the official npm registry on timeout or failure, with a Web UI to inspect and switch manually.
在下载超时或失败时,于 npmmirror 国内镜像与官方 npm 源之间自动切换下载源,并附带 Web UI 可手动查看与切换。
How to install
dsh plugin add dsh-region About
dsh-region 为 DeepSeek Harness(DSH)开发的下载源主备切换插件:**国内镜像为主、官方源为备、故障自动切换。** 已发布到 npm。 **为什么做这个插件?** 用 DSH 安装插件时,国外下载源速率很慢,经常卡顿、无法更新,甚至更新到一半就卡住。这个插件就是为解决这个问题而生:默认使用国内镜像为主,最快地下载和更新插件;国内镜像挂掉时自动切换为官方下载源;主源恢复后自动切回。 **第三方社区插件,与 DeepSeek 官方无关。** 功能特性 **自动故障切换** —— 每 5 分钟探测主源健康;主源超时(10 秒)或失败时自动切到官方源,主源恢复后自动切回。 **手动锁定** —— /region use main|backup 锁定任意一个源,/region use auto 回到自动模式。 **原生生效** —— 把当前生效源写入 profile 的 .npmrc,DSH 原生命令(如 dsh plugin add ...)也走该源。 **状态持久化** —— 模式和切换记录存于 ~/.dsh/region.json,重启不丢。 **零运行时依赖** —— 只用 Node 内置模块 + 全局 fetch。 安装 从源码安装(当前可用) bash git clone https://github.com/nononononofish/dsh-re…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 0
- mo. downloads
- –
- Last push
- 2026-08-21
- Created
- 2026-08-20
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
Related plugins
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
brave-search-mcp-server
brave/brave-search-mcp-server
Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
ms-365-mcp-server
softeria/ms-365-mcp-server
A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API