@linxin666/dsh-ssh 0.4.5 → 0.4.7
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 -1
- package/README.zh.md +2 -1
- package/lib/client.js +2 -3
- package/lib/client.js.map +1 -1
- package/lib/index.js +63 -23
- package/lib/types/engine/tunnel.d.ts +2 -0
- package/package.json +21 -25
- package/src/client/settings-binding.ts +0 -1
- package/src/engine/tunnel.ts +74 -19
- package/lib/invariant.js +0 -6
- package/lib/types/invariant.d.ts +0 -3
- package/src/invariant.ts +0 -4
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: 3067f9ad708d7425ec701e1db244a21d4a98bb2f
|
|
6
|
+
README.zh.md: 8e93735474fb150138f9e8c2b67e3a77f04462b5
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-ssh?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.2-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
|
@@ -40,6 +40,7 @@ The panel loads its contents on first open. Closing and reopening it preserves t
|
|
|
40
40
|
- ssh-agent auth stores only the agent socket path (or the special value `pageant`); it never reads or stores private-key material.
|
|
41
41
|
- Tunnels only listen on `127.0.0.1`.
|
|
42
42
|
- Deleting a host or changing its connection fields (host / port / user / auth / proxyJump / proxyCommand) immediately closes that alias's pooled connection and tunnels; later operations reconnect with the new configuration and never reuse a connection authenticated with the old credentials.
|
|
43
|
+
- When the SSH connection behind a tunnel drops, the tunnel retires itself: the local port stops accepting, the tunnel leaves the list, and the connection that arrives during the drop is closed without traffic instead of interrupting the host process.
|
|
43
44
|
- A `proxyCommand` value is a shell command executed by the DSH host process with its privileges — exactly the trust `ssh(1)` gives the same line in `~/.ssh/config`. It can only come from the user's own 0600 store file: the Agent cannot create or edit hosts, and `ssh_list` reports only whether a host has one, never the command text.
|
|
44
45
|
- Before the Agent uses a tool, the host must first be configured in the GUI (or imported from ~/.ssh/config).
|
|
45
46
|
- `ssh_upload` / `ssh_download` read/write arbitrary local paths on this machine with host-process privileges (not through the bash sandbox) — same host-local-path semantics as ssh-skill, be aware of that permission surface.
|
package/README.zh.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/npm/v/@linxin666/dsh-ssh?style=flat-square" alt="Version">
|
|
7
7
|
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.
|
|
8
|
+
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.2-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
9
|
|
|
10
10
|
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
11
|
</p>
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
- ssh-agent 认证仅保存 agent socket 路径(或 `pageant` 特殊值),不读取也不保存任何私钥材料。
|
|
41
41
|
- 隧道只监听 `127.0.0.1`。
|
|
42
42
|
- 删除主机或修改其连接字段(host / port / user / auth / proxyJump / proxyCommand)会立即断开该别名的池化连接与隧道,后续操作按新配置重新建连,不会复用旧凭据的已认证连接。
|
|
43
|
+
- 隧道背后的 SSH 连接一旦断开,隧道会自行退役:本地端口不再接受连接,隧道从列表中消失;断开期间到达的连接被直接关闭且没有流量,不会打断宿主进程。
|
|
43
44
|
- `proxyCommand` 是一条由 DSH 宿主进程以其自身权限执行的 shell 命令——与 `ssh(1)` 执行 `~/.ssh/config` 里同一行的信任模型一致。它只能来自用户自己的 0600 配置文件:Agent 无法创建或修改主机,`ssh_list` 只报告该主机是否配置了 ProxyCommand,不返回命令原文。
|
|
44
45
|
- Agent 使用工具前,主机需先在 GUI 中配置(或从 ~/.ssh/config 导入)。
|
|
45
46
|
- `ssh_upload` / `ssh_download` 以宿主进程权限直接读写本机任意路径(不经 bash 沙箱)——与 ssh-skill 的宿主本地路径语义一致,注意该权限面。
|
package/lib/client.js
CHANGED
|
@@ -16317,8 +16317,7 @@ window.__ModuleLoader__.load({
|
|
|
16317
16317
|
base: void 0,
|
|
16318
16318
|
user: void 0,
|
|
16319
16319
|
revision: void 0,
|
|
16320
|
-
writable: false
|
|
16321
|
-
mode: "host"
|
|
16320
|
+
writable: false
|
|
16322
16321
|
};
|
|
16323
16322
|
/** Whether one Host namespace section carries a field this plugin's schema declares. */
|
|
16324
16323
|
function carriesField(section, field) {
|
|
@@ -16415,7 +16414,7 @@ window.__ModuleLoader__.load({
|
|
|
16415
16414
|
/** The building package's version, when the bundle carries it. */
|
|
16416
16415
|
function bakedVersion() {
|
|
16417
16416
|
try {
|
|
16418
|
-
return "0.4.
|
|
16417
|
+
return "0.4.7";
|
|
16419
16418
|
} catch {
|
|
16420
16419
|
return;
|
|
16421
16420
|
}
|