DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-download-nexus

d

dsh-download-nexus

Manifest valid

Unified download entry for DeepSeek Harness: routes each URL by target to Motrix, built-in direct HTTP, yt-dlp or Hugging Face, and blocks shell write commands such as curl -o. Ships five tools — down

UI (client)hasBundlePatch

dsh-download-nexus

dsh-download-nexus

统一下载入口:Motrix · 直连 · yt-dlp · Hugging Face
给 DeepSeek Harness 的一个下载插件:一个 download 工具按目标自动选引擎,agent 想用 curl -o 偷偷写盘时把它拦下来。

version license tests engines platform

安装 · 它能做什么 · 四个引擎 · 工具 · 配置 · 安全边界 · 文档 · 致谢

配置中心总览:引擎状态、路由策略、加速与安全边界


安装

git clone https://github.com/zeki520/dsh-download-nexus.git
cd dsh-download-nexus
npm test
npm pack --pack-destination "C:/Users/<你的用户名>/dsh-plugins"

在 DSH 会话里装上刚打出来的 tarball:

plugin_manager action=install_bundle target=C:\Users\<你的用户名>\dsh-plugins\dsh-download-nexus-0.6.11.tgz

装完重启 DSH:配置页在插件详情里,会话里多一个「下载」页签。默认 toolPrefix 为空,工具名就是 download / download_status / download_control / download_doctor / motrix_provision。

发行包已附在本仓库的 Releases,可以直接下载 dsh-download-nexus-0.6.11.tgz,跳过打包步骤。

它能做什么

DSH 原先没有统一的下载工具,agent 常直接 curl -o / wget -O / Invoke-WebRequest -OutFile:拿不到多连接加速,也没有进度、断点、归属与清理。这个插件做三件事:

  1. 一个入口:download 按目标类型自动选引擎,你只给 URL 和保存目录。
  2. 真正用上本机加速器:普通文件走 Motrix(MDXP 多连接 + 代理),视频走 yt-dlp,HF 仓库走 hf CLI,magnet / .torrent 交给 Motrix。
  3. 拦住写盘下载:tools/pre-execute 默认 deny 掉用 shell 写文件的下载命令,把 agent 引到 download;只读探测(curl -I、--spider、yt-dlp --skip-download)照常放行。

每个下载任务都有 task_ref,可以查进度、暂停、恢复、取消、清理,且只在发起它的会话里可见。

四个引擎

目标引擎行为
普通 URL / 文件直链Motrix → 回退 DirectMotrix 可用时优先(多连接 + 代理);不可用才回退内置直连
magnet: / .torrentMotrix只交给 Motrix,不自动拉起客户端
视频页面(B 站 / YouTube / Vimeo …)yt-dlp只交给 yt-dlp,不做跨引擎回退
Hugging Face 仓库hf CLI支持 repo_type / revision / include

回退只对普通 URL 生效。视频与 HF 不会因为 Motrix 不可用就切到别的引擎;显式指定 engine 时也不回退 —— 这是刻意的:下错东西比失败更麻烦。

工具

工具用途
download发起下载。url + save_dir 必填,其余按需(engine、filename、headers、quality、include、cookies_from_browser …)
download_status查单个任务详情(可等待),或列出本会话全部任务
download_controlpause / resume / cancel / purge(purge 要 confirm: true,会删文件)
download_doctor诊断引擎可用性、本地代理、Motrix 端点、镜像配置;也能只读探测某个 URL 是否被 SSRF 策略放行
motrix_provision只读检测 / 启动已装的 Motrix。install 需用户亲口确认后才执行,不绕过 SmartScreen 与 UAC

配置

配置写在宿主插件的 cordis.patch.yml 里,保存后重启 DSH 生效。也可以直接在「下载」页签的配置中心里改(顶部保存 + 滚动时底部悬浮条,同一份草稿)。

