@linxin666/dsh-ssh 0.4.11 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +2 -2
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/lib/client.js +740 -162
- package/lib/client.js.map +1 -1
- package/lib/types/client/api.d.ts +21 -0
- package/lib/types/client/locales.d.ts +7 -0
- package/lib/types/client/panel/TerminalTab.d.ts +12 -7
- package/lib/types/client/panel/controller.d.ts +185 -21
- package/package.json +1 -1
- package/src/client/api.ts +70 -0
- package/src/client/locales.ts +14 -0
- package/src/client/panel/SshPanel.tsx +7 -15
- package/src/client/panel/TerminalTab.tsx +371 -151
- package/src/client/panel/controller.ts +370 -30
- package/src/client/panel/panel.module.css +102 -0
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# node scripts/verify-docs.mjs --write <dir>
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: f767d8e06c482fc6f8c8a9a1a3aa9a984ad29fe7
|
|
6
|
+
README.zh.md: accf0981faa6001b712cf9b53f68ebb2b8e5eb7a
|
package/README.md
CHANGED
|
@@ -26,13 +26,13 @@ A dedicated remote Linux server operations and cluster management plugin for Dee
|
|
|
26
26
|
| Persistent connection pool | Reuses a long-lived connection per host (opposite of the ssh-skill daemon), automatically disconnects after 30 minutes idle, auto-reconnects on disconnect (up to 3 times) |
|
|
27
27
|
| Agent forwarding | Opt-in per host through the `forwardAgent` flag (`ssh -A`); the form has an "Enable agent forwarding" checkbox, the host list shows an agent-forwarding badge for enabled hosts, and `ssh_list` reports `forwardAgent` with a forward column in its table. The endpoint is the host's configured agent path, otherwise `SSH_AUTH_SOCK`, otherwise the native OpenSSH named pipe (`\\.\pipe\openssh-ssh-agent`) on Windows; a host with no local endpoint fails with an explicit error instead of connecting without forwarding. A server that refuses the request (`AllowAgentForwarding no`) surfaces its own error and is never downgraded to a silent non-forwarded session. The flag never touches the stored profile when it is off |
|
|
28
28
|
| Command execution | exec with a timeout (default 60s), stdout/stderr separated, output truncation guard (2MB) |
|
|
29
|
-
| Web terminal | xterm.js + WebSocket PTY terminal, auto-sizing, real-time output |
|
|
29
|
+
| Web terminal | xterm.js + WebSocket PTY terminal, auto-sizing, real-time output; the panel holds several terminal tabs, each with its own host PTY — switch, close one at a time, run several tabs against the same host, and the "+" control opens another tab on the host the toolbar shows |
|
|
30
30
|
| File transfer | SFTP upload (browser file picker, NDJSON progress stream), download (progress bar + browser save); remote directory browsing |
|
|
31
31
|
| Port forwarding | Local port-forward tunnel (listens on 127.0.0.1 only) to reach a remote database / intranet service; list / stop supported |
|
|
32
32
|
| Cluster execution | One command run concurrently across many hosts (filter by alias / environment / tag, default concurrency 8) |
|
|
33
33
|
| Agent tools | `ssh_list` / `ssh_exec` / `ssh_upload` / `ssh_download` / `ssh_tunnel` / `ssh_cluster`; GUI and Agent share the same host config |
|
|
34
34
|
|
|
35
|
-
The panel loads its contents on first open. Closing and reopening it preserves the selected tab, form drafts and terminal session. The tunnel list refreshes every five seconds while its tab, panel and browser page are visible; automatic reads pause when hidden, resume immediately on return, and do not overlap slow reads. Port forwarding itself continues in the Host.
|
|
35
|
+
The panel loads its contents on first open. Closing and reopening it preserves the selected tab, form drafts and every terminal tab. A terminal tab that is not on screen keeps its remote shell in the Host: the view detaches, and returning to the tab reattaches by session id and replays the host's scrollback into the single xterm. A remote shell that exits keeps its tab and its last screen instead of vanishing, and a tab closed in the background is only removed once the Host confirms the close — a close that cannot be delivered keeps the tab and says so. The tunnel list refreshes every five seconds while its tab, panel and browser page are visible; automatic reads pause when hidden, resume immediately on return, and do not overlap slow reads. Port forwarding itself continues in the Host.
|
|
36
36
|
|
|
37
37
|
## Security model
|
|
38
38
|
|
package/README.zh.md
CHANGED
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
| 持久连接池 | 每台主机复用长连接(对应 ssh-skill 的守护进程),空闲 30 分钟自动断开,断线自动重连(最多 3 次) |
|
|
27
27
|
| Agent 转发 | 按主机选择性启用(`ssh -A`):主机表单提供「启用 Agent 转发」勾选框,主机列表为已启用的主机显示「Agent 转发」标记;`ssh_list` 输出带 `forwardAgent`,渲染表格中对应一列。转发的本地端点依次取主机配置的 agent 路径、`SSH_AUTH_SOCK`、Windows 上的原生 OpenSSH 命名管道(`\\.\pipe\openssh-ssh-agent`);三者都拿不到时连接直接报错,不会静默地不转发。服务端拒绝该请求(`AllowAgentForwarding no`)时原样呈现服务端错误,绝不静默降级为未转发的会话。关闭时不写入配置文件 |
|
|
28
28
|
| 命令执行 | exec 带超时(默认 60s),stdout/stderr 分离,输出截断保护(2MB) |
|
|
29
|
-
| Web 终端 | xterm.js + WebSocket PTY
|
|
29
|
+
| Web 终端 | xterm.js + WebSocket PTY 终端,自适应尺寸,实时输出;面板内可开多个终端标签,每个标签各自持有一个 Host PTY——可切换、可单独关闭、可对同一主机开多个标签,「+」按工具栏当前主机新开一个标签 |
|
|
30
30
|
| 文件传输 | SFTP 上传(浏览器选文件,NDJSON 进度流)、下载(进度条 + 浏览器保存);远程目录浏览 |
|
|
31
31
|
| 端口转发 | 本地端口转发隧道(仅监听 127.0.0.1),访问远程数据库 / 内网服务,支持列表 / 停止 |
|
|
32
32
|
| 集群执行 | 一条命令并发跑多台主机(按别名 / 环境 / 标签过滤,默认并发 8) |
|
|
33
33
|
| Agent 工具 | `ssh_list` / `ssh_exec` / `ssh_upload` / `ssh_download` / `ssh_tunnel` / `ssh_cluster`,GUI 与 Agent 共享同一份主机配置 |
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
面板在首次打开时加载内容。关闭后重新打开会保留选中的页签、表单草稿与全部终端标签。不在前台的终端标签仍由 Host 保活:视图只做 detach,切回该标签时按 session id 重新 attach,并把 Host 的滚动缓冲回放进同一个 xterm。远端 shell 退出后标签与最后一屏内容保留、不会消失;关闭后台标签只在 Host 确认关闭后才移除标签,关闭帧送不到 Host 时标签保留并给出提示。隧道列表仅在隧道页签、面板和浏览器页面都可见时每五秒刷新;隐藏时暂停自动查询,恢复可见时立即刷新,慢查询期间不叠加请求。端口转发本身继续在 Host 中运行。
|
|
36
36
|
|
|
37
37
|
## 安全模型
|
|
38
38
|
|