@tanker001/dsh-remote

版本 1.4.3发布 2026-11-23仓库 flymysql/dsh-remote
1/4装上但加载失败

在 DeepSeek Harness 中,把 SSH 主机变成日常开发工作区:管理多主机项目,浏览和编辑远程文件、递归搜索文件与内容、使用终端、查看 Git 差异、建立本地/反向端口隧道;让 Agent 在所属远程工作区

开发与运行时依赖 4peer 8MIT依赖存在已知漏洞
pnpm add @tanker001/dsh-remote

安装前须知

Node 要求
未声明
跟随宿主运行时
peer 依赖
8 个
由宿主提供,不随包安装
宿主服务
启动失败
原因码 missing_dep
入口 / 补丁
lib/boot.js
bundle 已声明 · patch 随包

四段检测

逐层记录
收录门槛未通过
manifest 是否声明 DSH 依赖或 dsh.bundle
离线审查未通过
静态结构包内清单、补丁文件与入口声明是否完整
无 high / critical 命中
未通过
配置组合装入一次性 DSH_HOME 后配置树能否合并通过
源码审查静态阅读源码,检查危险调用与数据外发
计数单位 finding,非包数。
通过
真机安装通过
真机执行 pnpm 安装,退出码为 0 且 node_modules 生成
实测宿主版本 0.2.2-rc.5
加载实测未通过
安装完成后由真实宿主启动一次,检查入口是否激活
加载失败 · 原因码 missing_dep
dsh: warning: 1 entry did not activate | dsh-remote (@tanker001/dsh-remote): failed to import: Error [ERR_MODULE_NOT_FOUND]: Canno

检测结论明细

共 16 次命中
收录判定3 条规则 · 3 次命中
作用域包复用了知名包名l0-typosquat-scope
发布者与仓库所有者不同l0-author-repo-differs
主页与代码仓库不同站l0-homepage-unrelated
静态结构5 条规则 · 8 次命中
读取凭据/密钥文件路径×4credential-path-read
lib/sshconfig.js:578if (!target.matched) warnings.push(`no ~/.ssh/config block matches "${alias}" — using the name itself.`)
启动子进程child-process-spawn
lib/credential.js:48child = spawn(bin, args, { stdio: [hasInput ? 'pipe' : 'ignore', 'pipe', 'pipe'] })
遍历目录后批量改写mass-file-overwrite
lib/remote-shell.js:439entries = fs.readdirSync(dir)
代码中存在外部 URLremote-url-reference
lib/binding.js:249http://localhost http://127.0.0.1:<端口>/?token=… http://127.0.0.1:<端口>/?token=…) http://127.0.0.1:<port>/?token=… https:/
提到凭据路径但没有读动作sensitive-path-reference
lib/client.js:371'project.noHosts': '尚无主机。在运行 DSH 的机器上配置 ~/.ssh/config,然后重试。',
源码审查2 条规则 · 4 次命中
Package exited non-zero×2l3.nonzero-exit
state/runs/tanker001-dsh-remote/1.4.3/L3/result.json
Threw an uncaught exception×2l3.runtime-error
state/runs/tanker001-dsh-remote/1.4.3/L3/events.jsonlCannot find package '@deepseek-ai/schemastery' imported from E:\DSHPWeb\state\runs\tanker001-dsh-remote\1.4.3\L3\src\pac
加载实测1 条规则 · 1 次命中
L5 load: load_failed / import-failedl4load.import-failed

依赖结构

12 项
@deepseek-ai/schemastery直接依赖随包安装
iconv-lite直接依赖随包安装
ssh2直接依赖随包安装
yaml直接依赖随包安装
@deepseek-ai/cordispeer由宿主提供
@deepseek-ai/dsh-client-connectionpeer由宿主提供
@deepseek-ai/dsh-client-localepeer由宿主提供
@deepseek-ai/dsh-client-ui-rendererpeer由宿主提供
@deepseek-ai/dsh-commandspeer由宿主提供
@deepseek-ai/dsh-host-webserverpeer由宿主提供
@deepseek-ai/dsh-system-promptpeer由宿主提供
@deepseek-ai/dsh-toolspeer由宿主提供