dsh-share-chat 0.29.0 → 0.29.2

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 CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  在 DSH 里和好友聊天,并且能把一段对话一键分享给对方——不是截图,是带工具调用和回复的结构化快照。
4
4
 
5
- 消息不经过任何模型,**不消耗 token**。所有内容存在你自己的服务器上。
5
+ 除了聊天,还长出了一整套「一起玩」的东西:**视频会议**、**KTV**、**麻将**、**串门复刻好友的插件配置**、**捏脸**、**桌面宠物**。
6
+
7
+ 消息不经过任何模型,**不消耗 token**。所有内容都存在你自己的服务器上。
6
8
 
7
9
  ## 需要什么
8
10
 
@@ -11,10 +13,26 @@
11
13
 
12
14
  ## 安装
13
15
 
14
- 1. 把这个文件夹解压到任意位置,比如 `D:\plugins\share-chat`
16
+ **从 npm 装(推荐)**
17
+
18
+ ```bash
19
+ dsh plugin add dsh-share-chat
20
+ ```
21
+
22
+ **装不上 npm 时(镜像没同步 / 没网)**
23
+
24
+ ```bash
25
+ dsh plugin add https://xdxy-pet.com/dl/dsh-share-chat-0.29.0.tgz
26
+ ```
27
+
28
+ **从文件夹装**
29
+
30
+ 1. 把仓库解压到任意位置,比如 `D:\plugins\share-chat`
15
31
  2. 打开 DSH → 左侧栏 **插件** → **添加插件** → 选这个文件夹
16
32
  3. 装好后左侧栏会出现 **社交**(如果没有,去左侧栏底部的「更多」里点图钉固定)
17
33
 
34
+ > 从 Git 仓库装需要本机有 Git;上面两种方式都不需要。
35
+
18
36
  ## 第一次使用
19
37
 
20
38
  1. 左侧栏 → **社交**
@@ -27,6 +45,12 @@
27
45
  4. 进去后,在左栏输对方账号 ID 加好友(对方那边会自动出现你)
28
46
  5. 选一个好友开始聊:`Enter` 发送,`Shift+Enter` 换行
29
47
 
48
+ ## 聊天
49
+
50
+ - 好友和群聊混排在一个侧栏里,群消息带发送者名字和头像
51
+ - 支持图片、文件(点一下下载)
52
+ - 顶部一排按钮:**开会 / KTV / 麻将 / 摸鱼 / 串门 / 退出**
53
+
30
54
  ## 分享一段对话
31
55
 
32
56
  在会话里点 **社交** 标签页(跟「对话」「轨迹」那一排),顶部有 **「分享这一轮」**:
@@ -37,13 +61,79 @@
37
61
  分享内容包含:你的提问、工具调用(压成一行)、我的回复。
38
62
  **不包含**:思考过程、系统注入的上下文(运行时时间戳、工作目录等)。
39
63
 
64
+ ## 视频会议
65
+
66
+ - 点 **📹 开会**,把房间号发给对方,对方点「开会」填号即可
67
+ - **点对点直连**,媒体流不过服务器;**没有时长限制**
68
+ - ≤6 人;支持共享屏幕、静音、关摄像头
69
+ - 对称型 NAT 可能需要 TURN(目前只带公共 STUN)
70
+
71
+ ## KTV
72
+
73
+ - 点 **🎤 KTV** 开包厢,进房只开麦、不开摄像头
74
+ - 有排队点歌列表,浮窗可以拖动、可以缩放
75
+ - 适合一边写代码一边挂着
76
+
77
+ ## 麻将
78
+
79
+ - 点 **🀄 麻将** 开一桌,缺的位置由机器人补
80
+ - 牌面和操作在浮窗里,可拖动缩放
81
+ - 纯娱乐,不涉及任何积分/交易
82
+
83
+ ## 串门(营地)
84
+
85
+ 把「我装了哪些插件、什么主题」做成一张**营地卡片**,好友之间互相串门;看中了可以一键复刻。
86
+
87
+ - **发布我的营地**:填营地名 + 一句话签名,可见性选「仅好友 / 公开广场 / 凭访问码」
88
+ - **保留最近 3 版**,能回看上一版
89
+ - **进去看看**:插件清单会标 `已有` / `可安装` / `版本不同` / `内置`
90
+ - **复刻**:勾选 → 逐项确认来源 → 安装 → 结果列表 → **一键撤销这次安装**
91
+ - 安全边界:只接受 `包名@精确版本`、`git+https://…#commit`、`https://….tgz`;**`file:` / `link:` / 本地路径一律拒绝**;每次安装都要一次性 nonce + 二次确认
92
+
93
+ > 营地快照只有营地名、签名、插件清单,**不含**路径、凭据、会话内容。
94
+
95
+ ## 捏脸
96
+
97
+ - 串门面板左上角点「捏脸」打开**全屏工作室**
98
+ - **45 个参数**、11 组滑杆:脸型 / 眼睛 / 眉毛 / 鼻子 / 嘴巴 / 耳朵 / 肤色 / 头发 / 妆容 / 配饰 / 身形
99
+ - 两套画风:**Q 版鲸鱼娘**(默认)和**半写实**,参数通用
100
+ - **3D / 2D 切换**:3D 是真 WebGL 渲染(参数化头部网格 + 脸部贴图 + 卡通光照 + 描边 + 转台)
101
+ - 6 套预设、随机、撤销/重做(60 步)
102
+ - **脸码**:`FACE2-xxxx`,复制发给别人,粘贴就能用同一张脸
103
+ - 老形象(哈希生成的那版)会自动迁移,不会换脸
104
+
105
+ ## 桌面宠物
106
+
107
+ - 捏好的小人儿可以放到桌面上,**可拖动、可隐藏**
108
+ - 右键有菜单;位置记在本地
109
+
110
+ ## 小游戏
111
+
112
+ - 点 **🎮 摸鱼** 打开浮窗版《鱼塘摸鱼》,可拖拽、可缩放,窗口大小在**设置 → 社交 → 小游戏**里改
113
+
114
+ ## 隐私与边界
115
+
116
+ - 服务器**明文存储**消息,分享的快照 **7 天后过期**;别发敏感内容
117
+ - 没有端到端加密;会议是 P2P,但信令经过服务器
118
+ - 账号和 token 存在浏览器本地;**换登录端口会掉登录,用密码重新登即可**
119
+ - 复刻插件等于在**你自己机器上**安装对方选的包,务必看清来源再点确认
120
+
40
121
  ## 已知限制
