DSH Toolbox

dsh-mobile-plugin

给手机用的接口与中继客户端,让手机端能连上本机 DSH。

dsh-mobile-plugin 当前版本 0.5.49,最后发布 2026-11-13;安装命令与区间取自它自己的清单。

安装

dsh plugin add dsh-mobile-plugin 只往 profile 清单里写一行依赖,随后 pnpm 把它解到 $DSH_HOME/profiles/<名字>/node_modules。

dsh plugin --profile web add dsh-mobile-plugin

兼容区间

dsh-mobile-plugin 的 engines.dsh 声明的是 >=0.2.0;先跑 dsh --version 对一下——超出这个区间,启动时会跳过它并打印要求,不会带着跑。

两个插件打架时

在 dsh-host-webserver 上加 /api/mobile/v1,要求 dsh >=0.2.0。ds-harness-remote 和 dsh-remote 各开各的通道;一个 profile 上三条远程路径就是三套 token、三个轮换的地方。

作者与仓库

作者 WNLUO,仓库 https://github.com/WNLUO/dsh-mobile-plugin,包页 https://www.npmjs.com/package/dsh-mobile-plugin。

装完会看到什么

它把 @deepseek-ai/cordis 声明成 peer,在客户端要连的那个 profile渲染远程入口;装完 dsh plugin add dsh-mobile-plugin,dsh --profile web --dump-config 能列出挂载它的那一行。

它读写的文件

dsh-mobile-plugin 落盘的东西走 @deepseek-ai/dsh-settings、存在 $DSH_HOME 下,它自己的依赖行在 $DSH_HOME/profiles/<名字>/package.json 里。

怎么卸掉

卸掉 dsh-mobile-plugin 用对称的那条命令 dsh plugin --profile web remove dsh-mobile-plugin;它加的那块界面跟着消失,存在 $DSH_HOME 下的东西留着,得自己删。

常见问题

它和 ds-harness-remote 会打架吗?

就 dsh-mobile-plugin 而言,建议留 ds-harness-remote:它把网关本身通过点对点、端到端加密暴露出去,边界只有一处,不是两组路由。

哪些 dsh 版本会加载它,区间外会怎样?

在 >=0.2.0 里,命令行会加载 dsh-mobile-plugin;超出这个范围时启动会停下并打印要求,不会带着它跑。愿意担风险就用 dsh plugin allow-version dsh-mobile-plugin 单包放行。