wezard 3.0.1 → 3.0.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.
Files changed (178) hide show
  1. package/CLAUDE.md +14 -11
  2. package/README.md +2 -2
  3. package/cli/wezard.sh +56 -20
  4. package/config.example.jsonc +3 -0
  5. package/dist/cli/audit.js +11 -13
  6. package/dist/cli/audit.js.map +1 -1
  7. package/dist/cli/codex-hook.js +20 -17
  8. package/dist/cli/codex-hook.js.map +1 -1
  9. package/dist/cli/ext.js +271 -0
  10. package/dist/cli/ext.js.map +1 -0
  11. package/dist/cli/init.js +9 -13
  12. package/dist/cli/init.js.map +1 -1
  13. package/dist/cli/sync.js +3 -2
  14. package/dist/cli/sync.js.map +1 -1
  15. package/dist/cli/wx.js +7 -6
  16. package/dist/cli/wx.js.map +1 -1
  17. package/dist/daemon/aibot-media.js +28 -20
  18. package/dist/daemon/aibot-media.js.map +1 -1
  19. package/dist/daemon/approval.js +60 -37
  20. package/dist/daemon/approval.js.map +1 -1
  21. package/dist/daemon/channel-onboarding.js +61 -0
  22. package/dist/daemon/channel-onboarding.js.map +1 -0
  23. package/dist/daemon/channel-posts.js +56 -16
  24. package/dist/daemon/channel-posts.js.map +1 -1
  25. package/dist/daemon/channel-rebind.js +100 -0
  26. package/dist/daemon/channel-rebind.js.map +1 -0
  27. package/dist/daemon/channel-store.js.map +1 -1
  28. package/dist/daemon/channel.js +218 -466
  29. package/dist/daemon/channel.js.map +1 -1
  30. package/dist/daemon/claim.js +1 -45
  31. package/dist/daemon/claim.js.map +1 -1
  32. package/dist/daemon/classes.js +11 -13
  33. package/dist/daemon/classes.js.map +1 -1
  34. package/dist/daemon/config-api.js +5 -29
  35. package/dist/daemon/config-api.js.map +1 -1
  36. package/dist/daemon/control-socket.js +93 -0
  37. package/dist/daemon/control-socket.js.map +1 -0
  38. package/dist/daemon/danger-scrub.js +315 -0
  39. package/dist/daemon/danger-scrub.js.map +1 -0
  40. package/dist/daemon/danger.js +146 -16
  41. package/dist/daemon/danger.js.map +1 -1
  42. package/dist/daemon/detail.js +37 -15
  43. package/dist/daemon/detail.js.map +1 -1
  44. package/dist/daemon/exec-surface.js +108 -0
  45. package/dist/daemon/exec-surface.js.map +1 -0
  46. package/dist/daemon/external.js +595 -0
  47. package/dist/daemon/external.js.map +1 -0
  48. package/dist/daemon/http.js +97 -16
  49. package/dist/daemon/http.js.map +1 -1
  50. package/dist/daemon/inbound.js +91 -80
  51. package/dist/daemon/inbound.js.map +1 -1
  52. package/dist/daemon/index.js +1268 -171
  53. package/dist/daemon/index.js.map +1 -1
  54. package/dist/daemon/last-response.js +8 -17
  55. package/dist/daemon/last-response.js.map +1 -1
  56. package/dist/daemon/legacy-panes.js +67 -0
  57. package/dist/daemon/legacy-panes.js.map +1 -0
  58. package/dist/daemon/mcp-http.js.map +1 -1
  59. package/dist/daemon/me-room.js +137 -0
  60. package/dist/daemon/me-room.js.map +1 -0
  61. package/dist/daemon/media.js +14 -0
  62. package/dist/daemon/media.js.map +1 -1
  63. package/dist/daemon/message-format.js +5 -0
  64. package/dist/daemon/message-format.js.map +1 -1
  65. package/dist/daemon/mirror-bridge.js +77 -26
  66. package/dist/daemon/mirror-bridge.js.map +1 -1
  67. package/dist/daemon/notices.js +4 -5
  68. package/dist/daemon/notices.js.map +1 -1
  69. package/dist/daemon/onboarding.js +120 -45
  70. package/dist/daemon/onboarding.js.map +1 -1
  71. package/dist/daemon/peers.js +2 -2
  72. package/dist/daemon/peers.js.map +1 -1
  73. package/dist/daemon/plan-http.js +2 -3
  74. package/dist/daemon/plan-http.js.map +1 -1
  75. package/dist/daemon/reach.js +1 -5
  76. package/dist/daemon/reach.js.map +1 -1
  77. package/dist/daemon/room-bind.js +297 -0
  78. package/dist/daemon/room-bind.js.map +1 -0
  79. package/dist/daemon/room-facts.js +1 -1
  80. package/dist/daemon/room-facts.js.map +1 -1
  81. package/dist/daemon/room-hub.js +158 -19
  82. package/dist/daemon/room-hub.js.map +1 -1
  83. package/dist/daemon/room-overdue.js +90 -28
  84. package/dist/daemon/room-overdue.js.map +1 -1
  85. package/dist/daemon/room-watchdog.js +44 -22
  86. package/dist/daemon/room-watchdog.js.map +1 -1
  87. package/dist/daemon/rooms.js +101 -4
  88. package/dist/daemon/rooms.js.map +1 -1
  89. package/dist/daemon/session-scan.js +1 -1
  90. package/dist/daemon/session-scan.js.map +1 -1
  91. package/dist/daemon/short-id-log.js +43 -0
  92. package/dist/daemon/short-id-log.js.map +1 -0
  93. package/dist/daemon/spawn-tmux.js +12 -9
  94. package/dist/daemon/spawn-tmux.js.map +1 -1
  95. package/dist/daemon/steward-guard.js +1 -1
  96. package/dist/daemon/steward-guard.js.map +1 -1
  97. package/dist/daemon/steward-model.js +17 -3
  98. package/dist/daemon/steward-model.js.map +1 -1
  99. package/dist/daemon/steward-repair.js +171 -0
  100. package/dist/daemon/steward-repair.js.map +1 -0
  101. package/dist/daemon/steward.js +48 -9
  102. package/dist/daemon/steward.js.map +1 -1
  103. package/dist/daemon/tool-face.js +31 -0
  104. package/dist/daemon/tool-face.js.map +1 -0
  105. package/dist/daemon/turn-opening.js +8 -3
  106. package/dist/daemon/turn-opening.js.map +1 -1
  107. package/dist/daemon/wizard-memory.js +4 -10
  108. package/dist/daemon/wizard-memory.js.map +1 -1
  109. package/dist/daemon/wizard.js +153 -73
  110. package/dist/daemon/wizard.js.map +1 -1
  111. package/dist/daemon/ws.js +1 -1
  112. package/dist/daemon/ws.js.map +1 -1
  113. package/dist/mcp/output.js +27 -5
  114. package/dist/mcp/output.js.map +1 -1
  115. package/dist/mcp/relay.js +152 -0
  116. package/dist/mcp/relay.js.map +1 -0
  117. package/dist/mcp/tools.js +87 -39
  118. package/dist/mcp/tools.js.map +1 -1
  119. package/dist/shared/chat-http.js +65 -48
  120. package/dist/shared/chat-http.js.map +1 -1
  121. package/dist/shared/cli-local-status.js +28 -0
  122. package/dist/shared/cli-local-status.js.map +1 -0
  123. package/dist/shared/cli-socket.js +14 -0
  124. package/dist/shared/cli-socket.js.map +1 -0
  125. package/dist/shared/codex-hooks.js +5 -2
  126. package/dist/shared/codex-hooks.js.map +1 -1
  127. package/dist/shared/config.js +45 -45
  128. package/dist/shared/config.js.map +1 -1
  129. package/dist/shared/daemon-addr.js +23 -0
  130. package/dist/shared/daemon-addr.js.map +1 -0
  131. package/dist/shared/daemon-client.js +41 -0
  132. package/dist/shared/daemon-client.js.map +1 -0
  133. package/dist/shared/daemon-token.js +2 -2
  134. package/dist/shared/daemon-token.js.map +1 -1
  135. package/dist/shared/external.js +402 -0
  136. package/dist/shared/external.js.map +1 -0
  137. package/dist/shared/inject-view.js +48 -10
  138. package/dist/shared/inject-view.js.map +1 -1
  139. package/dist/shared/instance-id.js +21 -0
  140. package/dist/shared/instance-id.js.map +1 -0
  141. package/dist/shared/message-footer.js +8 -1
  142. package/dist/shared/message-footer.js.map +1 -1
  143. package/dist/shared/model-tiers.js +39 -1
  144. package/dist/shared/model-tiers.js.map +1 -1
  145. package/dist/shared/ports.js +56 -0
  146. package/dist/shared/ports.js.map +1 -0
  147. package/dist/shared/pricing.js +0 -5
  148. package/dist/shared/pricing.js.map +1 -1
  149. package/dist/shared/role-render.js +8 -7
  150. package/dist/shared/role-render.js.map +1 -1
  151. package/dist/shared/role-view.js +5 -2
  152. package/dist/shared/role-view.js.map +1 -1
  153. package/dist/shared/room-overdue.js +84 -12
  154. package/dist/shared/room-overdue.js.map +1 -1
  155. package/dist/shared/room-view.js +18 -4
  156. package/dist/shared/room-view.js.map +1 -1
  157. package/dist/shared/room.js +245 -28
  158. package/dist/shared/room.js.map +1 -1
  159. package/dist/shared/session-label.js +29 -51
  160. package/dist/shared/session-label.js.map +1 -1
  161. package/dist/shared/session-mcp.js +35 -57
  162. package/dist/shared/session-mcp.js.map +1 -1
  163. package/dist/shared/smarts.js +15 -30
  164. package/dist/shared/smarts.js.map +1 -1
  165. package/dist/shared/world.js +1 -1
  166. package/dist/shared/world.js.map +1 -1
  167. package/dist/svr/facts-store.js.map +1 -1
  168. package/dist/svr/index.js +57 -15
  169. package/dist/svr/index.js.map +1 -1
  170. package/hooks/pre-tool-use.sh +14 -10
  171. package/hooks/stop.sh +5 -3
  172. package/launchd/com.wezard.svr.plist.template +2 -0
  173. package/package.json +3 -1
  174. package/scripts/install.sh +12 -0
  175. package/systemd/wezard-svr.service.template +2 -0
  176. package/web/chat.js +81 -40
  177. package/dist/daemon/bot-mux.js +0 -161
  178. package/dist/daemon/bot-mux.js.map +0 -1
package/web/chat.js CHANGED
@@ -23,7 +23,7 @@
23
23
  var gside = $('#gside'), chWho = $('#ch-who'), chActs = $('#ch-acts');
24
24
 
25
25
  var W = { at: 0, rooms: [], nodes: [], uidTargets: {}, chatNames: {}, names: {}, degraded: false };
26
- var D = { mode: '', roomId: '', role: '', uid: '', at: 0, msgs: [], notes: [], total: 0, earlier: '', room: null, label: '', members: [], duties: [], wizard: null, sessions: [], session: 'all', ledger: true, plans: [], schedules: [], charterBrief: null, stream: null, streamOld: [], streamMore: false, streamSess: '', streamSig: '', stats: null };
26
+ var D = { mode: '', roomId: '', role: '', uid: '', at: 0, msgs: [], notes: [], total: 0, earlier: '', room: null, label: '', members: [], duties: [], verdicts: {}, wizard: null, sessions: [], session: 'all', ledger: true, plans: [], schedules: [], charterBrief: null, stream: null, streamOld: [], streamMore: false, streamSess: '', streamSig: '', stats: null };
27
27
  var S = { openTurns: {}, charter: null, sim: null, gsig: '', gmap: null, elById: null, lines: null, view: 'list' };
28
28
  var SIDE_KEY = 'wezard.role.side';
29
29
  try { if (localStorage.getItem(SIDE_KEY) === 'graph') S.view = 'graph'; } catch (e) { /* 隐私模式 */ }
@@ -178,7 +178,7 @@
178
178
  var uid = id.indexOf('uid:') === 0 ? id.slice(4) : '';
179
179
  var human = id.indexOf('human:') === 0;
180
180
  var name = uid ? (W.names[uid] || uid) : human ? (W.names[id.slice(6)] || id.slice(6)) : id;
