dsh-onebot-genji 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/lib/bridge.js +220 -9
- package/lib/client.js +707 -11
- package/lib/inbound.js +8 -0
- package/lib/index.js +142 -12
- package/lib/interim.js +9 -0
- package/lib/outbound.js +137 -6
- package/lib/proactive.js +635 -0
- package/lib/prompt.js +4 -3
- package/lib/registry.js +1 -0
- package/lib/settings-remote.js +346 -6
- package/lib/stickers.js +669 -0
- package/lib/tools.js +5 -62
- package/lib/types/bridge.d.ts +40 -0
- package/lib/types/client.d.ts +121 -0
- package/lib/types/inbound.d.ts +8 -0
- package/lib/types/index.d.ts +23 -3
- package/lib/types/interim.d.ts +2 -0
- package/lib/types/outbound.d.ts +31 -0
- package/lib/types/proactive.d.ts +170 -0
- package/lib/types/registry.d.ts +2 -0
- package/lib/types/settings-remote.d.ts +84 -0
- package/lib/types/stickers.d.ts +197 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
| 功能 | 说明 |
|
|
12
12
|
| --- | --- |
|
|
13
13
|
| **自带语音转写桥** | `lib/stt_cli.py` 打进包里,`sttEngine: auto` 探不到 whisper 时自动用它(只要 Python + `faster-whisper`),不用自己配脚本 |
|
|
14
|
-
| **表情包库** |
|
|
14
|
+
| **表情包库** | 收到的新图自动进「未审核」;设置页「表情包」页签六列缩略图、悬停看原图(调 DSH 自己的大图查看器)、多选上传、审核 / 撤回 / 删除、已审核图可一键「重新识别」重写描述与标签,描述和标签点一下就能改。审核时才让模型看图写描述和标签,不点不跑、不占显存 |
|
|
15
15
|
| **主动搭话** | 内置在插件里(`lib/proactive.js`),按空闲时长、间隔、每日上限、安静时段自己找话题,聊完还能补一句;开关和阈值全在设置页「行为 → 私聊」,生成走当前会话模型 |
|
|
16
16
|
| **回合形式掷骰** | 每个回合按概率决定这一轮用文字、语音条还是表情包;语音/表情的开关与概率都是设置项(默认 10% / 39%) |
|
|
17
|
+
| **气泡切分与双发闸** | 正文按换行 / 句末标点自动切成最多 4 条气泡,条与条之间 0.8–1.5 秒随机停顿;`qq_send_text` 这一轮发过话,回合末正文就不再发(要补内容就再调一次工具,别指望正文兜底) |
|
|
17
18
|
| **群聊上下文** | 被 @ 或叫到唤醒词时,自动带上群里最近 N 条消息(「参考上下文条数」,默认 3,0 = 不带),被门控挡下的消息不会丢 |
|
|
18
19
|
| **唤醒词合并** | 原版分「用户唤醒词 / 他人唤醒词」两套名单,这里合成一个「唤醒词」列表:群里任何人命中都算叫到机器人 |
|
|
19
20
|
| **引用合并转发展开** | 被引的消息本身是合并转发时展开成可读内容,而不是只剩 `[合并转发]` 占位 |
|
package/lib/bridge.js
CHANGED
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { createUserMessage } from '@deepseek-ai/dsh-llm';
|
|
11
11
|
import { realpath } from 'node:fs/promises';
|
|
12
|
+
// 本地补丁(2026-11-17,2026-11-19 搬进源码):会话标题按昵称/群名定名,
|
|
13
|
+
// 同步过程写一行可 grep 的日志到 ~/.dsh/onebot-title-sync.log。
|
|
14
|
+
import { appendFileSync } from 'node:fs';
|
|
15
|
+
import { homedir } from 'node:os';
|
|
12
16
|
import { transcriptLabel } from './stt.js';
|
|
13
17
|
import { buildChatId, classifyUserRole, splitChatId } from './chat.js';
|
|
14
18
|
import { buildPlatformPrompt } from './prompt.js';
|
|
@@ -42,6 +46,33 @@ import { FailureRefRegistry, failureRefSuffix } from './ref.js';
|
|
|
42
46
|
* turn (the flag resets at turn/end) so a burst of queued messages never
|
|
43
47
|
* spams the chat. Exported for the deterministic text wait in tests. */
|
|
44
48
|
export const QUEUE_NOTICE_TEXT = '⏳ 当前任务运行中,新消息已排队,将在当前任务结束后依次处理。';
|
|
49
|
+
// ---- 回合形式掷骰(语音条 / 表情包)--------------------------------------
|
|
50
|
+
// 2026-11-13 主人定:私聊 / 群聊同一套;2026-11-19 把写死的 10% / 39% 改成配置项
|
|
51
|
+
// (voiceReplyEnabled/voiceReplyProb、stickerReplyEnabled/stickerReplyProb)。
|
|
52
|
+
export const VOICE_PROB = 0.1;
|
|
53
|
+
export const STICKER_PROB = 0.39;
|
|
54
|
+
export const VOICE_HINT = '(插件掷骰:本轮形式 = 语音条)\n'
|
|
55
|
+
+ '这一回合的回复请说成一句口语化的短话,不要分点、不要念代码块——'
|
|
56
|
+
+ '我这边会把你的文字转成语音条发出去,所以句子要像人开口说的。';
|
|
57
|
+
const STICKER_ROOT_FALLBACK = '';
|
|
58
|
+
/** 表情包提示词按当前库目录拼(库目录可配置,默认 ~/.dsh/dsh-onebot-genji/stickers)。
|
|
59
|
+
* 只许从「已审核」子目录里挑,「未审核」的新图不进聊天。 */
|
|
60
|
+
function stickerHintFor(config) {
|
|
61
|
+
const configured = typeof config.stickerRoot === 'string' ? config.stickerRoot.trim() : '';
|
|
62
|
+
const root = configured !== '' ? configured : STICKER_ROOT_FALLBACK;
|
|
63
|
+
const where = root !== '' ? root + '\\已审核\\' : '表情包库的「已审核」目录';
|
|
64
|
+
return '(插件掷骰:本轮形式 = 表情包)\n'
|
|
65
|
+
+ '这一回合文字照常短着说,另外从 ' + where + ' 里挑一张贴题的图,用 qq_send_image 发出去。'
|
|
66
|
+
+ '这个目录就是已审核的图,别去「未审核」里挑。';
|
|
67
|
+
}
|
|
68
|
+
/** 群聊上下文环缓冲:每聊天保留最近 N 条(config.groupContextLines)未 @ 我的群消息,
|
|
69
|
+
* 被 @ / 叫到唤醒词那一回合作为参考材料注入 prefixTurn。 */
|
|
70
|
+
const GROUP_CONTEXT_CAP = 200;
|
|
71
|
+
/** 群聊上下文行首的 HH:MM(本地时区,非数字时间戳回落当前时间)。 */
|
|
72
|
+
function formatHhMm(ts) {
|
|
73
|
+
const d = new Date(Number.isFinite(ts) ? ts : Date.now());
|
|
74
|
+
return String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0');
|
|
75
|
+
}
|
|
45
76
|
/** T2-B2: how long a relayed ask_user_question batch stays interceptable —
|
|
46
77
|
* after this the bridge stops treating plain replies as answers (the host's
|
|
47
78
|
* continued-state question may still be answered from the Web card). */
|
|
@@ -106,6 +137,11 @@ export class ChatBridge {
|
|
|
106
137
|
/** 群聊旁观 (#58):每群旁听环形缓冲 + 冷却/每日上限记账。惰性判定,
|
|
107
138
|
* 零定时器;缓冲不持久化(易失的「最近发生了什么」,重启后重新积累)。 */
|
|
108
139
|
bystander = new BystanderTracker();
|
|
140
|
+
/** 群聊上下文(2026-11-19 本地加):每群最近 N 条未 @ 我的群消息,供被叫到那回合参考。
|
|
141
|
+
* 不持久化(易失的「刚才在聊什么」),条数由 config.groupContextLines 控制。 */
|
|
142
|
+
groupContextBuf = new Map();
|
|
143
|
+
/** 群名缓存(本地补丁 2026-11-17):group:123 → 群名,定名时少调一次 get_group_info。 */
|
|
144
|
+
qqGroupTitles = {};
|
|
109
145
|
/** W1/T5: chatId → the traceId of the chat's unsettled INJECTED round
|
|
110
146
|
* (independent of the trace sink, so the dry-run guard covers the async
|
|
111
147
|
* agent reply even with tracing off). Cleared by a real dispatch to the
|
|
@@ -221,6 +257,8 @@ export class ChatBridge {
|
|
|
221
257
|
dispatchFollowup: (chatId, text, role, nickname, options) => this.dispatchFollowup(chatId, text, role, nickname, options),
|
|
222
258
|
// 群聊旁观 (#58):mention 门 drop 点喂缓冲;seam 可选(旧测试桩缺席 = 零行为)。
|
|
223
259
|
feedBystander: (chatId, entry) => this.feedBystander(chatId, entry),
|
|
260
|
+
// 2026-11-19 本地加:未 @ 的群消息记进「参考上下文条数」环缓冲(不触发回顾回合)。
|
|
261
|
+
recordGroupContext: (chatId, entry) => this.recordGroupContext(chatId, entry),
|
|
224
262
|
interceptBusyTurn: (chatId, text, role, nickname, plain) => this.interceptBusyTurn(chatId, text, role, nickname, plain),
|
|
225
263
|
interceptQuestionAnswer: (chatId, text) => this.interceptQuestionAnswer(chatId, text),
|
|
226
264
|
sendToChat: (chatId, text) => this.sendToChat(chatId, text),
|
|
@@ -234,6 +272,8 @@ export class ChatBridge {
|
|
|
234
272
|
chainTail: chatId => this.outbound.chainTail(chatId),
|
|
235
273
|
relayHostCards: (chatId, content) => this.relayHostCards(chatId, content),
|
|
236
274
|
effectiveInterim: chatId => this.effectiveInterim(chatId),
|
|
275
|
+
// 双发闸(语义版,2026-11-19 主人要回):工具说过的话,回合末正文再说一遍就丢。
|
|
276
|
+
dropDuplicateFinal: (chatId, text) => this.isToolTopicDuplicate(chatId, text),
|
|
237
277
|
log: (level, message) => this.deps.log(level, message),
|
|
238
278
|
config: deps.config,
|
|
239
279
|
});
|
|
@@ -531,8 +571,14 @@ export class ChatBridge {
|
|
|
531
571
|
// Plugin-originated user message: the session log attributes QQ inbound
|
|
532
572
|
// messages to this plugin's own producer-owned source kind, keeping them
|
|
533
573
|
// distinguishable from host/web UI inputs.
|
|
574
|
+
// 回合形式掷骰(本地补丁 2026-11-13 / 2026-11-19 配置化):命中时把形式
|
|
575
|
+
// 指令作为第二段文本追加给模型,不改用户原话。
|
|
576
|
+
const turnForm = this.rollTurnForm();
|
|
577
|
+
const turnContent = [{ type: 'text', text: final }];
|
|
578
|
+
if (turnForm !== '')
|
|
579
|
+
turnContent.push({ type: 'text', text: turnForm });
|
|
534
580
|
chat.agent.followup(createUserMessage({
|
|
535
|
-
content:
|
|
581
|
+
content: turnContent,
|
|
536
582
|
source: { kind: 'plugin:dsh-onebot' },
|
|
537
583
|
}));
|
|
538
584
|
// W1 cross-stream join: the turn's session events arrive on a different
|
|
@@ -579,23 +625,180 @@ export class ChatBridge {
|
|
|
579
625
|
* - refresh 后台执行不 await 主流程;get/refresh 同步抛或拒绝都只
|
|
580
626
|
* warn(标题是辅助功能,失败静默降级,不冒泡进派发主流程)。 */
|
|
581
627
|
syncSessionTitle(chat) {
|
|
582
|
-
|
|
628
|
+
const dbg = (message) => {
|
|
629
|
+
try {
|
|
630
|
+
appendFileSync(homedir() + '\\.dsh\\onebot-title-sync.log', '[' + new Date().toISOString() + '] ' + message + '\n');
|
|
631
|
+
}
|
|
632
|
+
catch {
|
|
633
|
+
/* 日志失败不影响同步 */
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
if (this.deps.config.titleSyncEnabled !== true) {
|
|
637
|
+
dbg('skip: titleSyncEnabled=' + String(this.deps.config.titleSyncEnabled) + ' chat=' + chat.chatId);
|
|
583
638
|
return;
|
|
639
|
+
}
|
|
584
640
|
const service = this.deps.sessionTitle;
|
|
585
|
-
if (service === undefined)
|
|
641
|
+
if (service === undefined) {
|
|
642
|
+
dbg('skip: no sessionTitle service chat=' + chat.chatId);
|
|
586
643
|
return;
|
|
587
|
-
|
|
644
|
+
}
|
|
645
|
+
const session = chat.agent?.session;
|
|
646
|
+
if (session === undefined) {
|
|
647
|
+
dbg('skip: no session chat=' + chat.chatId);
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
// 本地补丁 2026-11-17,2026-11-19 重写:先按身份定名(私聊=昵称(QQ号),群聊=群名(群号)),
|
|
651
|
+
// 定不了才回落官方 LLM refresh。只读一次 get,钉住态(source.kind==='user')一律不覆盖。
|
|
652
|
+
let current;
|
|
588
653
|
try {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
654
|
+
current = service.get(session);
|
|
655
|
+
}
|
|
656
|
+
catch (error) {
|
|
657
|
+
dbg('get fail: ' + describeError(error));
|
|
658
|
+
this.deps.log('warn', '会话标题刷新失败 (' + chat.sessionId + '): ' + describeError(error));
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
if (current?.source?.kind === 'user') {
|
|
662
|
+
dbg('pinned: ' + String(current.title ?? '') + ' chat=' + chat.chatId);
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
const applyTitle = (desired) => {
|
|
666
|
+
const title = desired.trim();
|
|
667
|
+
if (title === '')
|
|
668
|
+
return false;
|
|
669
|
+
if (current?.title === title) {
|
|
670
|
+
dbg('title ok: ' + title);
|
|
671
|
+
return true;
|
|
672
|
+
}
|
|
673
|
+
if (typeof service.rename !== 'function')
|
|
674
|
+
return false;
|
|
675
|
+
try {
|
|
676
|
+
service.rename(session, title);
|
|
677
|
+
dbg('rename ok: ' + title + ' (was ' + JSON.stringify(current?.title ?? null) + ') chat=' + chat.chatId);
|
|
678
|
+
return true;
|
|
679
|
+
}
|
|
680
|
+
catch (error) {
|
|
681
|
+
dbg('rename fail: ' + describeError(error) + ' chat=' + chat.chatId);
|
|
682
|
+
this.deps.log('warn', '会话标题写入失败 (' + chat.sessionId + '): ' + describeError(error));
|
|
683
|
+
return false;
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
const refresh = () => {
|
|
687
|
+
dbg('fallback refresh chat=' + chat.chatId);
|
|
592
688
|
void service.refresh(session).catch((error) => {
|
|
689
|
+
dbg('refresh fail: ' + describeError(error));
|
|
593
690
|
this.deps.log('warn', '会话标题刷新失败 (' + chat.sessionId + '): ' + describeError(error));
|
|
594
691
|
});
|
|
692
|
+
};
|
|
693
|
+
const ref = splitChatId(chat.chatId);
|
|
694
|
+
if (ref.kind === 'group') {
|
|
695
|
+
const cached = this.qqGroupTitles[ref.target];
|
|
696
|
+
if (typeof cached === 'string' && applyTitle(cached + '(' + ref.target + ')'))
|
|
697
|
+
return;
|
|
698
|
+
void this.guardedConnectionCall('get_group_info', { group_id: Number(ref.target) }, chat.chatId)
|
|
699
|
+
.then((info) => {
|
|
700
|
+
const rawName = info?.group_name;
|
|
701
|
+
const name = typeof rawName === 'string' ? rawName.trim() : '';
|
|
702
|
+
if (name === '') {
|
|
703
|
+
dbg('group name empty: ' + ref.target);
|
|
704
|
+
return false;
|
|
705
|
+
}
|
|
706
|
+
this.qqGroupTitles[ref.target] = name;
|
|
707
|
+
return applyTitle(name + '(' + ref.target + ')');
|
|
708
|
+
})
|
|
709
|
+
.catch((error) => {
|
|
710
|
+
dbg('group info fail: ' + describeError(error));
|
|
711
|
+
return false;
|
|
712
|
+
})
|
|
713
|
+
.then((done) => {
|
|
714
|
+
if (done !== true)
|
|
715
|
+
refresh();
|
|
716
|
+
});
|
|
717
|
+
return;
|
|
595
718
|
}
|
|
596
|
-
|
|
597
|
-
|
|
719
|
+
const nickname = typeof chat.lastNickname === 'string' ? chat.lastNickname.trim() : '';
|
|
720
|
+
if (nickname !== '' && applyTitle(nickname + '(' + ref.target + ')'))
|
|
721
|
+
return;
|
|
722
|
+
refresh();
|
|
723
|
+
}
|
|
724
|
+
noteToolText(chatId, text) {
|
|
725
|
+
const chat = this.chats.get(chatId);
|
|
726
|
+
if (chat === undefined)
|
|
727
|
+
return;
|
|
728
|
+
const body = String(text ?? '').trim();
|
|
729
|
+
if (body === '')
|
|
730
|
+
return;
|
|
731
|
+
if (!Array.isArray(chat.toolSentTexts))
|
|
732
|
+
chat.toolSentTexts = [];
|
|
733
|
+
chat.toolSentTexts.push(body);
|
|
734
|
+
if (chat.toolSentTexts.length > 8)
|
|
735
|
+
chat.toolSentTexts.shift();
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* 回合末正文是否只是把工具刚说过的话又重复一遍(意思层面)。
|
|
739
|
+
* @returns true 表示重复,正文应丢弃。
|
|
740
|
+
*/
|
|
741
|
+
isToolTopicDuplicate(chatId, text) {
|
|
742
|
+
const chat = this.chats.get(chatId);
|
|
743
|
+
const list = Array.isArray(chat?.toolSentTexts) ? chat.toolSentTexts : [];
|
|
744
|
+
if (list.length === 0)
|
|
745
|
+
return false;
|
|
746
|
+
// 2026-11-19 主人选第二种:本回合只要工具发过话,回合末正文一律不发。
|
|
747
|
+
// 原来的二元组相似度判重掐不住「换个说法重复」,所以改成这条更硬的规矩。
|
|
748
|
+
void text;
|
|
749
|
+
return list.length > 0;
|
|
750
|
+
}
|
|
751
|
+
/** 每回合掷骰决定回合形式:语音条 / 表情包 / 纯文字(概率读配置,默认 10% / 39%)。 */
|
|
752
|
+
rollTurnForm() {
|
|
753
|
+
const config = this.deps.config;
|
|
754
|
+
const prob = (value, fallback) => {
|
|
755
|
+
if (value === null || value === undefined || value === '')
|
|
756
|
+
return fallback;
|
|
757
|
+
const n = Number(value);
|
|
758
|
+
if (!Number.isFinite(n))
|
|
759
|
+
return fallback;
|
|
760
|
+
return Math.min(1, Math.max(0, n));
|
|
761
|
+
};
|
|
762
|
+
const voiceProb = config.voiceReplyEnabled === false ? 0 : prob(config.voiceReplyProb, VOICE_PROB);
|
|
763
|
+
const stickerProb = config.stickerReplyEnabled === false ? 0 : prob(config.stickerReplyProb, STICKER_PROB);
|
|
764
|
+
const r = Math.random();
|
|
765
|
+
if (r < voiceProb)
|
|
766
|
+
return VOICE_HINT;
|
|
767
|
+
if (r < voiceProb + stickerProb)
|
|
768
|
+
return stickerHintFor(config);
|
|
769
|
+
return '';
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* 群聊上下文(2026-11-19 本地加):把一条未 @ 我 / 没叫到唤醒词的群消息记进
|
|
773
|
+
* 环缓冲,被叫到那一回合按 config.groupContextLines 取最近 N 条注入。
|
|
774
|
+
*/
|
|
775
|
+
recordGroupContext(chatId, entry) {
|
|
776
|
+
const limit = Number(this.deps.config.groupContextLines ?? 0);
|
|
777
|
+
if (!Number.isFinite(limit) || limit <= 0)
|
|
778
|
+
return;
|
|
779
|
+
const cap = Math.min(GROUP_CONTEXT_CAP, Math.floor(limit));
|
|
780
|
+
let list = this.groupContextBuf.get(chatId);
|
|
781
|
+
if (list === undefined) {
|
|
782
|
+
list = [];
|
|
783
|
+
this.groupContextBuf.set(chatId, list);
|
|
598
784
|
}
|
|
785
|
+
const body = String(entry.text ?? '').trim();
|
|
786
|
+
if (body === '')
|
|
787
|
+
return;
|
|
788
|
+
list.push('[' + formatHhMm(entry.time) + '] ' + entry.nickname + '(' + entry.userId + '): ' + body);
|
|
789
|
+
while (list.length > cap)
|
|
790
|
+
list.shift();
|
|
791
|
+
}
|
|
792
|
+
/** 本轮要注入的群聊上下文文本(没有返回 undefined)。 */
|
|
793
|
+
groupContextRecent(chatId) {
|
|
794
|
+
const limit = Number(this.deps.config.groupContextLines ?? 0);
|
|
795
|
+
if (!Number.isFinite(limit) || limit <= 0)
|
|
796
|
+
return undefined;
|
|
797
|
+
const list = this.groupContextBuf.get(chatId);
|
|
798
|
+
if (list === undefined || list.length === 0)
|
|
799
|
+
return undefined;
|
|
800
|
+
return '【群聊上下文】最近 ' + list.length + ' 条群消息(本轮之前群里在聊什么,供你参考,别逐条复述):\n'
|
|
801
|
+
+ list.map(line => '- ' + line).join('\n');
|
|
599
802
|
}
|
|
600
803
|
/**
|
|
601
804
|
* 群聊旁观 (#58):把一条未通过 @ 门控的群消息喂进旁听缓冲;规则触发命中
|
|
@@ -647,6 +850,12 @@ export class ChatBridge {
|
|
|
647
850
|
if (goal !== undefined && goal.trim() !== '') {
|
|
648
851
|
out = '【当前目标】' + goal + '\n' + out;
|
|
649
852
|
}
|
|
853
|
+
// 群聊上下文(2026-11-19 本地加):被 @ / 叫到唤醒词的这一回合先看上几句群聊。
|
|
854
|
+
if (chatId.startsWith('group:')) {
|
|
855
|
+
const recent = this.groupContextRecent(chatId);
|
|
856
|
+
if (recent !== undefined)
|
|
857
|
+
out = recent + '\n\n' + out;
|
|
858
|
+
}
|
|
650
859
|
return out.trim();
|
|
651
860
|
}
|
|
652
861
|
/** Per-chat outbound-mode override (/mode), falling back to the global config. */
|
|
@@ -1240,6 +1449,8 @@ export class ChatBridge {
|
|
|
1240
1449
|
// empty queue and fall back to the initiator-based判定(T1 PR port:
|
|
1241
1450
|
// 私聊查管理员名单,群聊 fail-closed member)。
|
|
1242
1451
|
chat.activeTurnRole = chat.pendingTurnRoles.shift() ?? this.hostTurnRole(chatId);
|
|
1452
|
+
// 双发闸(语义版):新回合清空上一回合工具说过的话。
|
|
1453
|
+
chat.toolSentTexts = [];
|
|
1243
1454
|
chat.lastActivityAt = Date.now();
|
|
1244
1455
|
chat.busy = true;
|
|
1245
1456
|
// T3 (P2): arm the deferred silent-wait window for this turn(每次模型
|