@linxin666/dsh-ssh 0.1.20 → 0.2.1
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 +5 -5
- package/README.zh.md +3 -3
- package/lib/client.js +291 -119
- package/lib/client.js.map +1 -1
- package/lib/index.js +51 -33
- package/lib/types/client/locales.d.ts +135 -127
- package/lib/types/client/panel/HostsTab.d.ts +16 -0
- package/lib/types/client/sidebar-entry-core.d.ts +60 -0
- package/lib/types/client/sidebar-entry.d.ts +7 -11
- package/lib/types/protocol.d.ts +1 -1
- package/package.json +12 -12
- package/src/client/locales.ts +16 -0
- package/src/client/mount.tsx +1 -0
- package/src/client/panel/HostsTab.tsx +152 -48
- package/src/client/panel/SshPanel.tsx +1 -1
- package/src/client/panel/TerminalTab.tsx +1 -1
- package/src/client/panel/panel.module.css +75 -0
- package/src/client/sidebar-entry-core.ts +208 -0
- package/src/client/sidebar-entry.ts +23 -138
- package/src/engine/connection-pool.ts +27 -21
- package/src/routes.ts +33 -8
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: 4f2f068da6af190caeadf8deeffce24d138c6b37
|
|
6
|
+
README.zh.md: d0090dd49663cf397e4980b70127659cb041fea9
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Built on the capability list of [badseal/ssh-skill](https://github.com/badseal/s
|
|
|
8
8
|
|
|
9
9
|
| Capability | Description |
|
|
10
10
|
| --- | --- |
|
|
11
|
-
| Host management | CRUD, search, connection test; config stored in `~/.dsh/dsh-ssh.json`; supports key / password auth, passphrase keys, ProxyJump jump hosts (multi-level) |
|
|
11
|
+
| Host management | CRUD, search, connection test; collapsible grouping by environment / tags with per-group batch test; config stored in `~/.dsh/dsh-ssh.json`; supports key / password auth, passphrase keys, ProxyJump jump hosts (multi-level) |
|
|
12
12
|
| Config import | One-click parse of a standard `~/.ssh/config` (Host/HostName/User/Port/IdentityFile/ProxyJump etc.); existing aliases are skipped |
|
|
13
13
|
| 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) |
|
|
14
14
|
| Command execution | exec with a timeout (default 60s), stdout/stderr separated, output truncation guard (2MB) |
|
|
@@ -33,10 +33,10 @@ Built on the capability list of [badseal/ssh-skill](https://github.com/badseal/s
|
|
|
33
33
|
Install the family aggregate package `@linxin666/dsh-web-ui-all` (all plugins and skins in one) or this plugin alone:
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
|
-
###
|
|
37
|
-
dsh plugin --profile web add @linxin666/dsh-ssh
|
|
36
|
+
### From npm (recommended)
|
|
37
|
+
dsh plugin --profile web add @linxin666/dsh-ssh@latest
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### From the repository (development)
|
|
40
40
|
git clone https://github.com/zhu1090093659/dsh-web-ui.git
|
|
41
41
|
cd dsh-web-ui
|
|
42
42
|
pnpm install && pnpm -r build
|
|
@@ -53,7 +53,7 @@ The settings panel (plugin config) toggles `announceToAgent` (whether to announc
|
|
|
53
53
|
## Data
|
|
54
54
|
|
|
55
55
|
- Host config: `~/.dsh/dsh-ssh.json` (versioned JSON, atomic write)
|
|
56
|
-
- Transfer staging: `os.tmpdir()/dsh-ssh-uploads/`
|
|
56
|
+
- Transfer staging: `os.tmpdir()/dsh-ssh-uploads/` (0700 directory, 0600 in-flight files)
|
|
57
57
|
|
|
58
58
|
## Development
|
|
59
59
|
|
package/README.zh.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
| 能力 | 说明 |
|
|
10
10
|
| --- | --- |
|
|
11
|
-
| 主机管理 |
|
|
11
|
+
| 主机管理 | 增删改查、搜索、连接测试;支持按环境 / 标签分组折叠与组内批量测试;配置存 `~/.dsh/dsh-ssh.json`;支持密钥 / 密码认证、passphrase 密钥、ProxyJump 跳板机(多级) |
|
|
12
12
|
| 配置导入 | 一键解析标准 `~/.ssh/config`(Host/HostName/User/Port/IdentityFile/ProxyJump 等),已有别名自动跳过 |
|
|
13
13
|
| 持久连接池 | 每台主机复用长连接(对应 ssh-skill 的守护进程),空闲 30 分钟自动断开,断线自动重连(最多 3 次) |
|
|
14
14
|
| 命令执行 | exec 带超时(默认 60s),stdout/stderr 分离,输出截断保护(2MB) |
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
|
|
35
35
|
```sh
|
|
36
36
|
### 从 npm 安装(推荐)
|
|
37
|
-
dsh plugin --profile web add @linxin666/dsh-ssh
|
|
37
|
+
dsh plugin --profile web add @linxin666/dsh-ssh@latest
|
|
38
38
|
|
|
39
39
|
### 从仓库安装(开发调试)
|
|
40
40
|
git clone https://github.com/zhu1090093659/dsh-web-ui.git
|
|
@@ -53,7 +53,7 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-ssh
|
|
|
53
53
|
## 数据
|
|
54
54
|
|
|
55
55
|
- 主机配置:`~/.dsh/dsh-ssh.json`(版本化 JSON,原子写入)
|
|
56
|
-
- 传输暂存:`os.tmpdir()/dsh-ssh-uploads
|
|
56
|
+
- 传输暂存:`os.tmpdir()/dsh-ssh-uploads/`(目录 0700,传输中的文件 0600)
|
|
57
57
|
|
|
58
58
|
## 开发
|
|
59
59
|
|