键默认说明
toolPrefix''工具名前缀。空 = download,设成 conductor_ 可与旧插件共存
defaultSaveDir<主目录>/Downloads默认落盘目录
allowedRoots[<主目录>/Downloads]允许写入的根目录白名单;默认目录始终包含且不可删
connections16Motrix 连接数(1–16)
maxBytes21474836480单文件上限,默认 20 GiB
requestTimeoutMs60000单次请求超时
pollMs500进度轮询间隔
maxWaitSeconds3600download_status(wait) 最长等待
proxyCandidates[7890, 31181]本机代理候选端口,只连回环地址
hfMirror / useHfMirrorhttps://hf-mirror.com / falseHF 镜像;启用时注入 HF_ENDPOINT 并剥离 token
githubMirrorBase / githubMirrorDefaulthttps://ghfast.top/ / falseGitHub 直链镜像;显式 opt-in
ytdlpPath / hfPathyt-dlp / hf可执行文件路径,留空即用 PATH
allowShellfalse逃生舱:放行 shell 写盘下载(环境变量 DSH_DOWNLOAD_ALLOW_SHELL=1 可强制开启)
allowExecutablefalse允许下载可执行扩展名
allowBrowserCookiesfalse允许读浏览器 cookies(仅视频站)
guardFailClosedtrue守卫评估异常时拒绝可疑下载命令

安全边界

这些保护由 Host 代码强制执行,配置页不提供关闭开关:

  • SSRF 拦截:回环 / 私网 / 链路本地 / 云元数据地址在引擎前拒绝;重定向逐跳重新过策略;跨域重定向剥掉敏感头。代理 fake-ip 例外仅限本机代理。
  • 目录白名单:写入前做 realpath + 边界校验,.. 与符号链接逃逸都会被消掉;默认目录自动加入白名单。
  • Session 隔离:task_ref 只在发起它的会话可见,跨会话查询返回 E_NOT_FOUND。
  • Guard 默认 deny:curl -o / wget / iwr -OutFile / aria2c / yt-dlp 写盘命令、bitsadmin / certutil -urlcache / mshta / python -c / node -e 内联下载,一律拦下。
  • 资源限制:并发、单文件大小、等待时长都有上限,超限任务会被 watchdog 清理。

文档

  • CHANGELOG.md — 每个版本改了什么、为什么
  • docs/ui/ — 视觉验收清单与对比度回归报告

开发

npm test                          # 208 例:单元 + 结构守卫 + 渲染烟测 + 对比度审计
node scripts/contrast-audit.mjs   # 只跑配色对比度(WCAG 2.1,深/浅壁纸各算一次)

客户端是手写的单文件 React(lib/client.js,走 window.__ModuleLoader__.load),样式内联在同一个具名模板字符串里;改样式不用重启 DSH(ensureStyle 会比对内容后重插),改逻辑要重装 tarball。

致谢

这个插件站在别人的肩膀上:

许可证

MIT © 2026 zeki520

Versions

Latest versionPublishedSize
0.6.11——

Comments

Loading…

Similar plugins

dsh-disk-browser

Sidebar disk browser for DeepSeek Harness - browse any folder on the server (including hidden ones) with text preview, streaming download and upload (multi-select / drag-and-drop, overwrite confirm),

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

dsh plugin --profile web add dsh-disk-browser

Windows-native computer use for DeepSeek Harness: two tools drive and read any desktop app. One batch call runs find, click, type, key, read, wait and screenshot steps in a single engine pass, so a ta

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add dsh-win-computer-use

by a-molecule-of-ATP

DeepSeek Harness plugin that drives Ghost Downloader through its official ghd CLI: submit, probe, wait, control and verify downloads (md5/sha1/sha256/sha512/crc32), with a live queue panel and an acti

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 21, 2026

dsh plugin --profile web add @local/dsh-ghost-download

by Aurora-Lucas

Model-facing Google Chrome tool: drives the installed Chrome over the DevTools protocol so front-end work can navigate, screenshot, inspect, and interact without per-call shell approval.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 12, 2026

dsh plugin --profile web add @local/dsh-chrome-browser

by awol2005ex3

DeepSeek Harness (dsh) 插件:**在 dsh 里浏览与操作 HDFS**。Rust (napi-rs + hdfs-native) 直连集群,支持 HA 多 Namenode 与 Kerberos,带 Web 浏览面板与 agent 工具。

Manifest valid

★ 0

Apache-2.0

TypeScript

Oct 21, 2026

dsh plugin --profile web add dsh-hdfs

by MorixMa

A download-progress indicator for the DSH session header: it reads the background-job roster and parses what downloaders already print — curl --progress-bar, wget, aria2, or a JSON progress file — int

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-download-progress