181
- return { target: id, kind: human ? 'human' : 'wizard', name: safeName(name), label: human ? '👤' : '🧙‍♂️', rels: [] };
181
+ return { target: id, kind: human ? 'human' : 'wizard', name: safeName(name), label: human ? '👤' : '🧙', rels: [] };
182
182
  };
183
183
  // room 的名字 = 它的显示名 (host 起的 title > 聊天名 > 没起名的 dm / adhoc 用成员名 > 一个短代号)。
184
184
  // 不再有「私聊」「临时 room」兜底: 认不出是哪件事。成员名拼法与 shared/room-label.ts 同口径。
@@ -213,19 +213,29 @@
213
213
  var roomLabelOf = function (r) {
214
214
  return r ? roomNameOf(r, r.label) : '';
215
215
  };
216
- // room 图标三种: 多人群聊 👥 / 人与 wizard 的单聊 💬 / 只有 wizard 的 room 🧙‍♂️ (与 wizard 默认头像同一个 emoji)。
216
+ // room 图标: 多人群聊 👥 / 人与 wizard 的单聊 💬 / 频道 #️⃣ / 帖子 📌 / 只有 wizard 的 room 🧙 (与 wizard 默认头像同一个 emoji)。
217
217
  // 先分「有没有人参与」(isPeopleRoom, 与列表的「群聊 / 会话」分组、搜索的 group 同一口径: 绑定企微 / topic / 微信的 room 不管有没有人发过话都算有人);
218
- // 有人的再分单聊 / 群聊: 单聊 = 恰好两位参与者、其中一位是人、且不是企微群 / topic 帖 (即绑定的 wecom-dm 那种: 一个人 + 一个 wizard) —— 这是唯一保留 💬 的特例;
219
- // 其余有人的 (企微群 / topic / 多人 adhoc / 人 + 多个 wizard …) 一律 👥。按 kind 细分的图标一律不要, 类型只留在 tooltip 的文字里 (KIND_WORD)。
218
+ // 频道 (channel) 与帖子 (topic-post) 各有一个专属图标, 与群聊 / 单聊一眼分开 —— 它们是传输形态, 比成员数更能说明「这是什么 room」。
219
+ // 其余有人的再分单聊 / 群聊: 单聊 = 恰好两位参与者、其中一位是人、且不是企微群 / topic 帖 (即绑定的 wecom-dm 那种: 一个人 + 一个 wizard) —— 这是唯一保留 💬 的特例;
220
+ // 剩下有人的 (企微群 / 多人 adhoc / 人 + 多个 wizard …) 一律 👥。类型文字仍在 tooltip (KIND_WORD)。
220
221
  var isSoloChat = function (r) {
221
222
  var ms = r.members || [];
222
223
  return ms.length === 2 && ms.filter(function (m) { return m.who && m.who.kind === 'human'; }).length === 1 &&
223
224
  r.kind !== 'wecom-group' && r.kind !== 'topic-post';
224
225
  };
225
- var roomIcon = function (r) { return !isPeopleRoom(r) ? '🧙‍♂️' : isSoloChat(r) ? '💬' : '👥'; };
226
- // 搜索命中只带 id + group 布尔: 能在 W.rooms 里找到就走同一套三分, 找不到 (没拉到的老 room) 退回「群聊 / wizard」两分。
227
- var roomIconOf = function (id, group) { var r = roomById(id); return r ? roomIcon(r) : group ? '👥' : '🧙‍♂️'; };
228
- var KIND_WORD = { 'wecom-group': '企微群', 'wecom-dm': '企微单聊', 'topic-post': 'topic 帖', wx: '微信', dm: 'wizard 两人会话', adhoc: '临时多人 room' };
226
+ var roomIcon = function (r) {
227
+ if (!isPeopleRoom(r)) return '🧙';
228
+ if (r.kind === 'channel') return '#️⃣';
229
+ if (r.kind === 'topic-post') return '📌';
230
+ return isSoloChat(r) ? '💬' : '👥';
231
+ };
232
+ // 搜索命中带 id + group (+ kind): 能在 W.rooms 里找到就走同一套, 找不到 (没拉到的老 room) 按 kind / group 退回。
233
+ var roomIconOf = function (id, group, kind) {
234
+ var r = roomById(id);
235
+ if (r) return roomIcon(r);
236
+ return kind === 'channel' ? '#️⃣' : kind === 'topic-post' ? '📌' : group ? '👥' : '🧙';
237
+ };
238
+ var KIND_WORD = { 'wecom-group': '企微群', 'wecom-dm': '企微单聊', channel: '频道', 'topic-post': '帖子', wx: '微信', dm: 'wizard 两人会话', adhoc: '临时多人 room' };
229
239
  var roomKindWord = function (r) { return (isPeopleRoom(r) ? '群聊' : '会话') + ' · ' + (KIND_WORD[r.kind] || r.kind || ''); };