41
122
 
42
123
  - 只分享**最后一轮**,不是整个会话
43
124
  - 消息 5 秒轮询,不是实时推送
44
- - 没有群聊、已读回执、撤回、图片、语音
45
- - 服务器明文存储,分享的快照 **7 天后过期**
46
- - 服务器地址和 token 存在浏览器本地;**换登录端口会掉登录,用密码重新登即可**
125
+ - 会议 ≤6 人;对称 NAT 可能要 TURN
126
+ - 没有已读回执、撤回、语音消息
127
+ - 3D 形象目前是「球面头部 + 贴图五官」,还不是细分网格建模
128
+
129
+ ## 文档
130
+
131
+ - [安装与排错](docs/INSTALL.md)
132
+ - [实现细节](docs/DETAIL.md)
133
+ - [会议](docs/MEETING.md)
134
+ - [小游戏](docs/GAME.md)
135
+ - [串门与复刻](docs/CAMP.md)
136
+ - [捏脸引擎](docs/FACE.md)
47
137
 
48
138
  ## 卸载
49
139
 
package/client.js CHANGED
@@ -280,23 +280,23 @@ window.__ModuleLoader__.load({
280
280
  .sc-icon-btn{width:30px;padding:0;font-size:15px}
281
281
  .sc-btn-sm{height:26px;padding:0 9px;font-size:12px;border-radius:8px}
282
282
 
283
- .sc-input,.sc-textarea{width:100%;padding:8px 12px;border-radius:10px;border:1px solid var(--dsw-alias-border-l3,rgba(128,128,128,.30));background:var(--dsw-alias-bg-base,transparent);color:inherit;font:inherit;font-size:13px;outline:none;transition:border-color .15s,box-shadow .15s}
284
- .sc-input:focus,.sc-textarea:focus{border-color:var(--dsw-alias-brand-primary,#247bbf);box-shadow:0 0 0 3px rgba(36,123,191,.15)}
283
+ .sc-input,.sc-textarea{width:100%;padding:8px 12px;border-radius:10px;border:1px solid var(--dsw-alias-border-l3,rgba(128,128,128,.30));background:transparent;color:inherit;font:inherit;font-size:13px;outline:none;transition:border-color .15s,box-shadow .15s}
284
+ .sc-input:focus,.sc-textarea:focus{border-color:#67b6ea;box-shadow:0 0 0 3px rgba(36,123,191,.15)}
285
285
  .sc-input::placeholder,.sc-textarea::placeholder{color:var(--dsw-alias-label-tertiary,#8b949e)}
286
286
 
287
287
  .sc-avatar{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:600;color:#fff;user-select:none;overflow:hidden}
288
- .sc-chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:99px;background:var(--dsw-alias-fill-l2,rgba(128,128,128,.10));color:var(--dsw-alias-label-secondary,#5b6570);font-size:11px;white-space:nowrap}
288
+ .sc-chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:99px;background:rgba(127,127,127,.18);color:var(--dsw-alias-label-secondary,#5b6570);font-size:11px;white-space:nowrap}
289
289
  .sc-err{color:var(--dsw-alias-label-error,#d9534f);font-size:12px}
290
290
 
291
291
  /* 登录 */
292
292
  .sc-login{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto}
293
- .sc-login-card{width:100%;max-width:400px;background:var(--dsw-alias-bg-elevated,var(--dsw-alias-card-fill,#fff));border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));border-radius:20px;padding:26px 24px 20px;box-shadow:0 18px 50px rgba(0,0,0,.10)}
293
+ .sc-login-card{width:100%;max-width:400px;background:rgba(127,127,127,.12);border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));border-radius:20px;padding:26px 24px 20px;box-shadow:0 18px 50px rgba(0,0,0,.10)}
294
294
  .sc-logo{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:22px;background:linear-gradient(135deg,rgba(36,123,191,.18),rgba(36,123,191,.06));margin-bottom:14px}
295
295
  .sc-login-title{font-size:19px;font-weight:650;letter-spacing:.2px}
296
296
  .sc-login-sub{color:var(--dsw-alias-label-secondary,#5b6570);font-size:12.5px;margin-top:4px;margin-bottom:18px}
297
- .sc-tabs{display:flex;gap:3px;padding:3px;border-radius:11px;background:var(--dsw-alias-fill-l1,rgba(128,128,128,.08));margin-bottom:16px}
297
+ .sc-tabs{display:flex;gap:3px;padding:3px;border-radius:11px;background:rgba(127,127,127,.14);margin-bottom:16px}
298
298
  .sc-tab{flex:1;height:28px;border:0;border-radius:8px;background:transparent;color:var(--dsw-alias-label-secondary,#5b6570);font:inherit;font-size:12.5px;cursor:pointer;transition:background .15s,color .15s}
299
- .sc-tab.on{background:var(--dsw-alias-bg-base,#fff);color:var(--dsw-alias-label-primary,#1f2328);box-shadow:0 1px 3px rgba(0,0,0,.10)}
299
+ .sc-tab.on{background:rgba(127,127,127,.28);color:inherit;box-shadow:0 1px 3px rgba(0,0,0,.10)}
300
300
  .sc-field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
301
301
  .sc-field label{font-size:12px;color:var(--dsw-alias-label-secondary,#5b6570)}
302
302
  .sc-login-actions{display:flex;align-items:center;gap:10px;margin-top:6px}
@@ -311,7 +311,7 @@ window.__ModuleLoader__.load({
311
311
  .sc-chat-sub{font-size:11.5px;color:var(--dsw-alias-label-tertiary,#8b949e);line-height:1.3}
312
312
  .sc-chat-body{flex:1;min-height:0;display:flex}
313
313
 
314
- .sc-side{width:236px;flex:0 0 236px;display:flex;flex-direction:column;border-right:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));background:var(--dsw-alias-fill-l1,rgba(128,128,128,.035))}
314
+ .sc-side{width:236px;flex:0 0 236px;display:flex;flex-direction:column;border-right:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));background:rgba(127,127,127,.08)}
315
315
  .sc-side-title{padding:12px 14px 6px;font-size:11.5px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:var(--dsw-alias-label-tertiary,#8b949e)}
316
316
  .sc-add{display:flex;gap:6px;padding:0 10px 8px}
317
317
  .sc-add .sc-input{height:30px;padding:0 10px;font-size:12.5px}
@@ -332,11 +332,11 @@ window.__ModuleLoader__.load({
332
332
  .sc-msg-row.mine{flex-direction:row-reverse}
333
333
  .sc-msg-row>.sc-avatar{margin-top:2px}
334
334
  .sc-msg-row .sc-msg{flex:1 1 auto;min-width:0;max-width:none}
335
- .sc-bubble{max-width:min(78%,560px);padding:8px 12px;border-radius:14px 14px 14px 4px;background:var(--dsw-alias-fill-l2,rgba(128,128,128,.12));white-space:pre-wrap;word-break:break-word}
336
- .sc-msg.mine .sc-bubble{background:var(--dsw-alias-brand-primary,#247bbf);color:var(--dsw-alias-label-on-color,#fff);border-radius:14px 14px 4px 14px}
335
+ .sc-bubble{max-width:min(78%,560px);padding:8px 12px;border-radius:14px 14px 14px 4px;background:rgba(127,127,127,.22);color:inherit;white-space:pre-wrap;word-break:break-word}
336
+ .sc-msg.mine .sc-bubble{background:#247bbf;color:#fff;border-radius:14px 14px 4px 14px}
337
337
  .sc-time{font-size:10.5px;color:var(--dsw-alias-label-quaternary,#a0a8b0);padding:0 4px}
338
338
  .sc-msg-img{max-width:min(78%,420px);max-height:340px;border-radius:14px;display:block;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.2))}
339
- .sc-file{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));background:var(--dsw-alias-card-fill,rgba(128,128,128,.06));color:inherit;text-decoration:none;max-width:320px}
339
+ .sc-file{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));background:rgba(127,127,127,.10);color:inherit;text-decoration:none;max-width:320px}
340
340
  .sc-file:hover{background:var(--dsw-alias-card-fill-hover,rgba(128,128,128,.12))}
341
341
  .sc-file-ico{font-size:24px;line-height:1}
342
342
  .sc-file-main{display:flex;flex-direction:column;min-width:0}
@@ -356,28 +356,28 @@ window.__ModuleLoader__.load({
356
356
  .sc-emoji{display:flex;flex-wrap:wrap;gap:2px;max-height:112px;overflow:auto;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));border-radius:12px;padding:6px;background:var(--dsw-alias-bg-elevated,transparent)}
357
357
  .sc-emoji button{border:0;background:transparent;font-size:17px;line-height:1;padding:4px 5px;border-radius:7px;cursor:pointer}
358
358
  .sc-emoji button:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(128,128,128,.14))}
359
- .sc-composer-box{display:flex;align-items:flex-end;gap:6px;border:1px solid var(--dsw-alias-border-l3,rgba(128,128,128,.30));border-radius:16px;padding:5px 6px;background:var(--dsw-alias-bg-base,transparent);transition:border-color .15s,box-shadow .15s}
360
- .sc-composer-box:focus-within{border-color:var(--dsw-alias-brand-primary,#247bbf);box-shadow:0 0 0 3px rgba(36,123,191,.13)}
359
+ .sc-composer-box{display:flex;align-items:flex-end;gap:6px;border:1px solid var(--dsw-alias-border-l3,rgba(128,128,128,.30));border-radius:16px;padding:5px 6px;background:transparent;transition:border-color .15s,box-shadow .15s}
360
+ .sc-composer-box:focus-within{border-color:#67b6ea;box-shadow:0 0 0 3px rgba(36,123,191,.13)}
361
361
  .sc-textarea{flex:1;min-height:34px;max-height:140px;padding:6px 6px 6px 8px;border:0;background:transparent;resize:none;outline:none;box-shadow:none}
362
362
  .sc-textarea:focus{box-shadow:none;border:0}
363
363
  .sc-send{height:30px;padding:0 14px;border-radius:10px}
364
364
 
365
365
  /* 快照卡片 */
366
- .sc-snap{max-width:min(88%,560px);border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.24));border-radius:14px;overflow:hidden;background:var(--dsw-alias-card-fill,rgba(128,128,128,.05))}
367
- .sc-snap-head{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));background:var(--dsw-alias-fill-l1,rgba(128,128,128,.05))}
368
- .sc-snap-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:var(--dsw-alias-brand-primary,#247bbf)}
366
+ .sc-snap{max-width:min(88%,560px);border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.24));border-radius:14px;overflow:hidden;background:rgba(127,127,127,.10)}
367
+ .sc-snap-head{display:flex;align-items:center;gap:8px;padding:9px 12px;border-bottom:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));background:rgba(127,127,127,.08)}
368
+ .sc-snap-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#67b6ea}
369
369
  .sc-snap-title{font-size:11.5px;color:var(--dsw-alias-label-tertiary,#8b949e);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
370
370
  .sc-snap-body{padding:10px 12px;display:flex;flex-direction:column;gap:8px}
371
371
  .sc-blk{white-space:pre-wrap;word-break:break-word;font-size:12.5px}
372
372
  .sc-blk-user{padding-left:9px;border-left:2px solid rgba(36,123,191,.55)}
373
- .sc-blk-tool{padding:6px 9px;border-radius:8px;background:var(--dsw-alias-fill-l1,rgba(128,128,128,.08));font-family:ui-monospace,Consolas,monospace;font-size:11.5px;color:var(--dsw-alias-label-secondary,#5b6570)}
373
+ .sc-blk-tool{padding:6px 9px;border-radius:8px;background:rgba(127,127,127,.08);font-family:ui-monospace,Consolas,monospace;font-size:11.5px;color:var(--dsw-alias-label-secondary,#5b6570)}
374
374
  .sc-snap-skeleton{padding:14px 12px;font-size:12px;color:var(--dsw-alias-label-tertiary,#8b949e)}
375
375
 
376
376
  /* 分享条 */
377
- .sc-share{border-bottom:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));padding:8px 14px;flex:0 0 auto;background:var(--dsw-alias-fill-l1,rgba(128,128,128,.03))}
377
+ .sc-share{border-bottom:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.20));padding:8px 14px;flex:0 0 auto;background:rgba(127,127,127,.08)}
378
378
  .sc-share-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
379
379
  .sc-share-note{font-size:11.5px;color:var(--dsw-alias-label-tertiary,#8b949e)}
380
- .sc-preview{margin-top:8px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));border-radius:12px;max-height:190px;overflow:auto;padding:8px 10px;display:flex;flex-direction:column;gap:5px;background:var(--dsw-alias-bg-base,transparent)}
380
+ .sc-preview{margin-top:8px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));border-radius:12px;max-height:190px;overflow:auto;padding:8px 10px;display:flex;flex-direction:column;gap:5px;background:transparent}
381
381
  .sc-preview-cap{font-size:11px;color:var(--dsw-alias-label-tertiary,#8b949e)}
382
382
  .sc-preview-line{font-size:11px;line-height:1.5;font-family:ui-monospace,Consolas,monospace;opacity:.85;white-space:pre-wrap;word-break:break-word}
383
383
  .sc-preview-line.tool{opacity:.55}
@@ -392,7 +392,7 @@ window.__ModuleLoader__.load({
392
392
  .sc-cards{display:flex;gap:8px;flex-wrap:wrap}
393
393
  .sc-card-btn{flex:1 1 120px;min-width:112px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 10px;border-radius:12px;border:1px solid var(--dsw-alias-border-l3,rgba(128,128,128,.28));background:transparent;color:inherit;cursor:pointer;font:inherit;transition:background .15s,border-color .15s}
394
394
  .sc-card-btn:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(128,128,128,.08))}
395
- .sc-card-btn.on{border-color:var(--dsw-alias-brand-primary,#247bbf);background:rgba(36,123,191,.08)}
395
+ .sc-card-btn.on{border-color:#67b6ea;background:rgba(36,123,191,.08)}
396
396
  .sc-card-btn b{font-size:12.5px;font-weight:600}
397
397
  .sc-card-btn span{font-size:11px;color:var(--dsw-alias-label-tertiary,#8b949e)}
398
398
  .sc-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@@ -403,7 +403,7 @@ window.__ModuleLoader__.load({
403
403
  .sc-camp{flex:1;min-height:0;overflow:auto;padding:16px 18px}
404
404
  .sc-camp-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}
405
405
  .sc-camp-grid{display:flex;flex-direction:column;gap:10px;max-width:880px;margin:0 auto}
406
- .sc-camp-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));border-radius:14px;background:var(--dsw-alias-card-fill,rgba(128,128,128,.05));cursor:pointer;transition:background .15s,border-color .15s}
406
+ .sc-camp-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));border-radius:14px;background:rgba(127,127,127,.08);cursor:pointer;transition:background .15s,border-color .15s}
407
407
  .sc-camp-card:hover{background:var(--dsw-alias-card-fill-hover,rgba(128,128,128,.10));border-color:var(--dsw-alias-border-l3,rgba(128,128,128,.32))}
408
408
  .sc-camp-emoji{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:19px;background:rgba(36,123,191,.18)}
409
409
  .sc-camp-info{flex:1;min-width:0}
@@ -415,7 +415,7 @@ window.__ModuleLoader__.load({
415
415
  .sc-badge-new{background:rgba(36,123,191,.18);color:#67b6ea}
416
416
  .sc-badge-diff{background:rgba(240,180,80,.16);color:#e6b35c}
417
417
  .sc-badge-builtin{background:rgba(255,255,255,.08);color:var(--dsw-alias-label-tertiary,#8b949e)}
418
- .sc-camp-form{display:flex;flex-direction:column;gap:10px;max-width:520px;padding:16px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));border-radius:14px;background:var(--dsw-alias-card-fill,rgba(128,128,128,.05))}
418
+ .sc-camp-form{display:flex;flex-direction:column;gap:10px;max-width:520px;padding:16px;border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.22));border-radius:14px;background:rgba(127,127,127,.10)}
419
419
  .sc-camp-plugins{display:flex;flex-direction:column;gap:6px;margin-top:10px}
420
420
  .sc-camp-plug{display:flex;align-items:center;gap:8px;font-size:12px}
421
421
  .sc-camp-plug .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@@ -433,7 +433,7 @@ window.__ModuleLoader__.load({
433
433
  .sc-char-btn:hover{background:var(--dsw-alias-interactive-bg-hover,rgba(128,128,128,.1))}
434
434
  .sc-face-mask{position:fixed;inset:0;z-index:2147483645;display:flex;align-items:center;justify-content:center;background:rgba(4,10,14,.72);backdrop-filter:blur(6px)}
435
435
  .sc-face{width:min(1040px,94vw);height:min(720px,92vh);display:flex;flex-direction:column;border-radius:18px;overflow:hidden;
436
- background:var(--dsw-alias-bg-base,#0e1116);color:var(--dsw-alias-label-primary,#e9f2f6);
436
+ background:var(--dsw-alias-bg-base,#ffffff);color:var(--dsw-alias-label-primary,#e9f2f6);
437
437
  border:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.24));box-shadow:0 30px 80px rgba(0,0,0,.55)}
438
438
  .sc-face-head{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--dsw-alias-border-l2,rgba(128,128,128,.2));flex:0 0 auto;flex-wrap:wrap}
439
439
  .sc-face-title{font-size:14px;font-weight:600}
@@ -479,6 +479,26 @@ window.__ModuleLoader__.load({
479
479
  --dopa-pink:#ff5fa2; --dopa-pink-soft:#ffe3ef; --dopa-violet:#a86bff;
480
480
  --dopa-blue:#4d9fff; --dopa-mint:#3ddc97; --dopa-yellow:#ffcf3d; --dopa-ink:#3b2b45;
481
481
  background:linear-gradient(180deg,#fff8fc 0%,#f7faff 100%);
482
+ background-color:#fff8fc;
483
+ color:#3b2b45;
484
+ /* 这套主题是浅色,必须把 DSH 的暗色 token 全部覆盖掉,否则白字落在白底上 */
485
+ --dsw-alias-label-primary:#3b2b45;
486
+ --dsw-alias-label-secondary:#7a5b8a;
487
+ --dsw-alias-label-tertiary:#9b86a8;
488
+ --dsw-alias-label-quaternary:#b5a3c0;
489
+ --dsw-alias-label-on-color:#ffffff;
490
+ --dsw-alias-border-l2:rgba(160,120,180,.22);
491
+ --dsw-alias-border-l3:rgba(160,120,180,.32);
492
+ --dsw-alias-fill-l1:rgba(160,120,180,.07);
493
+ --dsw-alias-fill-l2:rgba(160,120,180,.12);
494
+ --dsw-alias-card-fill:rgba(255,255,255,.78);
495
+ --dsw-alias-card-fill-hover:rgba(255,255,255,.95);
496
+ --dsw-alias-bg-base:#ffffff;
497
+ --dsw-alias-bg-elevated:#ffffff;
498
+ --dsw-alias-interactive-bg-hover:rgba(160,120,180,.10);
499
+ --dsw-alias-brand-primary:#ff5fa2;
500
+ --dsw-alias-state-success-primary:#2f8f65;
501
+ --dsw-alias-label-error:#c2417a;
482
502
  }
483
503
  /* 顶栏 */
484
504
  .sc-chat-head{background:linear-gradient(96deg,#ffeaf4 0%,#fff7e8 45%,#eaf4ff 100%);border-bottom:2px solid #ffd9ec;box-shadow:0 4px 14px rgba(255,120,180,.10)}
package/index.js CHANGED
@@ -48,162 +48,6 @@ function pickTitle(snap) {
48
48
  }
49
49
 
50
50
  export function apply(ctx) {
51
- // ── 问模型:走 DSH 自己的 LLM 服务(消耗当前账号额度)──
52
- // 只在 loopback 下开放,公用部署直接 403。
53
- ctx.inject(['webServer', 'llm'], (scope) => {
54
- scope.effect(() =>
55
- scope.webServer.register({
56
- path: PREFIX + '/ask',
57
- kind: 'exact',
58
- // 注意:resource 路由只收 GET/HEAD(其它方法由框架回 405),
59
- // 这里要 POST,所以用 node 风格的 handler。
60
- handler: (req, res) => {
61
- const done = (status, body) => {
62
- res.writeHead(status, {
63
- 'content-type': 'application/json; charset=utf-8',
64
- 'cache-control': 'no-store',
65
- })
66
- res.end(JSON.stringify(body))
67
- }
68
- if (!isLoopbackOrigin(scope)) {
69
- return done(403, { error: 'not-loopback', hint: '公用部署下不开放模型调用' })
70
- }
71
- if (req.method !== 'POST') return done(405, { error: 'method' })
72
-
73
- let raw = ''
74
- let tooBig = false
75
- req.on('data', (c) => {
76
- raw += c
77
- if (raw.length > 200000) {
78
- tooBig = true
79
- req.destroy()
80
- }
81
- })
82
- req.on('end', async () => {
83
- if (tooBig) return done(413, { error: 'too-large' })
84
- let parsed = {}
85
- try {
86
- parsed = JSON.parse(raw || '{}') || {}
87
- } catch {
88
- parsed = {}
89
- }
90
- const prompt = String(parsed.prompt || '').slice(0, 4000)
91
-
92
- const pickId = (v) =>
93
- typeof v === 'string' ? v : (v && (v.id || v.provider || v.name || v.route)) || ''
94
-
95
- // 探针:只报告路由/提供方/模型,不调模型,用来定位问题
96
- if (parsed.probe) {
97
- try {
98
- const providers = (await Promise.resolve(scope.llm.listProviders())).map(pickId)
99
- const table = []
100
- for (const p of providers) {
101
- let ms = []
102
- try {
103
- ms = await Promise.resolve(scope.llm.listModels(p))
104
- } catch (e) {
105
- ms = []
106
- }
107
- table.push({ provider: p, models: (ms || []).map(pickId).slice(0, 8) })
108
- }
109
- return done(200, { ok: true, table })
110
- } catch (e) {
111
- return done(500, { error: 'probe-failed', detail: String((e && e.message) || e) })
112
- }
113
- }
114
-
115
- if (!prompt) return done(400, { error: 'empty' })
116
-
117
- try {
118
- const providers = (await Promise.resolve(scope.llm.listProviders())).map(pickId)
119
- if (!providers.length) return done(503, { error: 'no-provider' })
120
-
121
- // 优先官方/账号通道,其次非 web 驱动,最后才 web(要浏览器会话,容易挂)
122
- const ordered = [
123
- ...providers.filter((p) => /official|account|api-key/i.test(p)),
124
- ...providers.filter(
125
- (p) => !/official|account|api-key/i.test(p) && !/web/i.test(p),
126
- ),
127
- ...providers.filter((p) => /web/i.test(p) && !/official|account|api-key/i.test(p)),
128
- ]
129
- let provider = ''
130
- let model = ''
131
- for (const p of ordered) {
132
- let ms = []
133
- try {
134
- ms = await Promise.resolve(scope.llm.listModels(p))
135
- } catch {
136
- ms = []
137
- }
138
- const m = pickId((ms || [])[0])
139
- if (m) {
140
- provider = p
141
- model = m
142
- break
143
- }
144
- }
145
- if (!provider) return done(503, { error: 'no-model-anywhere' })
146
-
147
- const messages = [
148
- {
149
- role: 'system',
150
- content: [
151
- {
152
- type: 'text',
153
- text: '你是聊天里的助手。用简体中文回答,300 字以内,直接给结论,不要客套和重复问题。',
154
- },
155
- ],
156
- },
157
- { role: 'user', content: [{ type: 'text', text: prompt }] },
158
- ]
159
-
160
- let text = ''
161
- let timedOut = false
162
- const ac = new AbortController()
163
- const timer = setTimeout(() => {
164
- timedOut = true
165
- ac.abort()
166
- }, 60000)
167
- try {
168
- for await (const chunk of scope.llm.stream({
169
- provider,
170
- model,
171
- messages,
172
- signal: ac.signal,
173
- })) {
174
- if (!chunk) continue
175
- if (chunk.type === 'text-delta' && typeof chunk.text === 'string') {
176
- text += chunk.text
177
- } else if (
178
- chunk.type === 'finish' &&
179
- chunk.reason &&
180
- chunk.reason.kind === 'error'
181
- ) {
182
- const f = chunk.reason.failure || {}
183
- clearTimeout(timer)
184
- return done(502, {
185
- error: 'llm-error',
186
- detail: String(f.message || f.code || ''),
187
- })
188
- }
189
- }
190
- } finally {
191
- clearTimeout(timer)
192
- }
193
- if (timedOut) return done(504, { error: 'timeout', provider, model })
194
- text = String(text || '').trim()
195
- if (!text) return done(502, { error: 'empty-answer', provider, model })
196
- return done(200, { text, provider, model })
197
- } catch (e) {
198
- return done(500, { error: 'ask-failed', detail: String((e && e.message) || e) })
199
- }
200
- })
201
- req.on('error', () => {})
202
- },
203
- }),
204
- )
205
- })
206
-
207
51
  ctx.inject(['webServer', 'sessionQuery'], (scope) => {
208
52
  // ── 会话列表 ──
209
53
  scope.effect(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-share-chat",
3
- "version": "0.29.0",
3
+ "version": "0.29.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "keywords": [
package/docs/GAME.md DELETED
@@ -1,69 +0,0 @@
1
- # 小游戏:鱼塘摸鱼的浏览器移植
2
-
3
- 插件本身不含游戏代码,也不含移植脚手架。它只做一件事:在聊天页顶栏放一个 `🎮 摸鱼`,
4
- 用全屏 iframe 打开 `https://xdxy-pet.com/game/`(微信小游戏的浏览器移植版)。
5
-
6
- > 为什么仓库里没有移植层:移植层里有一个把 CommonJS 模块 `eval` 起来的加载器,
7
- > dsh.so 的安全扫描会把它判为 **critical(动态执行代码)**。它只是部署脚手架、不属于插件运行时,
8
- > 所以放在服务器上维护,不进插件仓库。
9
-
10
- ## 移植思路(文档,不是本仓库代码)
11
-
12
- 微信小游戏的代码是 `require('./x.js') + module.exports` + 全局 `wx.*`。在浏览器里跑起来需要两样东西:
13
-
14
- 1. **`wx` 适配层**:把用到的 API 映射到浏览器
15
- | 类别 | API |
16
- |---|---|
17
- | 画布/图片 | `createCanvas`、`createImage` |
18
- | 环境 | `getWindowInfo`、`getSystemInfoSync`、`getMenuButtonBoundingClientRect` |
19
- | 触摸 | `onTouchStart/Move/End/Cancel`(桌面把鼠标当单指) |
20
- | 键盘 | `showKeyboard`、`hideKeyboard`、`onKeyboardInput/Confirm/Complete`(用透明 `<input>` 承接) |
21
- | 存储 | `getStorageSync`、`setStorageSync`、`removeStorageSync`(→ localStorage) |
22
- | 网络 | `request`(→ fetch,GET 拼 query、POST JSON、AbortController 超时) |
23
- | 杂项 | `login`(浏览器直接失败,游戏退回账号密码)、`setClipboardData`、`setKeepScreenOn`、`onHide` |
24
- | 降级 | `createRewardedVideoAd`(广告不可用)、`createGameClubButton`、`createPageManager` |
25
- 2. **模块加载**:小游戏用 CommonJS。可以构建期把 30 个模块包成一个静态 registry
26
- (`__modules['js/app.js'] = function(require, module, exports){…}`)再由一个几十行的 `require` 运行,
27
- **不要**在运行时把源码字符串当代码执行(Function 构造器 / eval)——那正是被扫描器判 critical 的写法。
28
-
29
- ## 部署(在服务器上)
30
-
31
- ```
32
- /var/www/game/
33
- index.html wx-shim.js loader.js game.js ← 移植层
34
- js/ ← 小游戏工程的 js/,外加 files.json(模块清单)
35
- assets/ ← 小游戏工程的 assets/
36
- ```
37
-
38
- nginx 只需要一条静态 location,并且要和鱼塘的 `/api/fish/` **同源**(移植层才能不带 CORS 直接 fetch):
39
-
40
- ```nginx
41
- location /game/ {
42
- alias /var/www/game/;
43
- index index.html;
44
- charset utf-8;
45
- add_header Cache-Control "no-cache";
46
- add_header X-Content-Type-Options "nosniff" always;
47
- }
48
- ```
49
-
50
- 注意事项:
51
-
52
- - scp 上去的目录常常是 `700`,nginx 会 403,记得 `chmod -R a+rX`;
53
- - 不要把 `try_files` 和 `alias` 混用(解析会错位),用 `index` 就够;
54
- - 改了 `js/` 里的文件名,要重新生成 `files.json`(`js/` 下所有 `.js` 文件名的 JSON 数组);
55
- - 包内的 `JSON` 文件不要带 BOM。
56
-
57
- ## 和插件的接口
58
-
59
- 游戏页每秒给父页面发 `{ source: 'fishgame', type: 'scene', scene }`;
60
- 点按时发 `{ type: 'tap', x, y, hit }`(`hit` 是游戏自己的命中结果,用来诊断「点不到」)。
61
- 插件只用这些消息显示当前场景和报错,不影响游戏逻辑。
62
-
63
- ## 已知差距(对比微信)
64
-
65
- - 没有微信登录(`wx.login` 在浏览器直接失败,走账号密码)
66
- - 没有激励视频与游戏圈,对应 API 是「不可用」的降级实现
67
- - 输入用透明 `<input>` 顶系统键盘,移动端可用但不是原生输入框
68
- - 视频/音频能否播放取决于浏览器编解码
69
- - 游戏地址写死在 `client.js` 的 `GAME_URL`,换域名要改一版插件
package/docs/INSTALL.md DELETED
@@ -1,95 +0,0 @@
1
- # 安装与排错
2
-
3
- DSH 安装插件的三条通道,和「为什么有的插件要 Git」的来龙去脉。
4
-
5
- ## 一、DSH 怎么装插件
6
-
7
- DSH 的插件管理器(`@deepseek-ai/dsh-plugin-manager`)在你的 **profile 目录**里跑 pnpm:
8
-
9
- ```
10
- <profile>/package.json dependencies: { "<包名>": "<spec>" }
11
- <profile>/cordis.patch.yml 插件行(由 bundle 的 cordis.patch.yml 合并进来)
12
- ```
13
-
14
- 装什么、要不要 Git,全看这个 `<spec>`:
15
-
16
- | spec 形态 | 例子 | 需要 Git |
17
- |---|---|---|
18
- | registry 名称 | `dsh-share-chat@0.2.1` | ❌ |
19
- | tarball 地址 | `https://example.com/dsh-share-chat-0.2.1.tgz` | ❌ |
20
- | 本地路径 | `file:../dsh-share-chat` / `link:…` | ❌ |
21
- | Git 地址 | `git+https://gitee.com/you/repo.git`、`github:you/repo`、`git+ssh://…` | ✅ |
22
-
23
- pnpm 对 Git spec 会执行 `git ls-remote` 解析 commit、再 `git clone`/`git archive` 取内容,
24
- 所以机器上必须有 `git` 可执行文件。典型报错:
25
-
26
- ```
27
- [ERR_PNPM_GIT_RESOLVE_FAILED] Failed to resolve git dependency "git+https://…":
28
- git ls-remote failed: 'git' 不是内部或外部命令,也不是可运行的程序
29
- ```
30
-
31
- 另外 DSH 自己还有一层预检:装 **github.com** 地址前会先 `git ls-remote` 探活(`failedAt: 'spec-host'`)。
32
- Gitee / 自建 Git 服务不在这个预检里,但 pnpm 那一关仍然要 Git。
33
-
34
- ## 二、三种不需要 Git 的装法
35
-
36
- ### A. tgz(推荐)
37
-
38
- ```bash
39
- # 发布者(在仓库根目录)
40
- npm pack # 生成 dsh-share-chat-0.2.1.tgz
41
- # 也可以手打,注意包内路径必须是 package/ 开头:
42
- tar -czf dsh-share-chat-0.2.1.tgz -C dist package
43
- ```
44
-
45
- 把 tgz 放到能直接 200 返回的地方(不要 302),然后:
46
-
47
- ```bash
48
- dsh plugin add https://<你的域名>/dl/dsh-share-chat-0.2.1.tgz
49
- ```
50
-
51
- 注意:
52
-
53
- - 地址必须是**最终地址**(DSH 的一些 fetch 不跟随重定向);
54
- - tgz 里的 `package.json` **不能带 BOM**,否则安装器会报 `Unexpected token '\ufeff'` 并自动回滚;
55
- - 包必须声明 `dsh.bundle.patch`(本仓库已声明)。
56
-
57
- ### B. 本地文件夹
58
-
59
- DSH → **插件** → **添加插件** → 选文件夹。等价于 `pnpm add file:<folder>`,不碰 Git。
60
- 适合自己改着玩;升级时要重新选一次目录。
61
-
62
- ### C. npm registry
63
-
64
- 发布后 `dsh plugin add <包名>` 走 registry,同样不碰 Git。
65
- 发布前需要:
66
-
67
- 1. `package.json` 去掉 `"private": true`
68
- 2. `name` 改成你能发布的(如 `dsh-share-chat` 或 `@scope/dsh-share-chat`)
69
- 3. `npm publish --access public`
70
-
71
- > dsh.so 等插件市场用**仓库名**作为插件 id,仓库名保持 `dsh-share-chat` 最省事。
72
-
73
- ## 三、常见问题
74
-
75
- **Q:同事装的时候提示要 Git,我自己的机器不用?**
76
- 他大概是把 `git+https://…` 地址交给了 DSH(或从写着 git 地址的说明里复制的)。
77
- 让他改用 tgz 地址,或 `插件 → 添加插件 → 选文件夹`。
78
-
79
- **Q:能不能让 DSH 自带 Git?**
80
- 不能,DSH 不捆绑 Git。要么改分发方式(上面 A/B/C),要么让用户自己装 Git。
81
-
82
- **Q:装完侧栏没有「社交」?**
83
- 1. 刷新页面(client 侧是单独打包的,装/更新后需要重载)
84
- 2. 左侧栏底部「更多」里找「社交」,点右侧图钉固定
85
- 3. 插件页确认 `@local/dsh-share-chat`(或发布名)这一条是启用状态
86
-
87
- **Q:更新到新版本怎么做?**
88
- 换个 tgz 地址重新安装即可(插件页的更新也是同一套逻辑);文件目录安装则重新选一次目录。
89
-
90
- **Q:公司内网/离线环境?**
91
- 把 tgz 下载到内网可访问的静态服务器,或直接用文件夹安装。relay 与小游戏地址可以在登录页 / 设置里改(小游戏地址目前写死,见 `docs/GAME.md`)。
92
-
93
- **Q:profile 里装坏了怎么回滚?**
94
- 装失败的安装会自动还原 `package.json` / `pnpm-lock.yaml` / `node_modules`;
95
- 真要手动改,删掉 profile `package.json` 里那条依赖、去掉 `dsh.profile.bundles` 里的名字,再把 `cordis.patch.yml` 里对应行删掉即可。
package/docs/MEETING.md DELETED
@@ -1,69 +0,0 @@
1
- # 会议(音视频)
2
-
3
- 在社交插件里开会:≤6 人,音频 + 视频 + 屏幕共享,**没有时长限制**。
4
-
5
- ## 怎么用
6
-
7
- 1. 聊天页顶栏点 **📹 开会**
8
- 2. `+ 新建会议` → 拿到 6 位房间号;点 `📋 房间号` 复制,发给好友
9
- 3. 对方同样点 **📹 开会**,把房间号贴进输入框 → `加入`
10
- 4. 底部工具栏:`🎤` 麦克风、`🎥` 摄像头、`🖥` 共享屏幕、`📋` 复制房间号、`🚪` 离开
11
- 5. 窗口可拖标题栏移动、右下角改大小;`Esc` 离开
12
-
13
- 首次进会浏览器会要摄像头/麦克风权限。DSH 在 `http://127.0.0.1` 上,属于安全上下文,正常能授权;
14
- 如果哪天用局域网 IP 或公网 http 打开 DSH,浏览器会直接禁用摄像头。
15
-
16
- ## 它是怎么工作的
17
-
18
- ```
19
- 浏览器 A ──SDP/ICE──▶ relay(/api/meet/.../signal) ──▶ 浏览器 B
20
- └────────────── 媒体 P2P(SRTP,DTLS)──────────────┘
21
- ```
22
-
23
- - **媒体不经过服务器**:浏览器之间 WebRTC 直连,relay 只转发信令和成员状态。所以不吃服务器带宽,也没有时长限制。
24
- - **信令**:SSE 长连接(`GET /api/meet/rooms/<id>/events`),服务端零依赖手写 `text/event-stream`;nginx 侧 `proxy_buffering off`、读超时 1 小时。
25
- - **拓扑**:网状(mesh)——新加入的人对每个已在场的人各建一条 `RTCPeerConnection` 并主动发 offer;老成员只应答,避免 glare。
26
- - **NAT 穿透**:目前只配了公共 STUN(Cloudflare / Google)。对称 NAT 或运营商 CGNAT 下会连不上,界面标 `⚠ 可能需要对端 TURN`。
27
-
28
- ## relay 新增接口
29
-
30
- | 方法 | 路径 | 说明 |
31
- |---|---|---|
32
- | POST | `/api/meet/rooms` | 建会议,返回 6 位房间号 |
33
- | GET | `/api/meet/rooms/<id>` | 房间信息(加入前探测) |
34
- | POST | `/api/meet/rooms/<id>/join` | 加入,返回 `peerId` 与成员列表 |
35
- | GET | `/api/meet/rooms/<id>/events?peer=&token=` | SSE:`snapshot` / `peer-joined` / `peer-left` / `peer-state` / `signal` |
36
- | POST | `/api/meet/rooms/<id>/signal` | 转发 SDP/ICE 给指定 peer,对方不在线返回 `delivered:false` |
37
- | POST | `/api/meet/rooms/<id>/state` | 更新静音/摄像头/共享状态并广播 |
38
- | POST | `/api/meet/rooms/<id>/leave` | 离开;房间空了自动删 |
39
-
40
- 房间与成员只在内存里(`MEET` / `MEET_STREAMS`),不写 `db.json`;SSE 断开即视为离开。
41
-
42
- ## 规模与代价
43
-
44
- mesh 天然适合小会:每个人要往 N-1 个人各发一路视频,**上传带宽 ×(N-1)**。
45
- 480p 大约每人 0.5–1 Mbps,6 人时上行要 3–5 Mbps。人再多就得上 SFU(LiveKit/mediasoup),那是另一个工程。
46
-
47
- ## 下一步:TURN
48
-
49
- 对称 NAT 的兜底要在服务器加 coturn:
50
-
51
- ```bash
52
- dnf install -y coturn
53
- # /etc/coturn/turnserver.conf:listening-port=3478、tls-listening-port=5349、realm、user/static-auth-secret
54
- systemctl enable --now coturn
55
- ```
56
-
57
- 并在腾讯云 Lighthouse 控制台的**防火墙**放行 UDP 3478(以及 5349/TCP,如果要用 TLS)。
58
- 放行之后把地址填进 `client.js` 的 `MEET_ICE`:
59
-
60
- ```js
61
- { urls: 'turn:turn.你的域名:3478', username: 'u', credential: 'p' }
62
- ```
63
-
64
- ## 已知限制
65
-
66
- - 最多 6 人(mesh),更多需要 SFU
67
- - 没有服务端录制、没有主持人控制、没有等候室、没有密码锁(房间号就是凭据,介意的话后续加)
68
- - 屏幕共享是「替换本路视频」,所以共享时别人看到的是屏幕而不是你的摄像头
69
- - 只测过信令链路(无头测试覆盖 snapshot/join/signal/state/left/清理),**真实音视频需要两台机器实际连一次**才能确认 NAT 与权限