Skip to content

DSH Remote Console 0.10.1 — host list entry fix

Choose a tag to compare

@cccodder cccodder released this 28 Oct 06:18
b782831

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 returned undefined, registration was skipped for the whole session. It now uses ctx.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_list labels 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) and plugins.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.hosts in the profile patch vs hosts.tsv).

Tests

  • tests/host-tools.test.mjs: add/update/remove over hosts.tsv, source labels, invalid specs rejected, launcher appears in shells(). 128 tests total.

Install / update