230
240
  var cssEsc = function (s) { return String(s).replace(/(["\\])/g, '\\$1'); };
231
241
 
@@ -313,8 +323,8 @@
313
323
  // 节点统一大小 (外接圆半径 NODE_R), 聪明程度不再靠大小, 改用多边形边数 (见 polySides / polyPts): 半径进力模拟 (rOf) 与帽子的落点。
314
324
  var NODE_R = 10;
315
325
  var nodeR = function (p) { return NODE_R; };
316
- // 聪明程度 (服务端 shared/smarts.ts 折好的 1~5 级) → 边数: 1 级三角形 · 2 级四边形 · 3 级五边形 · 4 级六边形 · 5 级 (ultra) 圆 = 边数的极限 (0 = 画圆)。
317
- // 不知道 (老快照 / 别家模型又没档位) = 五边形 (中号, 与以前「都没有 = 中号」同口径)。
326
+ // 聪明程度 (服务端 shared/smarts.ts 按档位 tier 折好的 1~5 级) → 边数: 1 级三角形 · 2 级四边形 · 3 级五边形 · 4 级六边形 · 5 级 (ultra) 圆 = 边数的极限 (0 = 画圆)。
327
+ // 没有档位 (老快照 / 模型不在档位表里) = 五边形 (中号, 与以前「都没有 = 中号」同口径); 聪明度不看模型家族。
318
328
  var polySides = function (p) {
319
329
  var lv = p.smarts && p.smarts.level;
320
330
  return lv >= 1 && lv <= 4 ? lv + 2 : lv === 5 ? 0 : 5;
@@ -334,18 +344,20 @@
334
344
  var c = cls ? ' class="' + cls + '"' : '';
335
345
  return sides ? '<polygon' + c + ' points="' + polyPts(sides, r) + '"/>' : '<circle' + c + ' r="' + r + '"/>';
336
346
  };
337
- // 行内小图标: 聪明程度 = 边数, 无 smarts 同图规则画五边形; 学历文字 (+ 状态文字) 进 title。
347
+ // 行内小图标: 聪明程度 = 边数, 无 smarts 同图规则画五边形; 档位文字 (+ 状态文字) 进 title。
338
348
  // 与关系图节点同一几何 (半径 NODE_R 的 .sh 多边形, viewBox 按节点坐标系, 20px ≈ 节点原尺寸) 且同一份 CSS 规则 (.rv-person.wizard.st-* .sh 与 .smi.st-* .sh 共用选择器): 休眠虚线 / 填充 / 描边随比例一致。st / cold 给了就着色: 成员栏用它取代原来的状态点; 不给 (profile facts 行) 就是中性灰。
339
349
  var smartsIcon = function (sm, st, cold, extra) {
340
350
  var t = [extra, smartsWord(sm)].filter(Boolean).join(' · ');
341
351
  var cls = 'smi' + (st ? ' st-' + st : '') + (cold ? ' cold' : '') + (st === 'working' ? ' go' : '');
342
352
  return '<svg class="' + cls + '" viewBox="-11.5 -11.5 23 23" width="20" height="20" role="img"' + (t ? ' aria-label="' + esc(t) + '"' : '') + '>' + (t ? '<title>' + esc(t) + '</title>' : '') + polyEl(polySides({ smarts: sm }), NODE_R, 'sh') + '</svg>';
343
353
  };
344
- var SMART_BASIS = { model: '实际模型', tier: '出生档位 (认不出实际模型)' };
345
354
  // 聪明程度 1~5 用学历梯度表达 (小学生 … 专家教授), 不再露 `3/5`; 档位定义仍在 shared/smarts.ts, 这里只管展示。
346
355
  var EDU = { 1: ['🧒', '小学生'], 2: ['🎒', '初中生'], 3: ['🎓', '大学生'], 4: ['🔬', '研究生'], 5: ['👨‍🏫', '专家教授'] };
347
356
  var eduOf = function (sm) { return sm && EDU[sm.level] ? EDU[sm.level] : null; };
348
- var smartsWord = function (sm) { var e = eduOf(sm); return e ? e[0] + ' ' + e[1] + ' · ' + sm.label + ' (依据: ' + (SMART_BASIS[sm.basis] || sm.basis) + ')' : ''; };
357
+ // 聪明度只认档位 tier; 实际模型 (sm.note, 服务端附上) 只作附注, 不参与定级。
358
+ var smartsWord = function (sm) { var e = eduOf(sm); return e ? e[0] + ' ' + e[1] + ' · 档位 ' + sm.tier + (sm.note ? ' · 模型 ' + sm.note : '') : ''; };
359
+ // 没有档位就说「档位未知」并带上实际模型 —— 不猜档位。
360
+ var smartsTip = function (nd) { return smartsWord(nd && nd.smarts) || (nd && nd.model ? '档位未知 · 模型 ' + nd.model : '档位未知'); };
349
361
  // 这一轮想画的图 (纯数据, 不碰坐标): 节点 + 边, 边按身份去重。
350
362
  var graphModel = function (rooms, people, directs) {
351
363
  var nodes = [], links = [], seen = {}, have = {};
@@ -360,17 +372,25 @@
360
372
  nodes.push({ id: 'p:' + p.target, ref: p, isRoom: false, w: 0, r: nodeR(p) });
361
373
  });
362
374
  var add = function (l) { if (!seen[l.key]) { seen[l.key] = true; links.push(l); } };
375
+ var roomIds = {};
376
+ rooms.forEach(function (r) { roomIds['r:' + r.id] = true; });
363
377
  rooms.forEach(function (r) {
364
378
  (r.members || []).forEach(function (m) {
365
379
  var pid = 'p:' + nodeIdOf(m.who);
366
380
  // host 边方向 = room → host (线从 room 出发, 箭头落在 host 的圆点边上); 普通成员边无向、同样粗细。
367
- if (have[pid]) add({ key: 'm|' + r.id + '|' + pid, a: 'r:' + r.id, b: pid, room: r.id, host: !!m.host });
381
+ // monitor 是 room 成员但不是「关联」: 虚线连到它所在的 room (与成员边区分开)。
382
+ if (have[pid]) add({ key: 'm|' + r.id + '|' + pid, a: 'r:' + r.id, b: pid, room: r.id, host: !!m.host, mon: m.role === 'monitor' });
368
383
  });
369
384
  });
385
+ // 频道 / 帖子都是普通 room 节点 (不画容器): 帖子的归属用一条弱连线指向所属频道。
386
+ rooms.forEach(function (r) {
387
+ var ch = r.channel && r.channel.id ? 'r:chat:' + r.channel.id : '';
388
+ if (ch && roomIds[ch] && ch !== 'r:' + r.id) add({ key: 'ch|' + r.id, a: 'r:' + r.id, b: ch, room: r.id, chan: true });
389
+ });
370
390
  // 节点级 host: 在任一 room 里是 host 就戴礼帽 (边上不再有箭头)。
371
- var hostIds = {};
372
- links.forEach(function (l) { if (l.host) hostIds[l.b] = true; });
373
- nodes.forEach(function (n) { if (hostIds[n.id]) n.host = true; });
391
+ var hostIds = {}, monIds = {};
392
+ links.forEach(function (l) { if (l.host) hostIds[l.b] = true; if (l.mon) monIds[l.b] = true; });
393
+ nodes.forEach(function (n) { if (hostIds[n.id]) n.host = true; if (monIds[n.id]) n.mon = true; });
374
394
  (directs || []).forEach(function (d) {
375
395
  add({ key: 'd|' + d.room.id, a: 'p:' + d.pair[0], b: 'p:' + d.pair[1], room: d.room.id, direct: true, unread: unreadOf(d.room) > 0 });
376
396
  });
@@ -666,7 +686,7 @@
666
686
  var nodeCls = function (n) {
667
687
  if (n.isRoom) return 'rv-node rv-room' + (nodeOn(n) ? ' on' : '');
668
688
  var human = n.ref.kind === 'human';
669
- return 'rv-node rv-person ' + (human ? 'human' : 'wizard st-' + stateOfNode(n.ref) + (coldOfNode(n.ref) ? ' cold' : '')) + (nodeOn(n) ? ' on' : '') + (n.ref.ghost ? ' ghost' : '');
689
+ return 'rv-node rv-person ' + (human ? 'human' : 'wizard st-' + stateOfNode(n.ref) + (coldOfNode(n.ref) ? ' cold' : '') + (n.mon ? ' mon' : '')) + (nodeOn(n) ? ' on' : '') + (n.ref.ghost ? ' ghost' : '');
670
690
  };
671
691
  // 名字过长用省略号收尾 (全名在节点 <title> 悬停里), 不再硬截成 `DavidDavi` 这种半截词。
672
692
  var clipName = function (t, n) { t = String(t); return t.length > n ? t.slice(0, n - 1) + '…' : t; };
@@ -693,7 +713,7 @@
693
713
  var r = n.ref;
694
714
  var un = unreadOf(r);
695
715
  var dot = un ? '<g class="rv-un"><circle cx="' + (n.w / 2 - 2).toFixed(1) + '" cy="-13" r="' + (un > 9 ? 8 : 7) + '"/><text x="' + (n.w / 2 - 2).toFixed(1) + '" y="-10" text-anchor="middle">' + (un > 99 ? '99+' : un) + '</text></g>' : '';
696
- return '<title>' + esc(roomLabelOf(r) + ' · ' + roomKindWord(r) + (un ? ' · 未读 ' + un + ' 条' : '') + (r.openDuties ? ' · 未决 duty ' + r.openDuties + ' 件' : '')) + '</title><rect x="' + (-n.w / 2).toFixed(1) + '" y="-13" width="' + n.w.toFixed(1) + '" height="26" rx="9"/>' +
716
+ return '<title>' + esc(roomLabelOf(r) + ' · ' + roomKindWord(r) + (r.channel && r.channel.name ? ' · 频道 ' + r.channel.name : '') + (un ? ' · 未读 ' + un + ' 条' : '') + (r.openDuties ? ' · 未决 duty ' + r.openDuties + ' 件' : '')) + '</title><rect x="' + (-n.w / 2).toFixed(1) + '" y="-13" width="' + n.w.toFixed(1) + '" height="26" rx="9"/>' +
697
717
  '<text x="' + (-n.w / 2 + 8).toFixed(1) + '" y="4.7">' + esc(roomIcon(r) + ' ' + clipName(roomLabelOf(r), gRoomMax())) + '</text>' + dot;
698
718
  }
699
719
  var p = n.ref, human = p.kind === 'human', st = stateOfNode(p), rr = n.r;
@@ -706,7 +726,7 @@
706
726
  if (human) return '<title>' + esc(p.name + ' · 用户') + '</title>' +
707
727
  '<g class="rv-body"><text class="rv-emo" y="5.5" text-anchor="middle">👤</text></g>' +
708
728
  '<text class="rv-nm" y="' + (rr + 13) + '" text-anchor="middle">' + esc(clipName(p.name, gNameMax())) + '</text>';
709
- var tip = [p.name, ST_WORD[st], coldOfNode(p) ? COLD_WORD : '', n.host ? '🎩 host' : '', p.lead ? '👑 lead' : '', smartsWord(p.smarts)].filter(Boolean).join(' · ');
729
+ var tip = [p.name, ST_WORD[st], coldOfNode(p) ? COLD_WORD : '', n.host ? '🎩 host' : '', n.mon ? 'perceptron (感知判决)' : '', p.lead ? '👑 lead' : '', smartsTip(p)].filter(Boolean).join(' · ');
710
730
  return '<title>' + esc(tip) + '</title>' +
711
731
  '<g class="rv-body">' + shape('sh', 0) + '</g>' + headGear(topR(sides, rr), n.host, p.lead) +
712
732
  '<text class="rv-nm" y="' + (rr + 13) + '" text-anchor="middle">' + esc(clipName(p.name, gNameMax())) + '</text>';
@@ -715,7 +735,7 @@
715
735
  // role 不是成员 (旧链接) 时没有这条边, 只有 room 节点 .on。
716
736
  var edgeCls = function (l) {
717
737
  var sel = !!D.roomId && D.roomId === l.room && (l.direct || isRoleId(String(l.b).slice(2)));
718
- return 'rv-edge' + (l.host ? ' host' : '') + (l.direct ? ' direct' : '') + (l.direct && l.unread ? ' unread' : '') +
738
+ return 'rv-edge' + (l.host ? ' host' : '') + (l.mon ? ' mon' : '') + (l.chan ? ' chan' : '') + (l.direct ? ' direct' : '') + (l.direct && l.unread ? ' unread' : '') +
719
739
  (sel ? ' on sel' : '');
720
740
  };
721
741
  // 增量同步 DOM: 没了的删, 新的建, 其余只在内容 / class 变了时才写。
@@ -889,9 +909,9 @@
889
909
  '<span><i class="lg wz working"></i>工作中</span><span title="停在审批框 / 弹窗上等人点"><i class="lg wz blocked"></i>等审批</span>' +
890
910
  '<span><i class="lg wz idle"></i>空闲</span><span title="pane 不在, 下一句话会重新拉起"><i class="lg wz asleep"></i>休眠</span>' +
891
911
  '<span title="叠加属性: 提示缓存已超 TTL, 下一句要重写缓存。空闲 / 休眠的节点都会变白 (休眠的服务端不报缓存, 按最近动静超过 5 分钟估); 工作中 / 等审批不受影响"><i class="lg wz cold"></i>缓存冷</span>' +
892
- '<span><span class="lgemo">👤</span>用户</span><span title="room 图标: 多人群聊 (企微群 / topic / 多人 room, 有人参与)"><span class="lgemo">👥</span>群聊</span><span title="room 图标: 人与 wizard 的单聊 (绑定的企微单聊)"><span class="lgemo">💬</span>单聊</span><span title="room 图标: 只有 wizard 的 room (dm / 临时多人)"><span class="lgemo">🧙‍♂️</span>wizard room</span><span title="room 的 host: 本 room 里加入序最小的 wizard"><svg class="lghost" viewBox="-6 -5 12 10" width="13" height="11" aria-hidden="true"><path d="M-3.3 2L-3.3 -3.9L3.3 -3.9L3.3 2Z"/><path class="hb" d="M-3.3 .4L3.3 .4L3.3 2L-3.3 2Z"/><path d="M-5.2 3.6L-5.2 2L5.2 2L5.2 3.6Z"/></svg>host</span>' +
912
+ '<span><span class="lgemo">👤</span>用户</span><span title="room 图标: 多人群聊 (企微群 / 多人 room, 有人参与)"><span class="lgemo">👥</span>群聊</span><span title="room 图标: 人与 wizard 的单聊 (绑定的企微单聊)"><span class="lgemo">💬</span>单聊</span><span title="room 图标: 频道 (企微 topic 频道)"><span class="lgemo">#️⃣</span>频道</span><span title="room 图标: 帖子 (频道下某个 topic 帖的评论区)"><span class="lgemo">📌</span>帖子</span><span title="room 图标: 只有 wizard 的 room (dm / 临时多人)"><span class="lgemo">🧙</span>wizard room</span><span title="room 的 host: 本 room 里加入序最小的 wizard"><svg class="lghost" viewBox="-6 -5 12 10" width="13" height="11" aria-hidden="true"><path d="M-3.3 2L-3.3 -3.9L3.3 -3.9L3.3 2Z"/><path class="hb" d="M-3.3 .4L3.3 .4L3.3 2L-3.3 2Z"/><path d="M-5.2 3.6L-5.2 2L5.2 2L5.2 3.6Z"/></svg>host</span>' +
893
913
  '<span title="被派来领一件复杂活的 lead (daemon 在 lead 派活时记下, 不能自封)"><svg class="lglead" viewBox="-5 -5 10 10" width="11" height="11" aria-hidden="true"><path d="M-4.6 3.6L-4.6 -2.4L-2.3 0L0 -3.9L2.3 0L4.6 -2.4L4.6 3.6Z"/></svg>lead</span>' +
894
- '<span title="聪明程度 = 实际在跑的模型 + effort: 三角形 🧒小学生 (haiku) · 四边形 🎒初中生 (sonnet) · 五边形 🎓大学生 (sonnet high 起) · 六边形 🔬研究生 (opus) · 圆 👨‍🏫专家教授 (opus xhigh/max); 认不出模型时按出生档位 mini..ultra; 都没有 = 五边形"><svg class="lgpoly" viewBox="-6 -6 12 12" width="12" height="12" aria-hidden="true">'+polyEl(3,5.2)+'</svg><svg class="lgpoly" viewBox="-6 -6 12 12" width="12" height="12" aria-hidden="true">'+polyEl(0,5.2)+'</svg>边数 = 聪明程度</span>' +
914
+ '<span title="聪明程度 = 档位 (tier): 三角形 🧒小学生 mini · 四边形 🎒初中生 light · 五边形 🎓大学生 standard · 六边形 🔬研究生 hard · 圆 👨‍🏫专家教授 ultra; 档位记在名册里 (出生时按 spawn 的档位, set_model 换模型后按档位表反查更新), 实际模型只作附注; 没有档位 = 五边形"><svg class="lgpoly" viewBox="-6 -6 12 12" width="12" height="12" aria-hidden="true">'+polyEl(3,5.2)+'</svg><svg class="lgpoly" viewBox="-6 -6 12 12" width="12" height="12" aria-hidden="true">'+polyEl(0,5.2)+'</svg>边数 = 聪明程度</span>' +
895
915
  '</div>';
896
916
  // 选中的 role 不在任何可见 room 里 (时间范围把它所有 room 都筛掉了, 或点进了一个只在隐藏 room 里的人 / 只剩一间过期两人 dm 的 wizard) 时,
897
917
  // 图里仍要有它 —— 视角总得在图上看得见 (👁 标记照常按 isRoleId 画): 作为没有任何边的孤立节点补进 people。
@@ -994,8 +1014,10 @@
994
1014
  renderSide();
995
1015
  };
996
1016
  // 头像照 main 的群头像: 前 4 位成员的头像拼成一块 (单人 room 就是那一位)。
997
- var memberLabel = function (m) { return m.who && m.who.kind === 'human' ? '👤' : (nodeOf(nodeIdOf(m.who)).label || '🧙‍♂️'); };
1017
+ // 例外: 频道 / 帖子是传输形态, 列表里也要一眼认出 —— 头像换成它们自己的图标 (成员拼块认不出「这是频道还是群」)。
1018
+ var memberLabel = function (m) { return m.who && m.who.kind === 'human' ? '👤' : (nodeOf(nodeIdOf(m.who)).label || '🧙'); };
998
1019
  var roomAvatar = function (r) {
1020
+ if (r.kind === 'channel' || r.kind === 'topic-post') return '<span class="av">' + esc(roomIcon(r)) + '</span>';
999
1021
  var ms = (r.members || []).slice(0, 4);
1000
1022
  if (!ms.length) return '<span class="av">' + esc(roomIcon(r)) + '</span>';
1001
1023
  return '<span class="av mosaic n' + ms.length + '" aria-hidden="true">' + ms.map(function (m) { return '<i>' + esc(memberLabel(m)) + '</i>'; }).join('') + '</span>';
@@ -1191,7 +1213,7 @@
1191
1213
  // 最左边的图标: 人 = 👤; wizard = 按状态着色的聪明程度多边形 (与关系图节点同一套 fill / 虚线), 状态文字进 hover。
1192
1214
  var stWord = st ? (ST_WORD[st] || '') + (cold ? ' · ' + COLD_WORD : '') : '';
1193
1215
  var lead = m.kind === 'human' ? '<span class="gs-role" title="人">👤</span>' : smartsIcon(nd.smarts, st, cold, stWord) + (st === 'blocked' ? '<b class="gs-blk">等审批</b>' : '');
1194
- var tip = [(ST_WORD[st] || '') + (cold ? ' · ' + COLD_WORD : ''), smartsWord(nd.smarts)].filter(Boolean).join(' · ');
1216
+ var tip = [(ST_WORD[st] || '') + (cold ? ' · ' + COLD_WORD : ''), smartsTip(nd)].filter(Boolean).join(' · ');
1195
1217
  var tipAll = viaText(m) + (tip ? '\n' + tip : '') + (me ? '\n当前视角' : '');
1196
1218
  var ago = m.lastAt ? '<span class="gs-ago" data-node="' + esc(nid) + '" title="本 room 最近一条发言: ' + esc(fmtDay(m.lastAt)) + '">' + esc(fmtAgo(m.lastAt).replace(' ', '')) + '</span>' : '<span class="gs-ago none" data-node="' + esc(nid) + '" title="还没发言">—</span>';
1197
1219
  var due = mine.length
@@ -1207,16 +1229,28 @@
1207
1229
  // 群公告 (host / 人 /notice 写的): 默认最多两行, 点开展开全文; 空的不显示。
1208
1230
  var rf = roomById(D.roomId), notice = String((D.room && D.room.notice) || (rf && rf.notice) || '').trim();
1209
1231
  var noticeOpen = !!S.gsNotice[D.roomId];
1232
+ // 绑定 (multi-source-binding): 本 room 承载的副源 (群 / 频道帖)。解绑后账本不再折出它们, 这里自然消失。
1233
+ var srcs = (D.room && D.room.sources) || (rf && rf.sources) || [];
1234
+ var srcEl = srcs.length ? '<div class="gs-srcs" title="本 room 绑定的信息源: 它们的消息落这本账, 回话按源回出去">' +
1235
+ '<span class="gs-sbt">绑定 ' + srcs.length + '</span>' +
1236
+ srcs.map(function (s) {
1237
+ var post = s.kind === 'post', known = !!roomById(s.id), tag = known ? 'button' : 'span';
1238
+ return '<' + tag + (known ? ' type="button"' : '') + ' class="gs-src' + (post ? ' post' : '') + '"' + (known ? ' data-src-room="' + esc(s.id) + '"' : '') +
1239
+ ' title="' + esc((post ? '频道帖' : '群') + ' · ' + s.id + (known ? ' · 点击打开' : '')) + '">' +
1240
+ (post ? '📝' : '💬') + ' ' + esc(s.name) + '</' + tag + '>';
1241
+ }).join('') + '</div>' : '';
1210
1242
  var noticeEl = notice ? '<button type="button" class="gs-notice' + (noticeOpen ? ' on' : '') + '" id="gs-notice" aria-expanded="' + (noticeOpen ? 'true' : 'false') + '" title="群公告 · 点击' + (noticeOpen ? '收起' : '展开全文') + '"><span class="gs-np">📌</span><span class="gs-nt">' + esc(notice) + '</span></button>' : '';
1211
1243
  gside.innerHTML = noticeEl + '<div class="gs-head"><span class="gs-hl"' + (D.createdAt ? ' title="' + esc('建于 ' + fmtDay(D.createdAt)) + '"' : '') + '>成员 <b>' + D.members.length + '</b>' +
1212
1244
  (duties.length ? ' · <span class="gs-duty" title="本 room 里还开着的 duty 总数: chat_ask / 派活 / 人话开出、处理人还没 chat_reply done · passed · canceled">待交代 ' + duties.length + '</span>' : '') + '</span>' +
1213
1245
  '<button type="button" class="gs-x" id="gs-x" aria-label="关闭成员栏">✕</button></div>' +
1214
1246
  (orphan > 0 ? '<div class="gs-meta"><span>另有 ' + orphan + ' 条在已离开的成员名下</span></div>' : '') +
1247
+ srcEl +
1215
1248
  '<div class="gs-list">' + rows + '</div>';
1216
1249
  gside.classList.toggle('sheet', S.gsSheet);
1217
1250
  gside.querySelectorAll('[data-node]').forEach(function (el) { el.onclick = function () { setGsSheet(false); goRole(el.getAttribute('data-node')); }; });
1218
1251
  gside.querySelectorAll('[data-due]').forEach(function (el) { el.onclick = function () { var k = el.getAttribute('data-due'); S.gsOpen[k] = !S.gsOpen[k]; renderGraphSide(); }; });
1219
1252
  gside.querySelectorAll('[data-jump-msg]').forEach(function (el) { el.onclick = function () { setGsSheet(false); jumpRow({ id: el.getAttribute('data-jump-msg'), room: D.roomId }); }; });
1253
+ gside.querySelectorAll('[data-src-room]').forEach(function (el) { el.onclick = function () { setGsSheet(false); goRoom(el.getAttribute('data-src-room')); }; });
1220
1254
  var gx = $('#gs-x'); if (gx) gx.onclick = function () { setGsSheet(false); };
1221
1255
  var gn = $('#gs-notice'); if (gn) gn.onclick = function () { S.gsNotice[D.roomId] = !S.gsNotice[D.roomId]; renderGraphSide(); };
1222
1256
  };
@@ -1258,6 +1292,12 @@
1258
1292
  var st = m.status && m.status !== 'done' ? chip(m.status, 'st ' + (ST_CLS[m.status] || '')) : '';
1259
1293
  return chip(k, 'kind') + st;
1260
1294
  };
