dsh-plugin-mesh 0.3.29 → 0.3.30
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 +19 -3
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -526,7 +526,23 @@ VPN,换网 MAC 就变;iOS / Android / macOS 现在默认按 SSID 使用随
|
|
|
526
526
|
|
|
527
527
|
两台机器都装。**装完必须重启 DSH Desktop 才会加载。**
|
|
528
528
|
|
|
529
|
-
### 方式 A
|
|
529
|
+
### 方式 A:从 npm 装(推荐,一条命令)
|
|
530
|
+
|
|
531
|
+
```bash
|
|
532
|
+
dsh plugin add dsh-plugin-mesh # desktop profile ← 要应用自带的终端
|
|
533
|
+
dsh plugin --profile web add dsh-plugin-mesh # 其它 profile ← 普通终端即可
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
**为什么推荐这条**:它不碰 `git clone` —— 而 `github.com` 的 **git over https 在国内
|
|
537
|
+
会被 Connection reset**(首次安装最常见的失败原因)。npm 走的是 registry,国内镜像
|
|
538
|
+
(npmmirror)有同步。实测在全新 profile 上 4.8 秒装完,48 个文件。
|
|
539
|
+
|
|
540
|
+
> ⚠️ 只有 `desktop` 这一个 profile 例外:`dsh plugin --profile desktop ...` 在
|
|
541
|
+
> **普通终端**里会被拒绝(`bin.js:29`:profile "desktop" is managed exclusively by
|
|
542
|
+
> the Electron application),必须用应用自带的那一个(托盘/菜单 → 终端)。
|
|
543
|
+
> 其它 profile 用普通终端就行(上面第二条已实测)。
|
|
544
|
+
|
|
545
|
+
### 方式 B:一键脚本(从源码装)
|
|
530
546
|
|
|
531
547
|
```bash
|
|
532
548
|
git clone https://github.com/peng456/dsh-plugin-mesh.git
|
|
@@ -549,7 +565,7 @@ cd dsh-plugin-mesh
|
|
|
549
565
|
./install.sh --uninstall # 卸载(删目录 + 从 bundles 移除)
|
|
550
566
|
```
|
|
551
567
|
|
|
552
|
-
### 方式
|
|
568
|
+
### 方式 C:手动装
|
|
553
569
|
|
|
554
570
|
```bash
|
|
555
571
|
# macOS
|
|
@@ -577,7 +593,7 @@ Copy-Item -Recurse dsh-plugin-mesh "$env:USERPROFILE\.dsh\profiles\desktop\node_
|
|
|
577
593
|
> 目的是防止陈旧的外部状态覆盖已封装安装)。把插件软链到你的工作目录会在启动时
|
|
578
594
|
> 报 `ERR_MODULE_NOT_FOUND`。`install.sh` 已经处理好了这一点。
|
|
579
595
|
|
|
580
|
-
### 方式
|
|
596
|
+
### 方式 D:官方命令 + 本地路径
|
|
581
597
|
|
|
582
598
|
托盘/菜单 → 终端:
|
|
583
599
|
|
package/lib/index.js
CHANGED
|
@@ -44,7 +44,7 @@ import { tailnetFetch, tailnetOrigin } from "./tsnet/bridge.js";
|
|
|
44
44
|
export const name = "dsh-plugin-mesh";
|
|
45
45
|
export const inject = ["tools", "webServer"];
|
|
46
46
|
|
|
47
|
-
const VERSION = "0.3.
|
|
47
|
+
const VERSION = "0.3.30";
|
|
48
48
|
const RULE_ID = "mesh-inbound";
|
|
49
49
|
const RULE_KIND = "mesh";
|
|
50
50
|
const MAX_BODY = 256 * 1024;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-mesh",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DSH Mesh:局域网自动发现同网段的 DSH 实例、显示每台机器上报的能力,并双向派发任务;可用内置的用户态 Tailscale 节点跨互联网组网。Discovers other DSH instances on the LAN, shows the capabilities each one reports, and dispatches tasks between machines in both directions, with an optional userspace Tailscale node for links across networks.",
|
|
6
6
|
"license": "MIT",
|