DSH Toolbox

dshost-plugin

中继插件,把本机网页界面通过托管端点暴露出去。

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

安装

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

dsh plugin --profile web add dshost-plugin

兼容区间

dshost-plugin 没有 engines.dsh 字段,启动时不会拿它和你的命令行版本做检查,装之前先看 npm 页。

两个插件打架时

通过托管中继把本机网页界面暴露出去。ds-harness-remote 和 dsh-mobile-plugin 各有自己的入口;三个入口就是泄露时要吊销三套凭据。

作者与仓库

作者 NoelJudeNoel,仓库 https://github.com/NoelJudeNoel/dshost-plugin,包页 https://www.npmjs.com/package/dshost-plugin。

装完会看到什么

它没有声明 dsh peer,在客户端要连的那个 profile渲染远程入口;装完 dsh plugin add dshost-plugin,dsh --profile web --dump-config 能列出挂载它的 dshost-plugin 那一行。

它读写的文件

dshost-plugin 的清单里没有存储相关的 peer,所以能指认的文件只有 $DSH_HOME/profiles/<名字>/package.json 里那一行依赖;包说明里没写别的。

怎么卸掉

卸掉 dshost-plugin 用对称的那条命令 dsh plugin --profile web remove dshost-plugin。它的清单里没有存储相关 peer,不会往 $DSH_HOME 写东西,卸完没有残留。

常见问题

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

就 dshost-plugin 而言,建议留 ds-harness-remote:它 peer 了 dsh-api-gateway 与设置页,暴露的东西和被暴露的东西放在一起。

dsh 升级之后会怎样?

dshost-plugin 没有声明版本区间:dsh --version 只能告诉你自己在跑哪个版本,没有任何检查会告诉你 dshost-plugin 配不配它。