@pyrokine/mcp-ssh 3.2.0 → 3.3.0
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 +77 -18
- package/README_zh.md +40 -10
- package/dist/command-risk.js +1 -1
- package/dist/directory-verification.js +10 -10
- package/dist/file-ops.d.ts +9 -5
- package/dist/file-ops.js +163 -57
- package/dist/known-hosts.js +11 -1
- package/dist/openssh.d.ts +5 -5
- package/dist/openssh.js +92 -38
- package/dist/remote-platform.js +2 -2
- package/dist/session-manager.d.ts +7 -1
- package/dist/session-manager.js +139 -22
- package/dist/sftp-timeout.d.ts +1 -1
- package/dist/sftp-timeout.js +12 -2
- package/dist/tools/connection.js +14 -10
- package/dist/tools/exec.js +66 -35
- package/dist/tools/file.js +93 -21
- package/dist/transfer-outcome.js +1 -1
- package/dist/types.d.ts +4 -1
- package/dist/windows-acl.js +6 -6
- package/package.json +5 -5
package/dist/windows-acl.js
CHANGED
|
@@ -24,8 +24,8 @@ export function windowsAclScript(filePath, apply) {
|
|
|
24
24
|
'}\n' +
|
|
25
25
|
'foreach ($sid in @($identity, $system, $administrators)) {\n' +
|
|
26
26
|
' $rule = [System.Security.AccessControl.FileSystemAccessRule]::ne' +
|
|
27
|
-
'w($sid, [System.Security.AccessControl.FileSystemRights]::
|
|
28
|
-
'
|
|
27
|
+
'w($sid, [System.Security.AccessControl.FileSystemRights]::' +
|
|
28
|
+
'FullControl, [System.Security.AccessControl.AccessControlType]::Allow)\n' +
|
|
29
29
|
' $acl.AddAccessRule($rule)\n' +
|
|
30
30
|
'}\n' +
|
|
31
31
|
'Set-Acl -LiteralPath $path -AclObject $acl\n' +
|
|
@@ -90,10 +90,10 @@ export function windowsTemporaryPathScript(name) {
|
|
|
90
90
|
' }\n' +
|
|
91
91
|
' $rights = [System.Security.AccessControl.FileSystemRights]::Delete ' +
|
|
92
92
|
'-bor\n' +
|
|
93
|
-
' [System.Security.AccessControl.FileSystemRights]::
|
|
94
|
-
'
|
|
95
|
-
' [System.Security.AccessControl.FileSystemRights]::
|
|
96
|
-
'
|
|
93
|
+
' [System.Security.AccessControl.FileSystemRights]::' +
|
|
94
|
+
'DeleteSubdirectoriesAndFiles -bor\n' +
|
|
95
|
+
' [System.Security.AccessControl.FileSystemRights]::' +
|
|
96
|
+
'ChangePermissions -bor\n' +
|
|
97
97
|
' [System.Security.AccessControl.FileSystemRights]::TakeOwnership\n' +
|
|
98
98
|
' if ($current.FullName -eq $directory.FullName) {\n' +
|
|
99
99
|
' $rights = $rights -bor ' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyrokine/mcp-ssh",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "A comprehensive SSH MCP Server for Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.mjs\"",
|
|
17
17
|
"lint:fix": "eslint \"src/**/*.ts\" \"test/**/*.mjs\" --fix",
|
|
18
18
|
"test": "npm run build && node test/run-tests.mjs",
|
|
19
|
-
"format": "prettier --write
|
|
20
|
-
"format:check": "prettier --check
|
|
19
|
+
"format": "prettier --write . --ignore-path ../.gitignore --ignore-path ../.prettierignore",
|
|
20
|
+
"format:check": "prettier --check . --ignore-path ../.gitignore --ignore-path ../.prettierignore"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"mcp",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@types/node": "^26.1.1",
|
|
44
44
|
"@types/ssh2": "^1.15.5",
|
|
45
45
|
"eslint": "^10.7.0",
|
|
46
|
-
"prettier": "
|
|
46
|
+
"prettier": "3.9.5",
|
|
47
47
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
48
48
|
"typescript-eslint": "^8.64.0",
|
|
49
49
|
"typescript7": "npm:typescript@^7.0.2"
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"README_zh.md",
|
|
58
58
|
"LICENSE"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "916bd442cddf7f14225c8f3da18530b699ca2e39"
|
|
61
61
|
}
|