1295
+ // 感知判决 (perceive op): 这条人话被 perceptron 判给了谁、为什么 —— 只在人话行头部露一枚 chip。
1296
+ var verdictTail = function (m) {
1297
+ var v = D.verdicts[m.id];
1298
+ if (!v) return '';
1299
+ return chip('感知 → ' + (v.toNames || []).join(', ') + (v.why ? ' · ' + v.why : ''), 'kind');
1300
+ };
1261
1301
  var bubbleHTML = function (m) {
1262
1302
  var quote = quoteHTML(m);
1263
1303
  var files = (m.files || []).map(function (f) { return chip('📎 ' + f.name, 'file'); }).join('');
@@ -1292,7 +1332,7 @@
1292
1332
  routeHead({
1293
1333
  au: '<span class="rv-au ' + esc(m.author.kind) + '" data-node="' + esc(author) + '">' + esc(m.authorName) + '</span>',
1294
1334
  room: room, to: to,
1295
- tail: '<time>' + esc(fmtDay(m.at)) + '</time>' + turn + kindStatusTail(m) + re
1335
+ tail: '<time>' + esc(fmtDay(m.at)) + '</time>' + turn + kindStatusTail(m) + re + verdictTail(m)
1296
1336
  }) + bub +
1297
1337
  '</article>';
1298
1338
  };
@@ -1344,7 +1384,7 @@
1344
1384
  return f.to ? '<span class="rv-tag" data-node="' + esc(f.to) + '">' + esc(f.toName || f.to) + '</span>' : '';
1345
1385
  };
1346
1386
  var auOf = function (f) {
1347
- return '<span class="rv-au wizard" data-node="' + esc(f.from || '') + '">' + esc(f.fromLabel || '🧙‍♂️') + ' ' + esc(f.fromName || D.role) + '</span>';
1387
+ return '<span class="rv-au wizard" data-node="' + esc(f.from || '') + '">' + esc(f.fromLabel || '🧙') + ' ' + esc(f.fromName || D.role) + '</span>';
1348
1388
  };
1349
1389
  var streamHTML = function (rows) {
1350
1390
  if (!rows.length) return '<div class="rv-none">这里还没有消息。</div>';
@@ -1904,7 +1944,7 @@
1904
1944
  if (!D.role) { el.innerHTML = ''; return; }
1905
1945
  var ph = nodeOf(D.role);
1906
1946
  document.title = (ph.label ? ph.label + ' ' : '') + (ph.name || D.role) + ' 的视角';
1907
- el.innerHTML = '<div class="id"><span class="av">' + esc(ph.label || '🧙‍♂️') + '</span><span class="l"><span class="nl"><span class="nm">' + esc(ph.name || D.role) + '</span></span></span></div>';
1947
+ el.innerHTML = '<div class="id"><span class="av">' + esc(ph.label || '🧙') + '</span><span class="l"><span class="nl"><span class="nm">' + esc(ph.name || D.role) + '</span></span></span></div>';
1908
1948
  return;
1909
1949
  }
1910
1950
  var born = w.bornAt || (D.sessions || []).reduce(function (m, s) { return s.start && (!m || s.start < m) ? s.start : m; }, 0);
@@ -1917,7 +1957,7 @@
1917
1957
  homeFact(w),
1918
1958
  w.parent && w.parent.name ? fact('👤', '创建者 ' + w.parent.name, '创建者: ' + w.parent.name + ' (spawn / clone 出它的 wizard, 管理上的 parent)') : '',
1919
1959
  born ? fact('🐣', fmtAgo(born), '出生于 ' + fmtDay(born)) : '',
1920
- nd.kind !== 'human' ? '<span class="fx-smi" title="' + esc(smartsWord(nd.smarts)) + '">' + smartsIcon(nd.smarts) + '</span>' : '',
1960
+ nd.kind !== 'human' ? '<span class="fx-smi" title="' + esc(smartsTip(nd)) + '">' + smartsIcon(nd.smarts) + '</span>' : '',
1921
1961
  cb ? fact('📜', '≈' + fmtTok(cb.tokens), '宪章 ≈' + fmtTok(cb.tokens) + ' token · ' + fmtClock(cb.at) + ' 压进系统提示 · 点开看全文', 'charter') : '',
1922
1962
  w.cwd ? fact('🗂️', shortCwd(w.cwd), w.cwd) : '',
1923
1963
  pf ? fact(pf[0], pf[1], pf[2], pf[3], pf[4]) : '',
@@ -1930,7 +1970,7 @@
1930
1970
  // 会话切换 = main 的那个下拉 (name 右边): 只有一段就没什么可选, 不挂。
1931
1971
  // 选中 room 时不挂: session 只作用于「全部记录」那一页。
1932
1972
  var sess = !D.roomId && (D.sessions || []).length > 1 ? sessPicker() : '';
1933
- el.innerHTML = '<div class="id"><span class="av">' + esc(w.label || '🧙‍♂️') + '</span><span class="l">' +
1973
+ el.innerHTML = '<div class="id"><span class="av">' + esc(w.label || '🧙') + '</span><span class="l">' +
1934
1974
  '<span class="nl"><span class="cp" title="' + esc('点击复制 ' + (w.name || w.id)) + '"><span class="nm">' + esc(w.name || w.id) + '</span></span>' +
1935
1975
  '<span id="rb-st">' + st + '</span><span id="rb-sp">' + sess + '</span></span>' +
1936
1976
  (facts ? '<span class="facts">' + facts + '</span>' : '') +
@@ -1971,7 +2011,7 @@
1971
2011
  };
1972
2012
  var LOADING_HTML = '<div class="rv-none rv-loading">加载中…</div>';
1973
2013
  var renderWizard = function (skipBody) {
1974
- var w = D.wizard || { name: D.role, label: '🧙‍♂️' };
2014
+ var w = D.wizard || { name: D.role, label: '🧙' };
1975
2015
  var plan = S.pane === 'plan';
1976
2016
  // 顶栏只有标题与视角切换: 模型 / 在线 / 职责都属于这个 role, 在左上名片 (模型在底部用量条上)。
1977
2017
  // 日程是同一个窗口的另一面 —— 标题改成「谁的日程」, 右上角回对话。
@@ -2000,6 +2040,7 @@
2000
2040
  var fixM = function (ms) { return (ms || []).map(function (m) { return m && m.name && ID_LIKE.test(m.name) ? Object.assign({}, m, { name: safeName(m.name) }) : m; }); };
2001
2041
  if (r.room && r.room.members) r.room = Object.assign({}, r.room, { members: fixM(r.room.members) });
2002
2042
  D.room = r.room; D.label = r.label || ''; D.members = fixM(r.members); D.duties = r.duties || []; D.createdAt = r.createdAt || 0;
2043
+ D.verdicts = {}; (r.verdicts || []).forEach(function (v) { D.verdicts[v.msg] = v; });
2003
2044
  D.msgs = (r.msgs || []).map(function (m) { return m && m.authorName && ID_LIKE.test(m.authorName) ? Object.assign({}, m, { authorName: safeName(m.authorName) }) : m; });
2004
2045
  D.notes = r.notes || [];
2005
2046
  D.total = r.total || 0; D.earlier = r.earlier || ''; D.at = r.at;
@@ -2088,7 +2129,7 @@
2088
2129
  D.wizLoading = false;
2089
2130
  D.stream = tail; D.streamSig = streamSig(tail); D.streamSess = r.session || 'all';
2090
2131
  D.session = r.session || 'all'; applyCard(r);
2091
- D.members = []; D.duties = []; D.createdAt = 0;
2132
+ D.members = []; D.duties = []; D.verdicts = {}; D.createdAt = 0;
2092
2133
  var st = scrollState(); // 替换 DOM 的那一刻现取, 不是发请求前
2093
2134
  renderWizard(same);
2094
2135
  if (!same) { if (keepScroll) restore(st); else scrollBottom(); }
@@ -2104,7 +2145,7 @@
2104
2145
  // 重数据 (时间轴 /api/wizard、名片 card=1、名册 /api/world) 由调用方同时发出, 谁先回谁先画。
2105
2146
  var showSwitching = function () {
2106
2147
  D.mode0 = ''; D.role0 = ''; D.stream = null; D.streamOld = []; D.streamMore = false; D.streamSig = '';
2107
- D.msgs = []; D.earlier = ''; D.members = []; D.duties = []; D.wizLoading = true;
2148
+ D.msgs = []; D.earlier = ''; D.members = []; D.duties = []; D.verdicts = {}; D.wizLoading = true;
2108
2149
  renderWizard();
2109
2150
  thread.scrollTop = 0;
2110
2151
  };
@@ -2388,7 +2429,7 @@
2388
2429
  }).join('') + '</span>'
