agent-ssh-cli 0.3.7 → 0.3.9
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.md +2 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/Node.js-%3E%3D18-339933?logo=node.js&logoColor=white" alt="Node.js >=18"></a>
|
|
13
13
|
<a href="https://www.npmjs.com/"><img src="https://img.shields.io/badge/npm-%3E%3D8-CB3837?logo=npm&logoColor=white" alt="npm >=8"></a>
|
|
14
14
|
<a href="https://github.com/sleepinginsummer/agent-ssh-cli"><img src="https://img.shields.io/badge/sys-win%2Fmac%2Flinux-0078D6" alt="sys win/mac/linux"></a>
|
|
15
|
-
<a href="https://github.com/sleepinginsummer/agent-ssh-cli/releases"><img src="https://img.shields.io/badge/release-v0.3.
|
|
15
|
+
<a href="https://github.com/sleepinginsummer/agent-ssh-cli/releases"><img src="https://img.shields.io/badge/release-v0.3.9-blue" alt="release v0.3.9"></a>
|
|
16
16
|
<a href="https://github.com/sleepinginsummer/agent-ssh-cli/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen" alt="PRs welcome"></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
- 上传本地文件到远端服务器,支持临时文件、断点续传和失败重试
|
|
37
37
|
- 从远端服务器下载文件到本地
|
|
38
38
|
- 通过命令黑白名单限制可执行命令
|
|
39
|
-
- 通过本地路径白名单限制上传和下载访问范围
|
|
40
39
|
|
|
41
40
|
## 上传稳定性
|
|
42
41
|
|
|
@@ -100,7 +99,7 @@ AGENT_SSH_CONFIG=/path/to/config.json
|
|
|
100
99
|
- `socksProxy`: SOCKS5 代理地址,例如 `socks5://127.0.0.1:1080`;也可省略协议写成 `127.0.0.1:1080`
|
|
101
100
|
- `jumpHost`: 跳板机连接名,填写配置文件中另一台机器的 `name`
|
|
102
101
|
- `pty`: 是否分配伪终端,默认 `false`,也可通过 `exec --pty` 临时开启
|
|
103
|
-
- `allowedLocalPaths`:
|
|
102
|
+
- `allowedLocalPaths`: 兼容旧配置字段,当前不限制本地路径
|
|
104
103
|
- `commandWhitelist`: 命令白名单正则数组
|
|
105
104
|
- `commandBlacklist`: 命令黑名单正则数组
|
|
106
105
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-ssh-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "基于 CLI 的 SSH 代理工具,按 ssh-mcp-server 的能力一一映射",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"build:native-package": "npm run build:native-bin && node scripts/build-native-package.js"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@agent-ssh-cli/darwin-arm64": "0.3.
|
|
31
|
-
"@agent-ssh-cli/darwin-x64": "0.3.
|
|
32
|
-
"@agent-ssh-cli/linux-arm64": "0.3.
|
|
33
|
-
"@agent-ssh-cli/linux-x64": "0.3.
|
|
34
|
-
"@agent-ssh-cli/win32-x64": "0.3.
|
|
30
|
+
"@agent-ssh-cli/darwin-arm64": "0.3.9",
|
|
31
|
+
"@agent-ssh-cli/darwin-x64": "0.3.9",
|
|
32
|
+
"@agent-ssh-cli/linux-arm64": "0.3.9",
|
|
33
|
+
"@agent-ssh-cli/linux-x64": "0.3.9",
|
|
34
|
+
"@agent-ssh-cli/win32-x64": "0.3.9"
|
|
35
35
|
}
|
|
36
36
|
}
|