agent-ssh-cli 0.3.5 → 0.3.6
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 +8 -2
- 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.6-blue" alt="release v0.3.6"></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
|
|
|
@@ -33,11 +33,17 @@
|
|
|
33
33
|
#### 他的能力:
|
|
34
34
|
- 列出本地配置中的 SSH 服务器连接
|
|
35
35
|
- 在指定远端服务器上执行命令
|
|
36
|
-
-
|
|
36
|
+
- 上传本地文件到远端服务器,支持临时文件、断点续传和失败重试
|
|
37
37
|
- 从远端服务器下载文件到本地
|
|
38
38
|
- 通过命令黑白名单限制可执行命令
|
|
39
39
|
- 通过本地路径白名单限制上传和下载访问范围
|
|
40
40
|
|
|
41
|
+
## 上传稳定性
|
|
42
|
+
|
|
43
|
+
上传会先写入远端 `<remotePath>.part` 临时文件,并写入 `<remotePath>.part.meta` 续传元数据;完成后校验大小,再 rename 为正式目标文件。上传中断后,下次上传同一个本地文件到同一个远端路径会从已有 `.part` 大小继续。
|
|
44
|
+
|
|
45
|
+
`--no-cache` 上传可用 `Ctrl+C` 停止当前进程;daemon 模式可用 `agentsshcli stop-daemon` 停止连接池进程,但它会影响同一 daemon 内其它任务,不是精确取消单个上传。
|
|
46
|
+
|
|
41
47
|
## AI 一键安装
|
|
42
48
|
|
|
43
49
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-ssh-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
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.6",
|
|
31
|
+
"@agent-ssh-cli/darwin-x64": "0.3.6",
|
|
32
|
+
"@agent-ssh-cli/linux-arm64": "0.3.6",
|
|
33
|
+
"@agent-ssh-cli/linux-x64": "0.3.6",
|
|
34
|
+
"@agent-ssh-cli/win32-x64": "0.3.6"
|
|
35
35
|
}
|
|
36
36
|
}
|