2389
2430
  : '';
2390
2431
  // 条首是账的主人 (头像 + 名字), 再是模型: 这本账是谁、拿什么跑出来的。
2391
- return '<span class="u-who" title="' + esc(who.name) + '">' + esc(who.label || '🧙‍♂️') +
2432
+ return '<span class="u-who" title="' + esc(who.name) + '">' + esc(who.label || '🧙') +
2392
2433
  '<span class="u-nm" data-tip="' + esc(who.name) + '">' + esc(who.name) + '</span></span>' +
2393
2434
  '<span class="u-lb" title="' + esc(t.model || '') + '">' + esc(t.modelLabel || t.model || '用量') + '</span>' +
2394
2435
  (t.effort ? '<span class="u-ef" title="effort 档位">' + esc(t.effort) + '</span>' : '') +
@@ -2608,7 +2649,7 @@
2608
2649
  var roomHitItem = function (r, q) {
2609
2650
  return {
2610
2651
  kind: 'conv',
2611
- html: '<span class="av">' + esc(roomIconOf(r.id, r.group)) + '</span><span class="b"><span class="l1">' +
2652
+ html: '<span class="av">' + esc(roomIconOf(r.id, r.group, r.kind)) + '</span><span class="b"><span class="l1">' +
2612
2653
  '<span class="nm chat">' + hl(r.name, q) + '</span>' + groupTag(r.group) + skTs(r.lastAt) + '</span>' +
2613
2654
  (r.preview ? '<span class="pv">' + esc(r.preview) + '</span>' : '') + '</span>',
2614
2655
  go: function () { goRoom(r.id); },
@@ -2618,7 +2659,7 @@
2618
2659
  var human = m.who.kind === 'human';
2619
2660
  return {
2620
2661
  kind: 'role',
2621
- html: '<span class="av">' + (human ? '👤' : esc(nodeOf(nodeIdOf(m.who)).label || '🧙‍♂️')) + '</span><span class="b"><span class="l1">' +
2662
+ html: '<span class="av">' + (human ? '👤' : esc(nodeOf(nodeIdOf(m.who)).label || '🧙')) + '</span><span class="b"><span class="l1">' +
2622
2663
  '<span class="nm ' + (human ? 'human' : 'wizard') + '">' + hl(m.name, q) + '</span><span class="k">切到视角</span></span>' +
2623
2664
  '<span class="pv">在 ' + m.rooms + ' 个 room' + (m.lastAt ? ' · 最近 ' + esc(fmtAgo(m.lastAt)) : '') + '</span></span>',
2624
2665
  go: function () { goRole(nodeIdOf(m.who)); },
@@ -2630,10 +2671,10 @@
2630
2671
  var to = (h.toNames || []).length ? ' → <span class="nm">' + esc(h.toNames.join('、')) + '</span>' : '';
2631
2672
  return {
2632
2673
  kind: 'msg',
2633
- html: '<span class="av">' + (human ? '👤' : esc(nodeOf(nodeIdOf(h.author)).label || '🧙‍♂️')) + '</span><span class="b"><span class="l1">' +
2674
+ html: '<span class="av">' + (human ? '👤' : esc(nodeOf(nodeIdOf(h.author)).label || '🧙')) + '</span><span class="b"><span class="l1">' +
2634
2675
  '<span class="said"><span class="nm ' + (human ? 'human' : 'wizard') + '">' + esc(h.authorName) + '</span>' + to + '</span>' + skTs(h.at) + '</span>' +
2635
2676
  '<span class="sn">' + hl(h.snippet, q) + '</span>' +
2636
- '<span class="l3"><span class="where' + (h.group ? '' : ' priv') + '"><i>' + esc(roomIconOf(h.room, h.group)) + '</i>' +
2677
+ '<span class="l3"><span class="where' + (h.group ? '' : ' priv') + '"><i>' + esc(roomIconOf(h.room, h.group, h.roomKind)) + '</i>' +
2637
2678
  (h.group ? '群聊' : '会话') + ' · ' + esc(h.roomName) + '</span>' +
2638
2679
  (h.hits > 1 ? '<span class="cnt">' + h.hits + ' 处命中</span>' : '') + '</span></span>',
2639
2680
  go: function () { jumpRow(h); },
@@ -2794,7 +2835,7 @@
2794
2835
  inner.innerHTML = '<div class="rv-none">还没有 room —— 说一句话, 或者在群里 .name 点名一个 wizard。</div>';
2795
2836
  };
2796
2837
  // ── 样式: 本页新加的 DOM 只在 chat.js 里, 样式也一并带上 (不改 web/chat.css, 无构建) ──
2797
- var CSS = ".side-body { flex: 1; min-height: 0; display: flex }\n.convs { flex: 1; min-width: 0; overflow: auto; padding: 0 }\n.rv-list { padding: 2px 8px 16px }\n.convs-h { padding: 2px 8px 0 }\n.convs-h h2 { margin-top: 6px }\n.convs h2 > span:nth-of-type(2) { flex: none }\n.convs h2 .vt + .vt { margin-left: 0 }\n.convs h2 .vt.on { color: var(--accent) }\n.convs h2 .vt svg { flex: none }\n@media (min-width: 761px) { .app.side-list .side { width: max(332px, 25vw) } }\n/* 滚动条: 支持 ::-webkit-scrollbar 的 (Chrome / Safari) 走伪元素; 其余 (Firefox) 走标准属性。不能两套并设: Chrome 121+ / Safari 18.2+ 见到 scrollbar-width / scrollbar-color 就让 ::-webkit-scrollbar 整个失效。 */\n@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--line) transparent } }\n::-webkit-scrollbar { width: 8px; height: 8px }\n::-webkit-scrollbar-track { background: transparent }\n::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box }\n::-webkit-scrollbar-thumb:hover { background-color: var(--faint) }\n::-webkit-scrollbar-corner { background: transparent }\n.thread-in, .gside, .rolebar, .rv-mh { overflow-wrap: anywhere }\n.rv-bub { min-width: 0; overflow-wrap: anywhere }\n.rv-files { min-width: 0 }\n.rv-files .rv-chip { white-space: normal; overflow-wrap: anywhere; max-width: 100%; line-height: 1.45; padding: 1px 7px }\n.rv-mh > * { min-width: 0 }\n.gs-mem .nm { white-space: normal; overflow-wrap: anywhere }\n.gs-cls { min-width: 0; overflow-wrap: anywhere }\n.rv-list .ci .l2 .rv-chip { flex: none }\n.rv-msg.hit .rv-bub { animation: hit 1.6s ease-out }\n.rv-graph { display: block; font: 11.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: grab; touch-action: none; user-select: none }\n.rv-edge { stroke: #c9d2df; stroke-width: 1 }\n.rv-edge.unread { stroke: #f2a7ad; stroke-width: 1.6 }\n.rv-edge.on { stroke: var(--accent); stroke-width: 1.6 }\n.rv-hit { stroke: transparent; stroke-width: 12; cursor: pointer }\n.rv-node { cursor: grab }\n.rv-room rect { fill: var(--them); stroke: var(--line) }\n.rv-room text { fill: var(--ink) }\n.rv-room.on > text { fill: var(--accent); font-weight: 700 }\n.rv-person .sh, .smi .sh { fill: var(--card); stroke: var(--mute); stroke-width: 1.6 }\n.rv-person .rv-emo { font-size: 17px; fill: initial }\n.rv-person.human .rv-nm { fill: var(--human); font-weight: 600 }\n.rv-person.wizard.st-working .sh, .smi.st-working .sh { fill: #2da44e; stroke: #1a7f37 }\n.rv-body { transform-box: fill-box; transform-origin: center }\n.rv-person.wizard.st-working .rv-body { animation: rvbreath 1.8s ease-in-out infinite }\n@keyframes rvbreath { 0%, 100% { transform: scale(.88) } 50% { transform: scale(1.14) } }\n.rv-person.wizard.st-blocked .sh, .smi.st-blocked .sh { fill: #e8336d; stroke: #b3124a }\n.rv-person.wizard.st-idle .sh, .smi.st-idle .sh { fill: #e4e7ec; stroke: #7d8795 }\n.rv-person.wizard.st-asleep .sh, .smi.st-asleep .sh { fill: #f6f7f9; stroke: #b9c0ca; stroke-dasharray: 3 2.5 }\n.rv-person.wizard.cold .sh, .smi.cold .sh { fill: #fff; stroke: #c9d0da; stroke-width: 1 }\n.rv-person.wizard.st-asleep text { fill: var(--faint) }\n.rv-hosthat .hh, .rv-legend .lghost path { fill: #7c4dcc; stroke: #2d1a5e; stroke-width: .9; stroke-linejoin: round }\n.rv-hosthat .hb, .rv-legend .lghost .hb { fill: #d9c8ff; stroke: #2d1a5e; stroke-width: .6 }\n.rv-hosthat { pointer-events: none }\n.rv-legend .lghost { flex: none }\n.rv-room .rv-un circle { fill: #cf222e }\n.rv-room .rv-un text { fill: #fff; font-size: 9px; font-weight: 600 }\n.rv-edge.direct { stroke: #9aa7ba; stroke-width: 1.4 }\n.rv-edge.sel { stroke: var(--accent); stroke-width: 3 }\n.rv-person.wizard.on .rv-nm, .rv-person.human.on .rv-nm { fill: var(--accent); font-weight: 700 }\n.rv-legend { display: flex; flex-wrap: wrap; gap: 3px 10px; padding: 4px 10px 8px; font-size: 11px; color: var(--faint) }\n.rv-legend span { display: inline-flex; align-items: center; gap: 4px }\n.rv-legend .lg { display: inline-block; width: 9px; height: 9px; border: 1.6px solid var(--mute); box-sizing: border-box }\n.rv-legend .wz { border-radius: 50% }\n.rv-legend .wz.working { background: #2da44e; border-color: #1a7f37 }\n.rv-legend .wz.idle { background: #e4e7ec; border-color: #7d8795 }\n.rv-legend .wz.blocked { background: #e8336d; border-color: #b3124a }\n.rv-legend .wz.cold { background: #fff; border: 1px solid #c9d0da }\n.rv-legend .wz.asleep { background: #f6f7f9; border-style: dashed; border-color: #b9c0ca }\n.rv-legend .lgemo { font-size: 11px; line-height: 1 }\n.rv-lead { fill: #f5b301; stroke: #6b4a00; stroke-width: .9; stroke-linejoin: round; pointer-events: none }\n.rv-legend .lglead { fill: #f5b301; stroke: #6b4a00; stroke-width: .9 }\n.rv-legend .lgpoly { flex: none }\n.rv-legend .lgpoly polygon, .rv-legend .lgpoly circle { fill: #e4e7ec; stroke: #7d8795; stroke-width: 1.4; stroke-linejoin: round }\n.smi { flex: none; vertical-align: -4px }\n.smi:not([class*=st-]) .sh { fill: #e4e7ec; stroke: #8a93a0 }\n.rolebar .facts .fx-smi { display: inline-flex; align-items: center; cursor: help }\n.rolebar .facts .lead { color: #b07d00 }\n.rv-person text { fill: var(--ink); font-size: 12px }\n.rv-person text.rv-nm { font-size: 12px; paint-order: stroke; stroke: var(--card); stroke-width: 3.5px; stroke-linejoin: round }\n.rv-room text { font-size: 13px }\n.rv-person.ghost .sh { fill: #f6f7f9; stroke: #c9d0da; stroke-dasharray: 3 2.5 }\n.rv-person.ghost text { fill: var(--faint) }\n.rv-ttl { font-size: 15.5px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }\n.rv-sub { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 3px; font-size: 11.5px; color: var(--mute) }\n.rv-lb { font-size: 15px }\n.rv-chip { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 999px; background: var(--them); color: var(--mute); font-size: 11px; line-height: 17px; white-space: nowrap }\n.rv-chip.ok { background: #e8f5ee; color: #1a7f3c }\n.rv-chip.warn { background: #fdf1e3; color: #9a5b10 }\n.rv-chip.ask, .rv-chip.bad { background: #fdecec; color: #b42318 }\n.rv-chip.go { background: var(--mine); color: var(--accent) }\n.rv-chip.file { background: var(--them-soft) }\n.rv-chip.re { background: transparent; color: var(--faint); border: 1px solid var(--line) }\n.rv-act { border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 2px 9px; font-size: 12px; cursor: pointer; color: var(--mute) }\n.rv-act:hover, .rv-act.on { color: var(--accent); border-color: var(--accent) }\n/* 图右侧的成员列: 点开一个 room 才有, 看 wizard 时收起。 */\n.gside { flex: none; width: 252px; min-height: 0; overflow: auto; border-left: 1px solid var(--line); background: var(--card); padding: 8px }\n.gs-host { flex: none; font-size: 11px; line-height: 1 }\n.gside[hidden] { display: none }\n.gs-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 4px; color: var(--faint); font-size: 12px; line-height: 20px }\n.gs-hl { min-width: 0 }\n.gs-hn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto }\n.gs-x { display: none; flex: none; margin-left: auto; width: 32px; height: 32px; border: 0; background: none; color: var(--mute); font-size: 15px; cursor: pointer }\n.gs-hn + .gs-x { margin-left: 0 }\n.gs-meta { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0 2px 4px; color: var(--faint); font-size: 11px; line-height: 1.6 }\n.gs-notice { display: flex; align-items: flex-start; gap: 5px; width: 100%; margin: 0 0 6px; padding: 5px 8px; border: 0; border-radius: 8px; background: #fff8e1; color: #6b4a00; font: inherit; font-size: 11.5px; line-height: 1.5; text-align: left; cursor: pointer }\n.gs-notice:hover { background: #fff3cd }\n.gs-np { flex: none; font-size: 11px }\n.gs-nt { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }\n.gs-notice.on .gs-nt { display: block; -webkit-line-clamp: unset; overflow: visible }\n.gs-head b { color: var(--mute); font-weight: 600 }\n.gs-duty { color: #b42318; font-weight: 600 }\n.gs-list { padding-top: 2px }\n.gs-item { border-radius: 6px }\n.gs-item.grp { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--paper) }\n.gs-row { display: flex; align-items: center; gap: 4px; min-width: 0; border-radius: 6px; padding-right: 6px }\n.gs-row:hover { background: var(--paper) }\n.gs-ago { flex: none; min-width: 2.6em; text-align: right; color: var(--faint); font-size: 10.5px; white-space: nowrap; cursor: pointer }\n.gs-ago.none { opacity: .6 }\n.gs-role { flex: none; font-size: 11px; line-height: 1; width: 10px; text-align: center; opacity: .8 }\n.gs-host, .gs-lead { flex: none; font-size: 11px; line-height: 1 }\n.gs-blk { margin-left: -2px; font-weight: 600; font-size: 10.5px; color: #b3124a }\n.gs-due.on { background: #b42318; color: #fff }\n.gs-ch { width: 0; height: 0; border-left: 3.5px solid currentColor; border-top: 3px solid transparent; border-bottom: 3px solid transparent; transition: transform .12s }\n.gs-due.on .gs-ch { transform: rotate(90deg) }\n.gs-duties { display: flex; flex-direction: column; gap: 2px; margin: 2px 4px 4px 10px; padding-left: 6px; border-left: 2px solid #f3c6c6 }\n.gs-dt { display: flex; flex-direction: column; gap: 0; text-align: left; border: 0; border-radius: 5px; padding: 2px 6px; background: none; cursor: pointer; font: inherit; color: inherit }\n.gs-dt:hover { background: var(--paper) }\n.gs-dq { font-size: 10.5px; color: var(--mute) }\n.gs-dq b { color: #b42318; font-weight: 600 }\n.gs-ds { font-size: 11px; line-height: 1.45; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }\n.gs-open { display: none }\n.gs-pip { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #cf222e; vertical-align: 2px }\n.gs-list { display: flex; flex-direction: column; gap: 2px }\n.gs-mem { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left; cursor: pointer }\n.gs-mem .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px }\n.gs-mem.human .nm { color: var(--human) }\n.gs-mem.busy .nm { color: var(--accent) }\n.gs-cls { flex: none; color: var(--faint); font-size: 10.5px }\n.gs-row:has(.gs-mem.me), .gs-row:has(.gs-mem.me):hover { background: var(--mine) }\n.gs-item.out .gs-mem .nm, .gs-item.out .gs-mem.human .nm, .gs-item.out .gs-mem.busy .nm { color: var(--faint) }\n.gs-item.out .gs-ago, .gs-item.out .gs-role, .gs-item.out .gs-host, .gs-item.out .gs-lead, .gs-item.out .smi { opacity: .6 }\n.gs-pov { flex: none; font-size: 11px; line-height: 1 }\n.gs-due { flex: none; display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 999px; padding: 0 6px; background: #fdecec; color: #b42318; font-size: 10.5px; line-height: 17px; cursor: pointer }\n@media (max-width: 760px) { .gside { display: none } .gs-open { display: inline-flex; align-items: center } .gside.sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 72vh; z-index: 30; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 32px #0003; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)) } .gside.sheet .gs-x { display: inline-block } .gside.sheet .gs-mem { padding: 10px 6px } .gside.sheet .gs-dt { padding: 5px 6px } .gside.sheet .gs-due { padding: 3px 10px } .gside.sheet .gs-ago { font-size: 11.5px } .gside.sheet .gs-row { gap: 8px } }\n.rv-older { display: block; margin: 8px auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--mute); cursor: pointer }\n/* 一条消息: 头在气泡外 (谁 → 谁 · room · 时刻), 气泡只装正文。 */\n.rv-msg { display: flex; flex-direction: column; gap: 3px; margin: 10px 0; min-width: 0 }\n.rv-msg > .rv-mh { padding: 0 2px }\n.rv-bub { align-self: flex-start; max-width: min(88%, 720px); padding: 8px 13px; background: var(--them); border: 0; border-radius: 14px }\n.rv-msg.me .rv-bub { align-self: flex-end; background: var(--mine) }\n.rv-msg.k-system .rv-bub { background: var(--them-soft, var(--them)) }\n.rv-msg.me .rv-turn .bubbles > .say { align-self: flex-end }\n.rv-mh { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; font-size: 11.5px; color: var(--mute) }\n.rv-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; min-width: 0 }\n.rv-arr { color: var(--faint); white-space: nowrap }\n.rv-arr::before { content: '→' }\n.rv-via::before { content: '—' }\n.rv-via::after { content: '→' }\n.rv-msg.me > .rv-mh, .rv-msg.me .rv-spk > .rv-mh { flex-direction: row-reverse }\n.rv-msg.me .rv-path { flex-direction: row-reverse }\n.rv-msg.me .rv-arr::before { content: '←' }\n.rv-msg.me .rv-via::before { content: '←' }\n.rv-msg.me .rv-via::after { content: '—' }\n.rv-msg.me .rv-rawbtn { margin-left: 0 }\n.rv-au { font-weight: 600; color: var(--ink); cursor: pointer }\n.rv-au:hover { text-decoration: underline dotted var(--faint); text-underline-offset: 3px }\n.rv-au.human { color: var(--human) }\n.rv-au.daemon { color: var(--wezard) }\n.rv-tag { color: var(--accent); cursor: pointer }\n.rv-roomtag { color: var(--chat); cursor: pointer; font-size: 11px; margin: 0 1px }\n.rv-roomtag:hover { text-decoration: underline dotted; text-underline-offset: 3px }\n.rv-mh time { color: var(--faint) }\n.rv-open { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 0 6px; font-size: 11px; color: var(--faint); cursor: pointer }\n.rv-open:hover { color: var(--accent); border-color: var(--accent) }\n.rv-quote { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; min-width: 0 }\n.rv-quote .rq-it { flex: 1; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; gap: 1px; text-align: left; border: 0; border-radius: 8px; padding: 4px 8px; background: #0000000a; font: inherit; cursor: pointer; color: inherit }\n.rv-quote .rq-it:hover { background: #00000012 }\n.rv-quote .rq-who { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--accent) }\n.rv-quote .rq-who.human { color: var(--human) }\n.rv-quote .rq-tx { display: block; min-width: 0; max-width: 100%; font-size: 12px; line-height: 1.45; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }\n.rv-quote .rq-gone { font-style: italic; color: var(--faint); cursor: default }\n.rv-quote .rq-more { flex: none; align-self: center; border: 0; border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 18px; background: #0000000a; color: var(--mute); cursor: pointer }\n.rv-quote .rq-more.on { color: var(--accent); background: var(--mine) }\n.rv-quote .rq-rest { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px }\n.rv-quote .rq-rest[hidden] { display: none }\n.rv-open { display: inline-flex; align-items: center; gap: 4px }\n.rv-och { width: 0; height: 0; border-left: 4px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; transition: transform .12s }\n.rv-open.on { background: var(--mine); color: var(--accent); border-color: var(--accent); font-weight: 600 }\n.rv-open.on .rv-och { transform: rotate(90deg) }\n.rv-tx { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; color: #1f2328 }\n.rv-tx > :first-child { margin-top: 0 }\n.rv-tx > :last-child { margin-bottom: 0 }\n.rv-tx p { margin: .6em 0 }\n.rv-tx h1, .rv-tx h2, .rv-tx h3, .rv-tx h4 { margin: 1em 0 .4em; font-weight: 600; line-height: 1.35 }\n.rv-tx h1 { font-size: 1.4em }\n.rv-tx h2 { font-size: 1.2em }\n.rv-tx h3 { font-size: 1.05em }\n.rv-tx h4 { font-size: 1em }\n.rv-tx ul, .rv-tx ol { margin: .6em 0; padding-left: 1.6em }\n.rv-tx li { margin: .2em 0 }\n.rv-tx li > p { margin: .2em 0 }\n.rv-tx code { background: #0000000d; border-radius: 4px; padding: 1px 5px; font-size: .9em; font-family: ui-monospace, Menlo, monospace }\n.rv-tx pre { background: #ffffffb3; border-radius: 8px; padding: 8px 10px; margin: .6em 0; overflow: auto; font-size: 12.5px; line-height: 1.5 }\n.rv-tx pre code { background: transparent; padding: 0; font-size: inherit }\n.rv-tx blockquote { margin: .6em 0; padding: .1em 1em; border-left: 3px solid #0000001f; color: #656d76 }\n.rv-tx table { border-collapse: collapse; margin: .7em 0; display: block; overflow: auto; max-width: 100% }\n.rv-tx th, .rv-tx td { border: 1px solid #0000001a; padding: 5px 10px }\n.rv-tx th { background: #0000000a; font-weight: 600 }\n.rv-tx hr { border: 0; border-top: 1px solid #0000001a; margin: .9em 0 }\n.rv-tx a { color: #0969da; text-decoration: none }\n.rv-tx a:hover { text-decoration: underline }\n.rv-empty { color: var(--faint); font-size: 12px; margin: 0 }\n.rv-box { margin-top: 4px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; background: var(--card) }\n.rv-box[hidden] { display: none }\n.rv-turn { margin: 0; padding: 0; border: 0; background: none }\n.rv-turn .turn-group { margin: 0 }\n.rv-mark { margin: 10px 12px; display: flex; justify-content: center }\n.rv-box .turn-group { margin: 0 }\n.rv-none { padding: 14px; color: var(--faint); font-size: 12.5px }\n.rv-note { margin: 8px 12px; padding: 7px 10px; border-radius: 8px; background: #fdf1e3; color: #9a5b10; font-size: 12px }\n.rv-charter { margin: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12px }\n.rv-charter h4 { margin: 6px 0 2px; font-size: 11.5px; color: var(--faint); font-weight: 600 }\n.rv-charter h5 { margin: 8px 0 2px; font-size: 11.5px; color: var(--faint) }\n.rv-charter pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11.5px; color: var(--mute) }\n/* 一轮写进账本的气泡: 过程框下面, 靠自己那一侧; 多颗时各带一行小头 (去处 / 定论)。 */\n.rv-spk { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; min-width: 0 }\n.rv-msg.me .rv-spk { align-items: flex-end }\n.rv-smh { font-size: 11px }\n.rv-smh time { margin-left: 6px }\n.rv-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px }\n/* reminder 标签收在气泡底: 默认只露种类, 点开看原文。 */\n.rv-bub .rems { padding: 4px 0 0 }\n.rv-bub .rem-raw { max-height: 360px; overflow: auto }\n.rv-mh .mstat { display: inline-flex; gap: 6px; align-items: center; color: var(--faint) }\n.ho-who[data-node], .ho-line[data-node] { cursor: pointer }\n/* 标题行: room 名 × 👁 role 名 —— ×「取消选择 room」夹在两者之间, 消除的是前者。× 触控区 32px (窄屏不挤标题: 标题先让位 min-width:0), 字形 14px, 与返回键 chevron 同一套线描。 */\n.rv-trow { display: flex; align-items: center; gap: 2px; min-width: 0 }\n.rv-trow .rv-ttl { min-width: 0; flex: 0 1 auto }\n.rv-pov-tag { flex: 0 1 auto; min-width: 4.2em; max-width: 45%; margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--faint) }\n.rv-clr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -5px 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--mute); cursor: pointer }\n.rv-clr:hover, .rv-clr:focus-visible { color: var(--ink); background: var(--paper) }\n.rv-clr svg { display: block }\n.rv-sys { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px; margin: 8px 12px; padding: 0 4px; min-width: 0; color: var(--faint); font-size: 11.5px; line-height: 1.6; text-align: center; overflow-wrap: anywhere }\n.rv-sys time { flex: none; font-size: 10.5px; opacity: .8 }\n.rv-sys.remove > span { color: var(--mute) }";
2838
+ var CSS = ".side-body { flex: 1; min-height: 0; display: flex }\n.convs { flex: 1; min-width: 0; overflow: auto; padding: 0 }\n.rv-list { padding: 2px 8px 16px }\n.convs-h { padding: 2px 8px 0 }\n.convs-h h2 { margin-top: 6px }\n.convs h2 > span:nth-of-type(2) { flex: none }\n.convs h2 .vt + .vt { margin-left: 0 }\n.convs h2 .vt.on { color: var(--accent) }\n.convs h2 .vt svg { flex: none }\n@media (min-width: 761px) { .app.side-list .side { width: max(332px, 25vw) } }\n/* 滚动条: 支持 ::-webkit-scrollbar 的 (Chrome / Safari) 走伪元素; 其余 (Firefox) 走标准属性。不能两套并设: Chrome 121+ / Safari 18.2+ 见到 scrollbar-width / scrollbar-color 就让 ::-webkit-scrollbar 整个失效。 */\n@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--line) transparent } }\n::-webkit-scrollbar { width: 8px; height: 8px }\n::-webkit-scrollbar-track { background: transparent }\n::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box }\n::-webkit-scrollbar-thumb:hover { background-color: var(--faint) }\n::-webkit-scrollbar-corner { background: transparent }\n.thread-in, .gside, .rolebar, .rv-mh { overflow-wrap: anywhere }\n.rv-bub { min-width: 0; overflow-wrap: anywhere }\n.rv-files { min-width: 0 }\n.rv-files .rv-chip { white-space: normal; overflow-wrap: anywhere; max-width: 100%; line-height: 1.45; padding: 1px 7px }\n.rv-mh > * { min-width: 0 }\n.gs-mem .nm { white-space: normal; overflow-wrap: anywhere }\n.gs-cls { min-width: 0; overflow-wrap: anywhere }\n.rv-list .ci .l2 .rv-chip { flex: none }\n.rv-msg.hit .rv-bub { animation: hit 1.6s ease-out }\n.rv-graph { display: block; font: 11.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: grab; touch-action: none; user-select: none }\n.rv-edge { stroke: #c9d2df; stroke-width: 1 }\n.rv-edge.unread { stroke: #f2a7ad; stroke-width: 1.6 }\n.rv-edge.on { stroke: var(--accent); stroke-width: 1.6 }\n.rv-hit { stroke: transparent; stroke-width: 12; cursor: pointer }\n.rv-node { cursor: grab }\n.rv-room rect { fill: var(--them); stroke: var(--line) }\n.rv-room text { fill: var(--ink) }\n.rv-room.on > text { fill: var(--accent); font-weight: 700 }\n.rv-person .sh, .smi .sh { fill: var(--card); stroke: var(--mute); stroke-width: 1.6 }\n.rv-person .rv-emo { font-size: 17px; fill: initial }\n.rv-person.human .rv-nm { fill: var(--human); font-weight: 600 }\n.rv-person.wizard.st-working .sh, .smi.st-working .sh { fill: #2da44e; stroke: #1a7f37 }\n.rv-body { transform-box: fill-box; transform-origin: center }\n.rv-person.wizard.st-working .rv-body { animation: rvbreath 1.8s ease-in-out infinite }\n@keyframes rvbreath { 0%, 100% { transform: scale(.88) } 50% { transform: scale(1.14) } }\n.rv-person.wizard.st-blocked .sh, .smi.st-blocked .sh { fill: #e8336d; stroke: #b3124a }\n.rv-person.wizard.st-idle .sh, .smi.st-idle .sh { fill: #e4e7ec; stroke: #7d8795 }\n.rv-person.wizard.st-asleep .sh, .smi.st-asleep .sh { fill: #f6f7f9; stroke: #b9c0ca; stroke-dasharray: 3 2.5 }\n.rv-person.wizard.cold .sh, .smi.cold .sh { fill: #fff; stroke: #c9d0da; stroke-width: 1 }\n.rv-person.wizard.st-asleep text { fill: var(--faint) }\n.rv-hosthat .hh, .rv-legend .lghost path { fill: #7c4dcc; stroke: #2d1a5e; stroke-width: .9; stroke-linejoin: round }\n.rv-hosthat .hb, .rv-legend .lghost .hb { fill: #d9c8ff; stroke: #2d1a5e; stroke-width: .6 }\n.rv-hosthat { pointer-events: none }\n.rv-legend .lghost { flex: none }\n.rv-room .rv-un circle { fill: #cf222e }\n.rv-room .rv-un text { fill: #fff; font-size: 9px; font-weight: 600 }\n.rv-edge.direct { stroke: #9aa7ba; stroke-width: 1.4 }\n.rv-edge.mon { stroke-dasharray: 4 3; stroke: #b3a7d6 }\n.rv-edge.chan { stroke-dasharray: 2 3; opacity: .65 }\n.rv-person.wizard.mon .sh { stroke-dasharray: 4 3 }\n.rv-edge.sel { stroke: var(--accent); stroke-width: 3 }\n.rv-person.wizard.on .rv-nm, .rv-person.human.on .rv-nm { fill: var(--accent); font-weight: 700 }\n.rv-legend { display: flex; flex-wrap: wrap; gap: 3px 10px; padding: 4px 10px 8px; font-size: 11px; color: var(--faint) }\n.rv-legend span { display: inline-flex; align-items: center; gap: 4px }\n.rv-legend .lg { display: inline-block; width: 9px; height: 9px; border: 1.6px solid var(--mute); box-sizing: border-box }\n.rv-legend .wz { border-radius: 50% }\n.rv-legend .wz.working { background: #2da44e; border-color: #1a7f37 }\n.rv-legend .wz.idle { background: #e4e7ec; border-color: #7d8795 }\n.rv-legend .wz.blocked { background: #e8336d; border-color: #b3124a }\n.rv-legend .wz.cold { background: #fff; border: 1px solid #c9d0da }\n.rv-legend .wz.asleep { background: #f6f7f9; border-style: dashed; border-color: #b9c0ca }\n.rv-legend .lgemo { font-size: 11px; line-height: 1 }\n.rv-lead { fill: #f5b301; stroke: #6b4a00; stroke-width: .9; stroke-linejoin: round; pointer-events: none }\n.rv-legend .lglead { fill: #f5b301; stroke: #6b4a00; stroke-width: .9 }\n.rv-legend .lgpoly { flex: none }\n.rv-legend .lgpoly polygon, .rv-legend .lgpoly circle { fill: #e4e7ec; stroke: #7d8795; stroke-width: 1.4; stroke-linejoin: round }\n.smi { flex: none; vertical-align: -4px }\n.smi:not([class*=st-]) .sh { fill: #e4e7ec; stroke: #8a93a0 }\n.rolebar .facts .fx-smi { display: inline-flex; align-items: center; cursor: help }\n.rolebar .facts .lead { color: #b07d00 }\n.rv-person text { fill: var(--ink); font-size: 12px }\n.rv-person text.rv-nm { font-size: 12px; paint-order: stroke; stroke: var(--card); stroke-width: 3.5px; stroke-linejoin: round }\n.rv-room text { font-size: 13px }\n.rv-person.ghost .sh { fill: #f6f7f9; stroke: #c9d0da; stroke-dasharray: 3 2.5 }\n.rv-person.ghost text { fill: var(--faint) }\n.rv-ttl { font-size: 15.5px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }\n.rv-sub { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 3px; font-size: 11.5px; color: var(--mute) }\n.rv-lb { font-size: 15px }\n.rv-chip { display: inline-flex; align-items: center; padding: 0 6px; border-radius: 999px; background: var(--them); color: var(--mute); font-size: 11px; line-height: 17px; white-space: nowrap }\n.rv-chip.ok { background: #e8f5ee; color: #1a7f3c }\n.rv-chip.warn { background: #fdf1e3; color: #9a5b10 }\n.rv-chip.ask, .rv-chip.bad { background: #fdecec; color: #b42318 }\n.rv-chip.go { background: var(--mine); color: var(--accent) }\n.rv-chip.file { background: var(--them-soft) }\n.rv-chip.re { background: transparent; color: var(--faint); border: 1px solid var(--line) }\n.rv-act { border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 2px 9px; font-size: 12px; cursor: pointer; color: var(--mute) }\n.rv-act:hover, .rv-act.on { color: var(--accent); border-color: var(--accent) }\n/* 图右侧的成员列: 点开一个 room 才有, 看 wizard 时收起。 */\n.gside { flex: none; width: 252px; min-height: 0; overflow: auto; border-left: 1px solid var(--line); background: var(--card); padding: 8px }\n.gs-host { flex: none; font-size: 11px; line-height: 1 }\n.gside[hidden] { display: none }\n.gs-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 4px; color: var(--faint); font-size: 12px; line-height: 20px }\n.gs-hl { min-width: 0 }\n.gs-hn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto }\n.gs-x { display: none; flex: none; margin-left: auto; width: 32px; height: 32px; border: 0; background: none; color: var(--mute); font-size: 15px; cursor: pointer }\n.gs-hn + .gs-x { margin-left: 0 }\n.gs-meta { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0 2px 4px; color: var(--faint); font-size: 11px; line-height: 1.6 }\n.gs-notice { display: flex; align-items: flex-start; gap: 5px; width: 100%; margin: 0 0 6px; padding: 5px 8px; border: 0; border-radius: 8px; background: #fff8e1; color: #6b4a00; font: inherit; font-size: 11.5px; line-height: 1.5; text-align: left; cursor: pointer }\n.gs-notice:hover { background: #fff3cd }\n.gs-np { flex: none; font-size: 11px }\n.gs-nt { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }\n.gs-notice.on .gs-nt { display: block; -webkit-line-clamp: unset; overflow: visible }\n.gs-srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 6px; padding: 4px 6px; border-radius: 8px; background: var(--paper); font-size: 11.5px; line-height: 1.5 }\n.gs-sbt { flex: none; color: var(--faint); font-size: 10.5px }\n.gs-src { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; background: var(--card); color: var(--mute); font: inherit; font-size: 11px; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }\n.gs-src.post { border-color: #cbb7ea; color: #5b3f8f; background: #f6f1fd }\nbutton.gs-src { cursor: pointer }\nbutton.gs-src:hover { color: var(--accent); border-color: var(--accent) }\n.gs-head b { color: var(--mute); font-weight: 600 }\n.gs-duty { color: #b42318; font-weight: 600 }\n.gs-list { padding-top: 2px }\n.gs-item { border-radius: 6px }\n.gs-item.grp { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--paper) }\n.gs-row { display: flex; align-items: center; gap: 4px; min-width: 0; border-radius: 6px; padding-right: 6px }\n.gs-row:hover { background: var(--paper) }\n.gs-ago { flex: none; min-width: 2.6em; text-align: right; color: var(--faint); font-size: 10.5px; white-space: nowrap; cursor: pointer }\n.gs-ago.none { opacity: .6 }\n.gs-role { flex: none; font-size: 11px; line-height: 1; width: 10px; text-align: center; opacity: .8 }\n.gs-host, .gs-lead { flex: none; font-size: 11px; line-height: 1 }\n.gs-blk { margin-left: -2px; font-weight: 600; font-size: 10.5px; color: #b3124a }\n.gs-due.on { background: #b42318; color: #fff }\n.gs-ch { width: 0; height: 0; border-left: 3.5px solid currentColor; border-top: 3px solid transparent; border-bottom: 3px solid transparent; transition: transform .12s }\n.gs-due.on .gs-ch { transform: rotate(90deg) }\n.gs-duties { display: flex; flex-direction: column; gap: 2px; margin: 2px 4px 4px 10px; padding-left: 6px; border-left: 2px solid #f3c6c6 }\n.gs-dt { display: flex; flex-direction: column; gap: 0; text-align: left; border: 0; border-radius: 5px; padding: 2px 6px; background: none; cursor: pointer; font: inherit; color: inherit }\n.gs-dt:hover { background: var(--paper) }\n.gs-dq { font-size: 10.5px; color: var(--mute) }\n.gs-dq b { color: #b42318; font-weight: 600 }\n.gs-ds { font-size: 11px; line-height: 1.45; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }\n.gs-open { display: none }\n.gs-pip { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: #cf222e; vertical-align: 2px }\n.gs-list { display: flex; flex-direction: column; gap: 2px }\n.gs-mem { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left; cursor: pointer }\n.gs-mem .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px }\n.gs-mem.human .nm { color: var(--human) }\n.gs-mem.busy .nm { color: var(--accent) }\n.gs-cls { flex: none; color: var(--faint); font-size: 10.5px }\n.gs-row:has(.gs-mem.me), .gs-row:has(.gs-mem.me):hover { background: var(--mine) }\n.gs-item.out .gs-mem .nm, .gs-item.out .gs-mem.human .nm, .gs-item.out .gs-mem.busy .nm { color: var(--faint) }\n.gs-item.out .gs-ago, .gs-item.out .gs-role, .gs-item.out .gs-host, .gs-item.out .gs-lead, .gs-item.out .smi { opacity: .6 }\n.gs-pov { flex: none; font-size: 11px; line-height: 1 }\n.gs-due { flex: none; display: inline-flex; align-items: center; gap: 3px; border: 0; border-radius: 999px; padding: 0 6px; background: #fdecec; color: #b42318; font-size: 10.5px; line-height: 17px; cursor: pointer }\n@media (max-width: 760px) { .gside { display: none } .gs-open { display: inline-flex; align-items: center } .gside.sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 72vh; z-index: 30; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 32px #0003; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)) } .gside.sheet .gs-x { display: inline-block } .gside.sheet .gs-mem { padding: 10px 6px } .gside.sheet .gs-dt { padding: 5px 6px } .gside.sheet .gs-due { padding: 3px 10px } .gside.sheet .gs-ago { font-size: 11.5px } .gside.sheet .gs-row { gap: 8px } }\n.rv-older { display: block; margin: 8px auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--mute); cursor: pointer }\n/* 一条消息: 头在气泡外 (谁 → 谁 · room · 时刻), 气泡只装正文。 */\n.rv-msg { display: flex; flex-direction: column; gap: 3px; margin: 10px 0; min-width: 0 }\n.rv-msg > .rv-mh { padding: 0 2px }\n.rv-bub { align-self: flex-start; max-width: min(88%, 720px); padding: 8px 13px; background: var(--them); border: 0; border-radius: 14px }\n.rv-msg.me .rv-bub { align-self: flex-end; background: var(--mine) }\n.rv-msg.k-system .rv-bub { background: var(--them-soft, var(--them)) }\n.rv-msg.me .rv-turn .bubbles > .say { align-self: flex-end }\n.rv-mh { display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; font-size: 11.5px; color: var(--mute) }\n.rv-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; min-width: 0 }\n.rv-arr { color: var(--faint); white-space: nowrap }\n.rv-arr::before { content: '→' }\n.rv-via::before { content: '—' }\n.rv-via::after { content: '→' }\n.rv-msg.me > .rv-mh, .rv-msg.me .rv-spk > .rv-mh { flex-direction: row-reverse }\n.rv-msg.me .rv-path { flex-direction: row-reverse }\n.rv-msg.me .rv-arr::before { content: '←' }\n.rv-msg.me .rv-via::before { content: '←' }\n.rv-msg.me .rv-via::after { content: '—' }\n.rv-msg.me .rv-rawbtn { margin-left: 0 }\n.rv-au { font-weight: 600; color: var(--ink); cursor: pointer }\n.rv-au:hover { text-decoration: underline dotted var(--faint); text-underline-offset: 3px }\n.rv-au.human { color: var(--human) }\n.rv-au.daemon { color: var(--wezard) }\n.rv-tag { color: var(--accent); cursor: pointer }\n.rv-roomtag { color: var(--chat); cursor: pointer; font-size: 11px; margin: 0 1px }\n.rv-roomtag:hover { text-decoration: underline dotted; text-underline-offset: 3px }\n.rv-mh time { color: var(--faint) }\n.rv-open { border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 0 6px; font-size: 11px; color: var(--faint); cursor: pointer }\n.rv-open:hover { color: var(--accent); border-color: var(--accent) }\n.rv-quote { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px; min-width: 0 }\n.rv-quote .rq-it { flex: 1; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; gap: 1px; text-align: left; border: 0; border-radius: 8px; padding: 4px 8px; background: #0000000a; font: inherit; cursor: pointer; color: inherit }\n.rv-quote .rq-it:hover { background: #00000012 }\n.rv-quote .rq-who { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--accent) }\n.rv-quote .rq-who.human { color: var(--human) }\n.rv-quote .rq-tx { display: block; min-width: 0; max-width: 100%; font-size: 12px; line-height: 1.45; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }\n.rv-quote .rq-gone { font-style: italic; color: var(--faint); cursor: default }\n.rv-quote .rq-more { flex: none; align-self: center; border: 0; border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 18px; background: #0000000a; color: var(--mute); cursor: pointer }\n.rv-quote .rq-more.on { color: var(--accent); background: var(--mine) }\n.rv-quote .rq-rest { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px }\n.rv-quote .rq-rest[hidden] { display: none }\n.rv-open { display: inline-flex; align-items: center; gap: 4px }\n.rv-och { width: 0; height: 0; border-left: 4px solid currentColor; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; transition: transform .12s }\n.rv-open.on { background: var(--mine); color: var(--accent); border-color: var(--accent); font-weight: 600 }\n.rv-open.on .rv-och { transform: rotate(90deg) }\n.rv-tx { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; color: #1f2328 }\n.rv-tx > :first-child { margin-top: 0 }\n.rv-tx > :last-child { margin-bottom: 0 }\n.rv-tx p { margin: .6em 0 }\n.rv-tx h1, .rv-tx h2, .rv-tx h3, .rv-tx h4 { margin: 1em 0 .4em; font-weight: 600; line-height: 1.35 }\n.rv-tx h1 { font-size: 1.4em }\n.rv-tx h2 { font-size: 1.2em }\n.rv-tx h3 { font-size: 1.05em }\n.rv-tx h4 { font-size: 1em }\n.rv-tx ul, .rv-tx ol { margin: .6em 0; padding-left: 1.6em }\n.rv-tx li { margin: .2em 0 }\n.rv-tx li > p { margin: .2em 0 }\n.rv-tx code { background: #0000000d; border-radius: 4px; padding: 1px 5px; font-size: .9em; font-family: ui-monospace, Menlo, monospace }\n.rv-tx pre { background: #ffffffb3; border-radius: 8px; padding: 8px 10px; margin: .6em 0; overflow: auto; font-size: 12.5px; line-height: 1.5 }\n.rv-tx pre code { background: transparent; padding: 0; font-size: inherit }\n.rv-tx blockquote { margin: .6em 0; padding: .1em 1em; border-left: 3px solid #0000001f; color: #656d76 }\n.rv-tx table { border-collapse: collapse; margin: .7em 0; display: block; overflow: auto; max-width: 100% }\n.rv-tx th, .rv-tx td { border: 1px solid #0000001a; padding: 5px 10px }\n.rv-tx th { background: #0000000a; font-weight: 600 }\n.rv-tx hr { border: 0; border-top: 1px solid #0000001a; margin: .9em 0 }\n.rv-tx a { color: #0969da; text-decoration: none }\n.rv-tx a:hover { text-decoration: underline }\n.rv-empty { color: var(--faint); font-size: 12px; margin: 0 }\n.rv-box { margin-top: 4px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; background: var(--card) }\n.rv-box[hidden] { display: none }\n.rv-turn { margin: 0; padding: 0; border: 0; background: none }\n.rv-turn .turn-group { margin: 0 }\n.rv-mark { margin: 10px 12px; display: flex; justify-content: center }\n.rv-box .turn-group { margin: 0 }\n.rv-none { padding: 14px; color: var(--faint); font-size: 12.5px }\n.rv-note { margin: 8px 12px; padding: 7px 10px; border-radius: 8px; background: #fdf1e3; color: #9a5b10; font-size: 12px }\n.rv-charter { margin: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12px }\n.rv-charter h4 { margin: 6px 0 2px; font-size: 11.5px; color: var(--faint); font-weight: 600 }\n.rv-charter h5 { margin: 8px 0 2px; font-size: 11.5px; color: var(--faint) }\n.rv-charter pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11.5px; color: var(--mute) }\n/* 一轮写进账本的气泡: 过程框下面, 靠自己那一侧; 多颗时各带一行小头 (去处 / 定论)。 */\n.rv-spk { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; min-width: 0 }\n.rv-msg.me .rv-spk { align-items: flex-end }\n.rv-smh { font-size: 11px }\n.rv-smh time { margin-left: 6px }\n.rv-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px }\n/* reminder 标签收在气泡底: 默认只露种类, 点开看原文。 */\n.rv-bub .rems { padding: 4px 0 0 }\n.rv-bub .rem-raw { max-height: 360px; overflow: auto }\n.rv-mh .mstat { display: inline-flex; gap: 6px; align-items: center; color: var(--faint) }\n.ho-who[data-node], .ho-line[data-node] { cursor: pointer }\n/* 标题行: room 名 × 👁 role 名 —— ×「取消选择 room」夹在两者之间, 消除的是前者。× 触控区 32px (窄屏不挤标题: 标题先让位 min-width:0), 字形 14px, 与返回键 chevron 同一套线描。 */\n.rv-trow { display: flex; align-items: center; gap: 2px; min-width: 0 }\n.rv-trow .rv-ttl { min-width: 0; flex: 0 1 auto }\n.rv-pov-tag { flex: 0 1 auto; min-width: 4.2em; max-width: 45%; margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: var(--faint) }\n.rv-clr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -5px 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--mute); cursor: pointer }\n.rv-clr:hover, .rv-clr:focus-visible { color: var(--ink); background: var(--paper) }\n.rv-clr svg { display: block }\n.rv-sys { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px; margin: 8px 12px; padding: 0 4px; min-width: 0; color: var(--faint); font-size: 11.5px; line-height: 1.6; text-align: center; overflow-wrap: anywhere }\n.rv-sys time { flex: none; font-size: 10.5px; opacity: .8 }\n.rv-sys.remove > span { color: var(--mute) }";
2798
2839
  var injectStyle = function () {
2799
2840
  if (document.getElementById('rv-style')) return;
2800
2841
  var s = document.createElement('style');