dsh-remote 0.8.27 → 0.8.28
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/lib/update.js +4 -1
- package/package.json +1 -1
package/lib/update.js
CHANGED
|
@@ -56,7 +56,10 @@ export function selfDir() {
|
|
|
56
56
|
* @param dir - 要判定的目录(默认本插件的 selfDir())。
|
|
57
57
|
*/
|
|
58
58
|
export function isInstalledCopy(dir = selfDir()) {
|
|
59
|
-
|
|
59
|
+
// 同时认 `/` 与 `\`:本函数要对两种平台的路径都给出正确答案,而调用方
|
|
60
|
+
// (尤其测试)会传另一种分隔符的路径。先前只按 path.sep 切分,导致
|
|
61
|
+
// 在 Linux 上判断 Windows 风格路径时误判为"非安装副本"(CI 直接红了)。
|
|
62
|
+
const normalized = String(dir).replace(/\\/g, '/').toLowerCase()
|
|
60
63
|
return normalized.includes('/node_modules/')
|
|
61
64
|
}
|
|
62
65
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-remote",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.28",
|
|
4
4
|
"description": "Remote-work assistant for DeepSeek Harness: connect SSH (password/key/agent/keyboard-interactive/proxy jump), pick a remote workspace, operate on it with 20 rw_* tools (incl. rw_edit/rw_stat/rw_mkdir/rw_remove/rw_move/rw_forward), conflict-aware mirror sync, port forwarding, optional side-bar remote file editing, audit log, keychain passwords.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "flymysql <flyphp@outlook.com>",
|