dsh-region
在下载超时或失败时,于 npmmirror 国内镜像与官方 npm 源之间自动切换下载源,并附带 Web UI 可手动查看与切换。
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.
怎么安装
dsh plugin add dsh-region 简介
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…
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 0
- 月下载
- –
- 最近更新
- 2026-08-21
- 创建于
- 2026-08-20
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
同类推荐
brave-search-mcp-server
brave/brave-search-mcp-server
Brave Search MCP服务器:网页结果、图片、视频、富结果、AI摘要等。
ms-365-mcp-server
softeria/ms-365-mcp-server
一个模型上下文协议(MCP)服务器,通过Graph API与Microsoft 365和Office服务交互。