Repository navigation
DSH Remote Console 0.10.1 — host list entry fix
Host list: the settings page now actually appears, and there are tools to manage hosts even when it does not.
Fixed
- Why the settings page never showed up: client plugins can load before DSH's settings service, and the plugin decided once with
ctx.get('configForms'). When that returnedundefined, registration was skipped for the whole session. It now usesctx.inject(['configForms'], …)and registers when the service appears, so load order no longer matters.
Added
remote_host_add(spec)/remote_host_list()/remote_host_remove(spec)— manage the panel's host list with no settings page and no terminal. They read/write~/.dsh/remote-console/hosts.tsv(0600);remote_host_listlabels each host with its source (ssh-config,settings(config.hosts),hosts.tsv).- The settings page is registered in two places:
plugins.bundle.config(directly on the plugin package detail page) andplugins.row.config(the configure button on the plugin's row). Previously only the latter, which required opening the package and then a row. - The sidebar SSH panel shows a "主机:插件页配置" hint.
Changed
- README host-management section rewritten with the exact navigation path, plus the agent-tool alternative and the difference between the two storage locations (
config.hostsin the profile patch vshosts.tsv).
Tests
tests/host-tools.test.mjs: add/update/remove overhosts.tsv, source labels, invalid specs rejected, launcher appears inshells(). 128 tests total.
Install / update
- npm:
dsh-remote-console@0.10.1 - Plugin market index: https://cccodder.github.io/dsh-remote-console/market/index.json
- In DSH: 侧栏「插件」→ 卸载旧版 → 重新安装(第三方插件没有原地更新按钮)